diff
stringlengths
139
3.65k
message
stringlengths
8
627
diff_languages
stringclasses
1 value
diff --git a/src/scs_core/data/message_queue.py b/src/scs_core/data/message_queue.py index <HASH>..<HASH> 100644 --- a/src/scs_core/data/message_queue.py +++ b/src/scs_core/data/message_queue.py @@ -80,7 +80,7 @@ class MessageQueue(SynchronisedProcess): try: with self._lock: self....
Fixed an atomicity problem in SynchronisedProcess implementations.
py
diff --git a/lattice/data.py b/lattice/data.py index <HASH>..<HASH> 100644 --- a/lattice/data.py +++ b/lattice/data.py @@ -33,8 +33,8 @@ def request_from_cryptocompare(): } result = requests.get(url=url, params=params) data = result.json()['Data'] - df = pd.DataFrame.from_records(data,...
[hot-fix] fix key from cryptocompare
py
diff --git a/test/test_api/test_parsers/test_pic.py b/test/test_api/test_parsers/test_pic.py index <HASH>..<HASH> 100644 --- a/test/test_api/test_parsers/test_pic.py +++ b/test/test_api/test_parsers/test_pic.py @@ -71,3 +71,19 @@ def test_advanced(): assert len(infos) == len(results) for info, result in zip(i...
Add a test for missing part of field names See OpenCobolIDE/OpenCobolIDE#<I>
py
diff --git a/aiogram/bot.py b/aiogram/bot.py index <HASH>..<HASH> 100644 --- a/aiogram/bot.py +++ b/aiogram/bot.py @@ -41,6 +41,9 @@ class AIOGramBot: setattr(self, '_me', await self.get_me()) return getattr(self, '_me') + async def request(self, method, data=None): + return await api....
Make more easy API request from bot object.
py
diff --git a/rt.py b/rt.py index <HASH>..<HASH> 100644 --- a/rt.py +++ b/rt.py @@ -60,7 +60,7 @@ class Rt: expected as input for string values. """ - def __init__(self, url, default_login=None, default_password=None): + def __init__(self, url, default_login=None, default_password=None, proxy...
Proxy support This commit closes #<I>
py
diff --git a/pendulum/tz/local_timezone.py b/pendulum/tz/local_timezone.py index <HASH>..<HASH> 100644 --- a/pendulum/tz/local_timezone.py +++ b/pendulum/tz/local_timezone.py @@ -141,11 +141,11 @@ class LocalTimezone(object): if not os.path.exists(tzpath): continue - with open...
Fix double file opening. (#<I>) This fixes call to pendulum.now() (without arguments) which raised TypeError.
py
diff --git a/tests/test_datetimes.py b/tests/test_datetimes.py index <HASH>..<HASH> 100644 --- a/tests/test_datetimes.py +++ b/tests/test_datetimes.py @@ -11,6 +11,7 @@ def test_simple_api(): assert datetime.datetime.now().today() == datetime.date(2012, 01, 14) freezer.stop() assert datetime.datetime.now...
back to <I>% test coverage
py
diff --git a/neurom/view/view.py b/neurom/view/view.py index <HASH>..<HASH> 100644 --- a/neurom/view/view.py +++ b/neurom/view/view.py @@ -354,9 +354,6 @@ def neuron(nrn, plane='xy', new_fig=True, subplot=False, **kwargs): if plane not in ('xy', 'yx', 'xz', 'zx', 'yz', 'zy'): return None, 'No such plane f...
Fix bug in viewers to correctly read options
py
diff --git a/allegedb/allegedb/__init__.py b/allegedb/allegedb/__init__.py index <HASH>..<HASH> 100644 --- a/allegedb/allegedb/__init__.py +++ b/allegedb/allegedb/__init__.py @@ -50,11 +50,13 @@ class ORM(object): self.query.active_branches = self._active_branches self._graph_objs = {} - def _ini...
Make sure the branch history gets loaded before anything else
py
diff --git a/tests/daemon_uid_gid.py b/tests/daemon_uid_gid.py index <HASH>..<HASH> 100644 --- a/tests/daemon_uid_gid.py +++ b/tests/daemon_uid_gid.py @@ -17,5 +17,7 @@ def main(): f.write(" ".join(map(str, uids + gids))) -daemon = Daemonize(app="test_app", pid=pid, action=main, user="nobody", group="nobod...
Support debian based distributives in tests
py
diff --git a/cytomine/models/model.py b/cytomine/models/model.py index <HASH>..<HASH> 100755 --- a/cytomine/models/model.py +++ b/cytomine/models/model.py @@ -50,8 +50,10 @@ class Model(object): return Cytomine.get_instance().get_model(self, self.query_parameters) def save(self): - self.id = None...
save() falls back on update() if the model has an ID. (#5) (cherry picked from commit df<I>a7cd3a<I>f<I>bd4ea<I>c8d<I>e8b6cb<I>)
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -24,12 +24,12 @@ setup( author_email='git@marcbrinkmann.de', description='Transparent server-side session support for flask', long_description=read('README.rst'), - packages=['flaskext', 'tests', 'itsdangerou...
Fixed error in setup.py where itsdangerous dependency was accidentally put in as a package.
py
diff --git a/testproj/tests.py b/testproj/tests.py index <HASH>..<HASH> 100644 --- a/testproj/tests.py +++ b/testproj/tests.py @@ -26,6 +26,10 @@ class CountryTranslatedSerializerTestCase(TestCase): self.instance.url = "http://es.wikipedia.org/wiki/Spain" self.instance.save() + def tearDown(self)...
tests: Fix tests by doing proper tearDown Parler caches the translations and that makes some of the tests fail when they are ran after each other. Make sure that cache is cleaned by deleting our instance in the tearDown method. This works, because Parler cleans the caches in the delete method.
py
diff --git a/src/pyrocore/torrent/watch.py b/src/pyrocore/torrent/watch.py index <HASH>..<HASH> 100644 --- a/src/pyrocore/torrent/watch.py +++ b/src/pyrocore/torrent/watch.py @@ -147,7 +147,7 @@ class MetafileHandler(object): # TODO: Scrub metafile if requested # Determine target state - ...
use explict load_start, d.start= as a load cmd doesn't seem to work
py
diff --git a/green/test/test_cmdline.py b/green/test/test_cmdline.py index <HASH>..<HASH> 100644 --- a/green/test/test_cmdline.py +++ b/green/test/test_cmdline.py @@ -2,6 +2,7 @@ from __future__ import unicode_literals import logging import os import shutil +import sys import tempfile import unittest @@ -45,9 +4...
Attempt to fix the <I> importing problem that happens in the cmdline test
py
diff --git a/src/foremast/__main__.py b/src/foremast/__main__.py index <HASH>..<HASH> 100644 --- a/src/foremast/__main__.py +++ b/src/foremast/__main__.py @@ -8,6 +8,12 @@ from .consts import LOGGING_FORMAT LOG = logging.getLogger(__name__) +def add_infra(subparsers): + """Infrastructure subcommands.""" + in...
feat: Add infra subcommand
py
diff --git a/marshmallow/fields.py b/marshmallow/fields.py index <HASH>..<HASH> 100644 --- a/marshmallow/fields.py +++ b/marshmallow/fields.py @@ -462,7 +462,7 @@ class Nested(Field): try: return schema.dump(nested_obj, many=self.many) except ValidationError as exc: - raise Val...
Don't pass data to ValidationError in Nested._serialize and Nested._load
py
diff --git a/salt/pillar/git_pillar.py b/salt/pillar/git_pillar.py index <HASH>..<HASH> 100644 --- a/salt/pillar/git_pillar.py +++ b/salt/pillar/git_pillar.py @@ -92,7 +92,7 @@ class GitPillar(object): self.br = branch self.rp_location = repo_location self.opts = opts - self.envs = set...
Rename internal `envs` in order not to hide the method.
py
diff --git a/tensorflow_datasets/core/features/sequence_feature.py b/tensorflow_datasets/core/features/sequence_feature.py index <HASH>..<HASH> 100644 --- a/tensorflow_datasets/core/features/sequence_feature.py +++ b/tensorflow_datasets/core/features/sequence_feature.py @@ -194,9 +194,9 @@ class Sequence(top_level_feat...
Add __repr__ method to Sequence.
py
diff --git a/kafka/coordinator/base.py b/kafka/coordinator/base.py index <HASH>..<HASH> 100644 --- a/kafka/coordinator/base.py +++ b/kafka/coordinator/base.py @@ -206,7 +206,8 @@ class BaseCoordinator(object): # it as the "coordinator" if self.config['api_version'] < (0, 8, 2): ...
For <I>, only attempt connection to coordinator if least_loaded_node succeeds
py
diff --git a/datarum/converter.py b/datarum/converter.py index <HASH>..<HASH> 100644 --- a/datarum/converter.py +++ b/datarum/converter.py @@ -14,6 +14,8 @@ def from_date(date): raise ValueError('The calendar begins at 1792-09-22. ' 'You cannot convert a date earlier than this.') + ...
Remove the time from the submitted date in from_date
py
diff --git a/collections_extended/range_map.py b/collections_extended/range_map.py index <HASH>..<HASH> 100644 --- a/collections_extended/range_map.py +++ b/collections_extended/range_map.py @@ -302,10 +302,15 @@ class RangeMap(Mapping): None if RangeMap is empty or unbounded to the left. """ - try: - return...
Fix bugs for start and end on unbounded RangeMaps
py
diff --git a/autotest/mc_tests.py b/autotest/mc_tests.py index <HASH>..<HASH> 100644 --- a/autotest/mc_tests.py +++ b/autotest/mc_tests.py @@ -131,7 +131,7 @@ def from_dataframe_test(): pstc = Pst(pst) par = pstc.parameter_data - par.sort_values(by=parnme,ascending=False,inplace=True) + par.sort_value...
bug fix in mc_test
py
diff --git a/gitlab_tests/test_v91/test_tags.py b/gitlab_tests/test_v91/test_tags.py index <HASH>..<HASH> 100644 --- a/gitlab_tests/test_v91/test_tags.py +++ b/gitlab_tests/test_v91/test_tags.py @@ -1,6 +1,6 @@ import responses +from requests.exceptions import HTTPError -from gitlab.exceptions import HttpError from...
tests: Update Tags cases for new behaviour See also: #<I>
py
diff --git a/datajoint/declare.py b/datajoint/declare.py index <HASH>..<HASH> 100644 --- a/datajoint/declare.py +++ b/datajoint/declare.py @@ -272,7 +272,7 @@ def compile_attribute(line, in_key, foreign_key_sql): match = {k: v.strip() for k, v in match.items()} match['nullable'] = match['default'].lower() == ...
minor optimization in `acceptable_datatype_pattern` in declare
py
diff --git a/globus_cli/commands/logout.py b/globus_cli/commands/logout.py index <HASH>..<HASH> 100644 --- a/globus_cli/commands/logout.py +++ b/globus_cli/commands/logout.py @@ -54,7 +54,7 @@ def logout_command(yes): click.get_current_context().exit(1) # prompt - _confirm("Are you sure you'd lik...
Make logout language stylistically consistent We don't got no contractions in this here formal english.
py
diff --git a/pykechain/client.py b/pykechain/client.py index <HASH>..<HASH> 100644 --- a/pykechain/client.py +++ b/pykechain/client.py @@ -1553,7 +1553,7 @@ class Client(object): raise APIError("Could not create Parts. ({})".format(response.status_code), response=response) part_ids = response.js...
update pykechain to use the correct retrieval of parts based on part-ids
py
diff --git a/resync/client.py b/resync/client.py index <HASH>..<HASH> 100644 --- a/resync/client.py +++ b/resync/client.py @@ -2,10 +2,8 @@ import sys try: # python3 - from urllib.request import urlretrieve from urllib.parse import urlsplit, urlunsplit, urljoin except ImportError: # python2 - from url...
fetch resources with 'requests' instead of 'urllib.request'
py
diff --git a/girder/utility/server.py b/girder/utility/server.py index <HASH>..<HASH> 100644 --- a/girder/utility/server.py +++ b/girder/utility/server.py @@ -24,8 +24,7 @@ import os import six import girder.events -from girder import constants, logprint -from girder.api.describe import API_VERSION +from girder imp...
Fix version used in Server header API_VERSION may be None in some Girder environments.
py
diff --git a/openquake/hazardlib/gsim/mgmpe/nrcan15_site_term.py b/openquake/hazardlib/gsim/mgmpe/nrcan15_site_term.py index <HASH>..<HASH> 100644 --- a/openquake/hazardlib/gsim/mgmpe/nrcan15_site_term.py +++ b/openquake/hazardlib/gsim/mgmpe/nrcan15_site_term.py @@ -173,7 +173,7 @@ class NRCan15SiteTerm(GMPE): ...
Vectorized nrcan<I>_site_term
py
diff --git a/pyontutils/neurons.py b/pyontutils/neurons.py index <HASH>..<HASH> 100755 --- a/pyontutils/neurons.py +++ b/pyontutils/neurons.py @@ -1394,7 +1394,7 @@ def main(): # from insertion into the graph... maybe we could enable this, but it definitely seems # to break a number of nice features... and we...
neurons fixed bad reference to ontology local repo
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -262,6 +262,10 @@ class BuildExtCommand(build_ext): else: exclusions.append('yara/libyara/modules/macho/macho.c') + # exclude pb_tests module + exclusions.append('yara/libyara/modules/pb_tests/pb_te...
Don't build pb_tests module.
py
diff --git a/alot/widgets.py b/alot/widgets.py index <HASH>..<HASH> 100644 --- a/alot/widgets.py +++ b/alot/widgets.py @@ -472,9 +472,14 @@ class MessageWidget(urwid.WidgetWrap): lines = [] for key in self._displayed_headers: if key in mail: - for value in mail.get_all(key)...
display multiple to/cc/bcc values in a single line this merges multiple headers of the same key into a single key/value pair for display in the Message widgets issue #<I>
py
diff --git a/vyper/opcodes.py b/vyper/opcodes.py index <HASH>..<HASH> 100644 --- a/vyper/opcodes.py +++ b/vyper/opcodes.py @@ -30,7 +30,7 @@ OPCODES: Dict[str, List[Optional[int]]] = { 'BYTE': [0x1a, 2, 1, 3], 'SHA3': [0x20, 2, 1, 30], 'ADDRESS': [0x30, 0, 1, 2], - 'BALANCE': [0x31, 1, 1, 400], + '...
refactor: Changed opcode costs per EIP-<I> (#<I>) * refactor: Changed opcode costs per EIP-<I>
py
diff --git a/pysat/tests/test_utils_io.py b/pysat/tests/test_utils_io.py index <HASH>..<HASH> 100644 --- a/pysat/tests/test_utils_io.py +++ b/pysat/tests/test_utils_io.py @@ -222,10 +222,6 @@ class TestLoadNetCDF(object): var, attr, repr(ival), repr(netc...
STY: test cleanup Removed unnecessary close statements and added more comments explaining why a normally forbidden bare try/except statement is used.
py
diff --git a/auto_ml/utils_models.py b/auto_ml/utils_models.py index <HASH>..<HASH> 100644 --- a/auto_ml/utils_models.py +++ b/auto_ml/utils_models.py @@ -80,8 +80,8 @@ def get_model_from_name(model_name, training_params=None): 'AdaBoostRegressor': {'n_estimators': 10}, 'XGBRegressor': {'nthread':-1, ...
turns down learning_rate, and bumps up n_estimators, to support early_stopping finding the best possible num_iteration
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -20,7 +20,7 @@ def check_setuptools(): check_setuptools() setup(name='instana', - version='1.1.1', + version='1.1.2', download_url='https://github.com/instana/python-sensor', url='https://www.instan...
Bump package version to <I>
py
diff --git a/pyannotate_runtime/collect_types.py b/pyannotate_runtime/collect_types.py index <HASH>..<HASH> 100644 --- a/pyannotate_runtime/collect_types.py +++ b/pyannotate_runtime/collect_types.py @@ -397,10 +397,16 @@ def get_function_name_from_frame(frame): if varname == 'self': inst = frame.f...
Use try/except instead of getattr(inst.__class__, ..., None) in a few places Apparently with Mock objects, the 3-arg getattr() call may still raise AttributeError. This fixes #<I>.
py
diff --git a/lattice/wallet.py b/lattice/wallet.py index <HASH>..<HASH> 100644 --- a/lattice/wallet.py +++ b/lattice/wallet.py @@ -86,6 +86,7 @@ class Wallet(secp256k1): super().__init__() self.private_key = self.generate_private_key() self.public_key = self.generate_public_key() + sel...
[in-progress] add method to generate address from pubkey
py
diff --git a/examples/intervalSaveWeights/init.py b/examples/intervalSaveWeights/init.py index <HASH>..<HASH> 100644 --- a/examples/intervalSaveWeights/init.py +++ b/examples/intervalSaveWeights/init.py @@ -20,7 +20,7 @@ import os ### This is an example function run at an interval during the simulation ### This funct...
updated examples/intervalSaveWeights to work with improved runSimWithIntervalFunc
py
diff --git a/tests/core/providers/test_ipc_provider.py b/tests/core/providers/test_ipc_provider.py index <HASH>..<HASH> 100644 --- a/tests/core/providers/test_ipc_provider.py +++ b/tests/core/providers/test_ipc_provider.py @@ -39,6 +39,12 @@ def test_ipc_no_path(): assert ipc.isConnected() is False +def test_i...
Added test for tilda in provider ipc path
py
diff --git a/ryu/ofproto/ofproto_v1_4_parser.py b/ryu/ofproto/ofproto_v1_4_parser.py index <HASH>..<HASH> 100644 --- a/ryu/ofproto/ofproto_v1_4_parser.py +++ b/ryu/ofproto/ofproto_v1_4_parser.py @@ -2324,6 +2324,24 @@ class OFPActionSetQueue(OFPAction): offset, self.type, self.len, self.queue_id)...
Add OF<I> DecMplsTtl action support
py
diff --git a/openhtf/io/output/mfg_inspector.py b/openhtf/io/output/mfg_inspector.py index <HASH>..<HASH> 100644 --- a/openhtf/io/output/mfg_inspector.py +++ b/openhtf/io/output/mfg_inspector.py @@ -199,7 +199,7 @@ def _MangleMeasurement(name, value, measurement, mangled_parameters, for validator in measurement.va...
Skip non-supported units in mfg_inspector (#<I>)
py
diff --git a/pycbc/filter/matchedfilter.py b/pycbc/filter/matchedfilter.py index <HASH>..<HASH> 100644 --- a/pycbc/filter/matchedfilter.py +++ b/pycbc/filter/matchedfilter.py @@ -474,7 +474,11 @@ def compute_max_snr_over_sky_loc_stat(hplus, hcross, hphccorr, out=No...
Update matchedfilter.py (#<I>) * Update matchedfilter.py Improve documentation as highlighted in #<I> and #<I> * Fix CC
py
diff --git a/stix2patterns/validator.py b/stix2patterns/validator.py index <HASH>..<HASH> 100644 --- a/stix2patterns/validator.py +++ b/stix2patterns/validator.py @@ -70,8 +70,8 @@ def run_validator(pattern): # replace with easier-to-understand error message if not (start[0] == '[' or start == '(['): - ...
Use 'list.insert' method when pushing validation error at the top of the error stack aim to prevent 'IndexError: list assignment index out of range' when inserting error at the top of an empty error stack
py
diff --git a/dipper/utils/GraphUtils.py b/dipper/utils/GraphUtils.py index <HASH>..<HASH> 100644 --- a/dipper/utils/GraphUtils.py +++ b/dipper/utils/GraphUtils.py @@ -52,7 +52,7 @@ class GraphUtils: 'part_of': 'BFO:0000050', 'has_part': 'BFO:0000051', 'mentions': 'IAO:0000142', - 'mode...
change model_of to RO ter; add has_origin and has_author relationships
py
diff --git a/librosa/feature/spectral.py b/librosa/feature/spectral.py index <HASH>..<HASH> 100644 --- a/librosa/feature/spectral.py +++ b/librosa/feature/spectral.py @@ -694,7 +694,7 @@ def rms(y=None, S=None, frame_length=2048, hop_length=512, return np.sqrt(np.mean(np.abs(x)**2, axis=0, keepdims=True)) -rms...
changed feature name in moved(), failed in integration test?
py
diff --git a/thinc/tests/mypy/test_mypy.py b/thinc/tests/mypy/test_mypy.py index <HASH>..<HASH> 100644 --- a/thinc/tests/mypy/test_mypy.py +++ b/thinc/tests/mypy/test_mypy.py @@ -2,6 +2,7 @@ import os import re from pathlib import Path import shutil +import site import pytest @@ -19,9 +20,14 @@ cases = [ @...
:green_heart: Use site (site-packages) to detect how to run mypy tests
py
diff --git a/gridmap/job.py b/gridmap/job.py index <HASH>..<HASH> 100644 --- a/gridmap/job.py +++ b/gridmap/job.py @@ -277,7 +277,7 @@ def _append_job_to_session(session, job, uniq_id, job_num, temp_dir='/scratch/', jt.jobEnvironment = shell_env # Run module using python -m to avoid ImportErrors when un...
Switched to using sys.executable for remoteCommand to prevent conflicts when people have weird path setups.
py
diff --git a/pyemma/thermo/api.py b/pyemma/thermo/api.py index <HASH>..<HASH> 100644 --- a/pyemma/thermo/api.py +++ b/pyemma/thermo/api.py @@ -28,7 +28,7 @@ __maintainer__ = "Christoph Wehmeyer" __email__ = "christoph.wehmeyer@fu-berlin.de" __all__ = [ - 'umbrella_sampling_estimation', + 'umbrella_sampling', ...
[thermo] renaming umbrella_sampling_estimation to unmbrella_sampling
py
diff --git a/pmagpy/ipmag.py b/pmagpy/ipmag.py index <HASH>..<HASH> 100755 --- a/pmagpy/ipmag.py +++ b/pmagpy/ipmag.py @@ -3575,6 +3575,7 @@ is the percent cooling rate factor to apply to specimens from this sample, DA-CR if 'participants' in OrRec.keys() and OrRec['participants']!="" and OrRec['participants']...
prevent "participantlist" header from being written in orientation_magic
py
diff --git a/google/auth/_default.py b/google/auth/_default.py index <HASH>..<HASH> 100644 --- a/google/auth/_default.py +++ b/google/auth/_default.py @@ -41,7 +41,7 @@ _HELP_MESSAGE = """\ Could not automatically determine credentials. Please set {env} or \ explicitly create credentials and re-run the application. F...
Remove punctuation which becomes part of the url (#<I>) In colab and likely other applications, the period is incorrectly bound into the url, which is then invalid and produces a <I> DefaultCredentialsError: Could not automatically determine credentials. Please set GOOGLE_APPLICATION_CREDENTIALS or explicitly crea...
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -11,7 +11,7 @@ except ImportError: setup( name='caliendo', - version='v0.0.12', + version='v0.0.13', packages=find_packages(), author='Andrew Kelleher', author_email='andrew.kelleher@buzzfeed.com',
Increments version in setup.py
py
diff --git a/octodns/provider/base.py b/octodns/provider/base.py index <HASH>..<HASH> 100644 --- a/octodns/provider/base.py +++ b/octodns/provider/base.py @@ -53,15 +53,13 @@ class BaseProvider(BaseSource): for record in desired.records: if record._type not in self.SUPPORTS: - msg...
f-strings for BaseProvider supports update
py
diff --git a/builder/vr/builder/build.py b/builder/vr/builder/build.py index <HASH>..<HASH> 100644 --- a/builder/vr/builder/build.py +++ b/builder/vr/builder/build.py @@ -23,12 +23,7 @@ def cmd_build(build_data, runner_cmd='run', make_tarball=True): outfolder = os.getcwd() - # As long as we're sometimes usi...
tweaks to better support image-backed containers
py
diff --git a/mapillary_tools/process_csv.py b/mapillary_tools/process_csv.py index <HASH>..<HASH> 100644 --- a/mapillary_tools/process_csv.py +++ b/mapillary_tools/process_csv.py @@ -48,7 +48,7 @@ def validate_meta_data(meta_columns, meta_names, meta_types): return meta_columns, meta_names, meta_types -def con...
fix: convert from gps time
py
diff --git a/telethon/extensions/tcpclient.py b/telethon/extensions/tcpclient.py index <HASH>..<HASH> 100644 --- a/telethon/extensions/tcpclient.py +++ b/telethon/extensions/tcpclient.py @@ -92,14 +92,18 @@ class TcpClient: try: if self._socket is None: self._socket = self._create...
Wrap socket with SSL after connecting See <URL>
py
diff --git a/holoviews/selection.py b/holoviews/selection.py index <HASH>..<HASH> 100644 --- a/holoviews/selection.py +++ b/holoviews/selection.py @@ -325,22 +325,26 @@ class link_selections(_base_link_selections): self._datasets.append((pipe, data, raw)) return pipe.param.data - def filter(self,...
Allow passing custom selection_expr to linked selections filter (#<I>)
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -1,5 +1,16 @@ +import os from setuptools import setup, find_packages +on_rtd = os.environ.get('READTHEDOCS') == 'True' + + +def rtd_dependent_deps(): + # RTD tries to build z3, ooms, and fails to build. + if on_rtd: +...
Trick rtd into thinking we don't need z3 (#<I>)
py
diff --git a/pandas/io/common.py b/pandas/io/common.py index <HASH>..<HASH> 100644 --- a/pandas/io/common.py +++ b/pandas/io/common.py @@ -247,6 +247,22 @@ _compression_to_extension = { def _infer_compression(filepath_or_buffer, compression): """ + Get file handle for given path/buffer and mode. + + Param...
DOC: doc-string for infer_compression
py
diff --git a/werkzeug/wsgi.py b/werkzeug/wsgi.py index <HASH>..<HASH> 100644 --- a/werkzeug/wsgi.py +++ b/werkzeug/wsgi.py @@ -183,6 +183,9 @@ def get_input_stream(environ, safe_fallback=True): # If the content length is negative we're dealing with a WSGI # server that gives us a chunked response already dech...
Added a note on content length fetching
py
diff --git a/sphinxcontrib/dotnetdomain.py b/sphinxcontrib/dotnetdomain.py index <HASH>..<HASH> 100644 --- a/sphinxcontrib/dotnetdomain.py +++ b/sphinxcontrib/dotnetdomain.py @@ -674,8 +674,8 @@ class DotNetDomain(Domain): def get_objects(self): for (obj_type, obj_name), (obj_doc, obj_doc_type) in self....
Domain objects returns as short name, but all references are to object long name
py
diff --git a/grimoire_elk/elk/discourse.py b/grimoire_elk/elk/discourse.py index <HASH>..<HASH> 100644 --- a/grimoire_elk/elk/discourse.py +++ b/grimoire_elk/elk/discourse.py @@ -141,6 +141,14 @@ class DiscourseEnrich(Enrich): related.append(self.categories[cat]) return related + def __sh...
[enrich][discourse] Add method __show_categories_tree to print the categories tree from a discourse site.
py
diff --git a/astroid/tests/testdata/python3/data/module.py b/astroid/tests/testdata/python3/data/module.py index <HASH>..<HASH> 100644 --- a/astroid/tests/testdata/python3/data/module.py +++ b/astroid/tests/testdata/python3/data/module.py @@ -1,6 +1,5 @@ """test module for astroid """ -from __future__ import print_fu...
Replace the use of print in python3/data/module.py, since it complicates the testing of as_string.
py
diff --git a/discord/ext/tasks/__init__.py b/discord/ext/tasks/__init__.py index <HASH>..<HASH> 100644 --- a/discord/ext/tasks/__init__.py +++ b/discord/ext/tasks/__init__.py @@ -160,6 +160,26 @@ class Loop: return None return self._next_iteration + async def __call__(self, *args, **kwargs): ...
[tasks] Add support for manually calling the wrapped coroutine
py
diff --git a/airflow/models.py b/airflow/models.py index <HASH>..<HASH> 100644 --- a/airflow/models.py +++ b/airflow/models.py @@ -328,15 +328,14 @@ class Connection(Base): def get_password(self): if self._password and self.is_encrypted: - return FERNET.decrypt(bytes(self._password, 'utf-8'))...
make sure bytes get decoded to strings
py
diff --git a/salt/pillar/pepa.py b/salt/pillar/pepa.py index <HASH>..<HASH> 100755 --- a/salt/pillar/pepa.py +++ b/salt/pillar/pepa.py @@ -21,7 +21,7 @@ if sys.stdout.isatty(): from colorlog import ColoredFormatter parser = argparse.ArgumentParser() - parser.add_argument('hostname', help = 'Hostname') + ...
Fixed remaining error from pylint
py
diff --git a/bot/api/domain.py b/bot/api/domain.py index <HASH>..<HASH> 100644 --- a/bot/api/domain.py +++ b/bot/api/domain.py @@ -119,19 +119,19 @@ class VideoNote(Message): class Audio(CaptionableMessage): @staticmethod def create_audio(file_id): - return Voice(_type=Audio, audio=file_id) + r...
Fix typos in object instantiation
py
diff --git a/py/dynesty/dynamicsampler.py b/py/dynesty/dynamicsampler.py index <HASH>..<HASH> 100644 --- a/py/dynesty/dynamicsampler.py +++ b/py/dynesty/dynamicsampler.py @@ -1161,9 +1161,10 @@ class DynamicSampler(object): # the lower likelihood threshold. Afterwards, we add in our remaining # live p...
Attempt to fix #<I>
py
diff --git a/solvebio/contrib/vcf_parser/vcf_parser.py b/solvebio/contrib/vcf_parser/vcf_parser.py index <HASH>..<HASH> 100644 --- a/solvebio/contrib/vcf_parser/vcf_parser.py +++ b/solvebio/contrib/vcf_parser/vcf_parser.py @@ -42,8 +42,7 @@ class ExpandingVCFParser(object): ) # Setup extra I...
only check snpeff command; fewer underscores
py
diff --git a/py2cytoscape/data/style_client.py b/py2cytoscape/data/style_client.py index <HASH>..<HASH> 100644 --- a/py2cytoscape/data/style_client.py +++ b/py2cytoscape/data/style_client.py @@ -23,13 +23,17 @@ class StyleClient(object): if name in existing_styles: return Style(name) - - ...
StyleClient can now create new style from predefined style
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 @@ -55,6 +55,7 @@ class RequestTimeTracker: def __init__(self, instance_count): self.instance_count = instance_count self._requests = {} + ...
INDY-<I>: Fix for logging
py
diff --git a/tensorflow_datasets/core/load.py b/tensorflow_datasets/core/load.py index <HASH>..<HASH> 100644 --- a/tensorflow_datasets/core/load.py +++ b/tensorflow_datasets/core/load.py @@ -332,9 +332,8 @@ def load( """ # pylint: enable=line-too-long - name, name_builder_kwargs = _dataset_name_and_kwargs_from...
Don't mutate name so builder can parse out config and version itself
py
diff --git a/spacenavigator.py b/spacenavigator.py index <HASH>..<HASH> 100644 --- a/spacenavigator.py +++ b/spacenavigator.py @@ -151,9 +151,9 @@ def print_state(state): def toggle_led(state, button): # Switch on the led on left push, off on right push if button&1: - set_led(0) - if button&2: ...
LED button demo side switched to correct orientation
py
diff --git a/resolwe/elastic/viewsets.py b/resolwe/elastic/viewsets.py index <HASH>..<HASH> 100644 --- a/resolwe/elastic/viewsets.py +++ b/resolwe/elastic/viewsets.py @@ -90,7 +90,7 @@ class ElasticSearchMixin(object): filters = [Q('match', **{field: item}) for item in value] s...
Use match instead of wildcard filter by default
py
diff --git a/threshold.py b/threshold.py index <HASH>..<HASH> 100755 --- a/threshold.py +++ b/threshold.py @@ -49,6 +49,7 @@ TM_KAPUR_GLOBAL = "Kapur Global" TM_KAPUR_ADAPTIVE = "Kapur Adaptive" TM_KAPUR_PER_OBJECT = "Kapur PerObject" TM_MANUAL = "Manua...
Added thresholding by image measurement + test git-svn-id: <URL>
py
diff --git a/yotta/lib/exportkey.py b/yotta/lib/exportkey.py index <HASH>..<HASH> 100644 --- a/yotta/lib/exportkey.py +++ b/yotta/lib/exportkey.py @@ -23,7 +23,8 @@ elif sys.version_info[0] == 2: def bchr(x): return chr(x) -# long_to_bytes: from PyCrypto (public domain) +# long_to_bytes: from PyCrypto,p...
Add link to pycrypto project Requested by Jilayne
py
diff --git a/www/tests/issues.py b/www/tests/issues.py index <HASH>..<HASH> 100644 --- a/www/tests/issues.py +++ b/www/tests/issues.py @@ -2822,6 +2822,16 @@ except SyntaxError: x = *-Spam(), assert x == ('s', 'p', 'a', 'm') +x = 1, *'two' +assert x == (1, 't', 'w', 'o') + +y = *b'abc', +assert y == (97, 98, 99) + ...
Additional tests for issue #<I>
py
diff --git a/tests/unit/utils/test_yamlloader.py b/tests/unit/utils/test_yamlloader.py index <HASH>..<HASH> 100644 --- a/tests/unit/utils/test_yamlloader.py +++ b/tests/unit/utils/test_yamlloader.py @@ -100,3 +100,15 @@ class YamlLoaderTestCase(TestCase): <<: *p1 v2: beta ...
Add test for custom YAML loader with unicode literal strings
py
diff --git a/integrated_channels/canvas/admin/__init__.py b/integrated_channels/canvas/admin/__init__.py index <HASH>..<HASH> 100644 --- a/integrated_channels/canvas/admin/__init__.py +++ b/integrated_channels/canvas/admin/__init__.py @@ -24,7 +24,7 @@ class CanvasEnterpriseCustomerConfigurationAdmin(admin.ModelAdmin):...
fix: Django admin a-tag rather than text url (#<I>) ENT-<I>
py
diff --git a/client/__init__.py b/client/__init__.py index <HASH>..<HASH> 100644 --- a/client/__init__.py +++ b/client/__init__.py @@ -14,6 +14,7 @@ # License for the specific language governing permissions and limitations # under the License. +import codecs import copy import json import os @@ -126,7 +127,7 @@ ...
client: call() should accept badly formated UTF-8 If the output of the command called throught call() has an invalid encoding, we should just ignore it. Change-Id: Ia<I>a1f8f7f<I>b3f<I>c<I>d<I>a<I>bf<I>
py
diff --git a/lib/svtplay_dl/service/svtplay.py b/lib/svtplay_dl/service/svtplay.py index <HASH>..<HASH> 100644 --- a/lib/svtplay_dl/service/svtplay.py +++ b/lib/svtplay_dl/service/svtplay.py @@ -233,8 +233,8 @@ class Svtplay(Service, OpenGraphThumbMixin): episodes = [urljoin("http://www.svtplay.se", x) for...
svtplay: in find all, dont sort the already sorted list.
py
diff --git a/pyinotify.py b/pyinotify.py index <HASH>..<HASH> 100755 --- a/pyinotify.py +++ b/pyinotify.py @@ -94,16 +94,13 @@ __metaclass__ = type # Use new-style classes by default # load libc LIBC = ctypes.cdll.LoadLibrary(ctypes.util.find_library('c')) -# Fixme: code commented for now, there is a problem on ar...
Fixed libc version check on arch <I> bits.
py
diff --git a/edisgo/tools/pypsa_io.py b/edisgo/tools/pypsa_io.py index <HASH>..<HASH> 100644 --- a/edisgo/tools/pypsa_io.py +++ b/edisgo/tools/pypsa_io.py @@ -1108,9 +1108,11 @@ def update_pypsa(network): transformer['tap_ratio'].append(1) network.pypsa.transformers.drop(removed_transformers, inplace=Tr...
Add transformers from reinforcement correctly to PyPSA Closes #<I> Tested with * <I> * <I>
py
diff --git a/examples/local/client.py b/examples/local/client.py index <HASH>..<HASH> 100644 --- a/examples/local/client.py +++ b/examples/local/client.py @@ -18,7 +18,7 @@ parser.add_argument('--server', dest='server', default='localhost:15001') parser.add_argument('--timeout', dest='timeout', type=float, default='10...
Fix local example client for _vt -> vt port rename.
py
diff --git a/master/buildbot/steps/transfer.py b/master/buildbot/steps/transfer.py index <HASH>..<HASH> 100644 --- a/master/buildbot/steps/transfer.py +++ b/master/buildbot/steps/transfer.py @@ -578,7 +578,7 @@ class JSONPropertiesDownload(StringDownload, WorkerAPICompatMixin): self.s = json.dumps(dict( ...
Fix AttributeError for using asDict on None when codebases are being used
py
diff --git a/libvcs/conftest.py b/libvcs/conftest.py index <HASH>..<HASH> 100644 --- a/libvcs/conftest.py +++ b/libvcs/conftest.py @@ -3,7 +3,7 @@ import getpass import pathlib import shutil import textwrap -from typing import Dict +from typing import Any, Dict import pytest @@ -18,9 +18,13 @@ def home_default(...
Include gitconfig is doctest_fixtures
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 @@ -2447,6 +2447,9 @@ def ip_address(value, elif not value: return None + if is_py2 and value and isinstan...
Fixed error with unicode decoding in IP Address validation that affects Python <I>.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -15,9 +15,9 @@ and configuration that tox has so after installation can just run:: in the same way and with the same options with which you would run ``tox``, see the `tox home page`_ for more info. -Please file issues as ...
tox has moved to github --HG-- branch : tomviner/tox-has-moved-to-github-<I>
py
diff --git a/salt/modules/hg.py b/salt/modules/hg.py index <HASH>..<HASH> 100644 --- a/salt/modules/hg.py +++ b/salt/modules/hg.py @@ -190,7 +190,7 @@ def pull(cwd, opts=None, user=None, identity=None, repository=None): cmd.append(opt) if repository is not None: cmd.append(repository) - re...
Don't use VT when running mercurial on windows
py
diff --git a/holoviews/plotting/bokeh/callbacks.py b/holoviews/plotting/bokeh/callbacks.py index <HASH>..<HASH> 100644 --- a/holoviews/plotting/bokeh/callbacks.py +++ b/holoviews/plotting/bokeh/callbacks.py @@ -133,6 +133,8 @@ class Callback(object): # Timeout if a comm message is swallowed timeout = 20000 ...
Merge multiple callbacks attached to one model
py
diff --git a/galpy/potential_src/TwoPowerTriaxialPotential.py b/galpy/potential_src/TwoPowerTriaxialPotential.py index <HASH>..<HASH> 100644 --- a/galpy/potential_src/TwoPowerTriaxialPotential.py +++ b/galpy/potential_src/TwoPowerTriaxialPotential.py @@ -134,7 +134,7 @@ class TwoPowerTriaxialPotential(Potential): ...
Better checking whether the potential is aligned
py
diff --git a/requests_kerberos/__init__.py b/requests_kerberos/__init__.py index <HASH>..<HASH> 100644 --- a/requests_kerberos/__init__.py +++ b/requests_kerberos/__init__.py @@ -22,4 +22,4 @@ logging.getLogger(__name__).addHandler(NullHandler()) __all__ = ('HTTPKerberosAuth', 'MutualAuthenticationError', 'REQUIRED'...
bump dev version to <I>.dev0
py
diff --git a/astroplan/tests/test_constraints.py b/astroplan/tests/test_constraints.py index <HASH>..<HASH> 100644 --- a/astroplan/tests/test_constraints.py +++ b/astroplan/tests/test_constraints.py @@ -205,6 +205,18 @@ def test_moon_illumination(): is_constraint_met = constraint(lco, None, times=times) asser...
added tests for classmethods of IlluminationConstraint
py
diff --git a/scripts/validate_docstrings.py b/scripts/validate_docstrings.py index <HASH>..<HASH> 100755 --- a/scripts/validate_docstrings.py +++ b/scripts/validate_docstrings.py @@ -610,11 +610,11 @@ def main(func_name, fd): fd.write('{}\n'.format(doc_info['docstring'])) fd.write(header('Validation')...
add number of Errors, Warnings to scripts/validate_docstrings.py (#<I>)
py
diff --git a/pyoram/tree/virtualheap.py b/pyoram/tree/virtualheap.py index <HASH>..<HASH> 100644 --- a/pyoram/tree/virtualheap.py +++ b/pyoram/tree/virtualheap.py @@ -1,7 +1,9 @@ import os +import sys import subprocess import random import string +import tempfile from six.moves import range @@ -386,18 +388,20 ...
more fixes for when dot is not available
py
diff --git a/telemetry/telemetry/page/actions/click_element_unittest.py b/telemetry/telemetry/page/actions/click_element_unittest.py index <HASH>..<HASH> 100644 --- a/telemetry/telemetry/page/actions/click_element_unittest.py +++ b/telemetry/telemetry/page/actions/click_element_unittest.py @@ -18,7 +18,7 @@ class Click...
[Telemetry] Attempt to fix flaky testClickWithSelectorWaitForNavigation I wasn't able to repro locally, but based on the failure, this looks like it would do the trick. BUG=<I> TEST=tools/telemetry/run_tests testClickWithSelectorWaitForNavigation --repeat-count=5 NOTRY=True Review URL: <URL>
py
diff --git a/tcconfig/_shaping_rule_finder.py b/tcconfig/_shaping_rule_finder.py index <HASH>..<HASH> 100644 --- a/tcconfig/_shaping_rule_finder.py +++ b/tcconfig/_shaping_rule_finder.py @@ -115,6 +115,11 @@ class TcShapingRuleFinder(object): return device + def get_filter_string(self): + return ...
Add a method to get a filter as string
py
diff --git a/filer/admin/clipboardadmin.py b/filer/admin/clipboardadmin.py index <HASH>..<HASH> 100644 --- a/filer/admin/clipboardadmin.py +++ b/filer/admin/clipboardadmin.py @@ -20,6 +20,7 @@ NO_PERMISSIONS_FOR_FOLDER = ( "Can't use this folder, Permission Denied. Please select another folder." ) + # ModelAdm...
Adjust admin ajax upload url regex.
py
diff --git a/safe/defaults.py b/safe/defaults.py index <HASH>..<HASH> 100644 --- a/safe/defaults.py +++ b/safe/defaults.py @@ -468,13 +468,9 @@ def limitations(): limitation_list = list() limitation_list.append(tr('InaSAFE is not a hazard modelling tool.')) limitation_list.append( - tr('Polygon ar...
Fix #<I> - remove outdated limitations text from dock
py