diff
stringlengths
139
3.65k
message
stringlengths
8
627
diff_languages
stringclasses
1 value
diff --git a/anthemav/protocol.py b/anthemav/protocol.py index <HASH>..<HASH> 100755 --- a/anthemav/protocol.py +++ b/anthemav/protocol.py @@ -1,6 +1,5 @@ import asyncio import logging -from functools import partial # In Python 3.4.4, `async` was renamed to `ensure_future`. try: @@ -10,8 +9,6 @@ except AttributeE...
Drop the write buffer limit to <I> bytes to avoid overrunning device
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -1,4 +1,7 @@ +import os from distutils.core import setup +from distutils.command.sdist import sdist + import skyfield # safe, because __init__.py contains no import statements extras = { @@ -8,7 +11,15 @@ extras = { ...
Fix #<I> by forcing <I> file permissions in sdist
py
diff --git a/forgetful-bench.py b/forgetful-bench.py index <HASH>..<HASH> 100755 --- a/forgetful-bench.py +++ b/forgetful-bench.py @@ -86,7 +86,7 @@ cpuBefore = client.redis.info()['used_cpu_user'] + client.redis.info()['used_cpu putTime = -time.time() # Alright, let's make a bunch of jobs testing = client.queue('te...
Updated forgetfulbench to include a klass.
py
diff --git a/scripts/importer/mtasks/nedd.py b/scripts/importer/mtasks/nedd.py index <HASH>..<HASH> 100644 --- a/scripts/importer/mtasks/nedd.py +++ b/scripts/importer/mtasks/nedd.py @@ -10,7 +10,6 @@ from astropy.cosmology import z_at_value from cdecimal import Decimal from scripts import PATH -from .. import Even...
BUG: changed old new_event call
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 @@ -103,6 +103,8 @@ class FontProject(object): # no need to also set the relative 'filename' attribute as that # will be au...
make master_dir if it's not already present unlike defcon, ufoLib2 doesn't automatically create one for us (rightly so, I think)
py
diff --git a/squad/ci/backend/lava.py b/squad/ci/backend/lava.py index <HASH>..<HASH> 100644 --- a/squad/ci/backend/lava.py +++ b/squad/ci/backend/lava.py @@ -77,6 +77,7 @@ class Backend(BaseBackend): message = self.socket.recv_multipart() self.log_debug("message received: %r" % messag...
ci/lava: fix access to ZMQ message data the `data` field needs to be parsed as JSON before being used.
py
diff --git a/scripts/merge-pr.py b/scripts/merge-pr.py index <HASH>..<HASH> 100755 --- a/scripts/merge-pr.py +++ b/scripts/merge-pr.py @@ -297,8 +297,8 @@ if not bool(pr["mergeable"]): continue_maybe(msg) print("\n=== Pull Request #%s ===" % pr_num) -print("title\t%s\nsource\t%s\ntarget\t%s\nurl\t%s" - % (...
BLD: edit on merge-pr script
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100755 --- a/setup.py +++ b/setup.py @@ -5,7 +5,8 @@ from setuptools import setup, find_packages setup(name='bandersnatch', version='1.0dev', description='Mirroring tool that implements the client (mirror) side of PEP 381', - long_description=ope...
Include changelog in pypi page
py
diff --git a/salt/client/__init__.py b/salt/client/__init__.py index <HASH>..<HASH> 100644 --- a/salt/client/__init__.py +++ b/salt/client/__init__.py @@ -1030,7 +1030,7 @@ class LocalClient(object): syndic_wait = 0 while True: raw = self.event.get_event(timeout, jid) - if raw ...
Process events even without 'id' in them This was breaking syndic matching. The syndic would return its list of expected minions, but that event does not have 'id' in it. Thus, the master would not process that event and it would either result in huge delays for minion returns or the returns for minions under syndic...
py
diff --git a/pysnow.py b/pysnow.py index <HASH>..<HASH> 100644 --- a/pysnow.py +++ b/pysnow.py @@ -194,6 +194,10 @@ class Request(object): raise InvalidUsage('Attempted to update a non-existing record') except MultipleResults: raise NotImplementedError("Update of multiple records ...
Make sure payload is of type dict() in updates
py
diff --git a/backtrader/lineseries.py b/backtrader/lineseries.py index <HASH>..<HASH> 100644 --- a/backtrader/lineseries.py +++ b/backtrader/lineseries.py @@ -64,6 +64,13 @@ class Lines(object): return newcls + @classmethod + def _getlinealias(cls, i): + linealias = cls._getlines()[i] + ...
LineSeries_getlinealias method - Translate backwards from line number to defined alias nams
py
diff --git a/salt/output/virt_query.py b/salt/output/virt_query.py index <HASH>..<HASH> 100644 --- a/salt/output/virt_query.py +++ b/salt/output/virt_query.py @@ -11,4 +11,6 @@ def output(data): out += ' CPUS: {0}\n'.format(vm_data['cpu']) if 'mem' in vm_data: out += ...
Add state check to virt_query
py
diff --git a/Lib/pyhsm/version.py b/Lib/pyhsm/version.py index <HASH>..<HASH> 100644 --- a/Lib/pyhsm/version.py +++ b/Lib/pyhsm/version.py @@ -58,4 +58,4 @@ class YHSM_Version(): """ This is a key handle permission flag that was introduced in 0.9.9. """ - return self.ver > (0, 9, 9,) +...
Correct have_YSM_BUFFER_LOAD.
py
diff --git a/MAVProxy/mavproxy.py b/MAVProxy/mavproxy.py index <HASH>..<HASH> 100755 --- a/MAVProxy/mavproxy.py +++ b/MAVProxy/mavproxy.py @@ -123,6 +123,7 @@ class MPState(object): ('shownoise', int, 1), ('basealt', int, 0), ('wpalt', int, 100), + ('flushlogs',...
don't flush logs unless flushlogs setting is set
py
diff --git a/tests/utils/helpers.py b/tests/utils/helpers.py index <HASH>..<HASH> 100644 --- a/tests/utils/helpers.py +++ b/tests/utils/helpers.py @@ -960,6 +960,7 @@ def get_hazard_job(cfg, username=None): def random_location_generator(min_x=-180, max_x=180, min_y=-90, max_y=90): + rnd = random.Random() r...
tests/utils/helpers: Random locations sometimes cause test failures, because WKB is not a good way to compare location. At a certain level of precision, two different numbers will have the same WKB. This random data causes _random_ test failures. This should stabilize it. Former-commit-id: c<I>b<I>fe2b<I>af5b6c<I>b...
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -53,7 +53,6 @@ setup( 'Programming Language :: Python :: 2', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.3', ...
Remove python <I> from supported versions Refs #<I>
py
diff --git a/spyder/plugins/editor/utils/editor.py b/spyder/plugins/editor/utils/editor.py index <HASH>..<HASH> 100644 --- a/spyder/plugins/editor/utils/editor.py +++ b/spyder/plugins/editor/utils/editor.py @@ -456,6 +456,7 @@ class TextHelper(object): text_cursor.endEditBlock() editor._cleaning = F...
Editor: Add document_did_change to TextHelper utility class
py
diff --git a/refcycle/test/test_refcycle.py b/refcycle/test/test_refcycle.py index <HASH>..<HASH> 100644 --- a/refcycle/test/test_refcycle.py +++ b/refcycle/test/test_refcycle.py @@ -40,9 +40,14 @@ class TestRefcycle(unittest.TestCase): self.assertEqual(len(object_graph), 4) self.assertEqual(len(objec...
Add test covering empty case of cycles_created_by.
py
diff --git a/empyrical/stats.py b/empyrical/stats.py index <HASH>..<HASH> 100644 --- a/empyrical/stats.py +++ b/empyrical/stats.py @@ -654,7 +654,7 @@ def sharpe_ratio(returns, Daily returns of the strategy, noncumulative. - See full explanation in :func:`~empyrical.stats.cum_returns`. risk_free ...
DOC Note daily frequency of risk-free rate (#<I>)
py
diff --git a/tofu/tests/tests01_geom/tests03_core.py b/tofu/tests/tests01_geom/tests03_core.py index <HASH>..<HASH> 100644 --- a/tofu/tests/tests01_geom/tests03_core.py +++ b/tofu/tests/tests01_geom/tests03_core.py @@ -937,6 +937,7 @@ class Test03_Rays(object): # Just to check the loaded version works ...
[Issue<I>] One last print of Config left in unit tests, can't find it
py
diff --git a/dvc/version.py b/dvc/version.py index <HASH>..<HASH> 100644 --- a/dvc/version.py +++ b/dvc/version.py @@ -7,7 +7,7 @@ import os import subprocess -_BASE_VERSION = "0.74.0" +_BASE_VERSION = "0.75.0" def _generate_version(base_version):
dvc: bump to <I>
py
diff --git a/simuvex/s_state.py b/simuvex/s_state.py index <HASH>..<HASH> 100644 --- a/simuvex/s_state.py +++ b/simuvex/s_state.py @@ -444,6 +444,14 @@ class SimState(object): # pylint: disable=R0904 return state # + # Other helper methods + # + + def set_mode(self, mode): + self.mode = ...
added set_mode to s_state
py
diff --git a/Qt.py b/Qt.py index <HASH>..<HASH> 100644 --- a/Qt.py +++ b/Qt.py @@ -1399,7 +1399,8 @@ def _install(): setattr(our_submodule, member, their_member) # Backwards compatibility - Qt.QtCompat.load_ui = Qt.QtCompat.loadUi + if hasattr(Qt.QtCompat, 'loadUi'): + Qt.QtCompat.load_...
Prevent error reported in #<I>
py
diff --git a/sh.py b/sh.py index <HASH>..<HASH> 100644 --- a/sh.py +++ b/sh.py @@ -3504,7 +3504,11 @@ class SelfWrapper(ModuleType): # but it seems to be the only way to make reload() behave # nicely. if i make these attributes dynamic lookups in # __getattr__, reload sometimes chokes in wei...
Make sure to call super() in SelfWrapper.__init__
py
diff --git a/tcex/testing/validate_data.py b/tcex/testing/validate_data.py index <HASH>..<HASH> 100644 --- a/tcex/testing/validate_data.py +++ b/tcex/testing/validate_data.py @@ -133,6 +133,7 @@ class Validator(object): test_data = json.loads(json.dumps(test_data)) except ValueError: ...
removed ignore_order param for deepdiff validation
py
diff --git a/examples/get_images.py b/examples/get_images.py index <HASH>..<HASH> 100644 --- a/examples/get_images.py +++ b/examples/get_images.py @@ -55,6 +55,12 @@ if __name__ == '__main__': image_instances = ImageInstanceCollection().fetch_with_filter("project", params.id_project) print(image_insta...
Create an images-PROJECTID.csv file with images informations
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100755 --- a/setup.py +++ b/setup.py @@ -4,7 +4,7 @@ from setuptools import setup setup( name = 'pypdb', packages = ['pypdb'], # same as 'name' - version = '1.200', + version = '1.300', install_requires=[ 'xmltodict', 'beautifulsoup4'
increment version for pypi
py
diff --git a/tests/_Run_Tests.py b/tests/_Run_Tests.py index <HASH>..<HASH> 100644 --- a/tests/_Run_Tests.py +++ b/tests/_Run_Tests.py @@ -22,7 +22,7 @@ def run_tests(): okay = [] for i in os.listdir("."): if i.find("_test_") > -1 and i.endswith(".py"): - if 0 != subprocess.call("python " ...
Trying to fix broken CI tests.
py
diff --git a/nodeconductor/structure/serializers.py b/nodeconductor/structure/serializers.py index <HASH>..<HASH> 100644 --- a/nodeconductor/structure/serializers.py +++ b/nodeconductor/structure/serializers.py @@ -535,12 +535,14 @@ class UserSerializer(serializers.HyperlinkedModelSerializer): 'civil_numbe...
Expose date_joined attribute in User serializer - NC-<I>
py
diff --git a/scarlet/versioning/view_mixins.py b/scarlet/versioning/view_mixins.py index <HASH>..<HASH> 100644 --- a/scarlet/versioning/view_mixins.py +++ b/scarlet/versioning/view_mixins.py @@ -19,6 +19,7 @@ class PreviewableObject(SingleObjectMixin): """ schema = manager.get_schema() + vid ...
Fix version id based preview
py
diff --git a/zinnia/moderator.py b/zinnia/moderator.py index <HASH>..<HASH> 100644 --- a/zinnia/moderator.py +++ b/zinnia/moderator.py @@ -8,12 +8,8 @@ from django.contrib.sites.models import Site from django.utils.translation import activate from django.utils.translation import get_language from django.utils.transl...
moderate method does not apply a SPAM flag anymore and become more respectful of the API by removing the save
py
diff --git a/discord/ext/commands/bot.py b/discord/ext/commands/bot.py index <HASH>..<HASH> 100644 --- a/discord/ext/commands/bot.py +++ b/discord/ext/commands/bot.py @@ -41,7 +41,7 @@ from .formatter import HelpFormatter def when_mentioned(bot, msg): """A callable that implements a command prefix equivalent ...
[commands] Fix lack of space in when_mentioned
py
diff --git a/splunklib/client.py b/splunklib/client.py index <HASH>..<HASH> 100644 --- a/splunklib/client.py +++ b/splunklib/client.py @@ -933,7 +933,10 @@ class Entity(Endpoint): def _load_atom_entry(self, response): elem = _load_atom(response, XNAME_ENTRY) if isinstance(elem, list): - ...
Identical entity names will cause an infinite loop "RuntimeError: maximum recursion depth exceeded". Give a clear message about which applications have this entity.
py
diff --git a/tests/test_update_query.py b/tests/test_update_query.py index <HASH>..<HASH> 100644 --- a/tests/test_update_query.py +++ b/tests/test_update_query.py @@ -120,6 +120,10 @@ def test_with_query_list_int(): @pytest.mark.parametrize( "query,expected", [ + pytest.param({"a": []}, "?", id="empty...
Add tests for edge cases of quoting lists and tuples
py
diff --git a/indra/tests/test_pysb_assembler.py b/indra/tests/test_pysb_assembler.py index <HASH>..<HASH> 100644 --- a/indra/tests/test_pysb_assembler.py +++ b/indra/tests/test_pysb_assembler.py @@ -813,10 +813,11 @@ def _check_mod_assembly(mod_class): assert(len(model.monomers)==2) def test_modification_assemb...
Fix PysbAssembler tests for Modification subclasses
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -52,7 +52,7 @@ with VenvLinkDeleted(): name='django-endless-pagination', version=project.get_version(), description=project.__doc__, - long_description=read('README'), + long_descriptio...
Update setup.py Cannot install package with setup.py since README does not exist (README.rst exists instead)
py
diff --git a/discord/client.py b/discord/client.py index <HASH>..<HASH> 100644 --- a/discord/client.py +++ b/discord/client.py @@ -464,6 +464,24 @@ class Client: passing status code. """ + if email == "token": + log.info('logging in using static token') + self.token ...
Add support for token login (for bots)
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -16,7 +16,7 @@ requirements = ( setup( name='combine', - version='0.0.18.dev0', + version='0.0.18', description='A helpful, simple static site generator.', long_description=long_description, long_d...
Preparing release <I>
py
diff --git a/tests/simulation/TestSimulation.py b/tests/simulation/TestSimulation.py index <HASH>..<HASH> 100644 --- a/tests/simulation/TestSimulation.py +++ b/tests/simulation/TestSimulation.py @@ -44,7 +44,7 @@ class TestSimulation(BaseTestSimulation): } for cycle in tests: synergy_object_manager = s...
Fix core simulation test: sort results to prevent random order du to process
py
diff --git a/core_examples/public_timeline.py b/core_examples/public_timeline.py index <HASH>..<HASH> 100644 --- a/core_examples/public_timeline.py +++ b/core_examples/public_timeline.py @@ -5,4 +5,4 @@ twitter = Twython() public_timeline = twitter.getPublicTimeline() for tweet in public_timeline: - print tweet["te...
PEP8 Edit: Removed Tab -> added 4 spaces
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -10,6 +10,8 @@ setup( packages=find_packages(exclude=["*test*"]), install_requires=open("requirements.txt").readlines(), description="Simple script for sending emails", + long_description=open("README.md").re...
FIX: Added missing long_description
py
diff --git a/mail_deduplicate/deduplicate.py b/mail_deduplicate/deduplicate.py index <HASH>..<HASH> 100644 --- a/mail_deduplicate/deduplicate.py +++ b/mail_deduplicate/deduplicate.py @@ -36,6 +36,7 @@ from . import ( MissingMessageID, SizeDiffAboveThreshold, logger, + MD_SUBDIRS, ) from .mail import...
Re-introduce maildir validation.
py
diff --git a/rt.py b/rt.py index <HASH>..<HASH> 100644 --- a/rt.py +++ b/rt.py @@ -14,6 +14,20 @@ def global_loop(queue): actor.behavior(message) +def initial_behavior(f): + f.initial_behavior = True + return f + + +class MetaActor(type): + + def __new__(mcls, name, bases, dict): + ...
More convenient Actor declaration via metaclasses
py
diff --git a/master/buildbot/steps/source.py b/master/buildbot/steps/source.py index <HASH>..<HASH> 100644 --- a/master/buildbot/steps/source.py +++ b/master/buildbot/steps/source.py @@ -18,6 +18,7 @@ from warnings import warn from email.Utils import formatdate from twisted.python import log from buildbot.process.bu...
Make Source steps conform to docs We state that we allow WithProperties in the repository kwarg, but repository=WithProperties(...) didn't work. Now it does.
py
diff --git a/zinnia_tinymce/__init__.py b/zinnia_tinymce/__init__.py index <HASH>..<HASH> 100644 --- a/zinnia_tinymce/__init__.py +++ b/zinnia_tinymce/__init__.py @@ -1,5 +1,5 @@ """TinyMCE for Django-blog-zinnia""" -__version__ = '1.1' +__version__ = '1.2' __license__ = 'BSD License' __author__ = 'Fantomas42'
Bumping to version <I>
py
diff --git a/salt/config.py b/salt/config.py index <HASH>..<HASH> 100644 --- a/salt/config.py +++ b/salt/config.py @@ -1975,6 +1975,9 @@ def client_config(path, env_var='SALT_CLIENT_CONFIG', defaults=None): if os.path.isfile(opts['token_file']): with salt.utils.fopen(opts['token_file']) as fp_: ...
Possible fix for #<I> * Rewrite a client's interface directive to localhost if it's set to <I>.
py
diff --git a/moto/route53/responses.py b/moto/route53/responses.py index <HASH>..<HASH> 100644 --- a/moto/route53/responses.py +++ b/moto/route53/responses.py @@ -174,6 +174,7 @@ LIST_HOSTED_ZONES_RESPONSE = """<ListHostedZonesResponse xmlns="https://route53. </HostedZone> {% endfor %} </HostedZones> ...
add Istruncated to False in template list_hosted_zones_response in route<I>. Because it always has it.
py
diff --git a/thunder/base.py b/thunder/base.py index <HASH>..<HASH> 100644 --- a/thunder/base.py +++ b/thunder/base.py @@ -1,6 +1,6 @@ from numpy import array, asarray, ndarray, prod, ufunc, add, subtract, \ multiply, divide, isscalar, newaxis, unravel_index, argsort -from bolt.utils import inshape, tupleize +fro...
updated indexing to take advantage of better indexing recently added to Bolt
py
diff --git a/pymc/distributions/discrete.py b/pymc/distributions/discrete.py index <HASH>..<HASH> 100644 --- a/pymc/distributions/discrete.py +++ b/pymc/distributions/discrete.py @@ -194,6 +194,7 @@ def DiscreteUniform(lower, upper): - `upper` : Upper limit (upper > lower). """ + lower, upper = lower.a...
Ensured upper and lower are ints for DiscreteUniform
py
diff --git a/docs/convert_notebooks_to_html_partial.py b/docs/convert_notebooks_to_html_partial.py index <HASH>..<HASH> 100644 --- a/docs/convert_notebooks_to_html_partial.py +++ b/docs/convert_notebooks_to_html_partial.py @@ -145,10 +145,6 @@ def _preamble_cell(path): # HIDDEN # Clear previously defined vari...
Remove buggy notebook preamble code
py
diff --git a/r128gain/__init__.py b/r128gain/__init__.py index <HASH>..<HASH> 100755 --- a/r128gain/__init__.py +++ b/r128gain/__init__.py @@ -117,7 +117,6 @@ def get_r128_loudness(audio_filepaths, *, calc_peak=True, enable_ffmpeg_threadin sample_fmts="s16", ...
Remove afifo FFmpeg filter
py
diff --git a/xigt/codecs/xigtxml.py b/xigt/codecs/xigtxml.py index <HASH>..<HASH> 100644 --- a/xigt/codecs/xigtxml.py +++ b/xigt/codecs/xigtxml.py @@ -272,13 +272,18 @@ def default_encode_meta(meta, indent=2, level=1): # raise ValueError('Invalid subtype of Meta: {}' # .format(meta.type...
Fix xigtxml so it doesn't crash when Meta.children is None. Also this fixes spacing issues with the <meta> start and end tags, and prevents an extra > from outputting after </meta>.
py
diff --git a/tests/test_pipenv.py b/tests/test_pipenv.py index <HASH>..<HASH> 100644 --- a/tests/test_pipenv.py +++ b/tests/test_pipenv.py @@ -459,7 +459,29 @@ requests = {version = "*"} c = p.pipenv('check --style .') assert 'requests' in c.out + @pytest.mark.extras + @pytest....
added a test for converting requirements to pipfile
py
diff --git a/thinc/about.py b/thinc/about.py index <HASH>..<HASH> 100644 --- a/thinc/about.py +++ b/thinc/about.py @@ -1,2 +1,2 @@ -__version__ = "8.0.9" +__version__ = "8.0.10" __release__ = True
Set version to <I> (#<I>)
py
diff --git a/lhc/file_format/vcf_/index.py b/lhc/file_format/vcf_/index.py index <HASH>..<HASH> 100644 --- a/lhc/file_format/vcf_/index.py +++ b/lhc/file_format/vcf_/index.py @@ -37,3 +37,11 @@ class IndexedVcfFile(object): start + 1 lines = self.index.fetch(chr, start, stop) return [s...
added convenience functions to vcf index
py
diff --git a/scout/server/blueprints/dashboard/controllers.py b/scout/server/blueprints/dashboard/controllers.py index <HASH>..<HASH> 100644 --- a/scout/server/blueprints/dashboard/controllers.py +++ b/scout/server/blueprints/dashboard/controllers.py @@ -1,6 +1,5 @@ import logging from flask_login import current_user...
a better way to check if institute is available for a user
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -27,7 +27,8 @@ metadata = {'__file__': os.path.join(here, 'plenum', '__metadata__.py')} with open(metadata['__file__'], 'r') as f: exec(f.read(), metadata) -tests_require = ['attrs==19.1.0', 'pytest==3.3.1', 'pytest-xd...
INDY-<I>: fix pytest-forked version for <I>
py
diff --git a/salt/cloud/clouds/nova.py b/salt/cloud/clouds/nova.py index <HASH>..<HASH> 100644 --- a/salt/cloud/clouds/nova.py +++ b/salt/cloud/clouds/nova.py @@ -386,8 +386,6 @@ def destroy(name, conn=None, call=None): {'name': name}, transport=__opts__['transport'] ) - print ...
removed some debugging code accidentally commited earlier
py
diff --git a/pyasn1/compat/binary.py b/pyasn1/compat/binary.py index <HASH>..<HASH> 100644 --- a/pyasn1/compat/binary.py +++ b/pyasn1/compat/binary.py @@ -10,6 +10,14 @@ if version_info[0:2] < (2, 6): def bin(value): bitstring = [] + if value > 0: + prefix = '0b' + elif value < ...
fixed compat bin() for negatives
py
diff --git a/libraries/botbuilder-core/botbuilder/core/bot_framework_adapter.py b/libraries/botbuilder-core/botbuilder/core/bot_framework_adapter.py index <HASH>..<HASH> 100644 --- a/libraries/botbuilder-core/botbuilder/core/bot_framework_adapter.py +++ b/libraries/botbuilder-core/botbuilder/core/bot_framework_adapter....
Fixed issue with channel_data being overwritten in create_conversation (#<I>)
py
diff --git a/dirutility/__init__.py b/dirutility/__init__.py index <HASH>..<HASH> 100644 --- a/dirutility/__init__.py +++ b/dirutility/__init__.py @@ -1,9 +1,10 @@ from dirutility.move import FlattenTree, CreateTree, move_files_to_folders from dirutility.walk import DirPaths, DirTree from dirutility.view import desk...
ADD Permissions class to dirutility __all__ declaration
py
diff --git a/welly/curve.py b/welly/curve.py index <HASH>..<HASH> 100644 --- a/welly/curve.py +++ b/welly/curve.py @@ -160,9 +160,12 @@ class Curve(np.ndarray): ax.set(**axkwargs) + lw = getattr(d, 'lineweight', None) or getattr(d, 'lw', 1) + ls = getattr(d, 'linestyle', None) or getattr(...
more decors params for curve plot
py
diff --git a/django_extensions/management/commands/sync_media_s3.py b/django_extensions/management/commands/sync_media_s3.py index <HASH>..<HASH> 100644 --- a/django_extensions/management/commands/sync_media_s3.py +++ b/django_extensions/management/commands/sync_media_s3.py @@ -162,6 +162,11 @@ class Command(BaseComman...
This update fixes an issue where the file name was losing the first character if the MEDIA_ROOT ended with a trailing slash. I've changed the assumption to be that MEDIA_ROOT does end with a trailing slash and will append one if none exists. Thanks to lukasz.korzybski for the report and debugging.
py
diff --git a/processors/generic_processor.py b/processors/generic_processor.py index <HASH>..<HASH> 100644 --- a/processors/generic_processor.py +++ b/processors/generic_processor.py @@ -492,6 +492,10 @@ class GenericProcessor(processor.ImportProcessor): self._revision_count += 1 self.report_progress(...
Set a tag when touching a refs/tags/ ref with a commit command.
py
diff --git a/ca/django_ca/tests/base.py b/ca/django_ca/tests/base.py index <HASH>..<HASH> 100644 --- a/ca/django_ca/tests/base.py +++ b/ca/django_ca/tests/base.py @@ -9,6 +9,9 @@ import os import shutil import tempfile +from datetime import datetime +from datetime import timedelta + from OpenSSL import crypto fro...
add function to get datetime from number of days
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -50,7 +50,7 @@ setup( packages=find_packages(), install_requires=[ 'pytest >= 2.8.1', - 'pytest-logging', + 'pytest-catchlog', 'pytest-tempdir' ], setup_requires=[
Depend on pytest-catchlog instead of pytest-logging
py
diff --git a/scrapekit/tasks.py b/scrapekit/tasks.py index <HASH>..<HASH> 100644 --- a/scrapekit/tasks.py +++ b/scrapekit/tasks.py @@ -60,6 +60,8 @@ class TaskManager(object): Do not call this directly, use Task.queue/Task.run instead. """ + if self.num_threads == 0: + return task(...
Run without threads if num_threads is 0
py
diff --git a/salt/log/handlers/logstash_mod.py b/salt/log/handlers/logstash_mod.py index <HASH>..<HASH> 100644 --- a/salt/log/handlers/logstash_mod.py +++ b/salt/log/handlers/logstash_mod.py @@ -139,7 +139,7 @@ __virtualname__ = 'logstash' def __virtual__(): if not any(['logstash_udp_handler' in __opts__, ...
Quiet the logstash handler loading message @s0undt3ch FYI. If you think this is a bad change, I'd be happy to discuss it with you, but <I>% of salt users don't use that handler (as far as I know) and it's just garbage in the debug log.
py
diff --git a/tests/test_providers.py b/tests/test_providers.py index <HASH>..<HASH> 100644 --- a/tests/test_providers.py +++ b/tests/test_providers.py @@ -1089,3 +1089,27 @@ class ConfigTests(unittest.TestCase): 'ChildConfig({0}) at {1}>'.format( repr('.'.join(('c...
Add FactoryAsDecoratorTests
py
diff --git a/tornado_pyuv/__init__.py b/tornado_pyuv/__init__.py index <HASH>..<HASH> 100644 --- a/tornado_pyuv/__init__.py +++ b/tornado_pyuv/__init__.py @@ -15,17 +15,11 @@ def install(): _tornado_ioloop = __import__('tornado.ioloop', fromlist=['foobar']) _IOLoop = _tornado_ioloop.IOLoop - class FDWra...
Adapted to API changes in pyuv
py
diff --git a/test/unit/test_runner_config.py b/test/unit/test_runner_config.py index <HASH>..<HASH> 100644 --- a/test/unit/test_runner_config.py +++ b/test/unit/test_runner_config.py @@ -215,6 +215,7 @@ def test_generate_ansible_command(): assert cmd == ['ansible', '-i', '/inventory', '-m', 'setup', '-a', 'test=st...
add two blank lines so flake8 is happy
py
diff --git a/pycdlib/rockridge.py b/pycdlib/rockridge.py index <HASH>..<HASH> 100644 --- a/pycdlib/rockridge.py +++ b/pycdlib/rockridge.py @@ -787,6 +787,9 @@ class RRSLRecord(object): if not cr_flags & (1 << 0): self.symlink_components.append(name) name = b'' + ...
Add in a FIXME message for dealing with continued SL records.
py
diff --git a/pyunpack/__init__.py b/pyunpack/__init__.py index <HASH>..<HASH> 100644 --- a/pyunpack/__init__.py +++ b/pyunpack/__init__.py @@ -69,11 +69,7 @@ class Archive(object): if self.backend == 'auto': if is_zipfile: - try: - self.extractall_zipfile(direct...
drop py<I> support
py
diff --git a/pyup/config.py b/pyup/config.py index <HASH>..<HASH> 100644 --- a/pyup/config.py +++ b/pyup/config.py @@ -134,7 +134,7 @@ class Config(object): Config.UPDATE_INSECURE_TYPO) def is_valid_schedule(self): - return SCHEDULE_REGEX...
Check for regex only if we have string
py
diff --git a/safe/impact_functions/inundation/flood_raster_road/impact_function.py b/safe/impact_functions/inundation/flood_raster_road/impact_function.py index <HASH>..<HASH> 100644 --- a/safe/impact_functions/inundation/flood_raster_road/impact_function.py +++ b/safe/impact_functions/inundation/flood_raster_road/impa...
Fix #<I> *typo only.
py
diff --git a/openfisca_core/tracers.py b/openfisca_core/tracers.py index <HASH>..<HASH> 100644 --- a/openfisca_core/tracers.py +++ b/openfisca_core/tracers.py @@ -103,13 +103,12 @@ class Tracer(object): u"Something went wrong with the simulation tracer: result of '{0}' was expected, got results for '{1...
Add new enum calls to tracers
py
diff --git a/thumbor/detectors/__init__.py b/thumbor/detectors/__init__.py index <HASH>..<HASH> 100644 --- a/thumbor/detectors/__init__.py +++ b/thumbor/detectors/__init__.py @@ -48,10 +48,10 @@ class CascadeLoaderDetector(BaseDetector): image, self.__class__.cascade, cv.CreateMem...
upz i used the names from <I> version, now its correct
py
diff --git a/python/phonenumbers/__init__.py b/python/phonenumbers/__init__.py index <HASH>..<HASH> 100644 --- a/python/phonenumbers/__init__.py +++ b/python/phonenumbers/__init__.py @@ -147,7 +147,7 @@ from .phonenumbermatcher import PhoneNumberMatch, PhoneNumberMatcher, Leniency # Version number is taken from the ...
Prep for <I> release
py
diff --git a/tests/test_fixtures.py b/tests/test_fixtures.py index <HASH>..<HASH> 100644 --- a/tests/test_fixtures.py +++ b/tests/test_fixtures.py @@ -93,6 +93,6 @@ class ZenpyApiTestCase(BetamaxTestCase): prop_val = getattr(zenpy_object, attr_name) if prop_val and issubclass(prop_val....
Actually pass a class to issubclass...
py
diff --git a/galpy/potential_src/Potential.py b/galpy/potential_src/Potential.py index <HASH>..<HASH> 100644 --- a/galpy/potential_src/Potential.py +++ b/galpy/potential_src/Potential.py @@ -2646,8 +2646,12 @@ def _check_c(Pot): 2014-02-17 - Written - Bovy (IAS) """ + from galpy.potential_src.SimpleWr...
Check whether all elements of a potential have C implementations in Potential._check_c
py
diff --git a/mapping/util.py b/mapping/util.py index <HASH>..<HASH> 100644 --- a/mapping/util.py +++ b/mapping/util.py @@ -213,10 +213,15 @@ def calc_rets(returns, weights): # in later indexing of rets even when ret has weight of 0 gnrc_wts = gnrc_wts.loc[gnrc_wts != 0] root_rets ...
Improve KeyError description When KeyError is raised include the missing keys in the error message.
py
diff --git a/drf_dynamic_fields/__init__.py b/drf_dynamic_fields/__init__.py index <HASH>..<HASH> 100644 --- a/drf_dynamic_fields/__init__.py +++ b/drf_dynamic_fields/__init__.py @@ -29,7 +29,7 @@ class DynamicFieldsMixin(object): params = getattr( request, 'query_params', getattr(request, 'GET', ...
Warn only if the params are missing from `request` Previously it would warn if they were present but empty.
py
diff --git a/lib/svtplay_dl/output.py b/lib/svtplay_dl/output.py index <HASH>..<HASH> 100644 --- a/lib/svtplay_dl/output.py +++ b/lib/svtplay_dl/output.py @@ -148,6 +148,8 @@ def output(options, extention="mp4", openfd=True, mode="wb"): ext = re.search(r"(\.[a-z0-9]+)$", options.output) if not ext: ...
output: walkaround for titles with .XXX at the in the end.
py
diff --git a/pygccxml/declarations/calldef.py b/pygccxml/declarations/calldef.py index <HASH>..<HASH> 100644 --- a/pygccxml/declarations/calldef.py +++ b/pygccxml/declarations/calldef.py @@ -431,6 +431,20 @@ class constructor_t( member_calldef_t ): def __init__( self, *args, **keywords ): member_calldef_...
a group of small improvements to the projects, mainly improving error messages
py
diff --git a/publib/test/test_functions.py b/publib/test/test_functions.py index <HASH>..<HASH> 100644 --- a/publib/test/test_functions.py +++ b/publib/test/test_functions.py @@ -29,7 +29,6 @@ def test_routines(**kwargs): import numpy as np import matplotlib.pyplot as plt - plt.ion() # force interacti...
ensure interactive mode so test are not stuck
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -50,7 +50,7 @@ setup( extras_require={"dev": read_requirements("dev.txt")}, include_package_data=True, classifiers=[ - "Development Status :: 4 - Beta", + "Development Status :: 5 - Production/Stab...
fix(classifiers): Mark AWS SAM CLI as Production/Stable (#<I>) * classifiers definition present at: <URL>
py
diff --git a/mongoctl/mongoctl.py b/mongoctl/mongoctl.py index <HASH>..<HASH> 100644 --- a/mongoctl/mongoctl.py +++ b/mongoctl/mongoctl.py @@ -3539,6 +3539,15 @@ def get_host_ips(host): ip = elem[4] if ip not in ips: ips.append(ip) + + # TODO remove this temp hack that ...
Deal with an edge case for replset conf member resolution when a host has multiple ip addresses
py
diff --git a/salt/grains/core.py b/salt/grains/core.py index <HASH>..<HASH> 100644 --- a/salt/grains/core.py +++ b/salt/grains/core.py @@ -1332,7 +1332,14 @@ def os_data(): if os.path.exists('/proc/1/cmdline'): with salt.utils.fopen('/proc/1/cmdline') as fhr: init_cmdl...
Catch a possible error, especially trigered in unit tests
py
diff --git a/pipenv/core.py b/pipenv/core.py index <HASH>..<HASH> 100644 --- a/pipenv/core.py +++ b/pipenv/core.py @@ -1218,6 +1218,7 @@ def activate_virtualenv(source=True): # Support for csh shell. if PIPENV_SHELL and 'csh' in PIPENV_SHELL: suffix = '.csh' + command = 'source' # Escap...
Correct csh syntax in activate_virtualenv In csh, the . operator executes a directory, which is the wrong behaviour here. At best, when pipenv is installed system-wide (preferably via the operating system package manager), the result is a permission denied error from the shell. As csh uses the source command, reflect...
py
diff --git a/hgvs/location.py b/hgvs/location.py index <HASH>..<HASH> 100644 --- a/hgvs/location.py +++ b/hgvs/location.py @@ -202,10 +202,10 @@ class BaseOffsetInterval(Interval): if self.start.datum == CDS_END: self.end.datum = CDS_END - #self.validate() + self.validate() ...
uncommented validation statement in BaseOffsetInterval, from PR comment; tests pass
py
diff --git a/chm/chm.py b/chm/chm.py index <HASH>..<HASH> 100644 --- a/chm/chm.py +++ b/chm/chm.py @@ -247,12 +247,10 @@ class CHMFile: result, ui = chmlib.chm_resolve_object(self.file, '/#SYSTEM') if (result != chmlib.CHM_RESOLVE_SUCCESS): - sys.stderr.write('GetArchiveInfo: #SYSTEM does...
Stop writing diagnostic information to stderr If necessary, these messages may be reinstated later when a suitable logger is passed to the CHMFile constructor
py
diff --git a/src/you_get/extractors/acfun.py b/src/you_get/extractors/acfun.py index <HASH>..<HASH> 100644 --- a/src/you_get/extractors/acfun.py +++ b/src/you_get/extractors/acfun.py @@ -117,7 +117,9 @@ def acfun_download(url, output_dir='.', merge=True, info_only=False, **kwargs): vid = r1('data-vid="(\d+)"', h...
[acfun] fix active single-p title
py
diff --git a/tests/test_bdist_rpm.py b/tests/test_bdist_rpm.py index <HASH>..<HASH> 100644 --- a/tests/test_bdist_rpm.py +++ b/tests/test_bdist_rpm.py @@ -3,9 +3,7 @@ import unittest import sys import os -import tempfile -import shutil -from test.support import run_unittest +from test.support import run_unittest, re...
Some distutils tests require zlib for creating tar.gz source distribution.
py
diff --git a/sos/plugins/processor.py b/sos/plugins/processor.py index <HASH>..<HASH> 100644 --- a/sos/plugins/processor.py +++ b/sos/plugins/processor.py @@ -36,7 +36,7 @@ class Processor(Plugin, RedHatPlugin, UbuntuPlugin, DebianPlugin): self.add_cmd_output("cpupower idle-info") self.add_cmd_output(...
Fix x<I> arch detection in processor plugin
py
diff --git a/lancet/issue_tracker.py b/lancet/issue_tracker.py index <HASH>..<HASH> 100644 --- a/lancet/issue_tracker.py +++ b/lancet/issue_tracker.py @@ -68,11 +68,18 @@ class GitlabTracker(Tracker): project = self.api.projects.get(project_id, lazy=True) group = self.api.groups.get(self.group_id, laz...
Restore compatibility with python < <I>
py
diff --git a/lib/svtplay_dl/output.py b/lib/svtplay_dl/output.py index <HASH>..<HASH> 100644 --- a/lib/svtplay_dl/output.py +++ b/lib/svtplay_dl/output.py @@ -157,12 +157,12 @@ def output(options, extension="mp4", openfd=True, mode="wb", **kwargs): findexpisode(os.path.dirname(os.path.realpath(options.outp...
Cleanup code for silent, 'File (%s) already exists.'
py
diff --git a/src/sos/Julia/kernel.py b/src/sos/Julia/kernel.py index <HASH>..<HASH> 100644 --- a/src/sos/Julia/kernel.py +++ b/src/sos/Julia/kernel.py @@ -133,7 +133,7 @@ using Feather using NamedArrays using DataFrames function __s_o_s__julia_py_repr_logical_1(obj) - obj==true ? "true" : "false" + obj==true ?...
fix bug for converting boolean variable from julia to python
py
diff --git a/spyder/plugins/pylint/plugin.py b/spyder/plugins/pylint/plugin.py index <HASH>..<HASH> 100644 --- a/spyder/plugins/pylint/plugin.py +++ b/spyder/plugins/pylint/plugin.py @@ -15,6 +15,7 @@ import os.path as osp from qtpy.QtCore import Qt, Signal, Slot # Local imports +from spyder.api.exceptions impor...
Remove hard reference to editor in pylint
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -23,7 +23,8 @@ setup( packages=find_packages(exclude=['test']), install_requires=['click>=4.0', 'dulwich', 'logbook', 'tempdir>=0.6', 'virtualenv>=1.10.1', 'python-dateutil', 'versio', - ...
Added missing dependency: shutilwhich.
py
diff --git a/networking_cisco/plugins/cisco/db/device_manager/hosting_device_manager_db.py b/networking_cisco/plugins/cisco/db/device_manager/hosting_device_manager_db.py index <HASH>..<HASH> 100644 --- a/networking_cisco/plugins/cisco/db/device_manager/hosting_device_manager_db.py +++ b/networking_cisco/plugins/cisco/...
ASR1K plugin: conditionally append v3 to authurl. This change checks whether the keystone_authurl already has "v3" appended prior to appending it with "/v3". Retains the assumption that the URL always needs to be v3. Change-Id: Id<I>c1c1c<I>b8f<I>c5e6fd<I>da3ac<I>da3ed2b
py