diff
stringlengths
139
3.65k
message
stringlengths
8
627
diff_languages
stringclasses
1 value
diff --git a/pyspectral/tests/test_solarflux.py b/pyspectral/tests/test_solarflux.py index <HASH>..<HASH> 100644 --- a/pyspectral/tests/test_solarflux.py +++ b/pyspectral/tests/test_solarflux.py @@ -76,7 +76,8 @@ class TestSolarflux(unittest.TestCase): # rsr function (se above) is given in micronsm therefore t...
Provoke an error in the tests
py
diff --git a/pydatum/datum.py b/pydatum/datum.py index <HASH>..<HASH> 100644 --- a/pydatum/datum.py +++ b/pydatum/datum.py @@ -17,7 +17,7 @@ class Datum: """ Encapsulates datetime value and provides operations on top of it """ def __init__(self): - self.value = datetime.now() + self.value: dat...
declaring type for the value, for debugging
py
diff --git a/resolwe/flow/execution_engines/workflow/__init__.py b/resolwe/flow/execution_engines/workflow/__init__.py index <HASH>..<HASH> 100644 --- a/resolwe/flow/execution_engines/workflow/__init__.py +++ b/resolwe/flow/execution_engines/workflow/__init__.py @@ -15,6 +15,7 @@ from resolwe.flow.execution_engines.bas...
Use copy_permissions in workflow
py
diff --git a/werkzeug-import-rewrite.py b/werkzeug-import-rewrite.py index <HASH>..<HASH> 100644 --- a/werkzeug-import-rewrite.py +++ b/werkzeug-import-rewrite.py @@ -202,9 +202,9 @@ def rewrite_file(filename): inject_imports(new_file, deferred_imports) for line in difflib.unified_diff(old_file, new_fil...
Fix the generated udiff's paths
py
diff --git a/puput/models.py b/puput/models.py index <HASH>..<HASH> 100644 --- a/puput/models.py +++ b/puput/models.py @@ -72,7 +72,8 @@ class BlogPage(BlogRoutes, Page): subpage_types = ['puput.EntryPage'] def get_entries(self): - return EntryPage.objects.descendant_of(self).live().order_by('-date')...
Adding setting for alternated related field names on get_entries method
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -28,7 +28,6 @@ install_requires = [ 'six>=1.5', 'contextlib2; python_version=="2.7"', 'mock; python_version=="2.7"', - 'yarl; python_version>="3.5"', ] excluded_packages = ["tests*"]
Remove yarl from extra dependencies: should be there if needed via aiohttp
py
diff --git a/salt/modules/win_network.py b/salt/modules/win_network.py index <HASH>..<HASH> 100644 --- a/salt/modules/win_network.py +++ b/salt/modules/win_network.py @@ -4,15 +4,9 @@ Module for gathering and managing network information import datetime import hashlib - -# Import Python libs import re import sock...
Drop Py2 and six on salt/modules/win_network.py
py
diff --git a/teslajsonpy/controller.py b/teslajsonpy/controller.py index <HASH>..<HASH> 100644 --- a/teslajsonpy/controller.py +++ b/teslajsonpy/controller.py @@ -256,7 +256,7 @@ class Controller: ) if not result: if retries < 5: - await asyn...
fix: increase minimum retry delay to <I> seconds
py
diff --git a/libextract/quantifiers.py b/libextract/quantifiers.py index <HASH>..<HASH> 100644 --- a/libextract/quantifiers.py +++ b/libextract/quantifiers.py @@ -1,3 +1,4 @@ +from __future__ import absolute_import """ A submodule providing 'quantifying' functions. @@ -7,7 +8,8 @@ the function will return either a ...
pep <I> compliance, grr
py
diff --git a/psamm/tests/test_command.py b/psamm/tests/test_command.py index <HASH>..<HASH> 100644 --- a/psamm/tests/test_command.py +++ b/psamm/tests/test_command.py @@ -20,7 +20,6 @@ from __future__ import unicode_literals import sys -import io import os import argparse import shutil @@ -648,8 +647,8 @@ class ...
Fixed test case for test_run_vis_recolor
py
diff --git a/vyper/context/types/meta/interface.py b/vyper/context/types/meta/interface.py index <HASH>..<HASH> 100644 --- a/vyper/context/types/meta/interface.py +++ b/vyper/context/types/meta/interface.py @@ -37,6 +37,9 @@ class InterfaceDefinition(MemberTypeDefinition): for key, type_ in members.items(): ...
fix: return address in interface `get_signature`
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -19,7 +19,7 @@ from setuptools import setup pkg_name = 'von_agent' -version = '1.2.0' +version = '1.2.1' setup(
setup.py takes <I>
py
diff --git a/ipyrad/assemble/jointestimate.py b/ipyrad/assemble/jointestimate.py index <HASH>..<HASH> 100644 --- a/ipyrad/assemble/jointestimate.py +++ b/ipyrad/assemble/jointestimate.py @@ -230,6 +230,7 @@ def stackarray(data, sample, subloci): ## drop the empty rows in case there are fewer loci than the size of ...
compatibility with new API and closed some open files
py
diff --git a/allennlp/common/util.py b/allennlp/common/util.py index <HASH>..<HASH> 100644 --- a/allennlp/common/util.py +++ b/allennlp/common/util.py @@ -305,6 +305,11 @@ def import_submodules(package_name: str) -> None: """ importlib.invalidate_caches() + # For some reason, python doesn't always add th...
Fix path issue for certain cases when using --include-package (#<I>)
py
diff --git a/zoort.py b/zoort.py index <HASH>..<HASH> 100644 --- a/zoort.py +++ b/zoort.py @@ -49,7 +49,7 @@ try: except NameError: pass -__version__ = '0.1.6' +__version__ = '0.1.7' __author__ = 'Yohan Graterol' __license__ = 'MIT' @@ -139,7 +139,7 @@ def factory_uploader(type_uploader, *args, **kwargs): ...
Fix 's' to end in S3 method
py
diff --git a/libact/base/dataset.py b/libact/base/dataset.py index <HASH>..<HASH> 100644 --- a/libact/base/dataset.py +++ b/libact/base/dataset.py @@ -96,27 +96,9 @@ class Dataset(object): def import_libsvm_sparse(filename): """Imports dataset file in libsvm sparse format""" - entries = list() - dim = 0 -...
use sklearn interface to read svmlight format file
py
diff --git a/src/heywood/manager.py b/src/heywood/manager.py index <HASH>..<HASH> 100644 --- a/src/heywood/manager.py +++ b/src/heywood/manager.py @@ -212,6 +212,7 @@ class ProcessManager(object): child.signal(signo) def read_env(self, f): + os.environ['PYTHONUNBUFFERED'] = 'true' ...
Add PYTHONUNBUFFERED to default environment.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -1,15 +1,24 @@ +import re + from setuptools import setup +version = '' +with open('lavalink/__init__.py') as f: + version = re.search(r'^__version__\s*=\s*[\'"]([^\'"]*)[\'"]', f.read(), re.MULTILINE).group(1) + +if no...
Auto-pull version from __init__
py
diff --git a/pandas/core/sorting.py b/pandas/core/sorting.py index <HASH>..<HASH> 100644 --- a/pandas/core/sorting.py +++ b/pandas/core/sorting.py @@ -385,7 +385,7 @@ def ensure_key_mapped(values, key: Optional[Callable], levels=None): from pandas.core.indexes.api import Index if not key: - return va...
PERF: Remove unnecessary copies in sorting functions (#<I>) (#<I>) * PERF: Remove unnecessary copies in sorting functions * Run tests * Run tests * Add asv * Run black * Remove asv * Run tests * Run tests * Run tests * Run tests * Run tests * Run tests
py
diff --git a/pypeerassets/pautils.py b/pypeerassets/pautils.py index <HASH>..<HASH> 100644 --- a/pypeerassets/pautils.py +++ b/pypeerassets/pautils.py @@ -14,7 +14,6 @@ def testnet_or_mainnet(node): def load_p2th_privkeys_into_node(node): if testnet_or_mainnet(node) is "testnet": - assert testnet_PAPROD_...
pautils, removed unnecessary line.
py
diff --git a/dj_database_url.py b/dj_database_url.py index <HASH>..<HASH> 100644 --- a/dj_database_url.py +++ b/dj_database_url.py @@ -55,11 +55,11 @@ def parse(url): # Update with environment configuration. config.update({ - 'NAME': path, - 'USER': url.username, - 'PASSWORD': url.passw...
Add support for blank fields (Django expects '' not None) Fixes a bug with postgres, where blank passwords weren't supported.
py
diff --git a/openquake/hazardlib/tests/geo/surface/kite_fault_test.py b/openquake/hazardlib/tests/geo/surface/kite_fault_test.py index <HASH>..<HASH> 100644 --- a/openquake/hazardlib/tests/geo/surface/kite_fault_test.py +++ b/openquake/hazardlib/tests/geo/surface/kite_fault_test.py @@ -30,7 +30,7 @@ from openquake.haza...
Building narrow almost quadrilateral meshes
py
diff --git a/lib/cohesion/parser.py b/lib/cohesion/parser.py index <HASH>..<HASH> 100644 --- a/lib/cohesion/parser.py +++ b/lib/cohesion/parser.py @@ -29,6 +29,13 @@ def get_object_name(obj): return obj +def get_attribute_name_id(attr): + """ + Return the attribute name identifier + """ + return at...
Attribute values aren't necessarily always Name objects
py
diff --git a/deepdish/io/hdf5io.py b/deepdish/io/hdf5io.py index <HASH>..<HASH> 100644 --- a/deepdish/io/hdf5io.py +++ b/deepdish/io/hdf5io.py @@ -70,6 +70,7 @@ def _save_level(handler, group, level, name=None, compress=True): elif isinstance(level, np.ndarray): atom = tables.Atom.from_dtype(level.dtype...
Added warning about zero-length array in io.save.
py
diff --git a/schema_dummies.py b/schema_dummies.py index <HASH>..<HASH> 100644 --- a/schema_dummies.py +++ b/schema_dummies.py @@ -61,6 +61,7 @@ def make_dummy(instance, 'VARCHAR' : varchar_default, 'INTEGER' : integer_default, 'NUMERIC(50, 10)' : numeric_default, + 'TE...
Data type TEXT was added to schema_dummies
py
diff --git a/pylint/testutils.py b/pylint/testutils.py index <HASH>..<HASH> 100644 --- a/pylint/testutils.py +++ b/pylint/testutils.py @@ -93,7 +93,7 @@ def get_tests_info(input_dir, msg_dir, prefix, suffix): class TestReporter(BaseReporter): """reporter storing plain text messages""" - __implements____ = IR...
Fix the number of underscores in __implements__
py
diff --git a/nodeconductor/jira/views.py b/nodeconductor/jira/views.py index <HASH>..<HASH> 100644 --- a/nodeconductor/jira/views.py +++ b/nodeconductor/jira/views.py @@ -1,4 +1,4 @@ -from rest_framework import viewsets, mixins, status, response +from rest_framework import viewsets, mixins, status, response, exceptions...
Proper "not found" error handling - NC-<I>
py
diff --git a/gin/config.py b/gin/config.py index <HASH>..<HASH> 100644 --- a/gin/config.py +++ b/gin/config.py @@ -349,6 +349,9 @@ class ConfigurableReference(object): def __ne__(self, other): return not self.__eq__(other) + def __hash__(self): + return hash(repr(self)) + def __repr__(self): # Che...
Migrate more of Gin to Py3. PiperOrigin-RevId: <I>
py
diff --git a/src/types/python/jderobotTypes/rgbd.py b/src/types/python/jderobotTypes/rgbd.py index <HASH>..<HASH> 100644 --- a/src/types/python/jderobotTypes/rgbd.py +++ b/src/types/python/jderobotTypes/rgbd.py @@ -17,15 +17,15 @@ # Aitor Martinez Fernandez <aitor.martinez.fernandez@gmail.com> # -import .imag...
[issue #<I>] solved bug in rgbd of types
py
diff --git a/nbt/region.py b/nbt/region.py index <HASH>..<HASH> 100644 --- a/nbt/region.py +++ b/nbt/region.py @@ -81,15 +81,15 @@ class RegionFile(object): timestamp = unpack(">I", self.file.read(4)) x = (index/4) % 32 z = int(index/4)/32 - if offset < 2 and offset != 0: + if offset == 0 and length == ...
Fix header parsing errors First check to see if chunk exists and set appropriate flag, before checking to see if the chunk has an invalid offset (zero). Also use object constant to define not created status in get_chunk function.
py
diff --git a/circle_asset/cli.py b/circle_asset/cli.py index <HASH>..<HASH> 100644 --- a/circle_asset/cli.py +++ b/circle_asset/cli.py @@ -2,6 +2,7 @@ from .version import * from .project import Project from .circle_api import get_latest_build, get_artifact_list import argparse +import sys from fnmatch import fnmat...
Flush stdout on download information This avoids the situation where 'Download <xxx>...' displays only after the download has finished.
py
diff --git a/lib/svtplay_dl/postprocess/__init__.py b/lib/svtplay_dl/postprocess/__init__.py index <HASH>..<HASH> 100644 --- a/lib/svtplay_dl/postprocess/__init__.py +++ b/lib/svtplay_dl/postprocess/__init__.py @@ -4,7 +4,6 @@ import platform import re from json import dumps from random import sample -from re import...
postprocess: use re that we already imported
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -19,7 +19,7 @@ setup(name='switchboard', packages=find_packages(exclude=['ez_setup']), include_package_data=True, install_requires=[ - 'pymongo == 2.3', + 'pymongo >= 2.3, < 3', ...
Allow any pymongo 2.x version
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -38,6 +38,7 @@ setup( 'Programming Language :: Python :: 3.2', 'Programming Language :: Python :: 3.3', 'Programming Language :: Python :: 3.4', + 'Programming Language :: Python :: 3.5', ...
setup.py is updated for py<I>
py
diff --git a/pyte/flowable.py b/pyte/flowable.py index <HASH>..<HASH> 100644 --- a/pyte/flowable.py +++ b/pyte/flowable.py @@ -10,6 +10,7 @@ that make up the content of a document and are rendered onto its pages. """ +from .layout import EndOfContainer from .style import Style, Styled from .util import Decorator...
space_below is ignored at end of a container
py
diff --git a/tests/unit_tests/test_sweep_scheduler.py b/tests/unit_tests/test_sweep_scheduler.py index <HASH>..<HASH> 100644 --- a/tests/unit_tests/test_sweep_scheduler.py +++ b/tests/unit_tests/test_sweep_scheduler.py @@ -159,6 +159,7 @@ def test_sweep_scheduler_base_add_to_launch_queue(monkeypatch): assert _sche...
fix(sweeps): mark flakey sweeps test xfail (#<I>) * remove flake test * format * mark xfail, formatting * mark xfail, format
py
diff --git a/backend/cloud_inquisitor/plugins/commands/accounts.py b/backend/cloud_inquisitor/plugins/commands/accounts.py index <HASH>..<HASH> 100644 --- a/backend/cloud_inquisitor/plugins/commands/accounts.py +++ b/backend/cloud_inquisitor/plugins/commands/accounts.py @@ -69,7 +69,8 @@ class DeleteAccount(BaseCommand...
To fix #<I> - Accounts cant be deleted
py
diff --git a/cumulusci/tasks/push/push_api.py b/cumulusci/tasks/push/push_api.py index <HASH>..<HASH> 100644 --- a/cumulusci/tasks/push/push_api.py +++ b/cumulusci/tasks/push/push_api.py @@ -512,14 +512,10 @@ class SalesforcePushApi(object): request_id = res['id'] # Schedule the orgs - batch_...
pass batch_size option instead of using hard-coded value
py
diff --git a/anafero/models.py b/anafero/models.py index <HASH>..<HASH> 100644 --- a/anafero/models.py +++ b/anafero/models.py @@ -17,8 +17,8 @@ class Referral(models.Model): label = models.CharField(max_length=100, blank=True) code = models.CharField(max_length=40, unique=True) redirect_to = models.Char...
Make GFK fields blankable so they are optional in admin Fixes #4
py
diff --git a/openquake/engine/bin/openquake_cli.py b/openquake/engine/bin/openquake_cli.py index <HASH>..<HASH> 100755 --- a/openquake/engine/bin/openquake_cli.py +++ b/openquake/engine/bin/openquake_cli.py @@ -443,7 +443,9 @@ def main(): msg = upgrade_manager.what_if_I_upgrade( conn, extract_scri...
Do not ask for confirmation if there is nothing to do Former-commit-id: <I>e<I>ab<I>ac<I>ea<I>e<I>e6b<I>bbf
py
diff --git a/scss/rule.py b/scss/rule.py index <HASH>..<HASH> 100644 --- a/scss/rule.py +++ b/scss/rule.py @@ -210,8 +210,8 @@ class UnparsedBlock(object): @property def is_atrule(self): - return self.prop.startswith('@') + return self.header.is_atrule @property def is_nested_prope...
Fix UnparsedBlock properties when the header rewrites its prop.
py
diff --git a/pyethereum/ethclient.py b/pyethereum/ethclient.py index <HASH>..<HASH> 100755 --- a/pyethereum/ethclient.py +++ b/pyethereum/ethclient.py @@ -70,6 +70,10 @@ class APIClient(object): return self.account_to_dict(address)['code'] def getnonce(self, address): + ptxs = self.getpending()[...
fix: get nonce from pending txs or account
py
diff --git a/scripts/nightly-test/full_test_driver.py b/scripts/nightly-test/full_test_driver.py index <HASH>..<HASH> 100755 --- a/scripts/nightly-test/full_test_driver.py +++ b/scripts/nightly-test/full_test_driver.py @@ -172,9 +172,12 @@ with simple_linear_db.LinearDBWriter("result_log.txt") as result_log: ...
attempt one to fix nightly builds - it appears that the unittest build is expected for every build, but release shouldn't produce it
py
diff --git a/tests/test_base32.py b/tests/test_base32.py index <HASH>..<HASH> 100644 --- a/tests/test_base32.py +++ b/tests/test_base32.py @@ -11,6 +11,7 @@ from ulid import base32 NON_BASE_32_EXC_REGEX = r'^Non-base32 character found' ENCODE_BYTE_SIZE_EXC_REGEX = r'^Expects bytes in sizes of' +ENCODE_ULID_BYTE_SIZ...
Refactor base<I>.encode_ulid tests to assert on exception message.
py
diff --git a/tests/db/models_test.py b/tests/db/models_test.py index <HASH>..<HASH> 100644 --- a/tests/db/models_test.py +++ b/tests/db/models_test.py @@ -44,7 +44,8 @@ class Inputs4HazCalcTestCase(unittest.TestCase): ) inputs = models.inputs4hcalc(hc.id) - self.assertEqual(2, inputs.count())...
tests/db/models_test: Updated a test per new input loading functionality. Former-commit-id: d<I>aa<I>b8f<I>a6c<I>d<I>e<I>
py
diff --git a/openpnm/algorithms/ChargeConservation.py b/openpnm/algorithms/ChargeConservation.py index <HASH>..<HASH> 100644 --- a/openpnm/algorithms/ChargeConservation.py +++ b/openpnm/algorithms/ChargeConservation.py @@ -24,6 +24,8 @@ class ChargeConservation(ReactiveTransport): def __init__(self, settings={},...
update charge conservation alg with cache_A and b is False
py
diff --git a/Lib/fontmake/font_project.py b/Lib/fontmake/font_project.py index <HASH>..<HASH> 100644 --- a/Lib/fontmake/font_project.py +++ b/Lib/fontmake/font_project.py @@ -679,7 +679,7 @@ class FontProject: from glyphsLib.interpolation import apply_instance_data_to_ufo logger.info( - "...
log the name of instance UFO being generated
py
diff --git a/nion/swift/model/Graphics.py b/nion/swift/model/Graphics.py index <HASH>..<HASH> 100644 --- a/nion/swift/model/Graphics.py +++ b/nion/swift/model/Graphics.py @@ -1104,9 +1104,11 @@ class PointTypeGraphic(Graphic): pos = part[1][0], part[1][1] + delta_h else: ...
fixed that locked position has no effect on point graphics
py
diff --git a/troposphere/kinesis.py b/troposphere/kinesis.py index <HASH>..<HASH> 100644 --- a/troposphere/kinesis.py +++ b/troposphere/kinesis.py @@ -11,5 +11,6 @@ class Stream(AWSObject): resource_type = "AWS::Kinesis::Stream" props = { + 'Name': (basestring, False), 'ShardCount': (integer...
Added Name property to Kinesis streams (#<I>) * Added Name parameter to Kinesis streams
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -27,6 +27,9 @@ setup( py_modules=['flask_slack'], zip_safe=False, platforms='any', + install_requires=[ + 'Flask', + ], classifiers=[ 'Programming Language :: Python', 'Progra...
add install_requires in setup.pu
py
diff --git a/angr/analyses/girlscout.py b/angr/analyses/girlscout.py index <HASH>..<HASH> 100644 --- a/angr/analyses/girlscout.py +++ b/angr/analyses/girlscout.py @@ -425,8 +425,11 @@ class GirlScout(Analysis): # Log it before we cut the tracing :) if jumpkind == "Ijk_Call": ...
filling up self._functions in girlscout
py
diff --git a/yelp_kafka_tool/util/zookeeper.py b/yelp_kafka_tool/util/zookeeper.py index <HASH>..<HASH> 100644 --- a/yelp_kafka_tool/util/zookeeper.py +++ b/yelp_kafka_tool/util/zookeeper.py @@ -83,27 +83,6 @@ class ZK: brokers[b_id] = broker return brokers - def get_partitions(self, topic_na...
Reduce zookeeper access time by fetching only partition-info
py
diff --git a/hdf5storage/Marshallers.py b/hdf5storage/Marshallers.py index <HASH>..<HASH> 100644 --- a/hdf5storage/Marshallers.py +++ b/hdf5storage/Marshallers.py @@ -593,7 +593,7 @@ class NumpyScalarArrayMarshaller(TypeMarshaller): data_to_store) except: p...
Changed a reference to numpy.str_ to numpy.unicode_ so that they will be written as numpy.uin<I> if possible on Python 2.
py
diff --git a/metpy/calc/tests/test_indices.py b/metpy/calc/tests/test_indices.py index <HASH>..<HASH> 100644 --- a/metpy/calc/tests/test_indices.py +++ b/metpy/calc/tests/test_indices.py @@ -27,6 +27,18 @@ def test_precipitable_water(): assert_array_equal(pw, truth) +def test_precipitable_water_no_bounds(): + ...
Add test for precipitable water with no bounds given.
py
diff --git a/napalm_ios/ios.py b/napalm_ios/ios.py index <HASH>..<HASH> 100644 --- a/napalm_ios/ios.py +++ b/napalm_ios/ios.py @@ -70,13 +70,12 @@ class IOSDriver(NetworkDriver): self.dest_file_system = optional_args.get('dest_file_system', None) self.auto_rollback_on_error = optional_args.get('auto_r...
Use netmiko's keepalive arg directly
py
diff --git a/htmresearch/support/expsuite.py b/htmresearch/support/expsuite.py index <HASH>..<HASH> 100755 --- a/htmresearch/support/expsuite.py +++ b/htmresearch/support/expsuite.py @@ -92,6 +92,11 @@ class PyExperimentSuite(object): self.cfgparser = ConfigParser() if not self.cfgparser.read(self.opt...
RES-<I>: Change the current working directory to be relative to 'experiments.cfg'
py
diff --git a/hearthstone/hslog/parser.py b/hearthstone/hslog/parser.py index <HASH>..<HASH> 100644 --- a/hearthstone/hslog/parser.py +++ b/hearthstone/hslog/parser.py @@ -137,9 +137,11 @@ class LogWatcher(LogBroadcastMixin): return self.handle_action(ts, opcode, data) if opcode == "GameEntity": + self.close_...
hslog: Close nodes on new game/player packet
py
diff --git a/synapse/threads.py b/synapse/threads.py index <HASH>..<HASH> 100644 --- a/synapse/threads.py +++ b/synapse/threads.py @@ -21,6 +21,27 @@ def firethread(f): return thr return callmeth +def getPerThread(name, ctor, *args, **kwargs): + ''' + Return a "per thread" value by name. + If n...
added getPerThread() API for get/ctor thread locals
py
diff --git a/cheroot/wsgi.py b/cheroot/wsgi.py index <HASH>..<HASH> 100644 --- a/cheroot/wsgi.py +++ b/cheroot/wsgi.py @@ -108,7 +108,7 @@ class Gateway(server.Gateway): def get_environ(self): """Return a new environ dict targeting the given wsgi.version.""" - raise NotImplemented + raise ...
Fix base wsgi.Gateway.respond to raise exception Reported by lgtm.com
py
diff --git a/example/idp2/idp_user.py b/example/idp2/idp_user.py index <HASH>..<HASH> 100644 --- a/example/idp2/idp_user.py +++ b/example/idp2/idp_user.py @@ -68,7 +68,7 @@ USERS = { "ou": "IT", "initials": "P", #"schacHomeOrganization": "example.com", - "email": "roland@example.com", ...
Corrected attribute name: email -> mail.
py
diff --git a/gsh/rb_tree.py b/gsh/rb_tree.py index <HASH>..<HASH> 100644 --- a/gsh/rb_tree.py +++ b/gsh/rb_tree.py @@ -10,6 +10,8 @@ # a software project, may be used freely without reference to the # author. # +# http://epaperpress.com +# # Adapted by Chris Gonnerman <chris.gonnerman@newcenturycomputers.net> ...
Honor the license, not as it appears in the imported source file but as it appears on the homepage: <URL>
py
diff --git a/gwpy/types/array2d.py b/gwpy/types/array2d.py index <HASH>..<HASH> 100644 --- a/gwpy/types/array2d.py +++ b/gwpy/types/array2d.py @@ -21,8 +21,6 @@ from warnings import warn -import numpy - from matplotlib import __version__ as mpl_version from astropy.units import (Unit, Quantity)
gwpy.types: removed unused import
py
diff --git a/openquake/db/models.py b/openquake/db/models.py index <HASH>..<HASH> 100644 --- a/openquake/db/models.py +++ b/openquake/db/models.py @@ -923,6 +923,15 @@ class HazardCalculation(djm.Model): ) return self._points_to_compute + def get_imts(self): + """ + Returns ...
db/models: Moved `get_imts` to the HazardCalculation class... it looks like there was previously a faulty resolution of a merge conflict.
py
diff --git a/mutant/utils.py b/mutant/utils.py index <HASH>..<HASH> 100644 --- a/mutant/utils.py +++ b/mutant/utils.py @@ -158,18 +158,27 @@ def choices_from_dict(choices): _opts_related_cache_attrs = [ - '_related_objects_cache', '_related_objects_proxy_cache', - '_related_many_to_many_cache', '_name_map' +...
Make sure children opts related cache is also cleared.
py
diff --git a/salt/state.py b/salt/state.py index <HASH>..<HASH> 100644 --- a/salt/state.py +++ b/salt/state.py @@ -2433,7 +2433,11 @@ class BaseHighState(object): ''' Returns the high data derived from the top file ''' - tops = self.get_tops() + try: + tops = self.get...
Don't stacktrace if there are conflicting id errors in highstate Fixes #<I>
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -72,7 +72,7 @@ install_requires = [ "flufl.lock>=3.2,<4", "win-unicode-console>=0.5; sys_platform == 'win32'", "pywin32>=225; sys_platform == 'win32'", - "networkx~=2.5", + "networkx>=2.5", "psutil>=5...
Unpin networkx Networkx <I> now does not require any additional requirements. All of the other <I> releases have been yanked. So, it's safe for us to unpin it.
py
diff --git a/virtualchain/lib/blockchain/bitcoin_blockchain/multisig.py b/virtualchain/lib/blockchain/bitcoin_blockchain/multisig.py index <HASH>..<HASH> 100644 --- a/virtualchain/lib/blockchain/bitcoin_blockchain/multisig.py +++ b/virtualchain/lib/blockchain/bitcoin_blockchain/multisig.py @@ -196,7 +196,7 @@ def make_...
this bug prevents multi-sig segwit wallets from initializing properly
py
diff --git a/tests/integration/runners/test_runner_returns.py b/tests/integration/runners/test_runner_returns.py index <HASH>..<HASH> 100644 --- a/tests/integration/runners/test_runner_returns.py +++ b/tests/integration/runners/test_runner_returns.py @@ -1,8 +1,6 @@ -# -*- coding: utf-8 -*- """ Tests for runner_retur...
Drop Py2 and six on tests/integration/runners/test_runner_returns.py
py
diff --git a/src/feat/models/model.py b/src/feat/models/model.py index <HASH>..<HASH> 100644 --- a/src/feat/models/model.py +++ b/src/feat/models/model.py @@ -353,6 +353,11 @@ def _annotate(name, *args, **kwargs): ### Registry ### +def delete_model(identity): + global _model_factories + del(_model_factories[...
Expose method to delete model by it's identity. This is usefull for overriding the gateway models in subproject to provide extra functionality.
py
diff --git a/pysnmp/carrier/asyncore/dispatch.py b/pysnmp/carrier/asyncore/dispatch.py index <HASH>..<HASH> 100644 --- a/pysnmp/carrier/asyncore/dispatch.py +++ b/pysnmp/carrier/asyncore/dispatch.py @@ -34,6 +34,8 @@ class AsynsockDispatcher(AbstractTransportDispatcher): try: loop(timeout ...
raise KeyboardInterrupt for backward compatibility
py
diff --git a/HydraServer/python/HydraServer/soap_server/users.py b/HydraServer/python/HydraServer/soap_server/users.py index <HASH>..<HASH> 100644 --- a/HydraServer/python/HydraServer/soap_server/users.py +++ b/HydraServer/python/HydraServer/soap_server/users.py @@ -18,9 +18,7 @@ from spyne.model.complex import Array a...
Remove unused imports from users.py
py
diff --git a/rockfinder/__version__.py b/rockfinder/__version__.py index <HASH>..<HASH> 100644 --- a/rockfinder/__version__.py +++ b/rockfinder/__version__.py @@ -1 +1 @@ -__version__ = '0.3.0' +__version__ = '0.4.0'
added custom astorb path setting to orbfit ephemeris generation
py
diff --git a/iapws/__init__.py b/iapws/__init__.py index <HASH>..<HASH> 100644 --- a/iapws/__init__.py +++ b/iapws/__init__.py @@ -70,10 +70,10 @@ __doi__ = { "Ih", "ref": "2009", "doi": ""}, - "R11-07": + "R11-19": {"autor": "IAPWS", "title": "Release on ...
Upgrade reference for Ionization Constant, the revised release don't change nothing of release
py
diff --git a/django_plotly_dash/views.py b/django_plotly_dash/views.py index <HASH>..<HASH> 100644 --- a/django_plotly_dash/views.py +++ b/django_plotly_dash/views.py @@ -40,9 +40,12 @@ def update(request, id, stateless=False, **kwargs): resp = mFunc() else: # Use direct dispatch with extra a...
Added session state to main callback
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -13,7 +13,7 @@ setup( name='django-constance', version='0.1', url="http://bitbucket.org/comoga/django-constance", - description='Django live settings stored in redis', + description='Django live settings w...
Updated description to mention constance supports multiple backends.
py
diff --git a/pysnmp/entity/rfc3413/cmdgen.py b/pysnmp/entity/rfc3413/cmdgen.py index <HASH>..<HASH> 100644 --- a/pysnmp/entity/rfc3413/cmdgen.py +++ b/pysnmp/entity/rfc3413/cmdgen.py @@ -258,6 +258,9 @@ class CommandGenerator: return sendRequestHandle +# backward compatibility stub +CommandGeneratorBase = ...
CommandGeneratorBase symbol added for compatibility
py
diff --git a/bigquery/google/cloud/bigquery/table.py b/bigquery/google/cloud/bigquery/table.py index <HASH>..<HASH> 100644 --- a/bigquery/google/cloud/bigquery/table.py +++ b/bigquery/google/cloud/bigquery/table.py @@ -1382,7 +1382,7 @@ class RowIterator(HTTPIterator): def to_dataframe(self, bqstorage_client=Non...
Fix lint. (#<I>) W<I> blank line contains whitespace.
py
diff --git a/src/python/dxpy/__init__.py b/src/python/dxpy/__init__.py index <HASH>..<HASH> 100644 --- a/src/python/dxpy/__init__.py +++ b/src/python/dxpy/__init__.py @@ -258,7 +258,7 @@ def DXHTTPRequest(resource, data, method='POST', headers={}, auth=True, timeout= response = requests.request(method, url...
Don't print the upgrade notification message when tab-completing
py
diff --git a/coursera/coursera_dl.py b/coursera/coursera_dl.py index <HASH>..<HASH> 100755 --- a/coursera/coursera_dl.py +++ b/coursera/coursera_dl.py @@ -408,7 +408,7 @@ def clean_filename(s): """ # strip paren portions which contain trailing time length (...) - s = re.sub("\([^\(]*$", '', s) + s = r...
Use raw strings for regular expressions.
py
diff --git a/peeweedbevolve.py b/peeweedbevolve.py index <HASH>..<HASH> 100644 --- a/peeweedbevolve.py +++ b/peeweedbevolve.py @@ -392,6 +392,7 @@ def are_data_types_equal(db, type_a, type_b): if type_a == type_b: return True type_a, type_b = sorted([type_a, type_b]) if is_mysql(db) and type_a=='bool' and type...
On mysql, a BinaryUUIDField is stored as varbinary
py
diff --git a/featureflow/objectstore.py b/featureflow/objectstore.py index <HASH>..<HASH> 100644 --- a/featureflow/objectstore.py +++ b/featureflow/objectstore.py @@ -135,7 +135,7 @@ class ObjectStoreDatabase(Database): if resp.status_code == httplib.NOT_FOUND: raise KeyError(key) - retur...
Update object storage read stream to read all at once, and return a BytesIO instance
py
diff --git a/tests/test_video.py b/tests/test_video.py index <HASH>..<HASH> 100644 --- a/tests/test_video.py +++ b/tests/test_video.py @@ -691,6 +691,7 @@ def test_video_exists_accessible(movie, episode): def test_video_optimize(movie, plex): plex.optimizedItems(removeAll=True) movie.optimize(targetTagID=1) ...
pausing conversion after creation to ensure job doesn't complete.
py
diff --git a/salt/beacons/inotify.py b/salt/beacons/inotify.py index <HASH>..<HASH> 100644 --- a/salt/beacons/inotify.py +++ b/salt/beacons/inotify.py @@ -94,7 +94,7 @@ def validate(config): 'unmount' ] - # Configuration for diskusage beacon should be a list of dicts + # Configuration for inotify ...
Fix typo It looks like these docs weren't updated after being copy-pasted from diskusage beacon.
py
diff --git a/ags_publishing_tools/api.py b/ags_publishing_tools/api.py index <HASH>..<HASH> 100644 --- a/ags_publishing_tools/api.py +++ b/ags_publishing_tools/api.py @@ -40,11 +40,7 @@ class Api: def _request(self, url, params, method): encoded_params = urllib.urlencode(json.loads(json.dumps(params))) ...
Refactoring request method BPFG-<I>
py
diff --git a/quilt/tools/build.py b/quilt/tools/build.py index <HASH>..<HASH> 100644 --- a/quilt/tools/build.py +++ b/quilt/tools/build.py @@ -54,12 +54,10 @@ def _build_node(build_dir, package, name, node, format, target='pandas'): (transform, rel_path, target)) else: # g...
less scary message for packages with lots of fragments like dogscats (#<I>) * less scary message for packages with lotsof messages like dogscats * unstupid my own code * no, really
py
diff --git a/codenerix/debug.py b/codenerix/debug.py index <HASH>..<HASH> 100755 --- a/codenerix/debug.py +++ b/codenerix/debug.py @@ -82,7 +82,7 @@ def autourl(URLPATTERNS, DEBUG, ROSETTA, ADMINSITE, SPAGHETTI): def codenerix_statics(DEBUG, STATIC_URL="/static/"): # Backward compatibility for older configurati...
Repaired bug in codenerix_static
py
diff --git a/wptools/fetch.py b/wptools/fetch.py index <HASH>..<HASH> 100644 --- a/wptools/fetch.py +++ b/wptools/fetch.py @@ -63,6 +63,7 @@ class WPToolsFetch(object): "&ids=${ids}" "&languages=${lang}" "&props=${props}" + "&redirects=yes" "&sites=${site}"...
added &redirects=yes to wikidata query in fetch
py
diff --git a/plenum/server/plugin/stats_consumer/stats_publisher.py b/plenum/server/plugin/stats_consumer/stats_publisher.py index <HASH>..<HASH> 100644 --- a/plenum/server/plugin/stats_consumer/stats_publisher.py +++ b/plenum/server/plugin/stats_consumer/stats_publisher.py @@ -40,7 +40,7 @@ class StatsPublisher: ...
a possible fix for assertation eror
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -1,5 +1,8 @@ from distutils.core import setup +with open('README.txt') as readme: + long_description = readme.read() + setup( name='Gooey', version='0.1.0', @@ -16,5 +19,5 @@ setup( url='http://pypi.python...
Ensure file handle is closed using with statement
py
diff --git a/faker/providers/internet/__init__.py b/faker/providers/internet/__init__.py index <HASH>..<HASH> 100644 --- a/faker/providers/internet/__init__.py +++ b/faker/providers/internet/__init__.py @@ -116,14 +116,11 @@ class Provider(BaseProvider): 'https://www.lorempixel.com/{width}/{height}', ...
Remove potentially untasteful image sites.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -1,4 +1,4 @@ -from distutils.core import setup +from setuptools import setup import os from appkit import __version__ @@ -13,7 +13,7 @@ requires = ['flask', ] requires.append('beautifulsoup4') # v0_2_4 backward compatibi...
OS X / nameconflict compatibility AppKit is already by the package pyobjc-framework-Cocoa. And PEP8 recommends lowercase package names anyway
py
diff --git a/tests/test_dbkit.py b/tests/test_dbkit.py index <HASH>..<HASH> 100644 --- a/tests/test_dbkit.py +++ b/tests/test_dbkit.py @@ -1,3 +1,4 @@ +from contextlib import closing import sqlite3 import types @@ -45,12 +46,16 @@ def test_bad_connect(): pass def test_context(): - ctx = dbkit.connect...
Ensure it works with the closing context manager properly.
py
diff --git a/sentry_sdk/integrations/asgi.py b/sentry_sdk/integrations/asgi.py index <HASH>..<HASH> 100644 --- a/sentry_sdk/integrations/asgi.py +++ b/sentry_sdk/integrations/asgi.py @@ -68,8 +68,14 @@ class SentryAsgiMiddleware: ) sentry_scope.add_event_processor(processor) ...
fix: Do not attempt to access headers for all asgi requests (#<I>) * fix: Do not attempt to access headers for all asgi requests * fix: Fix NameError
py
diff --git a/src/amcrest/network.py b/src/amcrest/network.py index <HASH>..<HASH> 100644 --- a/src/amcrest/network.py +++ b/src/amcrest/network.py @@ -104,17 +104,14 @@ class Network: return self.amcrest_ips - def __get_config(self, config_name): + @property + def network_config(self): re...
network: simplify removing __get_config No need to wrapper, it's too simple already
py
diff --git a/spikeextractors/tests/test_extractors.py b/spikeextractors/tests/test_extractors.py index <HASH>..<HASH> 100644 --- a/spikeextractors/tests/test_extractors.py +++ b/spikeextractors/tests/test_extractors.py @@ -449,6 +449,10 @@ class TestExtractors(unittest.TestCase): initial_dat_file = "{}/{}.dat"...
trying to elucidate issue with number of frames in NRE
py
diff --git a/safe/impact_functions/inundation/tsunami_population_evacuation_raster_hazard.py b/safe/impact_functions/inundation/tsunami_population_evacuation_raster_hazard.py index <HASH>..<HASH> 100644 --- a/safe/impact_functions/inundation/tsunami_population_evacuation_raster_hazard.py +++ b/safe/impact_functions/inu...
Fix rounding issue on tsunami on people IF #<I>
py
diff --git a/pipenv/cli.py b/pipenv/cli.py index <HASH>..<HASH> 100644 --- a/pipenv/cli.py +++ b/pipenv/cli.py @@ -992,18 +992,18 @@ def run(command, args, three=None, python=False): command_path = which(command) - try: - c = os.execl(command_path, command_path, *args) - except FileNotFoundError: ...
Use subprocess on Windows os.execl has strange behavior on Windows.
py
diff --git a/plenum/server/monitor.py b/plenum/server/monitor.py index <HASH>..<HASH> 100644 --- a/plenum/server/monitor.py +++ b/plenum/server/monitor.py @@ -265,9 +265,6 @@ class Monitor(HasActionQueue, PluginLoaderHelper): """ avgLatM = self.getAvgLatency(self.instances.masterId) avgLatB =...
make monitor print latencies only when isMasterAvgReqLatencyTooHigh going to return True
py
diff --git a/pyqode/python/frontend/code_edit.py b/pyqode/python/frontend/code_edit.py index <HASH>..<HASH> 100644 --- a/pyqode/python/frontend/code_edit.py +++ b/pyqode/python/frontend/code_edit.py @@ -160,8 +160,8 @@ def set_white_color_scheme(code_edit): """ highlighter = frontend.get_mode(code_edit, pymod...
Fix set_white_color_scheme wrong background and foreground colors were used
py
diff --git a/test/test_client.py b/test/test_client.py index <HASH>..<HASH> 100644 --- a/test/test_client.py +++ b/test/test_client.py @@ -512,6 +512,15 @@ class TestClient(unittest.TestCase, TestRequestMixin): self.assertRaises(ConnectionFailure, get_x_timeout, no_timeout.pymongo_te...
PYTHON-<I> add tests for waitQueueTimeoutMS and waitQueueMultiple
py