diff
stringlengths
139
3.65k
message
stringlengths
8
627
diff_languages
stringclasses
1 value
diff --git a/OpenSSL/SSL.py b/OpenSSL/SSL.py index <HASH>..<HASH> 100644 --- a/OpenSSL/SSL.py +++ b/OpenSSL/SSL.py @@ -1175,7 +1175,7 @@ class Connection(object): errno = _ffi.getwinerror()[0] else: errno = _ffi.errno - raise SysC...
don't panic if there's no errno
py
diff --git a/jax/_src/lax/control_flow.py b/jax/_src/lax/control_flow.py index <HASH>..<HASH> 100644 --- a/jax/_src/lax/control_flow.py +++ b/jax/_src/lax/control_flow.py @@ -1021,8 +1021,11 @@ def _cond_transpose(cts, *args, branches, linear): branches_trans = tuple( _transpose_cond_jaxpr(jaxpr, num_res) f...
check that jaxpr types match in cond transpose using `core.typematch` rather than `__eq__`
py
diff --git a/dosagelib/plugins/n.py b/dosagelib/plugins/n.py index <HASH>..<HASH> 100644 --- a/dosagelib/plugins/n.py +++ b/dosagelib/plugins/n.py @@ -163,6 +163,15 @@ class NoNeedForBushido(_BasicScraper): starter = indirectStarter(url, compile(tagre("a", "href", r'(%s\?webcomic1=[^"]+)' % rurl, after="la...
added comic Not Invented Here
py
diff --git a/spikeextractors/extractors/neoextractors/blackrockextractor.py b/spikeextractors/extractors/neoextractors/blackrockextractor.py index <HASH>..<HASH> 100644 --- a/spikeextractors/extractors/neoextractors/blackrockextractor.py +++ b/spikeextractors/extractors/neoextractors/blackrockextractor.py @@ -31,8 +31,...
Update spikeextractors/extractors/neoextractors/blackrockextractor.py
py
diff --git a/salt/daemons/flo/core.py b/salt/daemons/flo/core.py index <HASH>..<HASH> 100644 --- a/salt/daemons/flo/core.py +++ b/salt/daemons/flo/core.py @@ -657,6 +657,9 @@ class SaltLoadModules(ioflo.base.deeding.Deed): self.modules.value = salt.loader.minion_mods(self.opts.value) self.returners.va...
Move to clear() for new loader
py
diff --git a/aiogram/utils/exceptions.py b/aiogram/utils/exceptions.py index <HASH>..<HASH> 100644 --- a/aiogram/utils/exceptions.py +++ b/aiogram/utils/exceptions.py @@ -12,6 +12,7 @@ - MessageTextIsEmpty - MessageCantBeEdited - MessageCantBeDeleted + - MessageCantBeFo...
new: add exceptions (#<I>) * new: add FileIsTooBig exception * new: add MessageCantBeForwarded exception
py
diff --git a/graphql_ws/django/subscriptions.py b/graphql_ws/django/subscriptions.py index <HASH>..<HASH> 100644 --- a/graphql_ws/django/subscriptions.py +++ b/graphql_ws/django/subscriptions.py @@ -1,3 +1,4 @@ +import asyncio from inspect import isawaitable from graphene_django.settings import graphene_settings fro...
When closing a channels subscription, correctly await for the unsubscribes
py
diff --git a/rtv/main.py b/rtv/main.py index <HASH>..<HASH> 100644 --- a/rtv/main.py +++ b/rtv/main.py @@ -6,6 +6,8 @@ from rtv.errors import SubmissionURLError, SubredditNameError from rtv.utils import curses_session from rtv.subreddit import SubredditPage from rtv.submission import SubmissionPage +import ConfigPar...
changed password to a getpass prompt for all sorts of security reasons
py
diff --git a/h2o-py/tests/testdir_generic_model/pyunit_generic_model_mojo_glm.py b/h2o-py/tests/testdir_generic_model/pyunit_generic_model_mojo_glm.py index <HASH>..<HASH> 100644 --- a/h2o-py/tests/testdir_generic_model/pyunit_generic_model_mojo_glm.py +++ b/h2o-py/tests/testdir_generic_model/pyunit_generic_model_mojo_...
Removed local test filepath in GLM test and replaced with a temp file
py
diff --git a/jaraco/itertools.py b/jaraco/itertools.py index <HASH>..<HASH> 100644 --- a/jaraco/itertools.py +++ b/jaraco/itertools.py @@ -1153,10 +1153,7 @@ def partition_dict(items, key): """ def unmatched(pair): - ( - test_key, - item, - ) = pair + test_key, ite...
Simple tuple expansion is allowed as long as it doesn't have a trailing comma.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -11,9 +11,11 @@ except ImportError: def publish(): - """Publish to Pypi""" + """Publishes module to The Cheeseshop.""" + os.system('python setup.py sdist upload') + if 'publish' in sys.argv: publish() ...
pypi => the cheeseshop
py
diff --git a/salt/states/environ.py b/salt/states/environ.py index <HASH>..<HASH> 100644 --- a/salt/states/environ.py +++ b/salt/states/environ.py @@ -9,7 +9,7 @@ from __future__ import absolute_import import os # Import salt libs -from six import string_types +from salt.utils.six import string_types def __vir...
Replaced module six in file /salt/states/environ.py
py
diff --git a/ppb/__init__.py b/ppb/__init__.py index <HASH>..<HASH> 100644 --- a/ppb/__init__.py +++ b/ppb/__init__.py @@ -1,13 +1,31 @@ +import logging +from typing import Callable + from ppb.vector import Vector from ppb.engine import GameEngine - from ppb.scenes import BaseScene from ppb.sprites import BaseSprit...
Changes the signature of ppb.run to be (setup, log_level)
py
diff --git a/torchvision/datasets/fakedata.py b/torchvision/datasets/fakedata.py index <HASH>..<HASH> 100644 --- a/torchvision/datasets/fakedata.py +++ b/torchvision/datasets/fakedata.py @@ -10,7 +10,7 @@ class FakeData(VisionDataset): Args: size (int, optional): Size of the dataset. Default: 1000 images ...
fix docs typo (#<I>)
py
diff --git a/sovrin_client/test/cli/test_tutorial.py b/sovrin_client/test/cli/test_tutorial.py index <HASH>..<HASH> 100644 --- a/sovrin_client/test/cli/test_tutorial.py +++ b/sovrin_client/test/cli/test_tutorial.py @@ -781,6 +781,7 @@ def testShowAcmeLinkAfterClaimSent(be, do, aliceCli, acmeMap, mapper=mapping)...
skipping a test to get the build working
py
diff --git a/progressive.py b/progressive.py index <HASH>..<HASH> 100644 --- a/progressive.py +++ b/progressive.py @@ -27,6 +27,10 @@ class Bar(object): `MIT <http://opensource.org/licenses/MIT>`_ `nose-progressive/noseprogressive/bar.py <https://github.com/erikrose/nose-progressive/blob/master/noseprogressiv...
Link to instructions for <I> colors
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -9,7 +9,7 @@ os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir))) setup( name='otree-redwood', - version='0.1.1', + version='0.1.2', packages=find_packages(), include_package_d...
Update pypi version.
py
diff --git a/ontobio/io/gpadparser.py b/ontobio/io/gpadparser.py index <HASH>..<HASH> 100644 --- a/ontobio/io/gpadparser.py +++ b/ontobio/io/gpadparser.py @@ -311,8 +311,8 @@ def to_association(gpad_line: List[str], report=None, group="unknown", dataset=" qualifiers = [curie_util.contract_uri(q)[0] for q in looked...
fixing a bug in to_association for gpad
py
diff --git a/nodeconductor/backup/models.py b/nodeconductor/backup/models.py index <HASH>..<HASH> 100644 --- a/nodeconductor/backup/models.py +++ b/nodeconductor/backup/models.py @@ -113,6 +113,8 @@ class BackupSchedule(core_models.UuidMixin, super(BackupSchedule, self).save(*args, **kwargs) + def get_l...
Expose backup_source in backup logging
py
diff --git a/stanza/models/ner_tagger.py b/stanza/models/ner_tagger.py index <HASH>..<HASH> 100644 --- a/stanza/models/ner_tagger.py +++ b/stanza/models/ner_tagger.py @@ -120,9 +120,8 @@ def train(args): if args['charlm']: if args['charlm_shorthand'] is None: - logger.info("CharLM Shorthand ...
Make this an exception rather than a sys.exit. Minor correction to a log message
py
diff --git a/salt/state.py b/salt/state.py index <HASH>..<HASH> 100644 --- a/salt/state.py +++ b/salt/state.py @@ -1635,14 +1635,12 @@ class BaseHighState(object): #File exists so continue err = [] top = self.get_top() - if not top: - msg = ('Top data not found. Either this ...
Fixes #<I> Remove requirement for a topfile entry. Previously if your topfile was empty state.highstate would fail even if your master_tops returned states that apply
py
diff --git a/hitman.py b/hitman.py index <HASH>..<HASH> 100755 --- a/hitman.py +++ b/hitman.py @@ -1,6 +1,6 @@ #!/usr/bin/env python -# Hitman. Or The Professional. (c) 2010 - 2011 Jrabbit Under GPL v3 or later. +# Hitman. Or The Professional. (c) 2010 - 2011, 2015 Jrabbit Under GPL v3 or later. import sys import ...
copyright bump; start abstracting db code
py
diff --git a/src/pyipmi/msgs/bmc.py b/src/pyipmi/msgs/bmc.py index <HASH>..<HASH> 100644 --- a/src/pyipmi/msgs/bmc.py +++ b/src/pyipmi/msgs/bmc.py @@ -7,6 +7,7 @@ from pyipmi.msgs import Timestamp from pyipmi.msgs import Bitfield from pyipmi.msgs import CompletionCode from pyipmi.msgs import Conditional +from pyipmi...
bmc: support responses with missing aux bytes This adds support for Get Device ID responses, which have no aux bytes set.
py
diff --git a/src/toil/worker.py b/src/toil/worker.py index <HASH>..<HASH> 100644 --- a/src/toil/worker.py +++ b/src/toil/worker.py @@ -33,8 +33,10 @@ import logging import shutil from threading import Thread -# Python 3 compatibility imports -from six.moves import cPickle +try: + import cPickle as pickle +except...
Update import pickle to 2/3 compatibility.
py
diff --git a/test/unit/test_metrics.py b/test/unit/test_metrics.py index <HASH>..<HASH> 100644 --- a/test/unit/test_metrics.py +++ b/test/unit/test_metrics.py @@ -1,7 +1,7 @@ import porespy as ps import scipy as sp import scipy.ndimage as spim -import imageio +from skimage import io import pytest @@ -20,8 +20,8...
trying skimage's io
py
diff --git a/master/buildbot/worker/protocols/pb.py b/master/buildbot/worker/protocols/pb.py index <HASH>..<HASH> 100644 --- a/master/buildbot/worker/protocols/pb.py +++ b/master/buildbot/worker/protocols/pb.py @@ -117,7 +117,8 @@ def _wrapRemoteException(): try: yield except pb.RemoteError as ex: - ...
Match ex.remoteType if it is bytes or unicode. This fixes an interop problem between a Python 3 master running buildbot <I> and a Python 2 slave running buildbot <I>.
py
diff --git a/wsgidav/http_authenticator.py b/wsgidav/http_authenticator.py index <HASH>..<HASH> 100644 --- a/wsgidav/http_authenticator.py +++ b/wsgidav/http_authenticator.py @@ -217,6 +217,12 @@ class HTTPAuthenticator(BaseMiddleware): elif authmethod == "basic" and self._acceptbasic: ret...
ISSUE <I>: Return <I> when auth method is not supported (#<I>) Thanks.
py
diff --git a/shap/explainers/_tree.py b/shap/explainers/_tree.py index <HASH>..<HASH> 100644 --- a/shap/explainers/_tree.py +++ b/shap/explainers/_tree.py @@ -1022,7 +1022,7 @@ class TreeEnsemble: else: raise Exception("model_output = \"log_loss\" is not yet supported when model.objective ...
Address #<I> with a better error message
py
diff --git a/pyannote/metrics/utils.py b/pyannote/metrics/utils.py index <HASH>..<HASH> 100644 --- a/pyannote/metrics/utils.py +++ b/pyannote/metrics/utils.py @@ -28,6 +28,7 @@ from __future__ import unicode_literals +import warnings from pyannote.core import Timeline, Segment @@ -73,10 +74,14 @@ class UEMSup...
feat: warn user when approximating 'uem'
py
diff --git a/command/install_scripts.py b/command/install_scripts.py index <HASH>..<HASH> 100644 --- a/command/install_scripts.py +++ b/command/install_scripts.py @@ -49,7 +49,7 @@ class install_scripts (Command): # all the scripts we just installed. for file in self.get_outputs(): ...
Fix bug in recent change to logging code. mode is not computed in dry_run mode, so it can't be included in the log message.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -13,7 +13,7 @@ def howto_install_setuptools(): try: from setuptools import setup params = { - 'install_requires': [ 'pyasn1>=0.1.1' ], + 'install_requires': [ 'pyasn1>=0.1.4' ], 'zip_safe': Tr...
pyasn1 <I> now required
py
diff --git a/Lib/fontParts/objects/base/validators.py b/Lib/fontParts/objects/base/validators.py index <HASH>..<HASH> 100644 --- a/Lib/fontParts/objects/base/validators.py +++ b/Lib/fontParts/objects/base/validators.py @@ -28,6 +28,17 @@ def validateLayerOrder(value, font): XXX """ + # Test for layer exi...
Validate layer order. Is the duplicate checking too heavy handed/magical?
py
diff --git a/py/nupic/swarming/ModelRunner.py b/py/nupic/swarming/ModelRunner.py index <HASH>..<HASH> 100644 --- a/py/nupic/swarming/ModelRunner.py +++ b/py/nupic/swarming/ModelRunner.py @@ -51,7 +51,6 @@ from nupic.frameworks.opf.predictionmetricsmanager import MetricsManager from nupic.support.serializationutils imp...
remove import of StreamDisappearedError Forgot to remove StreamDisappearedError during last commit.
py
diff --git a/tests/state_machine.py b/tests/state_machine.py index <HASH>..<HASH> 100755 --- a/tests/state_machine.py +++ b/tests/state_machine.py @@ -346,6 +346,24 @@ class State(object): """Called with PDU received after match.""" self.state_machine.after_receive(pdu) + def ignore(self, pdu_typ...
add an easy way for a state to ignore packets by creating a ReceiveTransition back to itself
py
diff --git a/src/sos/step_executor.py b/src/sos/step_executor.py index <HASH>..<HASH> 100755 --- a/src/sos/step_executor.py +++ b/src/sos/step_executor.py @@ -1404,8 +1404,7 @@ class Base_Step_Executor: f'Overlapping input and output files: {", ".join(repr(x) for x in ofiles...
Optimize a special case when output consists of a large number of filenames #<I>
py
diff --git a/trimesh/voxel.py b/trimesh/voxel.py index <HASH>..<HASH> 100644 --- a/trimesh/voxel.py +++ b/trimesh/voxel.py @@ -646,7 +646,7 @@ def points_to_indices(points, pitch, origin): if origin.shape != (3,): raise ValueError('shape of origin must be (3,)') - indices = np.round((points - origin)...
Remove index shift by +-<I> in voxel.py
py
diff --git a/tensorflow_datasets/core/features/video_feature.py b/tensorflow_datasets/core/features/video_feature.py index <HASH>..<HASH> 100644 --- a/tensorflow_datasets/core/features/video_feature.py +++ b/tensorflow_datasets/core/features/video_feature.py @@ -200,7 +200,7 @@ class Video(sequence_feature.Sequence): ...
Use no. of digits for image filename
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -11,7 +11,6 @@ def read(fname): jq_extension = Extension( "jq", - #sources=["_jq.c", "jq.pyx"], sources=["jq.pyx"], include_dirs=["../jq/"], libraries=["jq"],
Remove old sources reference in setup.py
py
diff --git a/docs/conf.py b/docs/conf.py index <HASH>..<HASH> 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -375,7 +375,9 @@ linkcheck_ignore = [ # AMS DOIs should be stable, but resolved link consistently 403's with linkcheck r'https://doi\.org/10\.1175/.*', # This one appears to be blocking robots - ...
MNT: Add newer AMS meeting site to linkchecker ignore This frequently results in false alarm <I>'s.
py
diff --git a/ftr/version.py b/ftr/version.py index <HASH>..<HASH> 100644 --- a/ftr/version.py +++ b/ftr/version.py @@ -1,2 +1,2 @@ -version = '0.7.7' +version = '0.7.8'
version bump for <I>.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -48,4 +48,5 @@ setup( ], keywords='nexus distributed microservices', packages=['pynexus', 'pynexus.sugar'], + install_requires=['srvlookup'], )
Add srvlookup to the package external dependencies
py
diff --git a/tests/pandavro_test.py b/tests/pandavro_test.py index <HASH>..<HASH> 100644 --- a/tests/pandavro_test.py +++ b/tests/pandavro_test.py @@ -73,6 +73,15 @@ def test_delegation(dataframe): assert_frame_equal(expect, dataframe) +def test_append(dataframe): + tf = NamedTemporaryFile() + pdx.to_avr...
added test for appending avro dataframe
py
diff --git a/salt/modules/cmdmod.py b/salt/modules/cmdmod.py index <HASH>..<HASH> 100644 --- a/salt/modules/cmdmod.py +++ b/salt/modules/cmdmod.py @@ -446,7 +446,18 @@ def _run(cmd, stdout=subprocess.PIPE, stdin=subprocess.PIPE ).communicate(py_code.encode(__salt_system_en...
Allow cases where no marker was found to proceed without raising exception
py
diff --git a/docs/source/conf.py b/docs/source/conf.py index <HASH>..<HASH> 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -11,8 +11,13 @@ # All configuration values have a default; values that are commented out # serve to show the default. -import sys, os -sys.path.insert(1, '..') +import sys +impor...
Make some updates to the sphinx conf file
py
diff --git a/test/test_collection.py b/test/test_collection.py index <HASH>..<HASH> 100644 --- a/test/test_collection.py +++ b/test/test_collection.py @@ -1110,6 +1110,7 @@ class TestCollection(IntegrationTest): for doc in cursor: pass + @client_context.require_version_min(2, 5, 1) def t...
PYTHON-<I> - Skip aggregation cursor test on old mongods.
py
diff --git a/pyperformance/tests/test_pythoninfo.py b/pyperformance/tests/test_pythoninfo.py index <HASH>..<HASH> 100644 --- a/pyperformance/tests/test_pythoninfo.py +++ b/pyperformance/tests/test_pythoninfo.py @@ -65,8 +65,12 @@ class GetInfoTests(tests.Functional, unittest.TestCase): venv, python, cleanu...
Fix the pythoninfo Tests (#<I>) (fixes #<I>)
py
diff --git a/pqhelper/__init__.py b/pqhelper/__init__.py index <HASH>..<HASH> 100644 --- a/pqhelper/__init__.py +++ b/pqhelper/__init__.py @@ -1,4 +1,5 @@ from easy import capture_solution, versus_summaries # one-step solutions +from ui import GUI # easy to use GUI if __name__ == '__main__':
Added GUI to the top level package (pqhelper)
py
diff --git a/waspy/transports/rabbitmqtransport.py b/waspy/transports/rabbitmqtransport.py index <HASH>..<HASH> 100644 --- a/waspy/transports/rabbitmqtransport.py +++ b/waspy/transports/rabbitmqtransport.py @@ -177,6 +177,10 @@ class RabbitChannelMixIn: # ok, that didnt work channel = ...
Try to close a connection just in case for rabbit
py
diff --git a/PlugIns/EELSAcq_Phil/PlugIn.py b/PlugIns/EELSAcq_Phil/PlugIn.py index <HASH>..<HASH> 100644 --- a/PlugIns/EELSAcq_Phil/PlugIn.py +++ b/PlugIns/EELSAcq_Phil/PlugIn.py @@ -63,7 +63,7 @@ class AcquireController(object): def acquire_series(number_frames, offset_per_spectrum, task_object=None): ...
Change references to eels_tv_camera hardware ID to eels_camera Was svn r<I>
py
diff --git a/tests/spans/test_merge.py b/tests/spans/test_merge.py index <HASH>..<HASH> 100644 --- a/tests/spans/test_merge.py +++ b/tests/spans/test_merge.py @@ -46,6 +46,4 @@ def test_np_merges(EN): for start, end, label, lemma in ents: merged = tokens.merge(start, end, label, lemma, label) ass...
* Fix print statement in test_merge
py
diff --git a/salt/cli/batch.py b/salt/cli/batch.py index <HASH>..<HASH> 100644 --- a/salt/cli/batch.py +++ b/salt/cli/batch.py @@ -7,6 +7,7 @@ import copy # Import Salt libs import salt.client +import salt.output class Batch(object): ''' @@ -112,7 +113,6 @@ class Batch(object): ...
Add outputter printing to the batch system
py
diff --git a/fabfile.py b/fabfile.py index <HASH>..<HASH> 100644 --- a/fabfile.py +++ b/fabfile.py @@ -12,13 +12,12 @@ from fabric.decorators import task from sphinx_bootstrap_theme import __version__ -DL_DIR = "demo/source/_static/downloads" +DL_DIR = "doc/source/_static/downloads" BUILD_DIRS = ( "dist", ...
DOC: Updated fabfile
py
diff --git a/tools/scenario-player/scenario_player/tasks/raiden_api.py b/tools/scenario-player/scenario_player/tasks/raiden_api.py index <HASH>..<HASH> 100644 --- a/tools/scenario-player/scenario_player/tasks/raiden_api.py +++ b/tools/scenario-player/scenario_player/tasks/raiden_api.py @@ -58,7 +58,12 @@ class RaidenAP...
[SP] Allow processing <I> responses [no ci integration]
py
diff --git a/django_rq/tests/tests.py b/django_rq/tests/tests.py index <HASH>..<HASH> 100644 --- a/django_rq/tests/tests.py +++ b/django_rq/tests/tests.py @@ -115,6 +115,14 @@ class DecoratorTest(TestCase): queue = get_queue(queue_name) self.assertEqual(result.origin, queue_name) + def test_job_d...
Added test for simplified job decorator.
py
diff --git a/parsers/salami_parser.py b/parsers/salami_parser.py index <HASH>..<HASH> 100755 --- a/parsers/salami_parser.py +++ b/parsers/salami_parser.py @@ -14,13 +14,16 @@ __email__ = "oriol@nyu.edu" import argparse import csv -import pyjams import json import logging import os +import sys import time impor...
Fixed the path of the pyjams for the SALAMI Parser. This closes issue #2
py
diff --git a/cnxeasybake/scripts/main.py b/cnxeasybake/scripts/main.py index <HASH>..<HASH> 100755 --- a/cnxeasybake/scripts/main.py +++ b/cnxeasybake/scripts/main.py @@ -21,7 +21,7 @@ def easybake(css_in, html_in=sys.stdin, html_out=sys.stdout, last_step=None, oven.bake(html_doc, last_step) # serialize out...
make output xhtml, as per discussion w/ @phil and @helene
py
diff --git a/tests/test_nbconvert.py b/tests/test_nbconvert.py index <HASH>..<HASH> 100644 --- a/tests/test_nbconvert.py +++ b/tests/test_nbconvert.py @@ -86,6 +86,8 @@ def test_nbconvert_and_read_r(nb_file): pytest.importorskip('jupyter') +@pytest.mark.skipif(sys.version_info < (3, 6), + reason...
Ordered dict required for those tests
py
diff --git a/wptools/core.py b/wptools/core.py index <HASH>..<HASH> 100644 --- a/wptools/core.py +++ b/wptools/core.py @@ -37,8 +37,8 @@ class WPTools: title = None wikibase = None - def __init__(self, lang='en', silent=False, title='', - verbose=False, wiki=None, wikibase=None): + def...
re-order core.__init__() args for least friction
py
diff --git a/samples/23.facebook-events/app.py b/samples/23.facebook-events/app.py index <HASH>..<HASH> 100644 --- a/samples/23.facebook-events/app.py +++ b/samples/23.facebook-events/app.py @@ -24,7 +24,7 @@ ADAPTER = BotFrameworkAdapter(SETTINGS) # Catch-all for errors. -async def on_error(self, context: TurnCon...
<I>.facebook-events: on_error is now an unbound function
py
diff --git a/tests/test_project.py b/tests/test_project.py index <HASH>..<HASH> 100644 --- a/tests/test_project.py +++ b/tests/test_project.py @@ -52,3 +52,21 @@ def test_data_as_matrix(): # ) # # Test needs repair # assert X_train.shape[0] == y_train.size + + +d...
add test for well to df
py
diff --git a/src/vivarium/framework/components/manager.py b/src/vivarium/framework/components/manager.py index <HASH>..<HASH> 100644 --- a/src/vivarium/framework/components/manager.py +++ b/src/vivarium/framework/components/manager.py @@ -64,6 +64,9 @@ class OrderedComponentSet: except TypeError: ...
don't remove components from component list as setting up
py
diff --git a/tests/test_browser.py b/tests/test_browser.py index <HASH>..<HASH> 100644 --- a/tests/test_browser.py +++ b/tests/test_browser.py @@ -100,12 +100,15 @@ def test__request_file(httpbin): response = browser._request(form) # Check that only "files" includes a "pic" keyword in the response + foun...
test__request_file: check that the file is actually found in the response
py
diff --git a/pythran/backend.py b/pythran/backend.py index <HASH>..<HASH> 100644 --- a/pythran/backend.py +++ b/pythran/backend.py @@ -881,11 +881,12 @@ pythonic::types::none_type>::type result_type; - order have to be known at compile time """ assert isinstance(node.target, ast.Name) - ...
Portable xrange/range detection across python version
py
diff --git a/mcerp/stats.py b/mcerp/stats.py index <HASH>..<HASH> 100644 --- a/mcerp/stats.py +++ b/mcerp/stats.py @@ -62,7 +62,7 @@ tsem = wrap(ss.tsem) variation = wrap(ss.variation) percentileofscore = wrap(ss.percentileofscore) scoreatpercentile = wrap(ss.scoreatpercentile) -signaltonoise = wrap(ss.signaltonoise...
scipy.stats.signaltonoise depredication According to scipy documentation, scipy.stats.signaltonoise is deprecated in scipy <I>. The module mcerp now raise an error when used due to that deprecation. Thanks !
py
diff --git a/test/test_address_book.py b/test/test_address_book.py index <HASH>..<HASH> 100644 --- a/test/test_address_book.py +++ b/test/test_address_book.py @@ -1,11 +1,19 @@ """Tests for the address book classes.""" +import sys import unittest from unittest import mock from khard import address_book +def...
Fix versioned expected failure for travis The failure did oddly only happen on python <I>. But if the test is marked as an expected failure unconditionally the testrun "fails" with an "unexpected success" for all other python version. The solution is to only mark it as an expected failure for python <I>.
py
diff --git a/cobe/brain.py b/cobe/brain.py index <HASH>..<HASH> 100644 --- a/cobe/brain.py +++ b/cobe/brain.py @@ -205,7 +205,11 @@ class Brain: return self.tokenizer.join(text) def _too_similar(self, input_tokens, output_tokens): - return False + for t in zip(input_tokens, output_tokens):...
Implement _too_similar() For now, this checks for replies that are identical to their input.
py
diff --git a/py/h2o.py b/py/h2o.py index <HASH>..<HASH> 100644 --- a/py/h2o.py +++ b/py/h2o.py @@ -441,7 +441,7 @@ def build_cloud(node_count=2, base_port=54321, hosts=None, # FIX! using "consensus" in node[-1] should mean this is unnecessary? # maybe there's a bug. For now do this. long term: don't w...
rolling it back to the old build_cloud completion algo. had a test.py fail (have a if 1==1: case to be able to switch back and forth to old/new)
py
diff --git a/tests/test_upload.py b/tests/test_upload.py index <HASH>..<HASH> 100644 --- a/tests/test_upload.py +++ b/tests/test_upload.py @@ -117,7 +117,7 @@ class uploadTestCase(PyPIRCCommandTestCase): self.assert_(headers['Content-type'].startswith('multipart/form-data')) self.assertEquals(self.las...
Fix failing test incorrectly merged in b<I>f<I>a
py
diff --git a/contract/models/contract_line.py b/contract/models/contract_line.py index <HASH>..<HASH> 100644 --- a/contract/models/contract_line.py +++ b/contract/models/contract_line.py @@ -667,9 +667,8 @@ class ContractLine(models.Model): # TODO this method can now be removed, since # TODO self.next...
[REF] contract: simplify _get_period_to_invoice
py
diff --git a/tarbell/app.py b/tarbell/app.py index <HASH>..<HASH> 100644 --- a/tarbell/app.py +++ b/tarbell/app.py @@ -213,7 +213,8 @@ class TarbellSite: if global_values is True and entry.title.text == 'values': for row in data_feed.entry: _key = slughifi(row.custom['...
blacklist keys in global values spreadsheet that start with an underscore
py
diff --git a/dusty/commands/test.py b/dusty/commands/test.py index <HASH>..<HASH> 100644 --- a/dusty/commands/test.py +++ b/dusty/commands/test.py @@ -163,7 +163,7 @@ def _run_tests_with_image(client, expanded_specs, app_or_lib_name, test_command, client.remove_container(container=test_container_name) for s...
more accurately describe what is happeneing
py
diff --git a/vcspull/cli/sync.py b/vcspull/cli/sync.py index <HASH>..<HASH> 100644 --- a/vcspull/cli/sync.py +++ b/vcspull/cli/sync.py @@ -4,6 +4,7 @@ from copy import deepcopy import click import click.shell_completion +from click.shell_completion import CompletionItem from libvcs.shortcuts import create_projec...
chore(repo completions): Add annotations
py
diff --git a/testing/test_junitxml.py b/testing/test_junitxml.py index <HASH>..<HASH> 100644 --- a/testing/test_junitxml.py +++ b/testing/test_junitxml.py @@ -295,7 +295,7 @@ class TestPython: assert M1 == M2 """) result, dom = runandparse(testdir) - # print dom.toxml() + ...
Still print this, but use py2/py3 compat syntax I realised being able to print is probably an essential part of this test which I may have inadvertendly disabled, so correct that.
py
diff --git a/googleplaces/__init__.py b/googleplaces/__init__.py index <HASH>..<HASH> 100644 --- a/googleplaces/__init__.py +++ b/googleplaces/__init__.py @@ -638,7 +638,7 @@ class Prediction(object): def __init__(self, query_instance, prediction): self._query_instance = query_instance self._desc...
Use .get() for accessing deprecated id field
py
diff --git a/openquake/calculators/base.py b/openquake/calculators/base.py index <HASH>..<HASH> 100644 --- a/openquake/calculators/base.py +++ b/openquake/calculators/base.py @@ -410,8 +410,8 @@ class HazardCalculator(BaseCalculator): logging.info(res) # sanity check: the stored MFDs can b...
Commented sanity check [skip CI] Former-commit-id: 1b7c<I>ff<I>f<I>bc8b<I>ecb<I>b<I>cfde6c4bf1d3
py
diff --git a/pifpaf/drivers/gnocchi.py b/pifpaf/drivers/gnocchi.py index <HASH>..<HASH> 100644 --- a/pifpaf/drivers/gnocchi.py +++ b/pifpaf/drivers/gnocchi.py @@ -190,6 +190,7 @@ url = %s""" % (self.debug, "--die-on-term", "--lazy-apps", "--enable-threads", + "--chdir",...
gnocchi: chdir to tempdir in uwsgi This avoids running uwsgi in a directory where potentially a gnocchi dir is there. In that case uwsgi would use it as . seems to be in its Python path by default.
py
diff --git a/timeside/plugins/provider/deezer.py b/timeside/plugins/provider/deezer.py index <HASH>..<HASH> 100644 --- a/timeside/plugins/provider/deezer.py +++ b/timeside/plugins/provider/deezer.py @@ -26,7 +26,7 @@ class Deezer(Provider): if download: file_name = request_json['artist']['name'] +...
add encoding track's name in deezer provider
py
diff --git a/codetransformer/instructions.py b/codetransformer/instructions.py index <HASH>..<HASH> 100644 --- a/codetransformer/instructions.py +++ b/codetransformer/instructions.py @@ -43,13 +43,12 @@ _uses_free = frozenset({ }) -@abstractmethod -class _notimplemented: - def __init__(self, name): - sel...
MAINT: Go back to using property for _notimplemented.
py
diff --git a/WrightTools/data/_data.py b/WrightTools/data/_data.py index <HASH>..<HASH> 100644 --- a/WrightTools/data/_data.py +++ b/WrightTools/data/_data.py @@ -420,6 +420,8 @@ class Data(Group): new_axes = [a.expression for a in kept_axes if a.expression not in at.keys()] new_axis_units = [...
BUG: Preserve constants when chopping (#<I>)
py
diff --git a/django_node/utils.py b/django_node/utils.py index <HASH>..<HASH> 100644 --- a/django_node/utils.py +++ b/django_node/utils.py @@ -1,3 +1,4 @@ +import sys import subprocess import tempfile import importlib @@ -146,10 +147,11 @@ def dynamic_import(import_path): try: imported_module = importl...
Improving the clarity of errors thrown during dynamic imports.
py
diff --git a/lib/webaccess_model.py b/lib/webaccess_model.py index <HASH>..<HASH> 100644 --- a/lib/webaccess_model.py +++ b/lib/webaccess_model.py @@ -49,7 +49,8 @@ class AccARGUMENT(db.Model): autoincrement=True) keyword = db.Column(db.String(32), nullable=True) value = db.Column(db.String(2...
SQLAlchemy: model synchronization with tabcreate * Synchronises SQLAlchemy models according to tabcreate's SQL instructions. (closes #<I>)
py
diff --git a/jsonref.py b/jsonref.py index <HASH>..<HASH> 100644 --- a/jsonref.py +++ b/jsonref.py @@ -93,15 +93,17 @@ class _URIDict(MutableMapping): class Dereferencer(object): - def __init__(self, store=()): + def __init__(self, store=(), cache_results=True): self.store = _URIDict(store) + ...
Option to turn off caching in Dereferencer
py
diff --git a/wafer/talks/models.py b/wafer/talks/models.py index <HASH>..<HASH> 100644 --- a/wafer/talks/models.py +++ b/wafer/talks/models.py @@ -6,7 +6,7 @@ from django.db import models class Talk(models.Model): - talk_id = models.IntegerField(primary_key=True) + talk_id = models.AutoField(primary_key=True...
talk_id should be an AutoField
py
diff --git a/salt/utils/cloud.py b/salt/utils/cloud.py index <HASH>..<HASH> 100644 --- a/salt/utils/cloud.py +++ b/salt/utils/cloud.py @@ -312,7 +312,7 @@ def bootstrap(vm_, opts): } } - if vm_.get('driver', 'none:none').split(':')[1] == 'saltify': + if vm_.get('driver') == 'saltify': ...
cloud driver isn't a provider This will not have a ':' in it at all.
py
diff --git a/listparser/__init__.py b/listparser/__init__.py index <HASH>..<HASH> 100644 --- a/listparser/__init__.py +++ b/listparser/__init__.py @@ -109,11 +109,8 @@ def parse(parse_obj, agent=None, etag=None, modified=None, inject=False): fileobj = Injector(fileobj) try: parser.parse(fileobj) ...
Remove a Python 3-only exception because I cannot trigger it The code was introduced in b2cdb<I>, which included the 1x1.gif test. Nevertheless, I cannot trigger this exception. In addition, disable coverage for the exception block. It is still necessary in Jython <I> but since I cannot get coverage reports in Jython...
py
diff --git a/thingstance/thing.py b/thingstance/thing.py index <HASH>..<HASH> 100644 --- a/thingstance/thing.py +++ b/thingstance/thing.py @@ -1,6 +1,12 @@ from hashlib import sha1 +def hash(data): + head = str("blob " + str(len(data)) + "\0").encode("utf-8") + digest = sha1(head + data) + return digest.h...
Refactored hash into function
py
diff --git a/bika/lims/browser/batch.py b/bika/lims/browser/batch.py index <HASH>..<HASH> 100644 --- a/bika/lims/browser/batch.py +++ b/bika/lims/browser/batch.py @@ -52,7 +52,7 @@ class BatchAnalysisRequestsView(AnalysisRequestsView, AnalysisRequestAddView): self.context_actions[self.context.translate...
Add icon missing in Batch > AnalysisRequest
py
diff --git a/Lib/ufo2ft/outlineCompiler.py b/Lib/ufo2ft/outlineCompiler.py index <HASH>..<HASH> 100644 --- a/Lib/ufo2ft/outlineCompiler.py +++ b/Lib/ufo2ft/outlineCompiler.py @@ -101,7 +101,7 @@ class BaseOutlineCompiler(object): """ Make bounding boxes for all the glyphs, and return a dictionary of ...
Fix docstring typos After fixing encoding issues in <I>c0de1, a few typos had to be commited in the outlineCompiler module. This commit fixes these typos.
py
diff --git a/rawdisk/util/filetimes.py b/rawdisk/util/filetimes.py index <HASH>..<HASH> 100644 --- a/rawdisk/util/filetimes.py +++ b/rawdisk/util/filetimes.py @@ -101,9 +101,3 @@ def filetime_to_dt(ft): # Add remainder in as microseconds. Python 3.2 requires an integer dt = dt.replace(microsecond=(ns100 // 10...
Removed unnecessary code from filenames
py
diff --git a/tests/check_autoloadlibrary.py b/tests/check_autoloadlibrary.py index <HASH>..<HASH> 100755 --- a/tests/check_autoloadlibrary.py +++ b/tests/check_autoloadlibrary.py @@ -1,4 +1,5 @@ #!/usr/bin/python +from __future__ import print_function import unittest as u import re, fnmatch, os @@ -34,7 +35,7 @@ c...
tests: use print function instead of statement
py
diff --git a/trunk/languagetool/TextChecker.py b/trunk/languagetool/TextChecker.py index <HASH>..<HASH> 100644 --- a/trunk/languagetool/TextChecker.py +++ b/trunk/languagetool/TextChecker.py @@ -143,7 +143,7 @@ class TextChecker: rule_match_list.append(rule_match.toXML()) rule_match_list.append("\n") else...
avoid Python's "ordinal not in range" error
py
diff --git a/neo4j/addressing.py b/neo4j/addressing.py index <HASH>..<HASH> 100644 --- a/neo4j/addressing.py +++ b/neo4j/addressing.py @@ -104,7 +104,15 @@ class SocketAddress(object): def resolve(socket_address): try: - return [address for _, _, _, _, address in - getaddrinfo(socket_addre...
Skip IPv6 addresses with non-zero scope IDs
py
diff --git a/holoviews/operation/normalization.py b/holoviews/operation/normalization.py index <HASH>..<HASH> 100644 --- a/holoviews/operation/normalization.py +++ b/holoviews/operation/normalization.py @@ -171,7 +171,7 @@ class raster_normalization(Normalization): ranges = self.get_ranges(raster, key) ...
Correctly handling empty range in raster_normalization
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -128,7 +128,6 @@ setup( 'Programming Language :: Python :: 3.7', 'Programming Language :: Python :: Implementation :: CPython', 'Programming Language :: Python :: Implementation :: PyPy', - 'P...
removed unofficial trove classifier PyPy3
py
diff --git a/uptick/ui.py b/uptick/ui.py index <HASH>..<HASH> 100644 --- a/uptick/ui.py +++ b/uptick/ui.py @@ -40,7 +40,7 @@ def print_permissions(account): account[permission]["weight_threshold"], "\n".join(auths), ]) - print(t) + click.echo(t) def get_terminal(text="Passw...
[ui] replace print by click.echo
py
diff --git a/tailer/__init__.py b/tailer/__init__.py index <HASH>..<HASH> 100644 --- a/tailer/__init__.py +++ b/tailer/__init__.py @@ -473,7 +473,7 @@ def follow_path(file_path, buffering=-1, encoding=None, errors=None): else: line = next(self.follow_generator) - ...
.decode in Python<I> does not support keyword arguments.
py
diff --git a/sockeye/rnn.py b/sockeye/rnn.py index <HASH>..<HASH> 100644 --- a/sockeye/rnn.py +++ b/sockeye/rnn.py @@ -506,7 +506,7 @@ class VariationalDropoutCell(mx.rnn.ModifierCell): def __call__(self, inputs, states): if self.dropout_inputs > 0: if self.mask_inputs is None: - ...
Fix: proper call to sym.Dropout in VariationalDropoutCell (#<I>)
py
diff --git a/gitlab_registry_usage/_version.py b/gitlab_registry_usage/_version.py index <HASH>..<HASH> 100644 --- a/gitlab_registry_usage/_version.py +++ b/gitlab_registry_usage/_version.py @@ -1,2 +1,2 @@ -__version_info__ = (0, 2, 3) +__version_info__ = (0, 2, 4) __version__ = '.'.join(map(str, __version_info__))
Increased the version number to <I>
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -51,10 +51,10 @@ setup( 'sklearn' ], extras_require={ - 'geoplot': ['geopandas <= 0.6.3', 'contextily'], + 'geoplot': ['geopandas <= 0.6.3', 'contextily', 'descartes'], 'examples': ['j...
Add descartes package for plotting of polygons
py
diff --git a/rb/poll.py b/rb/poll.py index <HASH>..<HASH> 100644 --- a/rb/poll.py +++ b/rb/poll.py @@ -42,8 +42,7 @@ class SelectPoller(BasePoller): class PollPoller(BasePoller): - # XXX: fix me - is_availabe = hasattr(select, 'poll') and False + is_availabe = hasattr(select, 'poll') def __init__(s...
Re-enable polling for the async writes
py