diff
stringlengths
139
3.65k
message
stringlengths
8
627
diff_languages
stringclasses
1 value
diff --git a/discord/abc.py b/discord/abc.py index <HASH>..<HASH> 100644 --- a/discord/abc.py +++ b/discord/abc.py @@ -725,8 +725,6 @@ class Messageable(metaclass=abc.ABCMeta): - :class:`~discord.User` - :class:`~discord.Member` - :class:`~discord.ext.commands.Context` - - This ABC must also implement...
abc.Messageable do not have to implement abc.Snowflake Fix #<I>
py
diff --git a/openquake/job/__init__.py b/openquake/job/__init__.py index <HASH>..<HASH> 100644 --- a/openquake/job/__init__.py +++ b/openquake/job/__init__.py @@ -80,7 +80,7 @@ def run_job(job_file, output_type): a_job.set_status('running') try: - results = a_job.launch() + a_j...
Only print file names when they are written to disk.
py
diff --git a/asn1crypto/_perf/_big_num_ctypes.py b/asn1crypto/_perf/_big_num_ctypes.py index <HASH>..<HASH> 100644 --- a/asn1crypto/_perf/_big_num_ctypes.py +++ b/asn1crypto/_perf/_big_num_ctypes.py @@ -21,6 +21,8 @@ interfacing with libcrypto. from __future__ import unicode_literals, division, absolute_import, prin...
Fix unicode error when looking for OpenSSL on Python 2 when a file path contains non-ASCII paths
py
diff --git a/doc/conf.py b/doc/conf.py index <HASH>..<HASH> 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -245,8 +245,8 @@ on_saltstack = 'SALT_ON_SALTSTACK' in os.environ project = 'Salt' version = salt.version.__version__ -latest_release = '2017.7.1' # latest release -previous_release = '2016.11.7' # latest rel...
[<I>] Bump latest and previous versions
py
diff --git a/yargy/parser.py b/yargy/parser.py index <HASH>..<HASH> 100644 --- a/yargy/parser.py +++ b/yargy/parser.py @@ -40,8 +40,11 @@ class Grammar(object): def __init__(self, name, rules): self.name = name - self.rules = rules - self.rules.append({'terminal': True}) + self.rule...
Concat terminal rule instead of appending it
py
diff --git a/pagseguro/configs.py b/pagseguro/configs.py index <HASH>..<HASH> 100644 --- a/pagseguro/configs.py +++ b/pagseguro/configs.py @@ -7,8 +7,8 @@ class AbstractConfig(object): __metaclass__ = abc.ABCMeta @classmethod - def get(self, key, default=None): - return getattr(self, key, defa...
First argument of a classmethod should be called `cls`
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -19,7 +19,7 @@ def get_readme(): setup( name="docx2html", - version="0.0.8", + version="0.0.9", description="docx (OOXML) to html converter", author="Jason Ward", author_email="jason.louard.ward@gm...
bumped to version <I>
py
diff --git a/imgaug/augmenters/size.py b/imgaug/augmenters/size.py index <HASH>..<HASH> 100644 --- a/imgaug/augmenters/size.py +++ b/imgaug/augmenters/size.py @@ -162,6 +162,9 @@ def _handle_position_parameter(position): def Scale(*args, **kwargs): + import warnings + warnings.warn(DeprecationWarning("'Scale...
Mark Scale as deprecated
py
diff --git a/datatableview/views.py b/datatableview/views.py index <HASH>..<HASH> 100644 --- a/datatableview/views.py +++ b/datatableview/views.py @@ -193,11 +193,12 @@ class DatatableMixin(MultipleObjectMixin): except ValueError: pass ...
Updated query conditions for DateField MySQL can return warnings for values that are out of range of expected year, month, and day parameters. This partially addresses that problem, but isn't perfect.
py
diff --git a/salt/modules/mdadm.py b/salt/modules/mdadm.py index <HASH>..<HASH> 100644 --- a/salt/modules/mdadm.py +++ b/salt/modules/mdadm.py @@ -59,7 +59,8 @@ def detail(device='/dev/md0'): # Lets make sure the device exists before running mdadm if not os.path.exists(device): - raise CommandExecuti...
Fix a silly mistake I missed in a previous commit
py
diff --git a/gcp/testing/eventually_consistent.py b/gcp/testing/eventually_consistent.py index <HASH>..<HASH> 100644 --- a/gcp/testing/eventually_consistent.py +++ b/gcp/testing/eventually_consistent.py @@ -19,19 +19,21 @@ from retrying import retry def _retry_on_exception(exception_class): - return lambda e: i...
Bumping up eventual consistency tries
py
diff --git a/satpy/resample.py b/satpy/resample.py index <HASH>..<HASH> 100644 --- a/satpy/resample.py +++ b/satpy/resample.py @@ -1117,7 +1117,7 @@ class BucketResamplerBase(BaseResampler): dims = ('y', 'x') else: dims = data.dims - LOG.debug("Resampling %s", str(data.name)) +...
Update bucket resamplers to log DataID instead of dask name
py
diff --git a/jenkins/bootstrap_test.py b/jenkins/bootstrap_test.py index <HASH>..<HASH> 100755 --- a/jenkins/bootstrap_test.py +++ b/jenkins/bootstrap_test.py @@ -1892,6 +1892,11 @@ class JobTest(unittest.TestCase): self.assertTrue( os.path.isfile(path), ...
Give cluster name a <I> char limit (#<I>)
py
diff --git a/examples/plotting/server/candlestick.py b/examples/plotting/server/candlestick.py index <HASH>..<HASH> 100644 --- a/examples/plotting/server/candlestick.py +++ b/examples/plotting/server/candlestick.py @@ -9,7 +9,7 @@ output_server("candlestick.py example") hold() -df = pd.DataFrame(MSFT) +df = pd.Dat...
make server candlestick demo sync with file demo
py
diff --git a/mwparserfromhell/nodes/text.py b/mwparserfromhell/nodes/text.py index <HASH>..<HASH> 100644 --- a/mwparserfromhell/nodes/text.py +++ b/mwparserfromhell/nodes/text.py @@ -39,6 +39,9 @@ class Text(Node): def __strip__(self, normalize, collapse): return self + def __showtree__(self, write, ...
Text nodes should now appear a bit better in tree form.
py
diff --git a/werkzeug/__init__.py b/werkzeug/__init__.py index <HASH>..<HASH> 100644 --- a/werkzeug/__init__.py +++ b/werkzeug/__init__.py @@ -105,6 +105,14 @@ class module(ModuleType): __import__('werkzeug.' + name) return ModuleType.__getattribute__(self, name) + def __dir__(self): + ...
hand written __dir__() to expose what we want to expose on the werkzeug module.
py
diff --git a/lib/bosh.py b/lib/bosh.py index <HASH>..<HASH> 100644 --- a/lib/bosh.py +++ b/lib/bosh.py @@ -201,7 +201,7 @@ class BoshRelease: is_errand = post_deploy or pre_delete job_name = job_type if package is not None: - job_name += '-' + self.name + job_name += '-' + package['name'] self.__bosh(...
Append package name to job, not bosh release name. To keep consistent with pre-refactor.
py
diff --git a/hgvs/config.py b/hgvs/config.py index <HASH>..<HASH> 100644 --- a/hgvs/config.py +++ b/hgvs/config.py @@ -43,6 +43,8 @@ class Config(object): def __getattr__(self, k): return ConfigGroup(self._cp[k]) + __getitem__ = __getattr__ + def _read_file(self, flo): self._cp.read_fil...
hgvs.config: allow key-based lookup also
py
diff --git a/dtool_http/storagebroker.py b/dtool_http/storagebroker.py index <HASH>..<HASH> 100644 --- a/dtool_http/storagebroker.py +++ b/dtool_http/storagebroker.py @@ -27,6 +27,7 @@ class HTTPStorageBroker(object): self.uuid = path[1:] http_manifest_url = uri + '/' + HTTP_MANIFEST_KEY + ...
Refactor code to make use of get_text_from_url and get_json_from_url helper methods
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -31,7 +31,7 @@ install_requires = [ 'PyJWT>=1.7,<2', 'kubernetes>=17,<19', # corresponds to server version 1.17 or 1.18 'prometheus_client>=0.6,<1', - 'sentry-sdk~=1.1.0', + 'sentry-sdk~=1.3.0', 'lib...
Update sentry sdk which contains no breaking changes according to the change log
py
diff --git a/dock/plugins/post_store_logs_to_file.py b/dock/plugins/post_store_logs_to_file.py index <HASH>..<HASH> 100644 --- a/dock/plugins/post_store_logs_to_file.py +++ b/dock/plugins/post_store_logs_to_file.py @@ -4,7 +4,7 @@ from dock.inner import BuildResultsEncoder from dock.plugin import PostBuildPlugin -...
store logs plugin: fix __all__
py
diff --git a/amadeus/reference_data/_locations.py b/amadeus/reference_data/_locations.py index <HASH>..<HASH> 100644 --- a/amadeus/reference_data/_locations.py +++ b/amadeus/reference_data/_locations.py @@ -22,7 +22,7 @@ class Locations(Decorator, object): from amadeus import Location - clie...
Update _locations.py
py
diff --git a/tests/test_hooks.py b/tests/test_hooks.py index <HASH>..<HASH> 100644 --- a/tests/test_hooks.py +++ b/tests/test_hooks.py @@ -7,7 +7,6 @@ def test_id_hook(status): assert isinstance(status['id'], int) -@pytest.mark.xfail(reason='fixed in upstream') @pytest.mark.vcr() def test_id_hook_in_reply_to...
id hook test shouldn't be marked as expected to fail anymore
py
diff --git a/zipline/transforms/stddev.py b/zipline/transforms/stddev.py index <HASH>..<HASH> 100644 --- a/zipline/transforms/stddev.py +++ b/zipline/transforms/stddev.py @@ -139,6 +139,24 @@ class MovingStandardDevWindow(EventWindow): self.sum[field] * _mean) / (len(self.ticks) - 1) r...
Restores previous get_stddev method and uses the price value. To maintain compatibility with existing algorithms.
py
diff --git a/src/bandersnatch/utils.py b/src/bandersnatch/utils.py index <HASH>..<HASH> 100644 --- a/src/bandersnatch/utils.py +++ b/src/bandersnatch/utils.py @@ -34,7 +34,8 @@ def find(root, dirs=True): def rewrite(filename): """Rewrite an existing file atomically to avoid programs running in parallel to ha...
Stop file descriptors for temporary files from leaking. Fixes #7
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -13,7 +13,7 @@ reqs = [str(ir.req) for ir in install_reqs] setup( name="napalm-iosxr", version="0.5.0", - packages=find_packages(), + packages=find_packages(exclude=["test", "test.*"]), author="David Barr...
Avoid installing the test/ directory & files as a package.
py
diff --git a/odl/discr/lp_discr.py b/odl/discr/lp_discr.py index <HASH>..<HASH> 100644 --- a/odl/discr/lp_discr.py +++ b/odl/discr/lp_discr.py @@ -396,7 +396,7 @@ class DiscreteLp(DiscretizedSpace): dspace = self.dspace.astype(dtype) return type(self)(fspace, self.partition, dspace, ...
BUG: Fix wrong axis labels on DiscreteLp.real_space, closes #<I>
py
diff --git a/sklearn_porter/utils/Environment.py b/sklearn_porter/utils/Environment.py index <HASH>..<HASH> 100644 --- a/sklearn_porter/utils/Environment.py +++ b/sklearn_porter/utils/Environment.py @@ -57,6 +57,16 @@ except ImportError: class Environment(object): @staticmethod + def read_sklearn_version(): ...
release/<I>: Replace read_sklearn_version to Environment class
py
diff --git a/pyquil/qpu.py b/pyquil/qpu.py index <HASH>..<HASH> 100644 --- a/pyquil/qpu.py +++ b/pyquil/qpu.py @@ -64,20 +64,7 @@ class QPUConnection(Connection): number of qubits, t1, t2, and whether the chip is live for execution or not. :return: """ - payload = { - 'type'...
remove deprecated ping and version for qpu
py
diff --git a/bin/PCoA.py b/bin/PCoA.py index <HASH>..<HASH> 100755 --- a/bin/PCoA.py +++ b/bin/PCoA.py @@ -184,8 +184,7 @@ def main(): fig = plt.figure(figsize=args.figsize) if args.dimensions == 3: ax = fig.add_subplot(111, projection='3d') - ax.view_init(elev=23., azim=-134.5) - ax.se...
Adds the ability to set angle and azimuth for the 3D view in PCoA.py
py
diff --git a/autofit/optimize/non_linear.py b/autofit/optimize/non_linear.py index <HASH>..<HASH> 100644 --- a/autofit/optimize/non_linear.py +++ b/autofit/optimize/non_linear.py @@ -73,12 +73,13 @@ class IntervalCounter(object): def persistent_timer(func): @functools.wraps(func) def timed_function(optimizer...
start_time path outside of symlink
py
diff --git a/salt/modules/file.py b/salt/modules/file.py index <HASH>..<HASH> 100644 --- a/salt/modules/file.py +++ b/salt/modules/file.py @@ -1501,8 +1501,9 @@ def comment_line(path, try: # Open the file in write mode + mode = 'wb' if six.PY2 and salt.utils.platform.is_windows() else 'w' ...
Fix for failing file comment & uncomment tests with python <I>
py
diff --git a/pyeda/parsing/test/test_dimacs.py b/pyeda/parsing/test/test_dimacs.py index <HASH>..<HASH> 100644 --- a/pyeda/parsing/test/test_dimacs.py +++ b/pyeda/parsing/test/test_dimacs.py @@ -12,6 +12,7 @@ import nose def test_cnf_errors(): # unexpected token nose.tools.assert_raises(DIMACSError, parse_cn...
Bump dimacs coverage to <I>%
py
diff --git a/openquake/hazardlib/gsim/base.py b/openquake/hazardlib/gsim/base.py index <HASH>..<HASH> 100644 --- a/openquake/hazardlib/gsim/base.py +++ b/openquake/hazardlib/gsim/base.py @@ -250,7 +250,8 @@ class ContextMaker(object): :param truncnorm: an instance of scipy.stats.truncnorm :param epsil...
Improved docstring [skip CI]
py
diff --git a/pyhomematic/devicetypes/sensors.py b/pyhomematic/devicetypes/sensors.py index <HASH>..<HASH> 100644 --- a/pyhomematic/devicetypes/sensors.py +++ b/pyhomematic/devicetypes/sensors.py @@ -38,6 +38,15 @@ class ShutterContact(IPShutterContact, HelperSabotage): pass +class MaxShutterContact(HMBinarySen...
Add class for MAX shutter contacts MAX devices report 'LOWBAT' on channel 0 and have no sabotage detection.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -23,7 +23,7 @@ def main(): setup( name='pgcontents', - version='0.5.2', + version='0.5.3', description="A Postgres-backed ContentsManager for IPython/Jupyter.", long_description=...
REL: Release <I>. Apparently <I> already happened.
py
diff --git a/wtfpeewee/orm.py b/wtfpeewee/orm.py index <HASH>..<HASH> 100644 --- a/wtfpeewee/orm.py +++ b/wtfpeewee/orm.py @@ -26,6 +26,7 @@ class ModelConverter(object): CharField: f.TextField, TextField: f.TextAreaField, } + required = (DateTimeField, CharField, TextField,) def __...
Floatfield, Integerfield, BooleanField, and several others allow for zero values, which fail the validators.Required() check
py
diff --git a/riak/transports/pbc.py b/riak/transports/pbc.py index <HASH>..<HASH> 100644 --- a/riak/transports/pbc.py +++ b/riak/transports/pbc.py @@ -119,7 +119,15 @@ class SocketWithId(connection.Socket): def recv(self, want_len): try: - return self.sock.recv(want_len) + res = se...
Handle implicit socket close on SocketWithId If we do a blocking read with non-zero request size, and we get a 0 byte response, assume the socket is closed since this indicates EOF.
py
diff --git a/beets/mediafile.py b/beets/mediafile.py index <HASH>..<HASH> 100644 --- a/beets/mediafile.py +++ b/beets/mediafile.py @@ -1237,6 +1237,9 @@ class MediaFile(object): # Isolate bugs in Mutagen. try: self.mgfile.save(**kwargs) + except (IOError, OSError): + # P...
don't wrap standard errors during Mutagen save() Original: beetbox/beets@d<I>
py
diff --git a/views.py b/views.py index <HASH>..<HASH> 100644 --- a/views.py +++ b/views.py @@ -3,6 +3,8 @@ import codecs from datetime import datetime from stat import ST_MTIME, ST_CTIME from base64 import urlsafe_b64decode +import codecs +from re import search from django.core.urlresolvers import reverse from d...
If template is saved in unix-style, overwrite it in unix style.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100755 --- a/setup.py +++ b/setup.py @@ -97,9 +97,11 @@ else: libraries = ['ws2_32'] if sys.platform == 'win32' else [] -requirements = '' with open(salt_reqs) as f: - requirements = f.read() + lines = f.read().split('\n') + requirements = [ + ...
Filtered the content of requirements.txt This sanitizes what goes into install_requires. External packaging tools such as FPM fail when they see a requirement starting with '#'.
py
diff --git a/openquake/commands/zip.py b/openquake/commands/zip.py index <HASH>..<HASH> 100644 --- a/openquake/commands/zip.py +++ b/openquake/commands/zip.py @@ -49,6 +49,13 @@ def zip(job_ini, archive_zip): if table: files.add(table) + # collect exposure.csv, if any + exp...
Extended oq zip to manage exposure.csv[skip CI] Former-commit-id: d8b<I>e<I>cee<I>f1db<I>c<I>f<I>f7
py
diff --git a/pydeconz/sensor.py b/pydeconz/sensor.py index <HASH>..<HASH> 100644 --- a/pydeconz/sensor.py +++ b/pydeconz/sensor.py @@ -25,8 +25,7 @@ WATER = ['ZHAWater'] DECONZ_BINARY_SENSOR = FIRE + GENERICFLAG + OPENCLOSE + PRESENCE + WATER DECONZ_SENSOR = CONSUMPTION + DAYLIGHT + GENERICSTATUS + HUMIDITY + \ - ...
Thermostat shouldn't be a part of any sensor list since it is a different type of device
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -10,6 +10,7 @@ Usage ````` .. code:: python + >>> import jump >>> jump.hash(256, 1024) 520 @@ -17,6 +18,7 @@ Usage Or if you want to use the C++ extension: .. code:: python + >>> jump.fasthash(256, ...
Fix reStructuredText code blocks.
py
diff --git a/canvasapi/enrollment.py b/canvasapi/enrollment.py index <HASH>..<HASH> 100644 --- a/canvasapi/enrollment.py +++ b/canvasapi/enrollment.py @@ -1,11 +1,12 @@ from canvasapi.canvas_object import CanvasObject +from canvasapi.util import combine_kwargs class Enrollment(CanvasObject): def __str__(self...
Add **kwargs to enrollment.py methods
py
diff --git a/patroni/ha.py b/patroni/ha.py index <HASH>..<HASH> 100644 --- a/patroni/ha.py +++ b/patroni/ha.py @@ -158,6 +158,9 @@ class Ha(object): def enforce_master_role(self, message, promote_message): if self.state_handler.is_leader() or self.state_handler.role == 'master': + # Inform th...
Make the cached role coherrent with the actual one. When observing the leader running a master role, set the cached role stored in the state_handler to master as well. Failure to do so resulted in the manually promoted node to continue running with a cached 'replica' role. This led to the failure to create replication...
py
diff --git a/azure_publish_tools.py b/azure_publish_tools.py index <HASH>..<HASH> 100755 --- a/azure_publish_tools.py +++ b/azure_publish_tools.py @@ -66,9 +66,9 @@ def get_local_files(purpose, local_dir): print('%s not found.' % local_dir) return None if purpose == TESTING: - replacements...
Remove the leading slash from the upload path.
py
diff --git a/openprocurement_client/client.py b/openprocurement_client/client.py index <HASH>..<HASH> 100644 --- a/openprocurement_client/client.py +++ b/openprocurement_client/client.py @@ -4,7 +4,6 @@ from munch import munchify from restkit import BasicAuth, errors, request, Resource from retrying import retry fro...
Remove upload_tender_document()
py
diff --git a/src/pytesseract.py b/src/pytesseract.py index <HASH>..<HASH> 100755 --- a/src/pytesseract.py +++ b/src/pytesseract.py @@ -47,7 +47,7 @@ def get_errors(error_string): def cleanup(temp_name): ''' Tries to remove files by filename wildcard path. ''' - for filename in iglob(temp_name + '*'): + fo...
Don't delete every file in current directory if the temp_name is not populated If the temp_name is not generated and passed, the cleanup function will delete every file in current directory (* wildcard selection)
py
diff --git a/tests/estestcase.py b/tests/estestcase.py index <HASH>..<HASH> 100644 --- a/tests/estestcase.py +++ b/tests/estestcase.py @@ -1,6 +1,7 @@ # -*- coding: utf-8 -*- from __future__ import absolute_import import os +import logging """ Unit tests for pyes. These require an es server with thrift plugin r...
Adding curl logging to the test connection. Note: output is suppressed by nose framework unless there is an error
py
diff --git a/doxypypy/doxypypy.py b/doxypypy/doxypypy.py index <HASH>..<HASH> 100755 --- a/doxypypy/doxypypy.py +++ b/doxypypy/doxypypy.py @@ -185,7 +185,7 @@ class AstWalker(NodeVisitor): firstLineNum = lineNum if line is not None: # Don't bother doing extra work if it's ...
Used items() in lieu of iteritems(). While this isn't ideal in Python 2, it's compatible with both Python 2 & 3.
py
diff --git a/delphin/exceptions.py b/delphin/exceptions.py index <HASH>..<HASH> 100644 --- a/delphin/exceptions.py +++ b/delphin/exceptions.py @@ -34,14 +34,14 @@ class PyDelphinSyntaxError(PyDelphinException): parts.append(f'File "{self.filename}"') if self.lineno is not None: parts....
Fix printing of character in PyDelphinSyntaxError
py
diff --git a/notario/validators/types.py b/notario/validators/types.py index <HASH>..<HASH> 100644 --- a/notario/validators/types.py +++ b/notario/validators/types.py @@ -3,7 +3,7 @@ Basic type validators """ from functools import wraps from notario._compat import basestring -from notario.utils import is_callable +f...
make the dictionary validator accept full dicts
py
diff --git a/heron/ui/src/python/main.py b/heron/ui/src/python/main.py index <HASH>..<HASH> 100644 --- a/heron/ui/src/python/main.py +++ b/heron/ui/src/python/main.py @@ -16,6 +16,7 @@ import os, sys import argparse +import socket import tornado.ioloop import tornado.options @@ -95,7 +96,8 @@ def main(argv): ...
Print heron-ui listening address in the console (#<I>) Printing the listening url when the heron-ui starts up makes it easy for people to either copy+paste the address or command + click (OSx) to easily get to the heron ui.
py
diff --git a/rllib/models/modelv2.py b/rllib/models/modelv2.py index <HASH>..<HASH> 100644 --- a/rllib/models/modelv2.py +++ b/rllib/models/modelv2.py @@ -439,8 +439,18 @@ def _unpack_obs(obs: TensorType, space: Space, tensorlib: Any = tf) -> TensorStr ) offset = 0 if tensorlib == tf: - ...
[RLlib] Fix AttributeError with None obs shape + tf in `_unpack_obs()` utility (#<I>)
py
diff --git a/ykman/cli/fido.py b/ykman/cli/fido.py index <HASH>..<HASH> 100755 --- a/ykman/cli/fido.py +++ b/ykman/cli/fido.py @@ -687,8 +687,8 @@ def bio_rename(ctx, template_id, name, pin): ID The ID of the fingerprint to rename (as shown in "list"). NAME A short readable name for the finger...
Check name length based on encoded bytes.
py
diff --git a/jtime/jtime.py b/jtime/jtime.py index <HASH>..<HASH> 100644 --- a/jtime/jtime.py +++ b/jtime/jtime.py @@ -292,7 +292,7 @@ def main(): 'python': str(sys.version), } # We really shouldn't thit this line of code when running tests, so let's not cover it. - ...
Fixing a PEP8 validation.
py
diff --git a/plenum/server/node.py b/plenum/server/node.py index <HASH>..<HASH> 100644 --- a/plenum/server/node.py +++ b/plenum/server/node.py @@ -3422,10 +3422,10 @@ class Node(HasActionQueue, Motor, Propagator, MessageProcessor, HasFileStorage, def _process_re_ordered_in_new_view(self, msg: ReOrderedInNewView)...
[INDY-<I>] move primaries setting right after VC
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100755 --- a/setup.py +++ b/setup.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python # -*- coding: utf-8 -*- import sys
proper shebang for setup.py
py
diff --git a/tripleohelper/ovb_bmc.py b/tripleohelper/ovb_bmc.py index <HASH>..<HASH> 100644 --- a/tripleohelper/ovb_bmc.py +++ b/tripleohelper/ovb_bmc.py @@ -172,11 +172,12 @@ Restart=always WantedBy=multi-user.target """ unit = 'openstack-bmc-%d.service' % self._nic_cpt + protected_os_password = '"'...
OVB: protect the password for openstack-bmc unit Ensure the password get properly protectected before we use to generate the openstack-bmc unit file. Change-Id: Ie<I>a<I>e3c<I>bd2ddc<I>cf<I>bd<I>bf<I>e<I>ee
py
diff --git a/scrubadub/post_processors/__init__.py b/scrubadub/post_processors/__init__.py index <HASH>..<HASH> 100644 --- a/scrubadub/post_processors/__init__.py +++ b/scrubadub/post_processors/__init__.py @@ -18,6 +18,10 @@ PostProcessorConfigurationItem = TypedDict( {'post_processor': Type[PostProcessor], 'auto...
add a little note about why we dont use the new code yet by default
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100755 --- a/setup.py +++ b/setup.py @@ -57,6 +57,7 @@ def main(): 'indra.sources.biopax', 'indra.sources.cwms', 'indra.sources.eidos', 'indra.sources.geneways', 'indra.sources.index_cards', + ...
List DB REST API as a package in setup.py
py
diff --git a/globus_cli/commands/whoami.py b/globus_cli/commands/whoami.py index <HASH>..<HASH> 100644 --- a/globus_cli/commands/whoami.py +++ b/globus_cli/commands/whoami.py @@ -7,7 +7,7 @@ from globus_cli.helpers import is_verbose from globus_cli.config import ( WHOAMI_ID_OPTNAME, WHOAMI_USERNAME_OPTNAME, ...
Fixup flake8 on whoami command This was an uncommitted change; flake8 fails on an unused import.
py
diff --git a/indra/tools/reading/readers/trips/__init__.py b/indra/tools/reading/readers/trips/__init__.py index <HASH>..<HASH> 100644 --- a/indra/tools/reading/readers/trips/__init__.py +++ b/indra/tools/reading/readers/trips/__init__.py @@ -1,4 +1,5 @@ import os +import re import socket import random import loggi...
Use regex to clean up text even more.
py
diff --git a/tensorpack/train/multigpu.py b/tensorpack/train/multigpu.py index <HASH>..<HASH> 100644 --- a/tensorpack/train/multigpu.py +++ b/tensorpack/train/multigpu.py @@ -131,10 +131,13 @@ class LeastLoadedDeviceSetter(object): self.ps_sizes = [0] * len(self.ps_devices) def __call__(self, op): + ...
work around device name problem with colocation (#<I>)
py
diff --git a/site/src/sphinx/conf.py b/site/src/sphinx/conf.py index <HASH>..<HASH> 100644 --- a/site/src/sphinx/conf.py +++ b/site/src/sphinx/conf.py @@ -34,7 +34,7 @@ copyright = properties['inceptionYear'] + '-' + str(date.today().year) + ', LINE # Set the project version and release. # Use the last known stable r...
Update the project version to <I>-SNAPSHOT
py
diff --git a/www/tests/test_file.py b/www/tests/test_file.py index <HASH>..<HASH> 100644 --- a/www/tests/test_file.py +++ b/www/tests/test_file.py @@ -16,7 +16,7 @@ with open('compression/du cote de chez swann.txt', 'r') as f: counter = 0 for line in f: counter += 1 - assert counter == 2118 + a...
In test_file.py, change test on number of lines read on text mode. Related to issue #<I>.
py
diff --git a/binstar_client/commands/upload.py b/binstar_client/commands/upload.py index <HASH>..<HASH> 100644 --- a/binstar_client/commands/upload.py +++ b/binstar_client/commands/upload.py @@ -291,7 +291,7 @@ def main(args): uploaded_projects = [] # Flatten file list because of 'windows_glob' function - ...
AC-<I>: Enable glob pattern matching for upload command
py
diff --git a/examples/vision/cifar10/multi_device_classification.py b/examples/vision/cifar10/multi_device_classification.py index <HASH>..<HASH> 100644 --- a/examples/vision/cifar10/multi_device_classification.py +++ b/examples/vision/cifar10/multi_device_classification.py @@ -266,7 +266,7 @@ def train(): ...
Correct iXxx to Xxx.
py
diff --git a/tests/runtests.py b/tests/runtests.py index <HASH>..<HASH> 100755 --- a/tests/runtests.py +++ b/tests/runtests.py @@ -907,11 +907,11 @@ class SaltTestsuiteParser(SaltCoverageTestingParser): try: print_header( - ' * Setting up Salt daemons to execute tests', + ...
Clarify which set of daemons are starting
py
diff --git a/twitter_bot_utils/helpers.py b/twitter_bot_utils/helpers.py index <HASH>..<HASH> 100644 --- a/twitter_bot_utils/helpers.py +++ b/twitter_bot_utils/helpers.py @@ -13,9 +13,12 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/...
repair urllib import that 2to3 seems to struggle with
py
diff --git a/pnc_cli/projects.py b/pnc_cli/projects.py index <HASH>..<HASH> 100644 --- a/pnc_cli/projects.py +++ b/pnc_cli/projects.py @@ -1,3 +1,4 @@ +import logging from six import iteritems from argh import arg @@ -74,7 +75,7 @@ def create_project(**kwargs): return response.content -@arg("-id", "--i...
update projects for better help messages/ logging
py
diff --git a/pycbc/psd/read.py b/pycbc/psd/read.py index <HASH>..<HASH> 100644 --- a/pycbc/psd/read.py +++ b/pycbc/psd/read.py @@ -67,7 +67,11 @@ def from_txt(filename, length, delta_f, low_freq_cutoff, is_asd_file=True): if freq_data[0] > low_freq_cutoff: raise ValueError('Lowest frequency in input file ...
fix off by df issue with psd read
py
diff --git a/neo/Implementations/Notifications/LevelDB/NotificationDB.py b/neo/Implementations/Notifications/LevelDB/NotificationDB.py index <HASH>..<HASH> 100644 --- a/neo/Implementations/Notifications/LevelDB/NotificationDB.py +++ b/neo/Implementations/Notifications/LevelDB/NotificationDB.py @@ -117,8 +117,9 @@ class...
persist NotifyType.REFUND events in notification DB
py
diff --git a/slave/test/test_command.py b/slave/test/test_command.py index <HASH>..<HASH> 100644 --- a/slave/test/test_command.py +++ b/slave/test/test_command.py @@ -7,7 +7,7 @@ import re import collections import itertools -from slave.core import Command, InstrumentBase, _Message +from slave.core import Command, ...
added unittest for to_instance helper.
py
diff --git a/torrentool/utils.py b/torrentool/utils.py index <HASH>..<HASH> 100644 --- a/torrentool/utils.py +++ b/torrentool/utils.py @@ -5,6 +5,7 @@ from .exceptions import RemoteUploadError OPEN_TRACKERS_FILENAE = 'open_trackers.ini' +REMOTE_TIMEOUT = 4 def get_app_version(): @@ -48,7 +49,7 @@ def upload_t...
Request TIMEOUT constant decalred.
py
diff --git a/webview/qt.py b/webview/qt.py index <HASH>..<HASH> 100644 --- a/webview/qt.py +++ b/webview/qt.py @@ -214,7 +214,8 @@ class BrowserView(QMainWindow): else: file_names = tuple([self._convert_string(s) for s in self._file_name]) - if len(file_names) == 0: + # Che...
[Qt] Correct create_file_dialog returning None In Qt5, even if the user pressed cancel, file_names could be non empty. In such cases, the first element would be an empty string.
py
diff --git a/shinken/daemons/arbiterdaemon.py b/shinken/daemons/arbiterdaemon.py index <HASH>..<HASH> 100644 --- a/shinken/daemons/arbiterdaemon.py +++ b/shinken/daemons/arbiterdaemon.py @@ -418,6 +418,10 @@ class Arbiter(Daemon): ## And go for the main loop self.do_mainloop() + excep...
*handle a sys.exit() more cleanly (affects python <I>) when calling the arbiter with -v
py
diff --git a/payu/experiment.py b/payu/experiment.py index <HASH>..<HASH> 100644 --- a/payu/experiment.py +++ b/payu/experiment.py @@ -381,7 +381,7 @@ class Experiment(object): self.manifest.make_links() # Copy manifests to work directory so they archived on completion - self.manifest.copy_ma...
Save manifests to work subdirectory in output
py
diff --git a/python/ray/tests/test_queue.py b/python/ray/tests/test_queue.py index <HASH>..<HASH> 100644 --- a/python/ray/tests/test_queue.py +++ b/python/ray/tests/test_queue.py @@ -1,10 +1,9 @@ -import time - import pytest import ray from ray.exceptions import GetTimeoutError, RayActorError from ray.util.queue ...
Use wait_for_condition to reduce flakiness in test_queue.py::test_custom_resources (#<I>)
py
diff --git a/river/services/approvement.py b/river/services/approvement.py index <HASH>..<HASH> 100644 --- a/river/services/approvement.py +++ b/river/services/approvement.py @@ -1,5 +1,6 @@ from django.db.models import Min, Q +from river.models import FORWARD from river.models.approvement import Approvement, PENDI...
initial_approvements and final_approvements services are added in ApprovementService
py
diff --git a/visidata/movement.py b/visidata/movement.py index <HASH>..<HASH> 100644 --- a/visidata/movement.py +++ b/visidata/movement.py @@ -1,7 +1,7 @@ import itertools import re -from visidata import vd, VisiData, error, status, BaseSheet, Sheet, Column, fail, Progress, globalCommand, ALT +from visidata import ...
[search-] make moveRegex asynchronous
py
diff --git a/source/rafcon/statemachine/states/barrier_concurrency_state.py b/source/rafcon/statemachine/states/barrier_concurrency_state.py index <HASH>..<HASH> 100644 --- a/source/rafcon/statemachine/states/barrier_concurrency_state.py +++ b/source/rafcon/statemachine/states/barrier_concurrency_state.py @@ -212,14 +2...
Do not observe inherited methods Method that inherit observed methods from a base class should not be observable themself if they call the base class.
py
diff --git a/src/feat/web/http.py b/src/feat/web/http.py index <HASH>..<HASH> 100644 --- a/src/feat/web/http.py +++ b/src/feat/web/http.py @@ -861,6 +861,8 @@ def compose_headers(headers, buffer=None): for name, value in headers.iteritems(): capname = '-'.join([p.capitalize() for p in name.split('-')]) ...
Don't force developers to remember which http fields can take multiple values.
py
diff --git a/smartdc/datacenter.py b/smartdc/datacenter.py index <HASH>..<HASH> 100644 --- a/smartdc/datacenter.py +++ b/smartdc/datacenter.py @@ -22,10 +22,10 @@ KNOWN_LOCATIONS = { } TELEFONICA_LOCATIONS = { - u'London': u'https://eu-lon-1.api.instantservers.telefonica.com', - u'eu-lon-1': u'https://eu-lon...
canonical locations for Telefonica are known
py
diff --git a/qiskit/aqua/utils/backend_utils.py b/qiskit/aqua/utils/backend_utils.py index <HASH>..<HASH> 100644 --- a/qiskit/aqua/utils/backend_utils.py +++ b/qiskit/aqua/utils/backend_utils.py @@ -44,6 +44,7 @@ def has_ibmq(): if not _PROVIDER_CHECK.checked_ibmq: try: from qiskit.providers....
JSON schema type float doesn't exist. It should be number
py
diff --git a/src/psd_tools/psd/layer_and_mask.py b/src/psd_tools/psd/layer_and_mask.py index <HASH>..<HASH> 100644 --- a/src/psd_tools/psd/layer_and_mask.py +++ b/src/psd_tools/psd/layer_and_mask.py @@ -56,7 +56,10 @@ class LayerAndMaskInformation(BaseElement): self = cls() else: self...
emit warning only when LayerAndMaskInformation is broken
py
diff --git a/devassistant/gui/run_window.py b/devassistant/gui/run_window.py index <HASH>..<HASH> 100644 --- a/devassistant/gui/run_window.py +++ b/devassistant/gui/run_window.py @@ -93,6 +93,7 @@ class RunWindow(object): logger.setLevel(logging.DEBUG) self.store = Gtk.TreeStore(str) renderer...
Use LiberationMono font in Log window
py
diff --git a/hangups/conversation.py b/hangups/conversation.py index <HASH>..<HASH> 100644 --- a/hangups/conversation.py +++ b/hangups/conversation.py @@ -300,10 +300,7 @@ class Conversation(object): old_timestamp = self.latest_read_timestamp self._conversation = conversation if parsers.to_ti...
[conversation] drop the not necessary local `self_conversation_state`
py
diff --git a/test/TestImportWithMalformed.py b/test/TestImportWithMalformed.py index <HASH>..<HASH> 100644 --- a/test/TestImportWithMalformed.py +++ b/test/TestImportWithMalformed.py @@ -57,7 +57,12 @@ def play_files(tmp_path, request): pytest.param( [IMPORT_TASKS_MAIN, PLAY_IMPORT_TASKS], ...
Add an xfail reason to TestImportWithMalformed
py
diff --git a/tests/test_experiment_groups/test_iteration_managers.py b/tests/test_experiment_groups/test_iteration_managers.py index <HASH>..<HASH> 100644 --- a/tests/test_experiment_groups/test_iteration_managers.py +++ b/tests/test_experiment_groups/test_iteration_managers.py @@ -52,6 +52,7 @@ class TestHyperbandIter...
Fix tests and lint imports
py
diff --git a/code/photini/imagelist.py b/code/photini/imagelist.py index <HASH>..<HASH> 100644 --- a/code/photini/imagelist.py +++ b/code/photini/imagelist.py @@ -225,6 +225,19 @@ class Image(QtGui.QFrame): # store a scaled down version of image to save memory self.pixmap = self.pixmap...
Rotate thumbnail images if EXIF orientation is set.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -17,6 +17,11 @@ setup( version=get_version(name), packages=find_packages(), url='https://github.com/mrstephenneal/differentiate', + entry_points={ + 'console_scripts': [ + 'differ = differen...
Added entry points to setup.py
py
diff --git a/src/ocrmypdf/_pipeline.py b/src/ocrmypdf/_pipeline.py index <HASH>..<HASH> 100644 --- a/src/ocrmypdf/_pipeline.py +++ b/src/ocrmypdf/_pipeline.py @@ -830,7 +830,13 @@ def metadata_fixup( pdfmark = get_pdfmark(metadata, options) pdf = pikepdf.open(layers_file) pdf.metadata = pdf.m...
Fix compatibility with pikepdf <I> API change
py
diff --git a/errors.py b/errors.py index <HASH>..<HASH> 100644 --- a/errors.py +++ b/errors.py @@ -7,13 +7,15 @@ class TimeExceeded(PingError): class TimeToLiveExpired(TimeExceeded): - def __init__(self, message="Time exceeded: Time To Live expired"): + def __init__(self, message="Time exceeded: Time To Live...
Make HostUnknown can be generated with no args
py
diff --git a/py/selenium/webdriver/remote/errorhandler.py b/py/selenium/webdriver/remote/errorhandler.py index <HASH>..<HASH> 100644 --- a/py/selenium/webdriver/remote/errorhandler.py +++ b/py/selenium/webdriver/remote/errorhandler.py @@ -87,9 +87,22 @@ class ErrorHandler(object): :Raises: If the response co...
Allow error handling to handle both current errors and w3c errors
py
diff --git a/src/sos/sos_executor.py b/src/sos/sos_executor.py index <HASH>..<HASH> 100755 --- a/src/sos/sos_executor.py +++ b/src/sos/sos_executor.py @@ -1007,16 +1007,8 @@ class Base_Executor: env.logger.info(task[1]) # close all processes except Exception as e: - imp...
Revert the soft-kill code because it causes travisCI tests on python <I> (with coverage) to hang
py
diff --git a/netmiko/cisco/cisco_wlc_ssh.py b/netmiko/cisco/cisco_wlc_ssh.py index <HASH>..<HASH> 100644 --- a/netmiko/cisco/cisco_wlc_ssh.py +++ b/netmiko/cisco/cisco_wlc_ssh.py @@ -4,6 +4,7 @@ from __future__ import unicode_literals import time import re +from netmiko.ssh_exception import NetMikoAuthenticationExc...
Changing raise to use NetMikoAuthenticationException instead of valueError (#<I>) LGTM
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -114,12 +114,12 @@ class Clean(Command): print("removing {}".format(path)) -class Build(Command): - description = "Build Pyrogram files" +class Generate(Command): + description = "Generate Pyrogram f...
Rename "build" to "generate" It was interfering with the built-in command "install"
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -27,7 +27,7 @@ setup( '': ['README.rst'] }, install_requires=[ - 'fudge==1.0.3', + 'fudge>=1.0.3', 'requests>=0.14.0', 'simplejson>=2.0', ],
Allow never version of fudge (<I> and up)
py