diff
stringlengths
139
3.65k
message
stringlengths
8
627
diff_languages
stringclasses
1 value
diff --git a/photutils/psf/models.py b/photutils/psf/models.py index <HASH>..<HASH> 100644 --- a/photutils/psf/models.py +++ b/photutils/psf/models.py @@ -436,7 +436,7 @@ class FittableImageModel(Fittable2DModel): x = np.arange(self._nx, dtype=np.float) y = np.arange(self._ny, dtype=np.float) ...
Fix typo in spline degree for Y axis
py
diff --git a/absl/app.py b/absl/app.py index <HASH>..<HASH> 100644 --- a/absl/app.py +++ b/absl/app.py @@ -259,6 +259,7 @@ def run(main, argv=None): Args: main: The main function to execute. It takes an single argument "argv", which is a list of command line arguments with parsed flags removed. + ...
Document that app.run uses the return value of the main function as the process's exit code. PiperOrigin-RevId: <I>
py
diff --git a/spyder/plugins/editor/lsp/transport/producer.py b/spyder/plugins/editor/lsp/transport/producer.py index <HASH>..<HASH> 100644 --- a/spyder/plugins/editor/lsp/transport/producer.py +++ b/spyder/plugins/editor/lsp/transport/producer.py @@ -15,17 +15,21 @@ queue, encapsulates them into valid JSONRPC messages ...
LSP: Reorganize some imports
py
diff --git a/test/util.py b/test/util.py index <HASH>..<HASH> 100644 --- a/test/util.py +++ b/test/util.py @@ -1,5 +1,3 @@ -import traceback -import click from click.testing import CliRunner from ykman.cli.__main__ import cli @@ -8,7 +6,5 @@ def ykman_cli(*argv, **kwargs): runner = CliRunner() result = ru...
Don't print stdout and traceback on test failure
py
diff --git a/slave/buildslave/pbutil.py b/slave/buildslave/pbutil.py index <HASH>..<HASH> 100644 --- a/slave/buildslave/pbutil.py +++ b/slave/buildslave/pbutil.py @@ -5,7 +5,7 @@ from twisted.spread import pb from twisted.spread.pb import PBClientFactory -from twisted.internet import protocol +from twisted.internet...
Make the buildslave exit if it can't login
py
diff --git a/tests/fake_webapp.py b/tests/fake_webapp.py index <HASH>..<HASH> 100644 --- a/tests/fake_webapp.py +++ b/tests/fake_webapp.py @@ -12,6 +12,13 @@ EXAMPLE_HTML = """\ <script type="text/javascript" src="/static/jquery.min.js"></script> <script type="text/javascript"> $(document).ready(func...
added actions in fake web app for double click
py
diff --git a/sos/plugins/snappy.py b/sos/plugins/snappy.py index <HASH>..<HASH> 100644 --- a/sos/plugins/snappy.py +++ b/sos/plugins/snappy.py @@ -16,7 +16,7 @@ class Snappy(Plugin, UbuntuPlugin, DebianPlugin, RedHatPlugin): plugin_name = 'snappy' profiles = ('system', 'sysmgmt', 'packagemanager') - file...
[snappy] Check for presence of the snapd pkg instead of its binary To perform snap command, 'snapd' debian package must be installed: <URL>
py
diff --git a/sphinx_gallery/gen_rst.py b/sphinx_gallery/gen_rst.py index <HASH>..<HASH> 100644 --- a/sphinx_gallery/gen_rst.py +++ b/sphinx_gallery/gen_rst.py @@ -552,7 +552,7 @@ def generate_file_rst(fname, target_dir, src_dir, gallery_conf): example_nb = Notebook(fname, target_dir) filename_pattern = gall...
Fix #<I> This recovers what was lost is <I>d2acd<I>c<I>baf<I>af<I>f<I>a<I>b
py
diff --git a/userprofile.py b/userprofile.py index <HASH>..<HASH> 100644 --- a/userprofile.py +++ b/userprofile.py @@ -4,7 +4,7 @@ pylucid.models ~~~~~~~~~~~~~~ - :copyleft: 2009-2011 by the PyLucid team, see AUTHORS for more details. + :copyleft: 2009-2013 by the PyLucid team, see AUTHORS for more de...
new salt length needs schemamigration!
py
diff --git a/panc/src/main/scripts/panlint/panlint.py b/panc/src/main/scripts/panlint/panlint.py index <HASH>..<HASH> 100755 --- a/panc/src/main/scripts/panlint/panlint.py +++ b/panc/src/main/scripts/panlint/panlint.py @@ -180,7 +180,7 @@ def merge_diagnoses(args): return '' args = [a.rstrip() for a in ...
Use list comprehension instead of map Best practice for modern Python.
py
diff --git a/py/test/selenium/webdriver/common/implicit_waits_tests.py b/py/test/selenium/webdriver/common/implicit_waits_tests.py index <HASH>..<HASH> 100644 --- a/py/test/selenium/webdriver/common/implicit_waits_tests.py +++ b/py/test/selenium/webdriver/common/implicit_waits_tests.py @@ -94,10 +94,9 @@ class Implicit...
DavidBurns fix to webserver details in implicit tests r<I>
py
diff --git a/host/basil/TL/SiTcp.py b/host/basil/TL/SiTcp.py index <HASH>..<HASH> 100644 --- a/host/basil/TL/SiTcp.py +++ b/host/basil/TL/SiTcp.py @@ -141,7 +141,7 @@ class SiTcp (SiTransferLayer): if(size == 4): return array('B', struct.pack('I', self._get_tcp_data_size())) e...
BUG: SiTcp compatible with sram_fifo version
py
diff --git a/graphsrv/application.py b/graphsrv/application.py index <HASH>..<HASH> 100644 --- a/graphsrv/application.py +++ b/graphsrv/application.py @@ -264,11 +264,14 @@ class GraphServ(vodka.app.WebApplication): # get all possible sources sources = layout.get("sources", graphsrv.gr...
fix #<I>: stabilize graph order on default index layout throughout restarts
py
diff --git a/grip/server.py b/grip/server.py index <HASH>..<HASH> 100644 --- a/grip/server.py +++ b/grip/server.py @@ -14,7 +14,7 @@ def serve(directory='.', readme_file='README'): # Flask application app = Flask('grip') app.config.from_pyfile('config.py') - app.config.from_pyfile('local_config.py', s...
Moved local_config up to keep out of setup.
py
diff --git a/chess/__init__.py b/chess/__init__.py index <HASH>..<HASH> 100644 --- a/chess/__init__.py +++ b/chess/__init__.py @@ -1616,7 +1616,7 @@ class Board(BaseBoard): if not self.occupied_co[self.turn] & from_mask: return False - # Only pawns can promote and only on the back rank. +...
More minor fixes yet again Found some more things to fix.
py
diff --git a/tests/test_discovery.py b/tests/test_discovery.py index <HASH>..<HASH> 100644 --- a/tests/test_discovery.py +++ b/tests/test_discovery.py @@ -23,7 +23,6 @@ Unit tests for objects created from discovery documents. __author__ = 'jcgregorio@google.com (Joe Gregorio)' -import copy import httplib2 import...
Fix environment save/restore error in test. Reviewed in <URL>
py
diff --git a/salt/fileclient.py b/salt/fileclient.py index <HASH>..<HASH> 100644 --- a/salt/fileclient.py +++ b/salt/fileclient.py @@ -3,7 +3,7 @@ Classes that manage file clients """ import contextlib import errno -import ftplib +import ftplib # nosec import http.server import logging import os @@ -577,7 +577,7...
Ignore Bandit's B<I>(blacklist) regarding `ftplib` The choice to use it or not is on the user's hands.
py
diff --git a/PySimpleGUI.py b/PySimpleGUI.py index <HASH>..<HASH> 100644 --- a/PySimpleGUI.py +++ b/PySimpleGUI.py @@ -2677,6 +2677,11 @@ class Window: def UnHide(self): self.TKroot.deiconify() + def Disapper(self): + self.TKroot.attributes('-alpha', 0) + + def Reappear(self): + self...
NEW Window capability - Disappear / Reappear
py
diff --git a/dwave/embedding/pegasus.py b/dwave/embedding/pegasus.py index <HASH>..<HASH> 100644 --- a/dwave/embedding/pegasus.py +++ b/dwave/embedding/pegasus.py @@ -1,3 +1,19 @@ +# Copyright 2019 D-Wave Systems Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this fi...
Fix some misses on previous commit
py
diff --git a/mastodon/Mastodon.py b/mastodon/Mastodon.py index <HASH>..<HASH> 100644 --- a/mastodon/Mastodon.py +++ b/mastodon/Mastodon.py @@ -592,7 +592,7 @@ class Mastodon: """ Clear out a users notifications """ - return self.__api_request('GET', '/api/v1/notifications/clear') + ...
Fixed clearing notifications raising endpoint not found.
py
diff --git a/salt/client/mixins.py b/salt/client/mixins.py index <HASH>..<HASH> 100644 --- a/salt/client/mixins.py +++ b/salt/client/mixins.py @@ -72,7 +72,7 @@ class ClientFuncsDict(collections.MutableMapping): } pub_data = {} # pull out pub_data if you have it - ...
Add list to six.iteritems
py
diff --git a/utool/util_inspect.py b/utool/util_inspect.py index <HASH>..<HASH> 100755 --- a/utool/util_inspect.py +++ b/utool/util_inspect.py @@ -261,7 +261,8 @@ def iter_module_doctestable(module, include_funcs=True, include_classes=True, for subkey, subval in six.iteritems(class_.__dict__): ...
fixed error trying to assign a value to a builtin function
py
diff --git a/blockstack_client/keys.py b/blockstack_client/keys.py index <HASH>..<HASH> 100644 --- a/blockstack_client/keys.py +++ b/blockstack_client/keys.py @@ -260,7 +260,7 @@ def privkey_to_string(privkey_info): Convert private key to string Return None on invalid """ - if is_singlesig(privkey_inf...
another small bug -- this affects the 'wallet' command
py
diff --git a/apns2/client.py b/apns2/client.py index <HASH>..<HASH> 100644 --- a/apns2/client.py +++ b/apns2/client.py @@ -22,7 +22,7 @@ class APNsClient(object): self.__connection = HTTP20Connection(server, port, ssl_context=ssl_context) def send_notification(self, token_hex, notification, priority=Not...
Update client.py according to PEP8
py
diff --git a/tests/integration/test_client.py b/tests/integration/test_client.py index <HASH>..<HASH> 100644 --- a/tests/integration/test_client.py +++ b/tests/integration/test_client.py @@ -37,7 +37,7 @@ class TestClient(unittest.TestCase): payload = eventbrite.api("get", "/users/me/", {}) self.ass...
adding missing key from response dictionary so get_api test passes
py
diff --git a/pyemu/tests/utils_tests.py b/pyemu/tests/utils_tests.py index <HASH>..<HASH> 100644 --- a/pyemu/tests/utils_tests.py +++ b/pyemu/tests/utils_tests.py @@ -704,8 +704,12 @@ def make_hydmod_insfile_test(): if __name__ == "__main__": load_sgems_expvar_test() - read_hydmod_test() - make_hydmod_ins...
put trap for flopy in test
py
diff --git a/tests/exit_status_test.py b/tests/exit_status_test.py index <HASH>..<HASH> 100644 --- a/tests/exit_status_test.py +++ b/tests/exit_status_test.py @@ -1,5 +1,5 @@ -import distutils.spawn import signal +import sys from subprocess import Popen import pytest @@ -18,7 +18,7 @@ def test_exit_status_regular_...
Have Python kill itself instead of using /bin/kill This is probably less fragile
py
diff --git a/librosa/feature/spectral.py b/librosa/feature/spectral.py index <HASH>..<HASH> 100644 --- a/librosa/feature/spectral.py +++ b/librosa/feature/spectral.py @@ -1777,12 +1777,12 @@ def melspectrogram(y=None, sr=22050, S=None, n_fft=2048, hop_length=512, >>> import matplotlib.pyplot as plt >>> plt....
edit specshow example in melspectrogram docstring pass sr as kwarg. change title to mel-frequency spectrogram
py
diff --git a/__pkginfo__.py b/__pkginfo__.py index <HASH>..<HASH> 100644 --- a/__pkginfo__.py +++ b/__pkginfo__.py @@ -76,7 +76,7 @@ install_requires = [ "pygments %s" % pygments_version, "spark_parser >= 1.8.9, <1.9.0", "tracer >= 0.3.2", - "uncompyle6 >= 3.7.0", + "uncompyle6 >= 3.7.2", ] licen...
Bump min uncompyle6 version
py
diff --git a/salt/cloud/clouds/cloudstack.py b/salt/cloud/clouds/cloudstack.py index <HASH>..<HASH> 100644 --- a/salt/cloud/clouds/cloudstack.py +++ b/salt/cloud/clouds/cloudstack.py @@ -265,6 +265,12 @@ def create(vm_): transport=__opts__['transport'] ) + displayname = cloudstack_displayname(vm_) + ...
Provide option to set a display name. Defaults to instance's name.
py
diff --git a/newsplease/examples/commoncrawl.py b/newsplease/examples/commoncrawl.py index <HASH>..<HASH> 100644 --- a/newsplease/examples/commoncrawl.py +++ b/newsplease/examples/commoncrawl.py @@ -160,7 +160,7 @@ def main(): show_download_progress=my_show_download_progr...
Update commoncrawl.py
py
diff --git a/docs/rebuild_docs.py b/docs/rebuild_docs.py index <HASH>..<HASH> 100755 --- a/docs/rebuild_docs.py +++ b/docs/rebuild_docs.py @@ -58,7 +58,7 @@ if __name__ == '__main__': if args.warnings_as_errors: cmdargs.append('SPHINXOPTS="-W"') - subprocess.call(cmdargs) + subprocess.check_call(c...
Fail on error when making docs
py
diff --git a/docs/conf.py b/docs/conf.py index <HASH>..<HASH> 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -22,6 +22,7 @@ import sphinx_rtd_theme # If extensions (or modules to document with autodoc) are in another directory, # add these directories to sys.path here. If the directory is relative to the # document...
Add ../ to sys.path in docs/conf.py
py
diff --git a/pybar/fei4/register_utils.py b/pybar/fei4/register_utils.py index <HASH>..<HASH> 100644 --- a/pybar/fei4/register_utils.py +++ b/pybar/fei4/register_utils.py @@ -13,13 +13,17 @@ import itertools from bitarray import bitarray from basil.utils.BitLogic import BitLogic -from pybar_fei4_interpreter.data...
REG: define tables description here, where it belongs
py
diff --git a/modin/pandas/groupby.py b/modin/pandas/groupby.py index <HASH>..<HASH> 100644 --- a/modin/pandas/groupby.py +++ b/modin/pandas/groupby.py @@ -490,6 +490,7 @@ class DataFrameGroupBy(object): else: by = self._by - return self._df._default_to_pandas( - lambda df: f(df...
Add better defaulting to pandas message for `groupby` (#<I>) * Add better defaulting to pandas message for `groupby` * Resolves #<I> * Adds a function that contains the correct name instead of using an anonymous lambda. * User will now see: ``` UserWarning: `DataFrame.groupby_on_multiple_columns` defaulting ...
py
diff --git a/hamster/graphics.py b/hamster/graphics.py index <HASH>..<HASH> 100644 --- a/hamster/graphics.py +++ b/hamster/graphics.py @@ -54,7 +54,7 @@ class Area(gtk.DrawingArea): self.__prev_mouse_regions = None self.tweener = pytweener.Tweener(0.4, pytweener.Easing.Cubic.easeInOut) - ...
jumping up to <I>fps gives somewhat smoother results. that's an overridable default anyway
py
diff --git a/librarypaste/mongostore.py b/librarypaste/mongostore.py index <HASH>..<HASH> 100644 --- a/librarypaste/mongostore.py +++ b/librarypaste/mongostore.py @@ -32,3 +32,8 @@ class MongoDBDataStore(pymongo.Connection, DataStore): return next(recs)['uid'] except StopIteration: pa...
Added support for mongostore._lookupUid
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -39,7 +39,7 @@ with open('README.rst') as f: readme = f.read() extensions = Extension("convertbng.cutil", - sources=["convertbng/cutil.pyx"], + sources=["convertbng/cutil.c"], ...
Built from source without cythonising
py
diff --git a/treeherder/etl/management/commands/ingest_push.py b/treeherder/etl/management/commands/ingest_push.py index <HASH>..<HASH> 100644 --- a/treeherder/etl/management/commands/ingest_push.py +++ b/treeherder/etl/management/commands/ingest_push.py @@ -58,7 +58,7 @@ class Command(BaseCommand): process = ...
Bug <I> - Fix ingest_push We weren't passing the full revision to the ingestion logic, so everything was being skipped.
py
diff --git a/runipy/notebook_runner.py b/runipy/notebook_runner.py index <HASH>..<HASH> 100644 --- a/runipy/notebook_runner.py +++ b/runipy/notebook_runner.py @@ -114,9 +114,7 @@ class NotebookRunner(object): break def run_cell(self, cell): - """ - Run a notebook cell and update th...
runipy/notebook_runner.py: Put one line docstring on one line. (pep<I>: D<I>)
py
diff --git a/src/meshio/_mesh.py b/src/meshio/_mesh.py index <HASH>..<HASH> 100644 --- a/src/meshio/_mesh.py +++ b/src/meshio/_mesh.py @@ -337,7 +337,7 @@ class Mesh: break data_name = "-".join(self.cell_sets.keys()) - self.cell_data = {data_name: intfun} + self...
don't delete data on int_data_to_sets
py
diff --git a/unittests/file_cache_tester.py b/unittests/file_cache_tester.py index <HASH>..<HASH> 100644 --- a/unittests/file_cache_tester.py +++ b/unittests/file_cache_tester.py @@ -29,6 +29,12 @@ class tester_t(parser_test_case.parser_test_case_t): header.close() def test_update(self): + + # Sa...
Add mechanism to prevent committing caching messages in core_cache.hpp
py
diff --git a/qg/core/app/application.py b/qg/core/app/application.py index <HASH>..<HASH> 100644 --- a/qg/core/app/application.py +++ b/qg/core/app/application.py @@ -55,7 +55,9 @@ class QExtensionManager(Observable): class QExtension(object): - name = None + @property + def name(self): + return se...
use class name as application and extension names
py
diff --git a/steam/__init__.py b/steam/__init__.py index <HASH>..<HASH> 100644 --- a/steam/__init__.py +++ b/steam/__init__.py @@ -1,4 +1,4 @@ -__version__ = "1.0.0-alpha2" +__version__ = "1.0.0-alpha3" __author__ = "Rossen Georgiev" -version_info = (1, 0, 0, 'alpha', 2) +version_info = (1, 0, 0, 'alpha', 3)
bump to <I>-alpha3
py
diff --git a/liveandletdie/__init__.py b/liveandletdie/__init__.py index <HASH>..<HASH> 100644 --- a/liveandletdie/__init__.py +++ b/liveandletdie/__init__.py @@ -210,10 +210,11 @@ class Base(object): return '{0}://{1}:{2}'.format(self.scheme, self.host, self.port) def _kill(self): - try: - ...
Fixed a bug when _kill() raised an error when there was no process.
py
diff --git a/dedupe/convenience.py b/dedupe/convenience.py index <HASH>..<HASH> 100644 --- a/dedupe/convenience.py +++ b/dedupe/convenience.py @@ -7,6 +7,10 @@ Convenience functions for in memory deduplication import collections import dedupe.core +try: + from collections import OrderedDict +except ImportError :...
pull ordered Dict from backports
py
diff --git a/intranet/apps/templatetags/math.py b/intranet/apps/templatetags/math.py index <HASH>..<HASH> 100644 --- a/intranet/apps/templatetags/math.py +++ b/intranet/apps/templatetags/math.py @@ -30,6 +30,12 @@ def int(number): @register.filter def divide(dividend, divisor): - """Divide a number by the number...
Return 0 if divisor passed to divide filter is 0
py
diff --git a/taskrunner/config.py b/taskrunner/config.py index <HASH>..<HASH> 100644 --- a/taskrunner/config.py +++ b/taskrunner/config.py @@ -122,10 +122,10 @@ class Config(RawConfig): """Config that adds defaults and does interpolation on values.""" def __init__(self, *args, _interpolate=True, **kwargs): ...
In Config constructor, set defaults after super() call This allows initial items to be added via either args or kwargs.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -133,7 +133,7 @@ extras_require = { """Feature flags end-users can use in dependencies""" if sys.version_info < (3, 3): - extras_require['test_tools'].append( + extras_require['testing'].append( 'mock' # ac...
Fix issue with adding mock dep for Python 2.x-<I>
py
diff --git a/PyFunceble.py b/PyFunceble.py index <HASH>..<HASH> 100755 --- a/PyFunceble.py +++ b/PyFunceble.py @@ -2073,6 +2073,7 @@ class Referer(object): "eh", "et", "fk", + "flsmidth", "fm", "gm", "gn", @@ -4012,7 +4013,7 @@ if ...
Introduction of `flsmidth` into the list of ignored extensions cf: No whois server.
py
diff --git a/tests/runtests.py b/tests/runtests.py index <HASH>..<HASH> 100755 --- a/tests/runtests.py +++ b/tests/runtests.py @@ -1,3 +1,4 @@ +#!/usr/bin/python """ top-level test-script for allantools https://github.com/aewallin/allantools
make file run from command-line.
py
diff --git a/pyqode/python/code_completion.py b/pyqode/python/code_completion.py index <HASH>..<HASH> 100644 --- a/pyqode/python/code_completion.py +++ b/pyqode/python/code_completion.py @@ -70,6 +70,7 @@ class JediProvider(code_completion.Provider): retVal = [] try: import jedi + ...
Try a better way to follow definition of imports to get the correct completion types
py
diff --git a/source/rafcon/gui/mygaphas/view.py b/source/rafcon/gui/mygaphas/view.py index <HASH>..<HASH> 100644 --- a/source/rafcon/gui/mygaphas/view.py +++ b/source/rafcon/gui/mygaphas/view.py @@ -12,6 +12,7 @@ # Sebastian Brunner <sebastian.brunner@dlr.de> from gaphas.view import GtkView +from gaphas.item import...
Override queue_draw_item to accept ports
py
diff --git a/pypet/storageservice.py b/pypet/storageservice.py index <HASH>..<HASH> 100644 --- a/pypet/storageservice.py +++ b/pypet/storageservice.py @@ -922,7 +922,10 @@ class HDF5StorageService(StorageService, HasLogger): elif filename is None: filename = 'Experiments.hdf5' - head, tai...
allow output directories without trailing slash
py
diff --git a/jaraco/test/services.py b/jaraco/test/services.py index <HASH>..<HASH> 100644 --- a/jaraco/test/services.py +++ b/jaraco/test/services.py @@ -386,6 +386,9 @@ class MongoDBInstance(MongoDBFinder, Subprocess, Service): def get_connect_hosts(self): return ['localhost:{self.port}'.format(**vars()...
Added pytest plugin for mongodb_instance and mongodb_uri
py
diff --git a/gandi/cli/core/cli.py b/gandi/cli/core/cli.py index <HASH>..<HASH> 100644 --- a/gandi/cli/core/cli.py +++ b/gandi/cli/core/cli.py @@ -149,7 +149,9 @@ class GandiCLI(click.Group): } if 'GANDICLI_PATH' in os.environ: - for path in os.environ.get('GANDICLI_PATH').split(':'): + ...
Remove trailing slash if present when processing GANDICLI_PATH paths
py
diff --git a/hamster/hamsterdbus.py b/hamster/hamsterdbus.py index <HASH>..<HASH> 100644 --- a/hamster/hamsterdbus.py +++ b/hamster/hamsterdbus.py @@ -140,6 +140,20 @@ class HamsterDbusController(dbus.service.Object): activities.append((act['name'] or '', act['category'] or '')) return activities ...
new dbus method getCurrentActivity that returns just the name and category of the ongoing activity
py
diff --git a/holoviews/core/data/dictionary.py b/holoviews/core/data/dictionary.py index <HASH>..<HASH> 100644 --- a/holoviews/core/data/dictionary.py +++ b/holoviews/core/data/dictionary.py @@ -56,6 +56,8 @@ class DictInterface(Interface): data = {k: data[:,i] for i,k in enumerate(dimensions)} el...
Added comment to clarify dict interface type handling
py
diff --git a/tests/integration/ssh/test_jinja_filters.py b/tests/integration/ssh/test_jinja_filters.py index <HASH>..<HASH> 100644 --- a/tests/integration/ssh/test_jinja_filters.py +++ b/tests/integration/ssh/test_jinja_filters.py @@ -1,3 +1,5 @@ +import platform + import pytest from tests.support.case import SSHCase...
Skipping on Debian 9 There are some oddities with unicode filenames that are causing this particular test to fail. Ultimately we should be using .encode/.decode with errors='surrogatepass', but that's a long time coming and Debian 9 will no longer be a concern by that point.
py
diff --git a/openquake/commonlib/valid.py b/openquake/commonlib/valid.py index <HASH>..<HASH> 100644 --- a/openquake/commonlib/valid.py +++ b/openquake/commonlib/valid.py @@ -238,8 +238,6 @@ def namelist(value): ValueError: List of names containing an invalid name: 1c """ names = value.replace(',', ' ')....
Empty namelists are acceptable
py
diff --git a/pipenv/core.py b/pipenv/core.py index <HASH>..<HASH> 100644 --- a/pipenv/core.py +++ b/pipenv/core.py @@ -1463,8 +1463,7 @@ def pip_install( pip_command.extend(["-r", vistir.path.normalize_path(r)]) elif line: pip_command.extend(line) - pip_source_args = prepare_pip_source_args(so...
this part of the change was not required.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -9,6 +9,7 @@ setup( author_email='maigfrga@gmail.com', dependency_links=['https://github.com/maigfrga/sqlalchemypostgresutils.git@dev#egg=sqlalchemypostgresutils'], # noqa install_requires=[ + 'jsonschem...
add jsonschema as depdendency
py
diff --git a/scout/server/links.py b/scout/server/links.py index <HASH>..<HASH> 100644 --- a/scout/server/links.py +++ b/scout/server/links.py @@ -1,3 +1,4 @@ +from pprint import pprint as pp def add_gene_links(gene_obj, build=37): """Update a gene object with links @@ -15,10 +16,15 @@ def add_gene_links(gene_o...
Fixes brokes ensembl link
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -24,6 +24,7 @@ setup( 'Programming Language :: Python :: 3.3', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', + 'Programming Language :: Python :: Implementa...
added in pypy support explicitly
py
diff --git a/rest_framework_nested/relations.py b/rest_framework_nested/relations.py index <HASH>..<HASH> 100644 --- a/rest_framework_nested/relations.py +++ b/rest_framework_nested/relations.py @@ -76,6 +76,9 @@ class NestedHyperlinkedRelatedField(rest_framework.relations.HyperlinkedRelatedF kwargs.update...
Ensure field uses full object instance. Fixes alanjds/drf-nested-routers#<I>
py
diff --git a/salt/modules/netbsdservice.py b/salt/modules/netbsdservice.py index <HASH>..<HASH> 100644 --- a/salt/modules/netbsdservice.py +++ b/salt/modules/netbsdservice.py @@ -163,7 +163,7 @@ def _rcconf_status(name, status): ''' rcconf = '/etc/rc.conf' rxname = '^{0}=.*'.format(name) - newstatus =...
netbsdservice mod: add space after comma to satisfy pylint
py
diff --git a/salt/modules/openscap.py b/salt/modules/openscap.py index <HASH>..<HASH> 100644 --- a/salt/modules/openscap.py +++ b/salt/modules/openscap.py @@ -26,7 +26,7 @@ _XCCDF_MAP = { 'cmd_pattern': ( "oscap xccdf eval " "--oval-results --results results.xml --report report.html "...
Extend openscap module command parsing. This commit extends the cmd_pattern with unknown parts of the parsing process. Otherwise it is not possible to customize the openscap XCCDF execution with additional parameters like --remediate.
py
diff --git a/tests/conftest.py b/tests/conftest.py index <HASH>..<HASH> 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -27,7 +27,7 @@ import six if six.PY2: - import mock + import mock # pylint: disable=import-error unittest.mock = mock sys.modules['unittest.mock'] = unittest.mock
Ignoring the failed import of `mock` with Pylint. See: <URL>
py
diff --git a/pyArango/connection.py b/pyArango/connection.py index <HASH>..<HASH> 100644 --- a/pyArango/connection.py +++ b/pyArango/connection.py @@ -81,7 +81,7 @@ class AikidoSession(object) : class Connection(object) : """This is the entry point in pyArango and directly handles databases.""" - def __init_...
localhost causes connection to be slow on windows.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -19,7 +19,7 @@ CTDS_PATCH_VERSION = 0 TESTS_REQUIRE = [] if sys.version_info < (3, 3): # Mock is part of the Python 3.3+ stdlib. - TESTS_REQUIRE.append('mock >= 0.7.2') + TESTS_REQUIRE.append('mock >= 0.7.2, < 4.0...
Restrict mock requirement to < <I>
py
diff --git a/LiSE/LiSE/engine.py b/LiSE/LiSE/engine.py index <HASH>..<HASH> 100644 --- a/LiSE/LiSE/engine.py +++ b/LiSE/LiSE/engine.py @@ -869,7 +869,7 @@ class Engine(AbstractEngine, gORM): self._character_portal_rules_handled_cache \ = CharacterPortalRulesHandledCache(self) self._avatar...
Prevent a crash when running the rules engine on non-trunk branches
py
diff --git a/test/test_workbench.py b/test/test_workbench.py index <HASH>..<HASH> 100755 --- a/test/test_workbench.py +++ b/test/test_workbench.py @@ -44,13 +44,14 @@ def patch_coverage_for_gevent(): __import__('pyjack').replace_all_refs(_coverage, coverage) -# Monkey path coverage so it works with gevent -pat...
put monkey patch in the test code itself; trying to fix travis build break
py
diff --git a/satpy/writers/cf_writer.py b/satpy/writers/cf_writer.py index <HASH>..<HASH> 100644 --- a/satpy/writers/cf_writer.py +++ b/satpy/writers/cf_writer.py @@ -253,4 +253,7 @@ class CFWriter(Writer): kwargs.pop('config_files') kwargs.pop('compute') kwargs.pop('overlay', None) + ...
Remove unwanted kwargs to to_netcdf call
py
diff --git a/txsni/only_noticed_pypi_pem_after_i_wrote_this.py b/txsni/only_noticed_pypi_pem_after_i_wrote_this.py index <HASH>..<HASH> 100644 --- a/txsni/only_noticed_pypi_pem_after_i_wrote_this.py +++ b/txsni/only_noticed_pypi_pem_after_i_wrote_this.py @@ -12,15 +12,15 @@ def objectsFromPEM(pemdata): """ ce...
did u no str does not support the buffer interface
py
diff --git a/nornir/plugins/tasks/connections/napalm_connection.py b/nornir/plugins/tasks/connections/napalm_connection.py index <HASH>..<HASH> 100644 --- a/nornir/plugins/tasks/connections/napalm_connection.py +++ b/nornir/plugins/tasks/connections/napalm_connection.py @@ -8,7 +8,7 @@ def napalm_connection(task=None, ...
Clarify which key is used for the Napalm port
py
diff --git a/umi_tools/group.py b/umi_tools/group.py index <HASH>..<HASH> 100644 --- a/umi_tools/group.py +++ b/umi_tools/group.py @@ -260,6 +260,8 @@ def main(argv=None): if options.stdout != sys.stdout: out_name = options.stdout.name options.stdout.close() + assert options.output_bam, ( ...
adds unique UG tag for each group of reads when using group method
py
diff --git a/lesscpy/lessc/scope.py b/lesscpy/lessc/scope.py index <HASH>..<HASH> 100644 --- a/lesscpy/lessc/scope.py +++ b/lesscpy/lessc/scope.py @@ -17,7 +17,7 @@ class Scope(list): Args: init (bool): Initiate scope """ - super().__init__() + super(Scope).__init__() ...
fix super for python2.x
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -49,6 +49,7 @@ setup_args.update(dict( "holoviews.plotting", "holoviews.plotting.mpl", "holoviews.plotting.bokeh", + "holoviews.plotting.plotly", ...
Added plotly subpackage to setup.py
py
diff --git a/ccxt/__init__.py b/ccxt/__init__.py index <HASH>..<HASH> 100644 --- a/ccxt/__init__.py +++ b/ccxt/__init__.py @@ -553,6 +553,12 @@ class Market (object): def fetchProducts (self): return self.fetch_products () + def fetch_tickers (self): + raise MarketError (self.id + ' API does n...
added fetch_tickers to python
py
diff --git a/pavement.py b/pavement.py index <HASH>..<HASH> 100644 --- a/pavement.py +++ b/pavement.py @@ -17,8 +17,7 @@ setup(name='microdrop-plugin-manager', url='https://github.com/wheeler-microfluidics/mpm', license='LGPLv2.1', packages=['mpm', ], - install_requires=['pip-helpers>=0.5.post...
Bump required version of pip-helpers
py
diff --git a/src/zugbruecke/routine_client.py b/src/zugbruecke/routine_client.py index <HASH>..<HASH> 100644 --- a/src/zugbruecke/routine_client.py +++ b/src/zugbruecke/routine_client.py @@ -161,7 +161,7 @@ class routine_client_class(): type_name = None # Get group of datatype - group_name = type(datatype).__...
array of struct types can be parsed
py
diff --git a/staff/fields.py b/staff/fields.py index <HASH>..<HASH> 100644 --- a/staff/fields.py +++ b/staff/fields.py @@ -129,6 +129,15 @@ class RemovableFileField(models.FileField): defaults = {'form_class': RemovableFileFormField} defaults.update(kwargs) return super(RemovableFileField, se...
Added a south introspector for the removable file field
py
diff --git a/fastly/errors.py b/fastly/errors.py index <HASH>..<HASH> 100644 --- a/fastly/errors.py +++ b/fastly/errors.py @@ -1,18 +1,21 @@ """ """ -class AuthenticationError(Exception): +class FastlyError(Exception): pass -class InternalServerError(Exception): +class AuthenticationError(FastlyError): ...
break out a base FastlyError that the other error classes share. benefit: consumers can look out for just the base FastlyError.
py
diff --git a/cflib/__init__.py b/cflib/__init__.py index <HASH>..<HASH> 100644 --- a/cflib/__init__.py +++ b/cflib/__init__.py @@ -39,16 +39,20 @@ The two main uses-cases are scanning for Crazyflies available on a communication link and opening a communication link to a Crazyflie. Example of scanning for available ...
cflib: Fix up docstring
py
diff --git a/test.py b/test.py index <HASH>..<HASH> 100644 --- a/test.py +++ b/test.py @@ -25,6 +25,24 @@ def relevance(): relevance = db.get_relevance() print repr(relevance) +def upload(): + s = get_session() + acct = Account('admin', s) + resp = acct.create_project('api-create-test-2') + if r...
Implementing a database creation and document upload test
py
diff --git a/tests/timedelta_test.py b/tests/timedelta_test.py index <HASH>..<HASH> 100644 --- a/tests/timedelta_test.py +++ b/tests/timedelta_test.py @@ -4,7 +4,7 @@ import numpy as np def test_timedelta_methods(): - delta = np.array([17658720110, 11047049384039, 40712636304958, -18161254954], dtype='timedelta...
🚨 fix test with non out-of-bounds timedeltas
py
diff --git a/py/test/terminal/remote.py b/py/test/terminal/remote.py index <HASH>..<HASH> 100644 --- a/py/test/terminal/remote.py +++ b/py/test/terminal/remote.py @@ -101,18 +101,21 @@ class RemoteTerminalSession(object): from py.__.test.terminal.remote import slaverun_TerminalSession slaverun...
[svn r<I>] explicitely shutdown the gateway for the remote session after each run. --HG-- branch : trunk
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -16,7 +16,8 @@ from setuptools import find_packages setup(name='chainside-btcpy', version='0.1.1', packages=find_packages(), - install_requires=['ecdsa', 'base58', 'python-bitcoinlib==0.7.0'], + instal...
add version to dependencies, move python-bitcoinlib dependency to develop version
py
diff --git a/master/docs/conf.py b/master/docs/conf.py index <HASH>..<HASH> 100755 --- a/master/docs/conf.py +++ b/master/docs/conf.py @@ -79,7 +79,7 @@ if release == 'latest': # List of patterns, relative to source directory, that match files and # directories to ignore when looking for source files. -exclude_patt...
ignore (intentionally) orphaned release notes
py
diff --git a/networking_arista/ml2/arista_ml2.py b/networking_arista/ml2/arista_ml2.py index <HASH>..<HASH> 100644 --- a/networking_arista/ml2/arista_ml2.py +++ b/networking_arista/ml2/arista_ml2.py @@ -702,6 +702,7 @@ class AristaRPCWrapperJSON(AristaRPCWrapperBase): } path = 'region/' + self...
Fix sending the sync name. Fix an isssue where we were not correctly storing the local sync name on a successful sync_start causing it not to be sent in subsequent calls. Change-Id: I2bc<I>e<I>e<I>fabdb<I>be<I>e<I>d<I>c<I>ea9c5 Closes-Bug: #<I>
py
diff --git a/werkzeug/test.py b/werkzeug/test.py index <HASH>..<HASH> 100644 --- a/werkzeug/test.py +++ b/werkzeug/test.py @@ -284,7 +284,7 @@ class EnvironBuilder(object): self.charset = charset self.path = iri_to_uri(path) if base_url is not None: - base_url = iri_to_uri(url_fix(...
Fix non-ascii problems with EnvironBuilder
py
diff --git a/tensorforce/environments/openai_gym.py b/tensorforce/environments/openai_gym.py index <HASH>..<HASH> 100644 --- a/tensorforce/environments/openai_gym.py +++ b/tensorforce/environments/openai_gym.py @@ -399,10 +399,14 @@ class OpenAIGym(Environment): elif isinstance(state, dict): state...
Improve action-mask handling for Gym environment
py
diff --git a/i3pystatus/cpu_usage.py b/i3pystatus/cpu_usage.py index <HASH>..<HASH> 100644 --- a/i3pystatus/cpu_usage.py +++ b/i3pystatus/cpu_usage.py @@ -22,8 +22,7 @@ class CpuUsage(IntervalModule): ) - def __init__(self): - IntervalModule.__init__(self) + def init(self): self.prev_idle...
Fix cpu_usage not accepting settings
py
diff --git a/AegeanTools/regions.py b/AegeanTools/regions.py index <HASH>..<HASH> 100644 --- a/AegeanTools/regions.py +++ b/AegeanTools/regions.py @@ -359,7 +359,7 @@ class Region(object): hdulist[1].header['MOCID'] = (' ', 'Identifier of the collection') hdulist[1].header['ORIGIN'] = (' ', 'MOC origi...
revert fmt -> format
py
diff --git a/pyontutils/core.py b/pyontutils/core.py index <HASH>..<HASH> 100644 --- a/pyontutils/core.py +++ b/pyontutils/core.py @@ -1293,7 +1293,7 @@ class Class: @classmethod def class_triples(cls): - if not hasattr(cls, 'class_definition') and cls.__doc__: + if 'class_definition' not in c...
core fixed class_definition so that it is per class not per super
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -11,7 +11,7 @@ requires = [ setup( name='amaascore', - version='0.3.1', + version='0.3.2', description='Asset Management as a Service - Core SDK', license='Apache License 2.0', url='https://github....
Increment version for the new ‘local’ mode.
py
diff --git a/pylast.py b/pylast.py index <HASH>..<HASH> 100644 --- a/pylast.py +++ b/pylast.py @@ -193,7 +193,7 @@ class _Request(object): for key in keys: if key != "api_sig" and key != "api_key" and key != "sk": - cache_key += urllib.quote_plus(key) + urllib.quote_plus(urllib.quote_plus(self.params[key]...
fixed some unicode problems with hashlib, i hope.
py
diff --git a/taxtastic/subcommands/taxtable.py b/taxtastic/subcommands/taxtable.py index <HASH>..<HASH> 100644 --- a/taxtastic/subcommands/taxtable.py +++ b/taxtastic/subcommands/taxtable.py @@ -63,13 +63,15 @@ def replace_no_rank(ranks): return ranks -def as_taxtable_rows(rows): +def as_taxtable_rows(...
as_taxtable_rows skips tax_ids that have been seen
py
diff --git a/test/ipynb/results.py b/test/ipynb/results.py index <HASH>..<HASH> 100644 --- a/test/ipynb/results.py +++ b/test/ipynb/results.py @@ -147,16 +147,16 @@ class Results: ret = "" if len(self.mismatch) >= 2: - Results._zipfiles(self.mismatch, "{self.directory}/mismatch.zip") + ...
Add f to f-strings in mpl tester results.py (#<I>) * Add f to f-strings * Add two more missing f-strings
py
diff --git a/simuvex/plugins/symbolic_memory.py b/simuvex/plugins/symbolic_memory.py index <HASH>..<HASH> 100644 --- a/simuvex/plugins/symbolic_memory.py +++ b/simuvex/plugins/symbolic_memory.py @@ -625,7 +625,8 @@ class SimSymbolicMemory(SimMemory): #pylint:disable=abstract-method repeat...
Make sure to copy abstract_backer property when copying SimSymbolicMemory instances.
py