diff
stringlengths
139
3.65k
message
stringlengths
8
627
diff_languages
stringclasses
1 value
diff --git a/yargy/tokenizer.py b/yargy/tokenizer.py index <HASH>..<HASH> 100644 --- a/yargy/tokenizer.py +++ b/yargy/tokenizer.py @@ -137,6 +137,9 @@ class Tokenizer(object): def add_rules(self, *rules): self.__init__(self.rules + rules) + def remove_rules(self, *rules): + self.__init__([_ fo...
Add remove_rules in Tokenizer
py
diff --git a/docs/conf.py b/docs/conf.py index <HASH>..<HASH> 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -194,4 +194,7 @@ intersphinx_mapping = {'https://docs.python.org/': None} # A possibility to have an own stylesheet, to add new rules or override existing ones # For the latter case, the CSS specificity of th...
Fix sphinx build. (#<I>) Sphinx' add_stylesheet() has been deprecated for a long time and got removed in recent versions of sphinx. If available, use add_css_file() instead. Close #<I>.
py
diff --git a/validator_collection/validators.py b/validator_collection/validators.py index <HASH>..<HASH> 100644 --- a/validator_collection/validators.py +++ b/validator_collection/validators.py @@ -1210,11 +1210,15 @@ def path(value, return None if hasattr(os, 'PathLike'): + print('HAS PATH LIKE...
Added some diagnostic prints to see what is going wrong on Python <I> and <I>.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -13,8 +13,8 @@ if sys.argv[-1] == "publish": os.system("python setup.py sdist upload") sys.exit() - -packages = find_packages() +package_exclude = ("tests*", "examples*") +packages = find_packages(exclude=package_e...
Updated package. Excluded future test and example folder
py
diff --git a/autolens/pipeline/phase/extensions/hyper_phase.py b/autolens/pipeline/phase/extensions/hyper_phase.py index <HASH>..<HASH> 100644 --- a/autolens/pipeline/phase/extensions/hyper_phase.py +++ b/autolens/pipeline/phase/extensions/hyper_phase.py @@ -46,7 +46,7 @@ class HyperPhase(object): phase.opti...
Reverted change to removal of phase tag in hyper phase.
py
diff --git a/mock/mock.py b/mock/mock.py index <HASH>..<HASH> 100644 --- a/mock/mock.py +++ b/mock/mock.py @@ -1064,7 +1064,7 @@ class NonCallableMock(Base): """ if not self.mock_calls: return "" - return f"\n{prefix}: {safe_repr(self.mock_calls)}." + return "\n"+prefix+": "...
rewrite f-string.
py
diff --git a/test/helpers.py b/test/helpers.py index <HASH>..<HASH> 100644 --- a/test/helpers.py +++ b/test/helpers.py @@ -128,9 +128,11 @@ def reset_editor(editor): editor.syntax_highlighter.color_scheme = ColorScheme('qt') editor.zoom_level = 0 editor.resize(800, 600) - if not editor.backend.running...
Add more assertion to debug the failing tests
py
diff --git a/ansible/modules/hashivault/hashivault_write.py b/ansible/modules/hashivault/hashivault_write.py index <HASH>..<HASH> 100755 --- a/ansible/modules/hashivault/hashivault_write.py +++ b/ansible/modules/hashivault/hashivault_write.py @@ -141,13 +141,15 @@ def hashivault_write(module): if secret.startswi...
allow writes to kv v1 or 2 and still strip prefixed '/'
py
diff --git a/highcharts/version.py b/highcharts/version.py index <HASH>..<HASH> 100644 --- a/highcharts/version.py +++ b/highcharts/version.py @@ -1,7 +1,7 @@ version_info = ( "0", "4", - "1" + "2" ) __version__ = '.'.join(map(str, version_info))
Bumped version (<I>)
py
diff --git a/tests/runPixiedustNotebooks.py b/tests/runPixiedustNotebooks.py index <HASH>..<HASH> 100644 --- a/tests/runPixiedustNotebooks.py +++ b/tests/runPixiedustNotebooks.py @@ -71,7 +71,7 @@ def createKernelSpecIfNeeded(kernelName, useSpark): "PYTHONPATH": "{0}/python/:{1}".format(sparkHome, ...
Update runPixiedustNotebooks.py
py
diff --git a/cheroot/test/test_server.py b/cheroot/test/test_server.py index <HASH>..<HASH> 100644 --- a/cheroot/test/test_server.py +++ b/cheroot/test/test_server.py @@ -17,7 +17,7 @@ import requests_unixsocket import six from .._compat import bton, ntob -from .._compat import IS_MACOS +from .._compat import IS_LI...
Only test abstract sockets under GNU/Linux
py
diff --git a/scriptcwl/workflow.py b/scriptcwl/workflow.py index <HASH>..<HASH> 100644 --- a/scriptcwl/workflow.py +++ b/scriptcwl/workflow.py @@ -486,7 +486,7 @@ class WorkflowGenerator(object): for k in step.get_input_names(): if k in kwargs.keys(): if isinstance(kwargs[k], Refe...
Add input reference as str, rather than as Reference This keeps ruamel from generating YAML references, which are confusing.
py
diff --git a/salt/modules/yumpkg.py b/salt/modules/yumpkg.py index <HASH>..<HASH> 100644 --- a/salt/modules/yumpkg.py +++ b/salt/modules/yumpkg.py @@ -454,10 +454,11 @@ def latest_version(*names, **kwargs): def _check_cur(pkg): if pkg.name in cur_pkgs: for installed_version in cur_pkgs[pkg.na...
yumpkg: fix latest_version() when showdupesfromrepos=1 set in /etc/yum.conf The existing logic assumes that showdupesfromrepos=0, in which a package will not be shown if it is not an upgrade. This expands the version check to include versions equal to the installed version, which will keep the _check_cur() helper from...
py
diff --git a/onecodex/version.py b/onecodex/version.py index <HASH>..<HASH> 100644 --- a/onecodex/version.py +++ b/onecodex/version.py @@ -1 +1 @@ -__version__ = '0.2.14' +__version__ = '0.3.0'
Bump for version <I>
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -16,7 +16,7 @@ setup( py_modules=['eth_bloom'], setup_requires=['setuptools-markdown'], install_requires=[ - "eth-hash>=0.1.0a3,<0.2.0", + "eth-hash>=0.1.0a3,<0.3.0", ], license="MIT", ...
Bump ceiling eth-hash version
py
diff --git a/symsynd/driver.py b/symsynd/driver.py index <HASH>..<HASH> 100644 --- a/symsynd/driver.py +++ b/symsynd/driver.py @@ -41,7 +41,7 @@ def find_llvm_symbolizer(): if p is not None: return p - for ver in xrange(4, 12): + for ver in xrange(12, 3, -1): p = which('llvm-symbolizer-3....
Reverse order of llvm-symbolizer lookup through versions
py
diff --git a/libtmux/pane.py b/libtmux/pane.py index <HASH>..<HASH> 100644 --- a/libtmux/pane.py +++ b/libtmux/pane.py @@ -30,8 +30,7 @@ class Pane(TmuxMappingObject, TmuxRelationalObject): def __init__(self, window=None, **kwargs): if not window: - raise ValueError('Pane must have \ - ...
fix new line in libtmux
py
diff --git a/charmhelpers/contrib/openstack/amulet/utils.py b/charmhelpers/contrib/openstack/amulet/utils.py index <HASH>..<HASH> 100644 --- a/charmhelpers/contrib/openstack/amulet/utils.py +++ b/charmhelpers/contrib/openstack/amulet/utils.py @@ -32,6 +32,7 @@ from keystoneclient.v3 import client as keystone_client_v3 ...
Nova client updates to handle Ocata client authentication
py
diff --git a/insights/parsers/uname.py b/insights/parsers/uname.py index <HASH>..<HASH> 100644 --- a/insights/parsers/uname.py +++ b/insights/parsers/uname.py @@ -99,7 +99,8 @@ rhel_release_map = { "3.10.0-862": "7.5", "3.10.0-957": "7.6", "3.10.0-1062": "7.7", - "4.18.0-80": "8.0" + "4.18.0-80": "...
Update uname with rhel <I> release version (#<I>)
py
diff --git a/salt/state.py b/salt/state.py index <HASH>..<HASH> 100644 --- a/salt/state.py +++ b/salt/state.py @@ -1585,10 +1585,10 @@ class State(object): inject_globals['__env__'] = 'base' if 'result' not in ret or ret['result'] is False: - with context.func_globals_inje...
Use new method for injecting globals into state functions
py
diff --git a/patoolib/programs/unace.py b/patoolib/programs/unace.py index <HASH>..<HASH> 100644 --- a/patoolib/programs/unace.py +++ b/patoolib/programs/unace.py @@ -20,7 +20,10 @@ def extract_ace (archive, compression, cmd, **kwargs): cmdlist = [cmd, 'x'] if not kwargs['verbose']: cmdlist.append('-...
Fix extracting of ACE (.ace) files.
py
diff --git a/spinach/brokers/redis.py b/spinach/brokers/redis.py index <HASH>..<HASH> 100644 --- a/spinach/brokers/redis.py +++ b/spinach/brokers/redis.py @@ -9,7 +9,10 @@ from typing import Optional, Iterable, List, Tuple, Dict, Union import uuid from redis import StrictRedis, ConnectionError, TimeoutError -from r...
Try harder to import redis-py Fixes Issue #<I>
py
diff --git a/libreantdb/api.py b/libreantdb/api.py index <HASH>..<HASH> 100644 --- a/libreantdb/api.py +++ b/libreantdb/api.py @@ -384,7 +384,7 @@ class DB(object): def delete_action_gen(): scanner = scan(self.es, index=self.index_name, - query...
libreantdb: simplify match all query
py
diff --git a/salt/modules/virtualenv_mod.py b/salt/modules/virtualenv_mod.py index <HASH>..<HASH> 100644 --- a/salt/modules/virtualenv_mod.py +++ b/salt/modules/virtualenv_mod.py @@ -134,12 +134,12 @@ def create(path, .. code-block:: bash salt '*' virtualenv.create /path/to/new/virtualenv - + ...
fix linting errors and mark code block as yaml remove extra whitespace causing issues mark code block as YAML
py
diff --git a/custodian/qchem/jobs.py b/custodian/qchem/jobs.py index <HASH>..<HASH> 100644 --- a/custodian/qchem/jobs.py +++ b/custodian/qchem/jobs.py @@ -283,6 +283,8 @@ class QchemJob(Job): if log_file_object: log_file_object.writelines([message]) bre...
force writing log message to the disk before the potential exception happen
py
diff --git a/shap/explainers/linear.py b/shap/explainers/linear.py index <HASH>..<HASH> 100644 --- a/shap/explainers/linear.py +++ b/shap/explainers/linear.py @@ -45,8 +45,13 @@ class LinearExplainer(Explainer): # sklearn style model elif hasattr(model, "coef_") and hasattr(model, "intercept_"): - ...
Fix #<I> Still need to support multi-class at some point.
py
diff --git a/tests.py b/tests.py index <HASH>..<HASH> 100644 --- a/tests.py +++ b/tests.py @@ -12,12 +12,14 @@ urls = [ ] ############# tests ############## def test_get(): + global urls to_fetch = (get(url) for url in urls) map(to_fetch) for fetched in to_fetch: ok_(fetched.ok, Tr...
made urls to be imported under global
py
diff --git a/anyvcs/hg.py b/anyvcs/hg.py index <HASH>..<HASH> 100644 --- a/anyvcs/hg.py +++ b/anyvcs/hg.py @@ -230,7 +230,10 @@ class HgRepo(VCSRepo): except KeyError: pass if lookup: - p = type(self).cleanPath(path + '/' + name) + ...
fix cache miss in HgRepo.ls(report=['commit']) for non-directories Close issue #<I>
py
diff --git a/src/SALib/analyze/delta.py b/src/SALib/analyze/delta.py index <HASH>..<HASH> 100644 --- a/src/SALib/analyze/delta.py +++ b/src/SALib/analyze/delta.py @@ -98,8 +98,14 @@ def calc_delta(Y, Ygrid, X, m): for j in range(len(m) - 1): ix = np.where((xr > m[j]) & (xr <= m[j + 1]))[0] nm =...
Modified singular matrix issue fix from antonia-had
py
diff --git a/django_conneg/support/middleware.py b/django_conneg/support/middleware.py index <HASH>..<HASH> 100644 --- a/django_conneg/support/middleware.py +++ b/django_conneg/support/middleware.py @@ -25,6 +25,10 @@ class BasicAuthMiddleware(object): if request.user.is_authenticated(): return ...
BasicAuthMiddleware is now no longer available for non-secure requests.
py
diff --git a/stanza/pipeline/sentiment_processor.py b/stanza/pipeline/sentiment_processor.py index <HASH>..<HASH> 100644 --- a/stanza/pipeline/sentiment_processor.py +++ b/stanza/pipeline/sentiment_processor.py @@ -26,7 +26,8 @@ class SentimentProcessor(UDProcessor): def _set_up_model(self, config, use_gpu): ...
I guess a missing pretrain for the sentiment models is possible? Anyway, this allows a more informative error, such as default.pt doesn't exist
py
diff --git a/condoor/version.py b/condoor/version.py index <HASH>..<HASH> 100644 --- a/condoor/version.py +++ b/condoor/version.py @@ -1,3 +1,3 @@ """Version information.""" -__version__ = '1.0.0a9' +__version__ = '1.0.0b1'
Bumped version number to <I>b1
py
diff --git a/charmhelpers/contrib/openstack/neutron.py b/charmhelpers/contrib/openstack/neutron.py index <HASH>..<HASH> 100644 --- a/charmhelpers/contrib/openstack/neutron.py +++ b/charmhelpers/contrib/openstack/neutron.py @@ -249,6 +249,8 @@ def neutron_plugins(): plugins['nsx']['server_packages'].remove('neu...
Added Nuage Neutron plugin information for mitaka release when neutron-plugin is vsp
py
diff --git a/grimoire_elk/elk/crates.py b/grimoire_elk/elk/crates.py index <HASH>..<HASH> 100644 --- a/grimoire_elk/elk/crates.py +++ b/grimoire_elk/elk/crates.py @@ -63,18 +63,6 @@ class CratesEnrich(Enrich): return identities - def get_project_repository(self, eitem): - return str(eitem['space'...
[enrich][crates] Remove project support from crates (not needed)
py
diff --git a/ib_insync/client.py b/ib_insync/client.py index <HASH>..<HASH> 100644 --- a/ib_insync/client.py +++ b/ib_insync/client.py @@ -268,7 +268,8 @@ class Client(EClient): if debug: self._logger.debug( - '<<< %s', ','.join(f.decode() for f in fields)) + ...
Fix debugging of non-UTF8 messages
py
diff --git a/indra/preassembler/grounding_mapper/mapper.py b/indra/preassembler/grounding_mapper/mapper.py index <HASH>..<HASH> 100644 --- a/indra/preassembler/grounding_mapper/mapper.py +++ b/indra/preassembler/grounding_mapper/mapper.py @@ -283,7 +283,7 @@ class GroundingMapper(object): hgnc_id = db_refs.get...
Only map human proteins to HGNC
py
diff --git a/watson_developer_cloud/__init__.py b/watson_developer_cloud/__init__.py index <HASH>..<HASH> 100755 --- a/watson_developer_cloud/__init__.py +++ b/watson_developer_cloud/__init__.py @@ -27,9 +27,9 @@ from .natural_language_classifier_v1 import NaturalLanguageClassifierV1 from .natural_language_understandi...
refactor(adapters): Move all adapters to the bottom of the init file
py
diff --git a/tools/config_updater.py b/tools/config_updater.py index <HASH>..<HASH> 100644 --- a/tools/config_updater.py +++ b/tools/config_updater.py @@ -382,11 +382,13 @@ The GRR Datastore is how all GRR service processes store and share data.\n 1. SQLite (Default) - This datastore is stored on the local file system...
Updated datastore prompt to include minimum MySQL version
py
diff --git a/pyphi/convert.py b/pyphi/convert.py index <HASH>..<HASH> 100644 --- a/pyphi/convert.py +++ b/pyphi/convert.py @@ -337,5 +337,7 @@ s2h = state2loli_index s2l = state2holi_index h2l_sbs = holi2loli_state_by_state l2h_sbs = loli2holi_state_by_state +to_n_d = to_n_dimensional +to_2_d = to_2_dimensional sbn...
Add short aliases for N-D and 2-D TPM conversions
py
diff --git a/push_notifications/apns.py b/push_notifications/apns.py index <HASH>..<HASH> 100644 --- a/push_notifications/apns.py +++ b/push_notifications/apns.py @@ -141,7 +141,7 @@ def _apns_check_errors(sock): def _apns_send( token, alert, badge=None, sound=None, category=None, content_available=False, action_l...
Support for mutable-content flag in APNS
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -12,7 +12,7 @@ long_description = ('Ariane Plugin PROCOS map your operating process interaction ' + IRC on freenode #ariane.echinopsii') setup(name='ariane_procos', - version='0.1.0-b08', + ...
[ACC-<I>] procos <I> delivery
py
diff --git a/deploy_stack.py b/deploy_stack.py index <HASH>..<HASH> 100755 --- a/deploy_stack.py +++ b/deploy_stack.py @@ -220,14 +220,17 @@ def bootstrap_from_env(juju_home, env): if e.errno != errno.EEXIST: raise os.symlink(new_jenv_path, jenv_path) - temp_environments = ...
Remove symlinks when bootstrap fails.
py
diff --git a/cpuinfo/cpuinfo.py b/cpuinfo/cpuinfo.py index <HASH>..<HASH> 100644 --- a/cpuinfo/cpuinfo.py +++ b/cpuinfo/cpuinfo.py @@ -1329,7 +1329,7 @@ def get_cpu_info(): # Try the Windows registry if not info: info = get_cpu_info_from_registry() - ''' + # Try /proc/cpuinfo if not info: info = get_cpu_i...
Turned off debug comments.
py
diff --git a/salt/modules/iptables.py b/salt/modules/iptables.py index <HASH>..<HASH> 100644 --- a/salt/modules/iptables.py +++ b/salt/modules/iptables.py @@ -522,7 +522,7 @@ def check(table='filter', chain=None, rule=None, family='ipv4'): return False else: cmd = '{0} -t {1} -C {2} {3}'.format(i...
Don't print to error log if iptables -C 'fails' 1
py
diff --git a/lib/auxly/__init__.py b/lib/auxly/__init__.py index <HASH>..<HASH> 100644 --- a/lib/auxly/__init__.py +++ b/lib/auxly/__init__.py @@ -86,10 +86,12 @@ def trycatch(*args, **kwargs): try: return func(*fargs, **fkrgs) except: + cresult = None ...
Updating trycatch to return the result of oncatch if an exception is thrown.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100755 --- a/setup.py +++ b/setup.py @@ -16,7 +16,7 @@ EZIP_HEADER="""#! /bin/sh PYTHONPATH=$0/%s exec python -m scapy.__init__ """ -def make_ezipfile(base_name, base_dir, verbose=0, dry_run=0): +def make_ezipfile(base_name, base_dir, verbose=0, dry_run=0, **kwa...
Fix ezip sdist format to work with latest distutils
py
diff --git a/testproj/tests.py b/testproj/tests.py index <HASH>..<HASH> 100644 --- a/testproj/tests.py +++ b/testproj/tests.py @@ -289,7 +289,7 @@ class PictureCaptionSerializerTestCase(TestCase): serializer = PictureCaptionSerializer(data=data) self.assertTrue(serializer.is_valid(), serializer.errors...
Fix failing Codacy/PR Quality Review
py
diff --git a/sigal/gallery.py b/sigal/gallery.py index <HASH>..<HASH> 100644 --- a/sigal/gallery.py +++ b/sigal/gallery.py @@ -446,13 +446,15 @@ class Album(UnicodeMixin): if zip_gallery and len(self) > 0: archive_path = join(self.dst_path, zip_gallery) archive = zipfile.ZipFile(archi...
Skip files that don't exist in the ZIP archiving (ref #<I>).
py
diff --git a/moto/elbv2/urls.py b/moto/elbv2/urls.py index <HASH>..<HASH> 100644 --- a/moto/elbv2/urls.py +++ b/moto/elbv2/urls.py @@ -1,5 +1,4 @@ from __future__ import unicode_literals -from .responses import ELBV2Response url_bases = []
this is handled in moto/elb/urls.py
py
diff --git a/salt/states/rabbitmq_user.py b/salt/states/rabbitmq_user.py index <HASH>..<HASH> 100644 --- a/salt/states/rabbitmq_user.py +++ b/salt/states/rabbitmq_user.py @@ -110,7 +110,7 @@ def absent(name, ret['comment'] = 'User {0} is not present'.format(name) else: if user_exists: - ...
Add user name to delete_user call in absent state
py
diff --git a/setuptools/command/build_ext.py b/setuptools/command/build_ext.py index <HASH>..<HASH> 100644 --- a/setuptools/command/build_ext.py +++ b/setuptools/command/build_ext.py @@ -198,8 +198,8 @@ class build_ext(_build_ext): def get_outputs(self): outputs = _build_ext.get_outputs(self) opt...
Extract filtering of extensions that need stubs.
py
diff --git a/pymod2pkg/__init__.py b/pymod2pkg/__init__.py index <HASH>..<HASH> 100644 --- a/pymod2pkg/__init__.py +++ b/pymod2pkg/__init__.py @@ -225,7 +225,8 @@ RDO_PKG_MAP = [ 'monasca-notification', 'monasca-persister', 'monasca-transform', 'murano', 'neutron', 'neutron-fwaas', 'neutro...
Add tripleo-common for RDO openstack- packages mapping for tripleo-common was missing re-wrap package list Change-Id: I<I>df8dbf<I>a<I>c<I>e1a8bcf<I>f<I>e8e
py
diff --git a/python/spark_sklearn/grid_search.py b/python/spark_sklearn/grid_search.py index <HASH>..<HASH> 100644 --- a/python/spark_sklearn/grid_search.py +++ b/python/spark_sklearn/grid_search.py @@ -369,6 +369,7 @@ class GridSearchCV(BaseSearchCV): best_index = np.flatnonzero(results["rank_test_score"] =...
Update grid_search.py (#<I>) Fix `best_params_` not being set after a call to `fit`. This resolves issue #<I>
py
diff --git a/noxfile.py b/noxfile.py index <HASH>..<HASH> 100644 --- a/noxfile.py +++ b/noxfile.py @@ -89,6 +89,9 @@ def regression_sphinx(session, sphinx): def _install(session, docutils=None, sphinx=None, dist='wheel', dependencies=[]): + # work around https://github.com/pypa/pip/issues/4183 + ...
Nox: work around a pip caching issue <URL>
py
diff --git a/Holodeck/Sensors.py b/Holodeck/Sensors.py index <HASH>..<HASH> 100644 --- a/Holodeck/Sensors.py +++ b/Holodeck/Sensors.py @@ -9,6 +9,7 @@ class Sensors: IMU_SENSOR = 6 JOINT_ROTATION_SENSOR = 7 RELATIVE_SKELETAL_POSITION_SENSOR = 8 + LOCATION_SENSOR = 9 # Sizes are the number of en...
Added LOCATION_SENSOR to Sensors.py
py
diff --git a/pysos/main.py b/pysos/main.py index <HASH>..<HASH> 100755 --- a/pysos/main.py +++ b/pysos/main.py @@ -163,7 +163,10 @@ def cmd_run(args, workflow_args): executor = Sequential_Executor(workflow, args=workflow_args, config_file=args.__config__) if run_all or args.__inspect__: e...
Fix issue <I> (-r ignores prepare step where a dag might be required for the execution.)
py
diff --git a/django_ssh/models.py b/django_ssh/models.py index <HASH>..<HASH> 100644 --- a/django_ssh/models.py +++ b/django_ssh/models.py @@ -65,7 +65,7 @@ class Key(models.Model): m = fingerprint_re.match(o) if m: self.fingerprint = m.group(1) - except...
Produce an error if 'ssh-keygen' isn't found
py
diff --git a/spyderlib/client.py b/spyderlib/client.py index <HASH>..<HASH> 100644 --- a/spyderlib/client.py +++ b/spyderlib/client.py @@ -14,6 +14,7 @@ The arg can be a Python script or files with these extensions: .spydata, .mat, import os.path as osp import socket +import time from spyderlib.cli_options impor...
Single instance mode: Make the clients wait for the server to be up before sending petitions - This covers the case of trying to open several scripts at the same time when there is no instance (and hence no server) available. In this case one instance would become the server and the others will have to wait until it's...
py
diff --git a/virtualchain/lib/blockchain/session.py b/virtualchain/lib/blockchain/session.py index <HASH>..<HASH> 100644 --- a/virtualchain/lib/blockchain/session.py +++ b/virtualchain/lib/blockchain/session.py @@ -27,7 +27,8 @@ import httplib import ssl import socket -from ..config import get_logger +from ..config...
add getter for a bitcoind client
py
diff --git a/cellpy/utils/fitting_cell_ocv.py b/cellpy/utils/fitting_cell_ocv.py index <HASH>..<HASH> 100644 --- a/cellpy/utils/fitting_cell_ocv.py +++ b/cellpy/utils/fitting_cell_ocv.py @@ -605,8 +605,8 @@ def user_plot_voltage(time, voltage, fit): print '--------------------------------------------------...
plotting one figure and not two per cycle
py
diff --git a/src/fileseq/filesequence.py b/src/fileseq/filesequence.py index <HASH>..<HASH> 100644 --- a/src/fileseq/filesequence.py +++ b/src/fileseq/filesequence.py @@ -702,6 +702,8 @@ class FileSequence(object): try: int(frame) except ValueError: + ...
Respect allow_subframes in yield_sequeneces_in_list even when 'using' provided * For completeness, as only findSequenceOnDisk provides 'using' argument, and will already have filtered any filenames this would affect
py
diff --git a/tests/trinity/json-fixtures-over-rpc/test_rpc_fixtures.py b/tests/trinity/json-fixtures-over-rpc/test_rpc_fixtures.py index <HASH>..<HASH> 100644 --- a/tests/trinity/json-fixtures-over-rpc/test_rpc_fixtures.py +++ b/tests/trinity/json-fixtures-over-rpc/test_rpc_fixtures.py @@ -15,6 +15,9 @@ from eth_utils ...
Cut rpc state test time in half
py
diff --git a/flatten_json.py b/flatten_json.py index <HASH>..<HASH> 100644 --- a/flatten_json.py +++ b/flatten_json.py @@ -202,7 +202,7 @@ def flatten_preserve_lists(nested_dict, separator="_" d[key] = object_[first_key] else: - for object_key in object_: +...
fixed sorting for dictionaries, so that simple types are processed before lists
py
diff --git a/indra/db/util.py b/indra/db/util.py index <HASH>..<HASH> 100644 --- a/indra/db/util.py +++ b/indra/db/util.py @@ -277,9 +277,9 @@ def get_statements(clauses, count=1000, do_stmt_count=True, db=None): stmts = [] q = db.filter_query('statements', *clauses) if do_stmt_count: - print("Cou...
Change prints to logger.info.
py
diff --git a/yt_array.py b/yt_array.py index <HASH>..<HASH> 100644 --- a/yt_array.py +++ b/yt_array.py @@ -1010,17 +1010,6 @@ class YTArray(np.ndarray): else: return ret - def __iter__(self): - nextret = None - for item in np.nditer(self.ndarray_view(), op_flags=["readwrite"]): ...
Remove __iter__ method for now since it breaks unpacking in some situations --HG-- branch : yt
py
diff --git a/salt/states/saltmod.py b/salt/states/saltmod.py index <HASH>..<HASH> 100644 --- a/salt/states/saltmod.py +++ b/salt/states/saltmod.py @@ -327,7 +327,7 @@ def function( The list of arguments to pass into the function kwarg - The list of keyword arguments to pass into the function + ...
#<I> - code takes a dict and the doc should match and perhaps also point that out
py
diff --git a/validator/sawtooth_validator/gossip/gossip.py b/validator/sawtooth_validator/gossip/gossip.py index <HASH>..<HASH> 100644 --- a/validator/sawtooth_validator/gossip/gossip.py +++ b/validator/sawtooth_validator/gossip/gossip.py @@ -274,11 +274,14 @@ class Gossip(object): self._topology.start() ...
Avoid unhandled exceptions during peer unregister shutdown Two unhandled errors are corrected - working on a copy of the peers list so it is not modified during iteration, and handling the condition of attempting to send to a connection which has already been closed.
py
diff --git a/python/setup.py b/python/setup.py index <HASH>..<HASH> 100644 --- a/python/setup.py +++ b/python/setup.py @@ -65,14 +65,14 @@ setup( packages=find_packages(), install_requires=[ - 'setuptools==38.5.1', - 'certifi==2018.1.18', - 'requests==2.18.4' + 'setuptools>=38.5....
relaxed aiohttp and setuptools versions in setup.py fix #<I>
py
diff --git a/bridgepoint/ooaofooa.py b/bridgepoint/ooaofooa.py index <HASH>..<HASH> 100644 --- a/bridgepoint/ooaofooa.py +++ b/bridgepoint/ooaofooa.py @@ -2588,7 +2588,7 @@ CREATE ROP REF_ID R3 FROM MC O_IOBJ ( SS_ID ) CREATE ROP REF_ID R27 FROM MC S_ENUM ( EDT_DT_ID ) TO 1 S_EDT...
ooaofooa: changed R<I> and R<I> to conditional
py
diff --git a/py/selenium/webdriver/remote/webdriver.py b/py/selenium/webdriver/remote/webdriver.py index <HASH>..<HASH> 100644 --- a/py/selenium/webdriver/remote/webdriver.py +++ b/py/selenium/webdriver/remote/webdriver.py @@ -113,7 +113,7 @@ class WebDriver(object): def __init__(self, command_executor='http://1...
[py] turn on keep-alive by default for remote connections (#<I>)
py
diff --git a/metal/cli.py b/metal/cli.py index <HASH>..<HASH> 100644 --- a/metal/cli.py +++ b/metal/cli.py @@ -252,7 +252,7 @@ def options(parser, help_menu=False): """ parser.add_argument("-p", "--profile", nargs='?', default="default", required=False, help="type (default: %(de...
metal/cli.py: debug fixes for correct call of rkhunter installer
py
diff --git a/gql/transport/websockets.py b/gql/transport/websockets.py index <HASH>..<HASH> 100644 --- a/gql/transport/websockets.py +++ b/gql/transport/websockets.py @@ -203,8 +203,8 @@ class WebsocketsTransport(AsyncTransport): self.close_exception: Optional[Exception] = None self.supported_subpro...
Invert the order of proposed subprotocols apollo and graphql-ws (#<I>) Should fix make all_tests with countries.trevorblades.com
py
diff --git a/src/_pytest/logging.py b/src/_pytest/logging.py index <HASH>..<HASH> 100644 --- a/src/_pytest/logging.py +++ b/src/_pytest/logging.py @@ -678,10 +678,6 @@ class LoggingPlugin: with catching_logs(self.log_file_handler, level=self.log_file_level): yield - # Close the Fi...
logging: move log_file_handler cleanup from sessionend to unconfigure It is set-up in configure, so match it.
py
diff --git a/btb/hyper_parameter.py b/btb/hyper_parameter.py index <HASH>..<HASH> 100644 --- a/btb/hyper_parameter.py +++ b/btb/hyper_parameter.py @@ -19,16 +19,18 @@ CAT_TYPES = [ParamTypes.INT_CAT, ParamTypes.STRING, ParamTypes.BOOL] # our HyperParameter object class HyperParameter(object): def __init__(self, ...
add None type override to hyperparameter parsing
py
diff --git a/salt/modules/smtp.py b/salt/modules/smtp.py index <HASH>..<HASH> 100644 --- a/salt/modules/smtp.py +++ b/salt/modules/smtp.py @@ -89,13 +89,16 @@ def send_msg( attachments=None, ): """ - Send a message to an SMTP recipient. Designed for use in states. + Send a message to an SMTP recipient....
Updated smtp documentation to include directions for sending to multiple recipients. Feature was introduced in <I>
py
diff --git a/plenum/common/batched.py b/plenum/common/batched.py index <HASH>..<HASH> 100644 --- a/plenum/common/batched.py +++ b/plenum/common/batched.py @@ -133,10 +133,8 @@ class Batched(MessageProcessor): serialized=True) for rid in removedRemotes: - logg...
INDY-<I>: Changed the log level for removed RIDs
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 @@ -1016,7 +1016,6 @@ class Base_Executor: except Exception as e: for p, _, _ in procs + pool: p.terminate() - p.jo...
Fix a sos hangling bug caused by an extra join() call
py
diff --git a/openquake/input/logictree.py b/openquake/input/logictree.py index <HASH>..<HASH> 100644 --- a/openquake/input/logictree.py +++ b/openquake/input/logictree.py @@ -883,8 +883,8 @@ class GMPELogicTree(BaseLogicTree): See superclass' method for description and signature specification. Check...
input/logictree: corrected a docstring about gmpe check Former-commit-id: <I>e<I>a0d6d<I>e<I>eb<I>ecfbf2
py
diff --git a/auto_ml/predictor.py b/auto_ml/predictor.py index <HASH>..<HASH> 100644 --- a/auto_ml/predictor.py +++ b/auto_ml/predictor.py @@ -28,6 +28,7 @@ class Predictor(object): if user_input_func is not None: pipeline_list.append(('user_func', FunctionTransformer(func=user_input_func, pass_y=...
figures out how to access properties of pipeline steps!!
py
diff --git a/msmbuilder/decomposition/tica.py b/msmbuilder/decomposition/tica.py index <HASH>..<HASH> 100644 --- a/msmbuilder/decomposition/tica.py +++ b/msmbuilder/decomposition/tica.py @@ -402,7 +402,7 @@ class tICA(BaseEstimator, TransformerMixin): X = np.asarray(array2d(X), dtype=np.float64) if ...
Correct tica warning (#<I>) Fix confusing error message. Currently it gives a message like: ``` The number of features (<I>) is greater than the length of the data (<I>)... ``` When the number of features is <I> and the length of the data is <I>.
py
diff --git a/rootpy/memory/getownership.py b/rootpy/memory/getownership.py index <HASH>..<HASH> 100644 --- a/rootpy/memory/getownership.py +++ b/rootpy/memory/getownership.py @@ -6,7 +6,6 @@ GetOwnership: The analagous function to SetOwnership. This function is intended for diagnostic purposes and is not guaranteed to...
pep8: getownership.py
py
diff --git a/topydo/cli/Main.py b/topydo/cli/Main.py index <HASH>..<HASH> 100755 --- a/topydo/cli/Main.py +++ b/topydo/cli/Main.py @@ -165,11 +165,6 @@ class CLIApplication(object): todofile = TodoFile.TodoFile(self.path) self.todolist = TodoList.TodoList(todofile.read()) - try: - ...
Another attempt to handle subcommands, arguments and defaults.
py
diff --git a/esipy/client.py b/esipy/client.py index <HASH>..<HASH> 100644 --- a/esipy/client.py +++ b/esipy/client.py @@ -12,7 +12,7 @@ from email.utils import parsedate from pyswagger.core import BaseClient from requests import Request from requests import Session -from requests.exceptions import ConnectionErro...
Use `Timeout` to catch both connect and read timeouts. Alias `ConnectionError` to avoid redefining builtins.
py
diff --git a/elasticapm/transport/http.py b/elasticapm/transport/http.py index <HASH>..<HASH> 100644 --- a/elasticapm/transport/http.py +++ b/elasticapm/transport/http.py @@ -106,7 +106,7 @@ class Transport(HTTPTransportBase): else: message = "HTTP %s: " % response.status ...
limit the transport exception message to <I> characters (#<I>) In cases where the response from APM Server is very large, the log is spammed with extremely long log messages.
py
diff --git a/ethereum/pow/chain.py b/ethereum/pow/chain.py index <HASH>..<HASH> 100644 --- a/ethereum/pow/chain.py +++ b/ethereum/pow/chain.py @@ -399,7 +399,7 @@ class Chain(object): self.db.put('head_hash', self.head_hash) self.db.put(block.hash, rlp.encode(block)) self.db.put(b'changed:' +...
Use bytes instead of str for py2/3 compatible code
py
diff --git a/pyqode/core/widgets/splittable_tab_widget.py b/pyqode/core/widgets/splittable_tab_widget.py index <HASH>..<HASH> 100644 --- a/pyqode/core/widgets/splittable_tab_widget.py +++ b/pyqode/core/widgets/splittable_tab_widget.py @@ -1255,13 +1255,20 @@ class SplittableCodeEditTabWidget(SplittableTabWidget): ...
Fix usage of case normalised path for the actual open call Close OpenCobolIDE/OpenCobolIDE#<I> Also close and delete the widget if we failed to open the file. Fix OpenCobolIDE/OpenCobolIDE#<I>
py
diff --git a/crust/query.py b/crust/query.py index <HASH>..<HASH> 100644 --- a/crust/query.py +++ b/crust/query.py @@ -368,6 +368,15 @@ class QuerySet(object): "Lookup parameters were %s" % (self.resource._meta.resource_name, num, kwargs)) + def create(self, **kwargs): + """ + ...
Add the create() method to QuerySets
py
diff --git a/tests/test_model.py b/tests/test_model.py index <HASH>..<HASH> 100644 --- a/tests/test_model.py +++ b/tests/test_model.py @@ -177,7 +177,13 @@ def test_tree(data_model): def test_types(data_model): llb = data_model.get_data_node("/test:llistB").type assert llb.contains("192.168.1.254") - #ass...
Add more trests for IPv4/6 addresses.
py
diff --git a/ceph_deploy/mds.py b/ceph_deploy/mds.py index <HASH>..<HASH> 100644 --- a/ceph_deploy/mds.py +++ b/ceph_deploy/mds.py @@ -26,7 +26,8 @@ def get_bootstrap_mds_key(cluster): raise RuntimeError('bootstrap-mds keyring not found; run \'gatherkeys\'') -def create_mds(conn, name, cluster, init): +def...
pass in the distro module to create_mds
py
diff --git a/psycopg2_pgevents/debug.py b/psycopg2_pgevents/debug.py index <HASH>..<HASH> 100644 --- a/psycopg2_pgevents/debug.py +++ b/psycopg2_pgevents/debug.py @@ -53,7 +53,7 @@ def _create_logger(name: str, level: int) -> Generator[logging.Logger, None, Non logger.setLevel(level) # Setup handler and add...
changes logging handler to stdout
py
diff --git a/openquake/commonlib/readinput.py b/openquake/commonlib/readinput.py index <HASH>..<HASH> 100644 --- a/openquake/commonlib/readinput.py +++ b/openquake/commonlib/readinput.py @@ -430,7 +430,7 @@ def get_site_collection(oqparam): grid_sites = site.SiteCollection.from_points( gri...
Managed the case of a large grid for the site model [skip hazardlib] Former-commit-id: 9f<I>f9cacc<I>daadf<I>c<I>b<I>d9
py
diff --git a/nion/swift/DisplayPanel.py b/nion/swift/DisplayPanel.py index <HASH>..<HASH> 100644 --- a/nion/swift/DisplayPanel.py +++ b/nion/swift/DisplayPanel.py @@ -1553,7 +1553,7 @@ class DisplayPanel(CanvasItem.CanvasItemComposition): all_graphics = self.__display.graphics graphics = [graphic for ...
Undo: make nudging graphics undo-mergeable.
py
diff --git a/gcl/ast.py b/gcl/ast.py index <HASH>..<HASH> 100644 --- a/gcl/ast.py +++ b/gcl/ast.py @@ -227,7 +227,7 @@ class TupleNode(framework.Thunk): def __init__(self, sloc, *members): duplicates = [name for name, ns in itertools.groupby(sorted(m.name for m in members)) if len(list(ns)) > 1] if duplica...
Show more accurate location of duplicate key error
py
diff --git a/holoviews/element/chart.py b/holoviews/element/chart.py index <HASH>..<HASH> 100644 --- a/holoviews/element/chart.py +++ b/holoviews/element/chart.py @@ -519,9 +519,6 @@ class Points(Chart): _min_dims = 2 # Minimum number of columns - def __len__(self): - return self...
Fix for Points dataframe len support
py
diff --git a/api/opentrons/hardware_control/controller.py b/api/opentrons/hardware_control/controller.py index <HASH>..<HASH> 100644 --- a/api/opentrons/hardware_control/controller.py +++ b/api/opentrons/hardware_control/controller.py @@ -83,8 +83,6 @@ class Controller: def get_attached_modules(self) -> List[Tuple...
fix(api): Remove unnecessary return in hardware controller (#<I>) This should not have been merged.
py
diff --git a/backtrader/broker.py b/backtrader/broker.py index <HASH>..<HASH> 100644 --- a/backtrader/broker.py +++ b/backtrader/broker.py @@ -109,6 +109,8 @@ class BrokerBack(six.with_metaclass(MetaParams, object)): order.accept() self.orders.append(order) self.pending.append(order) + ...
Add missing notification for order "accept" and notifications uses clones to notify unique statuses per event
py
diff --git a/salt/modules/yumpkg.py b/salt/modules/yumpkg.py index <HASH>..<HASH> 100644 --- a/salt/modules/yumpkg.py +++ b/salt/modules/yumpkg.py @@ -1,10 +1,17 @@ ''' Support for YUM + +Required python modules: yum, rpm, rpmUtils ''' -import yum -import rpm +try: + import yum + import rpm + from rpmUtils....
Gracefully catch ImportErrors on hosts lacking yum modules
py
diff --git a/nionswift_plugin/nion_instrumentation_ui/CameraControlPanel.py b/nionswift_plugin/nion_instrumentation_ui/CameraControlPanel.py index <HASH>..<HASH> 100644 --- a/nionswift_plugin/nion_instrumentation_ui/CameraControlPanel.py +++ b/nionswift_plugin/nion_instrumentation_ui/CameraControlPanel.py @@ -839,7 +83...
Fix bug in how custom camera panels are constructed.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -12,7 +12,7 @@ setup( include_package_data=True, install_requires=['django', 'zxcvbn-python'], license='MIT License', - description='A password validator for django, based on zxcvbn-python and available with ...
Doc - Better description for the package on pypi
py
diff --git a/figgypy/decrypt.py b/figgypy/decrypt.py index <HASH>..<HASH> 100644 --- a/figgypy/decrypt.py +++ b/figgypy/decrypt.py @@ -165,7 +165,7 @@ def kms_decrypt(cfg, aws_config=None): if 'AccessDeniedException' in err.args[0]: log.warning('Unable to decrypt %s. Key do...
Remove exception chaining to support Python 2
py