diff
stringlengths
139
3.65k
message
stringlengths
8
627
diff_languages
stringclasses
1 value
diff --git a/salt/daemons/masterapi.py b/salt/daemons/masterapi.py index <HASH>..<HASH> 100644 --- a/salt/daemons/masterapi.py +++ b/salt/daemons/masterapi.py @@ -270,12 +270,12 @@ def access_keys(opts): # Check other users matching ACL patterns if opts['client_acl_verify'] and HAS_PWD: - log.profile...
typo fix aka what is a 'masterarpi'
py
diff --git a/bcbio/structural/purecn.py b/bcbio/structural/purecn.py index <HASH>..<HASH> 100644 --- a/bcbio/structural/purecn.py +++ b/bcbio/structural/purecn.py @@ -23,7 +23,8 @@ def run(items): return items work_dir = _sv_workdir(paired.tumor_data) purecn_out = _run_purecn(paired, work_dir) - p...
PureCN: skip Dx for now pending additional testing
py
diff --git a/alertaclient/models/heartbeat.py b/alertaclient/models/heartbeat.py index <HASH>..<HASH> 100644 --- a/alertaclient/models/heartbeat.py +++ b/alertaclient/models/heartbeat.py @@ -31,7 +31,7 @@ class Heartbeat(object): def status(self): if self.latency > MAX_LATENCY: return 'slow' ...
Use total seconds to calculate expired heartbeats (#<I>)
py
diff --git a/openquake/engine/calculators/base.py b/openquake/engine/calculators/base.py index <HASH>..<HASH> 100644 --- a/openquake/engine/calculators/base.py +++ b/openquake/engine/calculators/base.py @@ -300,7 +300,7 @@ class Calculator(object): self.job.calculation.export_dir, ...
calcs/base: Fixed exported filename collection in the base `export` method.
py
diff --git a/bcbio/rnaseq/gtf.py b/bcbio/rnaseq/gtf.py index <HASH>..<HASH> 100644 --- a/bcbio/rnaseq/gtf.py +++ b/bcbio/rnaseq/gtf.py @@ -105,6 +105,7 @@ def gtf_to_fasta(gtf_file, ref_fasta, cds=False, out_file=None): to output only the CDS handles malformed FASTA files where a single transcript is repeated...
Strip transcript versions going from GTF -> fasta. We strip the versions from the GTF file later on in the process, so we should strip them, if they exist, when we make the FASTA file.
py
diff --git a/google-daemon/usr/share/google/google_daemon/desired_accounts.py b/google-daemon/usr/share/google/google_daemon/desired_accounts.py index <HASH>..<HASH> 100755 --- a/google-daemon/usr/share/google/google_daemon/desired_accounts.py +++ b/google-daemon/usr/share/google/google_daemon/desired_accounts.py @@ -1...
use json.loads instead of ast.literal_eval It is only a happy coincidence that the json currently returned by the metadata server is also valid python. This is not guaranteed to always be the case.
py
diff --git a/tensorflow_probability/python/distributions/bates.py b/tensorflow_probability/python/distributions/bates.py index <HASH>..<HASH> 100644 --- a/tensorflow_probability/python/distributions/bates.py +++ b/tensorflow_probability/python/distributions/bates.py @@ -238,7 +238,8 @@ class Bates(distribution.Distribu...
Force-broadcast mean of the Bates distribution with the `total_count` parameter. Pertinent because the mean of the Bates distribution doesn't depend on the total count. PiperOrigin-RevId: <I>
py
diff --git a/src/wa_kat/zeo/request_info.py b/src/wa_kat/zeo/request_info.py index <HASH>..<HASH> 100755 --- a/src/wa_kat/zeo/request_info.py +++ b/src/wa_kat/zeo/request_info.py @@ -97,7 +97,13 @@ class RequestInfo(Persistent): str: Content of the page. """ headers = {"User-Agent": USER_...
Fixed #<I> - problem with redirects to pages with broken SSL.
py
diff --git a/serveit/server.py b/serveit/server.py index <HASH>..<HASH> 100644 --- a/serveit/server.py +++ b/serveit/server.py @@ -17,7 +17,7 @@ class ModelServer(object): predict, input_validation=lambda data: (True, None), data_loader=json_numpy_loader, - postprocesso...
Use make_serializable utility function the default postprocessor Attempts to convert numpy arrays to list, plus recursively serializes sub-elements of the predictions
py
diff --git a/shinken/util.py b/shinken/util.py index <HASH>..<HASH> 100644 --- a/shinken/util.py +++ b/shinken/util.py @@ -50,7 +50,7 @@ def safe_print(*args): for e in args: # If we got an str, go in unicode, and if we cannot print # utf8, go in ascii mode - if isinstance(e, str): + ...
A better safe_print for you and for me ....
py
diff --git a/arctic/mixins.py b/arctic/mixins.py index <HASH>..<HASH> 100755 --- a/arctic/mixins.py +++ b/arctic/mixins.py @@ -97,9 +97,13 @@ class FormMixin(object): if not view_from_url(link[1]).has_permission(self.request.user): continue + try: + obj = self.g...
fixed an issue with form links in create views
py
diff --git a/ziggurat_foundations/models/external_identity.py b/ziggurat_foundations/models/external_identity.py index <HASH>..<HASH> 100644 --- a/ziggurat_foundations/models/external_identity.py +++ b/ziggurat_foundations/models/external_identity.py @@ -7,6 +7,8 @@ from .base import get_db_session class ExternalIde...
ExternalIdentityMixin missing mysql_engine ExternalIdentityMixin doesn't have __table_args__ declaring the mysql_engine like the other models do and as such SQLAlchemy create_all() fails with the error "Cannot add foreign key constraint". Adding the line in the overridden class for ziggurat_model_init fixed it for me.
py
diff --git a/wagtailmodeladmin/templatetags/wagtailmodeladmin_tags.py b/wagtailmodeladmin/templatetags/wagtailmodeladmin_tags.py index <HASH>..<HASH> 100644 --- a/wagtailmodeladmin/templatetags/wagtailmodeladmin_tags.py +++ b/wagtailmodeladmin/templatetags/wagtailmodeladmin_tags.py @@ -1,3 +1,4 @@ +from __future__ impo...
import unicode_literals in order to support unicode output in items_for_result. Fixes #<I>
py
diff --git a/inlineplz/env/jenkins.py b/inlineplz/env/jenkins.py index <HASH>..<HASH> 100644 --- a/inlineplz/env/jenkins.py +++ b/inlineplz/env/jenkins.py @@ -2,7 +2,10 @@ from __future__ import absolute_import import os -import urlparse +try: + import urllib.parse as urlparse +except ImportError: + import ur...
urlparse was renamed in 3.x
py
diff --git a/gwpy/io/nds/__init__.py b/gwpy/io/nds/__init__.py index <HASH>..<HASH> 100644 --- a/gwpy/io/nds/__init__.py +++ b/gwpy/io/nds/__init__.py @@ -19,21 +19,19 @@ to LIGO data. """ -import nds2 import os import sys from math import (floor, ceil) -from ... import (version, detector) -from ...detector im...
io.nds: removed unused imports
py
diff --git a/scout/adapter/mongo/query.py b/scout/adapter/mongo/query.py index <HASH>..<HASH> 100644 --- a/scout/adapter/mongo/query.py +++ b/scout/adapter/mongo/query.py @@ -268,7 +268,7 @@ class QueryHandler(object): # if chromosome coordinates exist in query, add them as first element of the mongo_query['...
Update scout/adapter/mongo/query.py
py
diff --git a/angr/analyses/cfg/cfg_fast.py b/angr/analyses/cfg/cfg_fast.py index <HASH>..<HASH> 100644 --- a/angr/analyses/cfg/cfg_fast.py +++ b/angr/analyses/cfg/cfg_fast.py @@ -2555,6 +2555,8 @@ class CFGFast(ForwardAnalysis, CFGBase): # pylint: disable=abstract-method ...
Fix CFGFast: NetworkXError: Node not in digraph (#<I>) (#<I>)
py
diff --git a/pykube/http.py b/pykube/http.py index <HASH>..<HASH> 100644 --- a/pykube/http.py +++ b/pykube/http.py @@ -5,7 +5,7 @@ HTTP request related code. import posixpath import re import sys - +import warnings import requests from six.moves.urllib.parse import urlparse @@ -40,7 +40,7 @@ class HTTPClient(obj...
Send a warning instead of raising an exception 8d<I>bb7 breaks some setups (e.g where session verify is overwritten by purpose). This change sends a warning but does not raise.
py
diff --git a/concurrency/tests/contrib_admin.py b/concurrency/tests/contrib_admin.py index <HASH>..<HASH> 100644 --- a/concurrency/tests/contrib_admin.py +++ b/concurrency/tests/contrib_admin.py @@ -52,8 +52,7 @@ class TestDjangoAdmin(TestCase): url = reverse('admin:concurrency_testmodel0_change', args=[self.t...
assertIn instead of assertTrue( .. in
py
diff --git a/phoebe/frontend/common.py b/phoebe/frontend/common.py index <HASH>..<HASH> 100644 --- a/phoebe/frontend/common.py +++ b/phoebe/frontend/common.py @@ -916,6 +916,21 @@ class Container(object): subpath = list(path[:-1]) + [syn['ref']] subpath[...
if obs was given in phase, then syn in the bundle will also contain phase (but not time, otherwise it is difficult to keep them in sync). No changes in the backend behaviour, so also none of the plotting stuff is influenced
py
diff --git a/src/livefield/fields.py b/src/livefield/fields.py index <HASH>..<HASH> 100644 --- a/src/livefield/fields.py +++ b/src/livefield/fields.py @@ -22,7 +22,9 @@ class LiveField(models.NullBooleanField): return super(LiveField, self).get_prep_value(True) return None - def from_db_value...
context param is deprecated in Django 2.x will be removed in Django 3.x
py
diff --git a/graphene_django_optimizer/query.py b/graphene_django_optimizer/query.py index <HASH>..<HASH> 100644 --- a/graphene_django_optimizer/query.py +++ b/graphene_django_optimizer/query.py @@ -270,7 +270,7 @@ class QueryOptimizer(object): return 'id' elif isinstance(resolver, functools.parti...
removed redundant type check when getting name from resolvers
py
diff --git a/sirmordred/_version.py b/sirmordred/_version.py index <HASH>..<HASH> 100644 --- a/sirmordred/_version.py +++ b/sirmordred/_version.py @@ -1,2 +1,2 @@ # Versions compliant with PEP 440 https://www.python.org/dev/peps/pep-0440 -__version__ = "0.2.8" +__version__ = "0.2.9"
[release] Update version number to <I>
py
diff --git a/properties/array.py b/properties/array.py index <HASH>..<HASH> 100644 --- a/properties/array.py +++ b/properties/array.py @@ -55,7 +55,7 @@ class Array(Property): raise Exception('Must be a float or an int: {}'.format(data.dtype)) data_file = tempfile.NamedTemporaryFile('rb+', suffi...
use tofile instead of tobytes for <I> compatibility
py
diff --git a/src/ibmiotf/__init__.py b/src/ibmiotf/__init__.py index <HASH>..<HASH> 100644 --- a/src/ibmiotf/__init__.py +++ b/src/ibmiotf/__init__.py @@ -141,7 +141,6 @@ class AbstractClient(object): # Attach MQTT callbacks self.client.on_log = self._onLog - self.client.on_connect = self.on_...
Abstract client shouldn't register on_connect as it doesn't even have one!
py
diff --git a/pull_into_place/big_jobs.py b/pull_into_place/big_jobs.py index <HASH>..<HASH> 100644 --- a/pull_into_place/big_jobs.py +++ b/pull_into_place/big_jobs.py @@ -130,9 +130,9 @@ def run_external_metrics(workspace, job_info): stdout, stderr = tee([metric, pdb_path]) file = gzip.open(pdb_path, ...
Tweak how extra metrics are found. Instead of considering every line of stdout an extra metric, only consider those lines that start with "EXTRA_METRIC ". This way you don't need to carefully redirect everything to stderr or something.
py
diff --git a/cmsplugin_cascade/fields.py b/cmsplugin_cascade/fields.py index <HASH>..<HASH> 100644 --- a/cmsplugin_cascade/fields.py +++ b/cmsplugin_cascade/fields.py @@ -9,19 +9,16 @@ class PartialFormField(object): Behave similar to django.forms.Field, encapsulating a partial dictionary, stored as JSONField...
Simplified PartialFormField
py
diff --git a/bin/env_links.py b/bin/env_links.py index <HASH>..<HASH> 100755 --- a/bin/env_links.py +++ b/bin/env_links.py @@ -138,7 +138,11 @@ directory, visit <a href="/datamodel/files/">the datamodel.</a></p> if debug: print("Found {0}.".format(env['general']['SAS_ROOT'])) ...
test for writeable env directory
py
diff --git a/OpenSSL/crypto.py b/OpenSSL/crypto.py index <HASH>..<HASH> 100644 --- a/OpenSSL/crypto.py +++ b/OpenSSL/crypto.py @@ -2257,3 +2257,5 @@ except ImportError: else: _initialize_openssl_threads(get_ident, Lock) del get_ident, Lock + +_lib.OpenSSL_add_all_algorithms()
Try "adding" the algorithms or whatever.
py
diff --git a/pygtkhelpers/objectlist.py b/pygtkhelpers/objectlist.py index <HASH>..<HASH> 100644 --- a/pygtkhelpers/objectlist.py +++ b/pygtkhelpers/objectlist.py @@ -1,4 +1,6 @@ import gtk +from pygtkhelpers.utils import gsignal + @@ -31,6 +33,8 @@ class Column(object): class ObjectList(gtk.TreeView): + ...
update method and item-activated signal for objectlist
py
diff --git a/seleniumbase/config/settings.py b/seleniumbase/config/settings.py index <HASH>..<HASH> 100755 --- a/seleniumbase/config/settings.py +++ b/seleniumbase/config/settings.py @@ -10,6 +10,7 @@ NOSETESTS USERS: IF YOU MAKE CHANGES TO THIS FILE, YOU NEED TO RERUN # Default seconds to wait for page elements to ...
Add MINI_TIMEOUT (2 seconds) to settings.py
py
diff --git a/dosagelib/rss.py b/dosagelib/rss.py index <HASH>..<HASH> 100644 --- a/dosagelib/rss.py +++ b/dosagelib/rss.py @@ -50,7 +50,7 @@ class Feed(object): def write(self, path): """Write RSS content to file.""" - with open(path, 'w') as f: + with open(path, 'wb') as f: f...
Write encoded data in binary format.
py
diff --git a/fedmsg_atomic_composer/config.py b/fedmsg_atomic_composer/config.py index <HASH>..<HASH> 100644 --- a/fedmsg_atomic_composer/config.py +++ b/fedmsg_atomic_composer/config.py @@ -1,4 +1,5 @@ -# Check if we're running on RHEL6 +# Check if we're running on RHEL6 and disable +# `mock --new-chroot` and `rpm-ost...
Update the comment in our config.py
py
diff --git a/openquake/calculators/classical.py b/openquake/calculators/classical.py index <HASH>..<HASH> 100644 --- a/openquake/calculators/classical.py +++ b/openquake/calculators/classical.py @@ -80,7 +80,7 @@ def classical_split_filter(srcs, srcfilter, gsims, params, monitor): """ # NB: splitting all the ...
Better monitoring [skip CI]
py
diff --git a/examples/training/train_ner.py b/examples/training/train_ner.py index <HASH>..<HASH> 100644 --- a/examples/training/train_ner.py +++ b/examples/training/train_ner.py @@ -56,7 +56,10 @@ def main(model=None, output_dir=None, n_iter=100): # get names of other pipes to disable them during training ot...
Don't call begin_training if updating new model (see #<I>) [ci skip]
py
diff --git a/socketio/server.py b/socketio/server.py index <HASH>..<HASH> 100644 --- a/socketio/server.py +++ b/socketio/server.py @@ -55,7 +55,8 @@ class SocketIOServer(WSGIServer): def start_accepting(self): if self.policy_server is not None: try: - self.policy_server.start()...
Start the policy_server only once.
py
diff --git a/dedupe/api.py b/dedupe/api.py index <HASH>..<HASH> 100644 --- a/dedupe/api.py +++ b/dedupe/api.py @@ -546,22 +546,3 @@ def disjunctivePredicates(predicate_set): return predicate_set -class SourceComparator(object): - def __init__(self, source_names) : - assert len(source_names) == 2 - - ...
remove source compartor from api
py
diff --git a/swagger_parser/swagger_parser.py b/swagger_parser/swagger_parser.py index <HASH>..<HASH> 100755 --- a/swagger_parser/swagger_parser.py +++ b/swagger_parser/swagger_parser.py @@ -397,7 +397,7 @@ class SwaggerParser(object): # URL paths and actions should encode to UTF-8 safely. ...
Move encode to the right place; substituting with % in a byte string makes little sense.
py
diff --git a/dedupe/clustering.py b/dedupe/clustering.py index <HASH>..<HASH> 100644 --- a/dedupe/clustering.py +++ b/dedupe/clustering.py @@ -201,7 +201,7 @@ def cluster(dupes: numpy.ndarray, threshold Keyword arguments: - threshold -- number betweent 0 and 1 (default is .5). lowering the + threshold...
Fix "between" typo Removes typo in docstring
py
diff --git a/dpark/broadcast.py b/dpark/broadcast.py index <HASH>..<HASH> 100644 --- a/dpark/broadcast.py +++ b/dpark/broadcast.py @@ -641,3 +641,21 @@ class Broadcast(object): raise RuntimeError("fetch broadcast failed") self.value = value return value + + def __len__(self): + ...
add special methods of container type for Broadcast object
py
diff --git a/area4/__init__.py b/area4/__init__.py index <HASH>..<HASH> 100644 --- a/area4/__init__.py +++ b/area4/__init__.py @@ -19,6 +19,7 @@ divider9 = str("************************") divider10 = str(",,,,,,,,,,,,,,,,,,,,,,,,") divider11 = str("////////////////////////") divider12 = str("||||||||||||||||||||||||...
cthulhu divider added
py
diff --git a/acestream/engine.py b/acestream/engine.py index <HASH>..<HASH> 100644 --- a/acestream/engine.py +++ b/acestream/engine.py @@ -16,9 +16,9 @@ class Engine(Observable): self.bin = bin self.options = options - def start(self, **kwargs): + def start(self, daemon=True, **kwargs): if not se...
engine: daemonize thread (with argument)
py
diff --git a/tools/c7n_azure/c7n_azure/policy.py b/tools/c7n_azure/c7n_azure/policy.py index <HASH>..<HASH> 100644 --- a/tools/c7n_azure/c7n_azure/policy.py +++ b/tools/c7n_azure/c7n_azure/policy.py @@ -173,6 +173,10 @@ class AzureFunctionMode(ServerlessExecutionMode): raise NotImplementedError("subclass respo...
azure - early failfast in serverless mode with unsupported auth methods(#<I>) * Validate SP is auth method * lint
py
diff --git a/esteid/middleware.py b/esteid/middleware.py index <HASH>..<HASH> 100644 --- a/esteid/middleware.py +++ b/esteid/middleware.py @@ -6,7 +6,14 @@ from . import config from .ocsp import OCSPVerifier -class MultiHostMiddleware(object): +try: + from django.utils.deprecation import MiddlewareMixin +except...
Update Middlewares to be compatible with Django <I>
py
diff --git a/stagpy/rprof.py b/stagpy/rprof.py index <HASH>..<HASH> 100644 --- a/stagpy/rprof.py +++ b/stagpy/rprof.py @@ -282,7 +282,15 @@ def plotaveragedprofiles(sdat, quant, vartuple, rbounds, args): fig, axis = plt.subplots() # assume constant z spacing for the moment - rprof_averaged = np.mean(sdat...
Averaged profiles take -s and -t into account
py
diff --git a/test/test_aligners.py b/test/test_aligners.py index <HASH>..<HASH> 100644 --- a/test/test_aligners.py +++ b/test/test_aligners.py @@ -1,6 +1,6 @@ from unittest import TestCase -from random import choice, choices, sample +from random import choice, choices from dark.aligners import edlibAlign, removeU...
Made an edlibAlign test much less likely to fail.
py
diff --git a/abilian/services/security/models.py b/abilian/services/security/models.py index <HASH>..<HASH> 100644 --- a/abilian/services/security/models.py +++ b/abilian/services/security/models.py @@ -5,7 +5,7 @@ from sqlalchemy.schema import ( Column, ForeignKey, Index, UniqueConstraint, CheckConstraint ) fro...
* abilian/services/security/models.py: RoleType is implemented as String(length=<I>)
py
diff --git a/lib/svtplay_dl/service/atg.py b/lib/svtplay_dl/service/atg.py index <HASH>..<HASH> 100644 --- a/lib/svtplay_dl/service/atg.py +++ b/lib/svtplay_dl/service/atg.py @@ -3,14 +3,13 @@ from __future__ import absolute_import import json import os -import re -import unicodedata from datetime import datetime ...
Change title formating from custom to 'utils.filenamify'
py
diff --git a/tests/unit/algorithms/MixedPercolationTest.py b/tests/unit/algorithms/MixedPercolationTest.py index <HASH>..<HASH> 100644 --- a/tests/unit/algorithms/MixedPercolationTest.py +++ b/tests/unit/algorithms/MixedPercolationTest.py @@ -332,8 +332,8 @@ class MixedPercolationTest: np.random.seed(1) ...
changed the labels [ci skip]
py
diff --git a/pandas/tests/util/test_assert_produces_warning.py b/pandas/tests/util/test_assert_produces_warning.py index <HASH>..<HASH> 100644 --- a/pandas/tests/util/test_assert_produces_warning.py +++ b/pandas/tests/util/test_assert_produces_warning.py @@ -12,8 +12,9 @@ def f(): @pytest.mark.filterwarnings('ignore...
TST: Remove bare pytest.raises in some test files (#<I>)
py
diff --git a/piazza_api.py b/piazza_api.py index <HASH>..<HASH> 100755 --- a/piazza_api.py +++ b/piazza_api.py @@ -10,6 +10,9 @@ class AuthenticationError(Exception): class NotAuthenticatedError(Exception): """NotAuthenticatedError""" +class RequestError(Exception): + """RequestError""" + class Pia...
Add RequestError Exception to be more descriptive
py
diff --git a/redis/client.py b/redis/client.py index <HASH>..<HASH> 100644 --- a/redis/client.py +++ b/redis/client.py @@ -212,6 +212,8 @@ class Redis(threading.local): ), string_keys_to_dict('ZRANGE ZRANGEBYSCORE ZREVRANGE', zset_score_pairs), { + 'BGREWRITEAOF': lambda r: \ +...
added support for BGREWRITEAOF
py
diff --git a/imagen/ndmapping.py b/imagen/ndmapping.py index <HASH>..<HASH> 100644 --- a/imagen/ndmapping.py +++ b/imagen/ndmapping.py @@ -93,7 +93,7 @@ class NdIndexableMapping(param.Parameterized): metadata = AttrDict(self.metadata, **dict([(k, v) for k, v in items ...
Fixed problem with metadata in NdMapping
py
diff --git a/fireplace/card.py b/fireplace/card.py index <HASH>..<HASH> 100644 --- a/fireplace/card.py +++ b/fireplace/card.py @@ -443,9 +443,7 @@ class Character(LiveEntity): @property def max_attacks(self): - if self.windfury: - return 2 - return 1 + return self.windfury + 1 @property def exhausted(s...
Interpret Character.windfury as the amount of extra attacks
py
diff --git a/django_extensions/management/commands/passwd.py b/django_extensions/management/commands/passwd.py index <HASH>..<HASH> 100644 --- a/django_extensions/management/commands/passwd.py +++ b/django_extensions/management/commands/passwd.py @@ -35,4 +35,4 @@ class Command(BaseCommand): u.set_password(p1)...
Fix TypeError: expected a character buffer object on passwd use.
py
diff --git a/skyfield/searchlib.py b/skyfield/searchlib.py index <HASH>..<HASH> 100644 --- a/skyfield/searchlib.py +++ b/skyfield/searchlib.py @@ -113,17 +113,17 @@ def _find_maxima(start_time, end_time, f, epsilon, num): # here. Naming a rising edge with "1", a plateau with "2", and # a falling edge...
Simplify maxima peak detection This happily cuts roughly in half the number of intermediate NumPy arrays.
py
diff --git a/federation/entities/matrix/entities.py b/federation/entities/matrix/entities.py index <HASH>..<HASH> 100644 --- a/federation/entities/matrix/entities.py +++ b/federation/entities/matrix/entities.py @@ -70,7 +70,7 @@ class MatrixProfile(Profile, MatrixEntityMixin): }, }) ...
Include userid in the endpoint when setting displayname
py
diff --git a/holoviews/plotting/bokeh/element.py b/holoviews/plotting/bokeh/element.py index <HASH>..<HASH> 100644 --- a/holoviews/plotting/bokeh/element.py +++ b/holoviews/plotting/bokeh/element.py @@ -181,10 +181,6 @@ class ElementPlot(BokehPlot, GenericElementPlot): # Get the bottom layer and range element ...
Small fix to clean up bokeh range initialization
py
diff --git a/stat_parser/treebanks/normalize.py b/stat_parser/treebanks/normalize.py index <HASH>..<HASH> 100644 --- a/stat_parser/treebanks/normalize.py +++ b/stat_parser/treebanks/normalize.py @@ -53,11 +53,17 @@ def un_chomsky_normal_form(tree): tree[1] = [sym[i+1:], tree[1]] un_chomsky_nor...
recursively check newly generated n-ary rules
py
diff --git a/easymode/i18n/admin/decorators.py b/easymode/i18n/admin/decorators.py index <HASH>..<HASH> 100644 --- a/easymode/i18n/admin/decorators.py +++ b/easymode/i18n/admin/decorators.py @@ -128,6 +128,8 @@ class L10n(object): def get_readonly_fields(self, request, obj=None): if not request.us...
Hide primary key from readonly_fields
py
diff --git a/oauth/salesforce.py b/oauth/salesforce.py index <HASH>..<HASH> 100644 --- a/oauth/salesforce.py +++ b/oauth/salesforce.py @@ -70,10 +70,18 @@ class OAuthCallbackHandler(BaseHTTPRequestHandler): def do_GET(self): args = parse_qs(urlparse(self.path).query, keep_blank_values=True) - sel...
added httpd response for bad callback requests
py
diff --git a/rinoh/text.py b/rinoh/text.py index <HASH>..<HASH> 100644 --- a/rinoh/text.py +++ b/rinoh/text.py @@ -117,7 +117,7 @@ class StyledText(Styled, AttributeType): @classmethod def check_type(cls, value): - return super().check_type(value) or isinstance(value, str) + return super().che...
StyledText: also accept None values
py
diff --git a/pp/satellites/__init__.py b/pp/satellites/__init__.py index <HASH>..<HASH> 100644 --- a/pp/satellites/__init__.py +++ b/pp/satellites/__init__.py @@ -24,7 +24,8 @@ # You should have received a copy of the GNU General Public License along with # mpop. If not, see <http://www.gnu.org/licenses/>. -"""Loa...
Documentation: better pp.satellites docstring.
py
diff --git a/iarm/arm_instructions/_meta.py b/iarm/arm_instructions/_meta.py index <HASH>..<HASH> 100644 --- a/iarm/arm_instructions/_meta.py +++ b/iarm/arm_instructions/_meta.py @@ -27,7 +27,7 @@ class _Meta(iarm.cpu.RegisterCpu): :param code: The code to parse :return: A list of tuples in the form o...
Fixed problem with parsing multiline programs The /s* was grabbing all the newlines, they can only exist at the end now.
py
diff --git a/librosa/core/time_frequency.py b/librosa/core/time_frequency.py index <HASH>..<HASH> 100644 --- a/librosa/core/time_frequency.py +++ b/librosa/core/time_frequency.py @@ -365,13 +365,13 @@ def note_to_midi(note, round_midi=True): try: match = re.match(r'^(?P<n>[A-Ga-g])' - ...
support multiple sharps and flats in note names
py
diff --git a/bonfire/cli.py b/bonfire/cli.py index <HASH>..<HASH> 100644 --- a/bonfire/cli.py +++ b/bonfire/cli.py @@ -128,6 +128,9 @@ def run(host, if cfg.has_option(section_name, "fields"): field = get_templated_option(cfg, section_name, "fields", template_options).split(",") + if cfg.h...
Add stream as option to the query setting
py
diff --git a/GPy/kern/_src/kern.py b/GPy/kern/_src/kern.py index <HASH>..<HASH> 100644 --- a/GPy/kern/_src/kern.py +++ b/GPy/kern/_src/kern.py @@ -221,7 +221,7 @@ class CombinationKernel(Kern): def get_input_dim_active_dims(self, kernels, extra_dims = None): active_dims = reduce(np.union1d, (np.r_[x.activ...
slight adjustment to self.active_dims being a 0:n:1 slice
py
diff --git a/MRS/tests/test_qc.py b/MRS/tests/test_qc.py index <HASH>..<HASH> 100644 --- a/MRS/tests/test_qc.py +++ b/MRS/tests/test_qc.py @@ -1,16 +1,19 @@ import os import MRS import MRS.qc as qc +from nibabel.tmpdirs import InTemporaryDirectory test_path = os.path.join(MRS.__path__[0], 'tests') ref_file = os....
RF: This runs the test in a temp dir, making sure it doesn't leave traces.
py
diff --git a/wafer/pages/management/commands/load_pages.py b/wafer/pages/management/commands/load_pages.py index <HASH>..<HASH> 100644 --- a/wafer/pages/management/commands/load_pages.py +++ b/wafer/pages/management/commands/load_pages.py @@ -47,7 +47,7 @@ class Command(BaseCommand): if line == '---\n'...
load_pages: drop deprecated used of yaml.load() Since yaml.safe_load is just fine in that context.
py
diff --git a/masonite/commands/_devserver.py b/masonite/commands/_devserver.py index <HASH>..<HASH> 100644 --- a/masonite/commands/_devserver.py +++ b/masonite/commands/_devserver.py @@ -121,15 +121,16 @@ def _import_application(module_name, app_name): return getattr(module, app_name) -def run(addr, port, wsgi...
renamed addr to host and added print statement
py
diff --git a/openpnm/algorithms/GenericTransport.py b/openpnm/algorithms/GenericTransport.py index <HASH>..<HASH> 100644 --- a/openpnm/algorithms/GenericTransport.py +++ b/openpnm/algorithms/GenericTransport.py @@ -485,12 +485,12 @@ class GenericTransport(GenericAlgorithm): # SciPy if self.settings[...
spsolve doesn't like indices to be np.int<I>, now only used for iterative
py
diff --git a/lib/lago/templates.py b/lib/lago/templates.py index <HASH>..<HASH> 100644 --- a/lib/lago/templates.py +++ b/lib/lago/templates.py @@ -163,13 +163,18 @@ class HttpTemplateProvider: meta = response.info() file_size_kb = int(meta.getheaders("Content-Length")[0]) / 1024 if file_size_...
Download progress Now really fix yapf issues
py
diff --git a/demo/guide-python/basic_walkthrough.py b/demo/guide-python/basic_walkthrough.py index <HASH>..<HASH> 100755 --- a/demo/guide-python/basic_walkthrough.py +++ b/demo/guide-python/basic_walkthrough.py @@ -60,7 +60,8 @@ watchlist = [(dtest,'eval'), (dtrain,'train')] bst = xgb.train( param, dtrain, num_round,...
Update basic_walkthrough.py
py
diff --git a/kalibro_client/base.py b/kalibro_client/base.py index <HASH>..<HASH> 100644 --- a/kalibro_client/base.py +++ b/kalibro_client/base.py @@ -27,11 +27,10 @@ class Base(object): if prefix: url += "/" + prefix - else: - url += "" url += "/{}/{}".format(self.end...
Removed unused condition for prefix in Base request
py
diff --git a/bokeh/properties.py b/bokeh/properties.py index <HASH>..<HASH> 100644 --- a/bokeh/properties.py +++ b/bokeh/properties.py @@ -715,11 +715,6 @@ class HasProps(with_metaclass(MetaHasProps, object)): return result - @classmethod - def class_properties(cls, withbases=True): - """ Depr...
Remove HasProps.class_properties(), we aren't <I>% back-compatible anyway.
py
diff --git a/ELiDE/ELiDE/dummy.py b/ELiDE/ELiDE/dummy.py index <HASH>..<HASH> 100644 --- a/ELiDE/ELiDE/dummy.py +++ b/ELiDE/ELiDE/dummy.py @@ -9,6 +9,8 @@ from kivy.logger import Logger from .kivygarden.texturestack import ImageStack +from . import menu # for kv + class Dummy(ImageStack): """A widget that...
Make sure menu is imported by the time Dummy needs it Or vice versa?
py
diff --git a/aiorpcx/curio.py b/aiorpcx/curio.py index <HASH>..<HASH> 100644 --- a/aiorpcx/curio.py +++ b/aiorpcx/curio.py @@ -202,8 +202,10 @@ class TaskGroup(object): async def cancel_remaining(self): '''Cancel all remaining tasks.''' self._closed = True - for task in list(self._pending)...
TaskGroup: faster cancellation before, only one task per event loop iteration would be cancelled
py
diff --git a/bugwarrior/services/redmine.py b/bugwarrior/services/redmine.py index <HASH>..<HASH> 100644 --- a/bugwarrior/services/redmine.py +++ b/bugwarrior/services/redmine.py @@ -224,7 +224,7 @@ class RedMineService(IssueService): super(RedMineService, self).__init__(*args, **kw) self.url = self...
Use get_password to evaluate API key This allows you to put the API key into @oracle mode so you don't have to store clear text API keys in your configuration.
py
diff --git a/mythril/laser/ethereum/natives.py b/mythril/laser/ethereum/natives.py index <HASH>..<HASH> 100644 --- a/mythril/laser/ethereum/natives.py +++ b/mythril/laser/ethereum/natives.py @@ -2,6 +2,7 @@ import copy import hashlib +import logging from ethereum.utils import ecrecover_to_pub from py_ecc.secp25...
Use broad exception catch due to coincurve
py
diff --git a/examples/rate_request.py b/examples/rate_request.py index <HASH>..<HASH> 100644 --- a/examples/rate_request.py +++ b/examples/rate_request.py @@ -64,7 +64,12 @@ package1.Weight = package1_weight package1.PhysicalPackaging = 'BOX' # Required, but according to FedEx docs: # "Used only with PACKAGE_GROUPS,...
Expand example rate request comment on the use of GroupPackageCount to indicate possible use-case.
py
diff --git a/build/build.py b/build/build.py index <HASH>..<HASH> 100755 --- a/build/build.py +++ b/build/build.py @@ -141,8 +141,8 @@ runDependencyJars = [ "commons-httpclient-3.1.jar", "commons-io-2.4.jar", "commons-logging-1.2.jar", - "commons-logging-adapters-1.2.jar", - "commons-logging-api-1.2.jar", + ...
[build] Correct name of the commons-logging jars.
py
diff --git a/moto/s3/responses.py b/moto/s3/responses.py index <HASH>..<HASH> 100644 --- a/moto/s3/responses.py +++ b/moto/s3/responses.py @@ -137,8 +137,14 @@ class ResponseObject(_TemplateEnvironmentMixin): ) def _bucket_response_put(self, request, region_name, bucket_name, querystring, headers): + ...
Fix bucket versioning when running under moto_server
py
diff --git a/zhaquirks/tuya/__init__.py b/zhaquirks/tuya/__init__.py index <HASH>..<HASH> 100644 --- a/zhaquirks/tuya/__init__.py +++ b/zhaquirks/tuya/__init__.py @@ -376,11 +376,26 @@ class TuyaSmartRemoteOnOffCluster(OnOff, EventableCluster): def handle_cluster_request(self, tsn, command_id, args): ""...
TS<I>x: send default response, so avoid repeated ZCL-frame from device (#<I>) * TS<I>x: send default response, so avoid repeated ZCL-frame from device * syntax / trailing spaces * syntax (no functional)
py
diff --git a/sperment/utils.py b/sperment/utils.py index <HASH>..<HASH> 100644 --- a/sperment/utils.py +++ b/sperment/utils.py @@ -34,7 +34,7 @@ class InfoUpdater(object): if len(mon.log) == 1: log_name = mon.log.keys()[0] - monitors[mon_name + '.' + log_name] ...
changed naming of the monitor result entry to remove the forbidden period
py
diff --git a/vaex/file/other.py b/vaex/file/other.py index <HASH>..<HASH> 100644 --- a/vaex/file/other.py +++ b/vaex/file/other.py @@ -382,7 +382,7 @@ class FitsBinTable(DatasetMemoryMapped): else: for i in range(arraylength): name = column_name+"_" +str(i) - self.addColumn(na...
fix: integer division for mmaped columns with arrays
py
diff --git a/tests/test_tree.py b/tests/test_tree.py index <HASH>..<HASH> 100644 --- a/tests/test_tree.py +++ b/tests/test_tree.py @@ -148,7 +148,9 @@ def test_lightgbm_multiclass(): # ensure plot works for first class shap.dependence_plot(0, shap_values[0], X, show=False) - + +# TODO: Test tree_...
Update test_tree.py
py
diff --git a/azure-servicebus/azure/servicebus/_serialization.py b/azure-servicebus/azure/servicebus/_serialization.py index <HASH>..<HASH> 100644 --- a/azure-servicebus/azure/servicebus/_serialization.py +++ b/azure-servicebus/azure/servicebus/_serialization.py @@ -83,7 +83,8 @@ def _create_message(response, service_i...
Added the exclusion of 'strict-transport-security' in header parsing
py
diff --git a/sos/plugins/npm.py b/sos/plugins/npm.py index <HASH>..<HASH> 100644 --- a/sos/plugins/npm.py +++ b/sos/plugins/npm.py @@ -76,7 +76,7 @@ class Npm(Plugin, RedHatPlugin, DebianPlugin, UbuntuPlugin, SuSEPlugin): self._log_debug("modules in cache: %s" % output) outfn = self._make_command_fi...
[npm] do not call self.archive.add_string() directly No plugin code outside of Plugin (and other classes defined in the plugin module itself) should ever access the archive directly: this is so that metadata is created, limits are respected, and predicates applied. Correct npm to use self.add_string_as_file().
py
diff --git a/bliss/core/bin/bliss_seq_encode.py b/bliss/core/bin/bliss_seq_encode.py index <HASH>..<HASH> 100755 --- a/bliss/core/bin/bliss_seq_encode.py +++ b/bliss/core/bin/bliss_seq_encode.py @@ -71,7 +71,7 @@ def main(): except ValueError: raise Exception('Invalid filename "%s": . %s' % (os.pa...
Update bliss_seq_encode to pass seqid to Seq object
py
diff --git a/m2s3/app.py b/m2s3/app.py index <HASH>..<HASH> 100755 --- a/m2s3/app.py +++ b/m2s3/app.py @@ -8,6 +8,7 @@ Main module """ import sys +import traceback #TODO replace log with logging https://docs.python.org/3.4/howto/logging.html#logging-basic-tutorial from m2s3 import config, log, mongo @@ -83,7 +8...
The traceback is logged for any expection happening
py
diff --git a/keepkeylib/client.py b/keepkeylib/client.py index <HASH>..<HASH> 100644 --- a/keepkeylib/client.py +++ b/keepkeylib/client.py @@ -362,7 +362,7 @@ class DebugLinkMixin(object): self.passphrase = normalize_nfc(passphrase) def set_mnemonic(self, mnemonic): - self.mnemonic = normalize_nf...
reverted to old method for mnemonic setting
py
diff --git a/nerium/query.py b/nerium/query.py index <HASH>..<HASH> 100644 --- a/nerium/query.py +++ b/nerium/query.py @@ -19,15 +19,18 @@ FLAT_QUERIES = list(Path(os.getenv('QUERY_PATH', 'query_files')).glob('**/*')) def get_query(query_name): """Find file matching query_name, read and return query object "...
Add some TODOs to query.py
py
diff --git a/rash/tests/test_database.py b/rash/tests/test_database.py index <HASH>..<HASH> 100644 --- a/rash/tests/test_database.py +++ b/rash/tests/test_database.py @@ -80,6 +80,8 @@ class TestInMemoryDataBase(BaseTestCase): dbclass = InMemoryDataBase def abspath(self, *ps): + # SOMEDAY: Remove Tes...
I should remove TestInMemoryDataBase.abspath at some point
py
diff --git a/abydos/tests/test_phonetic.py b/abydos/tests/test_phonetic.py index <HASH>..<HASH> 100644 --- a/abydos/tests/test_phonetic.py +++ b/abydos/tests/test_phonetic.py @@ -4097,5 +4097,16 @@ class BeiderMorseTestCases(unittest.TestCase): self.assertEqual(language('átz', 'gen', gen_langs), l_any) + ...
added remove_duplicate_alternates tests
py
diff --git a/src/means/inference/inference.py b/src/means/inference/inference.py index <HASH>..<HASH> 100644 --- a/src/means/inference/inference.py +++ b/src/means/inference/inference.py @@ -350,7 +350,7 @@ class Inference(SerialisableObject, MemoisableObject): assert(len(starting_parameters) == len(problem.pa...
corrected starting_coditions(tuple) to list
py
diff --git a/h2o-py/tests/testdir_jira/pyunit_pubdev_6339.py b/h2o-py/tests/testdir_jira/pyunit_pubdev_6339.py index <HASH>..<HASH> 100644 --- a/h2o-py/tests/testdir_jira/pyunit_pubdev_6339.py +++ b/h2o-py/tests/testdir_jira/pyunit_pubdev_6339.py @@ -85,7 +85,7 @@ def calculate_chunk_size(file_path, num_cols, cores, cl...
fix test failing intermittently on Py2 when calling unsupported math function (#<I>)
py
diff --git a/cbamf/interpolation.py b/cbamf/interpolation.py index <HASH>..<HASH> 100644 --- a/cbamf/interpolation.py +++ b/cbamf/interpolation.py @@ -146,8 +146,7 @@ class ChebyshevInterpolation1D(object): Evaluates an individual Chebyshev polynomial `k` in coordinate space with proper transformation...
quicker way to get chebval for a single poly
py
diff --git a/salt/modules/pdbedit.py b/salt/modules/pdbedit.py index <HASH>..<HASH> 100644 --- a/salt/modules/pdbedit.py +++ b/salt/modules/pdbedit.py @@ -309,9 +309,9 @@ def modify( ## update password if password: - ret = create(login, password, password_hashed) - if ret[login] not in ['updat...
pdbedit.modify - fix issue of returning double login
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -1,5 +1,10 @@ from setuptools import setup +requires = { + "core": ["blessings", "six"], + "tests": ["pytest", "mock"], +} + setup( name="pyout", version="0.1.0", @@ -9,8 +14,8 @@ setup( license="MIT",...
setup.py: Move requirements to separate dictionary
py
diff --git a/satpy/readers/yaml_reader.py b/satpy/readers/yaml_reader.py index <HASH>..<HASH> 100644 --- a/satpy/readers/yaml_reader.py +++ b/satpy/readers/yaml_reader.py @@ -88,7 +88,7 @@ class YAMLBasedReader(object): if filenames: file_set |= set(filenames) - if filenames is None: + ...
Allow filenames to be an empty set and still look for files
py