diff
stringlengths
139
3.65k
message
stringlengths
8
627
diff_languages
stringclasses
1 value
diff --git a/coveralls/cli.py b/coveralls/cli.py index <HASH>..<HASH> 100644 --- a/coveralls/cli.py +++ b/coveralls/cli.py @@ -16,6 +16,7 @@ Usage: Global options: --rcfile=<file> Specify configuration file. [default: .coveragerc] --output=<file> Write report to file. Doesn't send anything. + --merge...
Add ability to merge reports (not finished yet).
py
diff --git a/opentrons/instruments/pipette.py b/opentrons/instruments/pipette.py index <HASH>..<HASH> 100644 --- a/opentrons/instruments/pipette.py +++ b/opentrons/instruments/pipette.py @@ -860,9 +860,10 @@ class Pipette(Instrument): tip_plunge = 6 - for _ in range(3): - self...
adding extra 1mm to pick_up_tip to help make seal
py
diff --git a/pylint/checkers/exceptions.py b/pylint/checkers/exceptions.py index <HASH>..<HASH> 100644 --- a/pylint/checkers/exceptions.py +++ b/pylint/checkers/exceptions.py @@ -461,21 +461,16 @@ class ExceptionsChecker(checkers.BaseChecker): # also break early if bare except is followed by bare excep...
Fix value assigned to local variable 'bare_raise' is never used
py
diff --git a/trunk/ipaddr_test.py b/trunk/ipaddr_test.py index <HASH>..<HASH> 100755 --- a/trunk/ipaddr_test.py +++ b/trunk/ipaddr_test.py @@ -743,7 +743,7 @@ class IpaddrUnitTest(unittest.TestCase): ipaddr.IPNetwork('10.1.1.128/25')]) self.assertRaises(ValueError, addr1.address_excl...
+ the comparison tests when hashing don't make sense since __hash__ values are dependant upon version and platform. git-svn-id: <URL>
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -2,7 +2,7 @@ from setuptools import setup, find_packages setup( name='neomodel', - version='3.2.4', + version='3.2.5', description='An object mapper for the neo4j graph database.', long_description=open...
Fixes version in setup.py
py
diff --git a/src/pyctools/components/colourspace/gammacorrection.py b/src/pyctools/components/colourspace/gammacorrection.py index <HASH>..<HASH> 100644 --- a/src/pyctools/components/colourspace/gammacorrection.py +++ b/src/pyctools/components/colourspace/gammacorrection.py @@ -157,8 +157,10 @@ class GammaCorrect(Trans...
Scale S-Log and Canon-Log so white in -> <I> out
py
diff --git a/skgof/ksdist.py b/skgof/ksdist.py index <HASH>..<HASH> 100644 --- a/skgof/ksdist.py +++ b/skgof/ksdist.py @@ -91,6 +91,7 @@ def ks_unif_durbin_matrix(samples, statistic): """ # Construct the Durbin matrix. h, k = modf(samples * statistic) + k = int(k) h = 1 - h m = 2 * k + 1 ...
Added an explicit int cast in ksdist to eliminate NumPy warnings.
py
diff --git a/km3pipe/io/aanet.py b/km3pipe/io/aanet.py index <HASH>..<HASH> 100644 --- a/km3pipe/io/aanet.py +++ b/km3pipe/io/aanet.py @@ -243,7 +243,7 @@ class AanetPump(Pump): if self.format != 'ancient_recolns': try: hits = RawHitSeries.from_aanet(event.hits, event_id) - ...
Use mc_t to determine mc time conversion from jte to mc time
py
diff --git a/salt/runners/manage.py b/salt/runners/manage.py index <HASH>..<HASH> 100644 --- a/salt/runners/manage.py +++ b/salt/runners/manage.py @@ -110,7 +110,10 @@ def down(removekeys=False): ret = status(output=False).get('down', []) for minion in ret: if removekeys: - subprocess.call...
Pass -c to salt-key Closes #<I>
py
diff --git a/devicecloud/version.py b/devicecloud/version.py index <HASH>..<HASH> 100644 --- a/devicecloud/version.py +++ b/devicecloud/version.py @@ -5,4 +5,4 @@ # Copyright (c) 2015-2018 Digi International Inc. -__version__ = "0.5.7" +__version__ = "0.5.8"
release: Add GEOJSON data format support Increase the version number by one because a new release is needed to be used by dal_test. DAL-<I>
py
diff --git a/securesystemslib/interface.py b/securesystemslib/interface.py index <HASH>..<HASH> 100755 --- a/securesystemslib/interface.py +++ b/securesystemslib/interface.py @@ -14,7 +14,7 @@ See LICENSE for licensing information. <Purpose> - Provide an interface to the cryptography funtions available in + Pro...
DOC: Arg interactions for import_rsa_privatekey_from_file Clarify behavior if prompt is True and password is provided anyway (raises error), and in other combinations. Also corrects a typo.
py
diff --git a/i3pystatus/swap.py b/i3pystatus/swap.py index <HASH>..<HASH> 100644 --- a/i3pystatus/swap.py +++ b/i3pystatus/swap.py @@ -19,7 +19,7 @@ class Swap(IntervalModule): format = "{free} MiB" format_no_swap = "No swap" - hide_if_empty = True + hide_if_empty = False divisor = 1024 ** 2 ...
Change hide_if_empty default to False Apply the principle of least surprise
py
diff --git a/bitshares/transactionbuilder.py b/bitshares/transactionbuilder.py index <HASH>..<HASH> 100644 --- a/bitshares/transactionbuilder.py +++ b/bitshares/transactionbuilder.py @@ -156,7 +156,8 @@ class TransactionBuilder(dict): :param tx tx: Signed transaction to broadcast """ - se...
[txbuilder] only sign if no signature present
py
diff --git a/src/python/dxpy/scripts/dx.py b/src/python/dxpy/scripts/dx.py index <HASH>..<HASH> 100755 --- a/src/python/dxpy/scripts/dx.py +++ b/src/python/dxpy/scripts/dx.py @@ -2884,7 +2884,7 @@ def print_run_help(executable="", alias=None): stanzas.append(format_choices_or_suggestion...
More compact "dx run -h" docs for inputs lacking help strings.
py
diff --git a/karaage/management/commands/kgcreatesuperuser.py b/karaage/management/commands/kgcreatesuperuser.py index <HASH>..<HASH> 100644 --- a/karaage/management/commands/kgcreatesuperuser.py +++ b/karaage/management/commands/kgcreatesuperuser.py @@ -130,7 +130,7 @@ class Command(BaseCommand): ...
Mark ne institute as active when creating superuser
py
diff --git a/tests/django_project/setup.py b/tests/django_project/setup.py index <HASH>..<HASH> 100755 --- a/tests/django_project/setup.py +++ b/tests/django_project/setup.py @@ -3,7 +3,7 @@ from setuptools import setup, find_packages -setup( +__name__ == '__main__' and setup( name='django-project', pack...
Fix dist setup in django test project
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -11,7 +11,7 @@ def readme(file='', split=False): setup( name='pyderman', - version='1.0.1', + version='1.2.0', description='Installs the latest Chrome/Firefox/Gecko web drivers automatically.', long_description=readme...
Increment for release <I>
py
diff --git a/src/you_get/extractors/douyutv.py b/src/you_get/extractors/douyutv.py index <HASH>..<HASH> 100644 --- a/src/you_get/extractors/douyutv.py +++ b/src/you_get/extractors/douyutv.py @@ -21,4 +21,3 @@ def douyutv_download(url, output_dir = '.', merge = True, info_only = False): site_info = "douyutv.com" downl...
modified: src/you_get/extractors/douyutv.py switch to newer common functions.
py
diff --git a/source/awesome_tool/statemachine/states/preemptive_concurrency_state.py b/source/awesome_tool/statemachine/states/preemptive_concurrency_state.py index <HASH>..<HASH> 100644 --- a/source/awesome_tool/statemachine/states/preemptive_concurrency_state.py +++ b/source/awesome_tool/statemachine/states/preemptiv...
solve mantis issue to make the state execution state more detailed - actually the real changes where done in the commit before - a enum was added that keeps track of the state execution state for each state - fix wrong attribute access for final outcome id
py
diff --git a/pronto/ontology.py b/pronto/ontology.py index <HASH>..<HASH> 100644 --- a/pronto/ontology.py +++ b/pronto/ontology.py @@ -187,10 +187,12 @@ class Ontology(collections.Mapping): force, parsers = self._get_parsers(parser) - if getattr(stream, 'seekable', lambda: False)(): + + try: ...
Fix bug with non seekable handle saying they are
py
diff --git a/tests/test_metadata.py b/tests/test_metadata.py index <HASH>..<HASH> 100644 --- a/tests/test_metadata.py +++ b/tests/test_metadata.py @@ -584,7 +584,7 @@ def test_random_docinfo(docinfo): "/Creator", ] ), - values=st.none() | st.characters(), + values=st...
tests: exclude unicode surrogates from valid metadata test
py
diff --git a/docker/client.py b/docker/client.py index <HASH>..<HASH> 100644 --- a/docker/client.py +++ b/docker/client.py @@ -569,7 +569,7 @@ class Client(requests.Session): return self._result(self._get(self._url("/containers/{0}/changes". format(container))), True) - def ev...
Add a `decode` parameter to the events command This will ensure compatibility with the previous versions of docker-py.
py
diff --git a/openstack_dashboard/test/integration_tests/helpers.py b/openstack_dashboard/test/integration_tests/helpers.py index <HASH>..<HASH> 100644 --- a/openstack_dashboard/test/integration_tests/helpers.py +++ b/openstack_dashboard/test/integration_tests/helpers.py @@ -12,6 +12,7 @@ import datetime import os +...
Increase default Python socket timeout This change increses the timeout for the communications between the test process and the selenium web driver process. Change-Id: I<I>e<I>a<I>d<I>c<I>dc<I>bf<I>b<I>dbdd<I> Fixes-Bug: <I>
py
diff --git a/tests.py b/tests.py index <HASH>..<HASH> 100644 --- a/tests.py +++ b/tests.py @@ -463,6 +463,11 @@ class TWPTests(unittest.TestCase): result = self.parser.parse(u'@username/list5678901234567890123456789012345678901234567890123456789012345678901234567890A') self.assertEqual(result.html, u'...
Add a test for lists with dashes.
py
diff --git a/pylint/checkers/typecheck.py b/pylint/checkers/typecheck.py index <HASH>..<HASH> 100644 --- a/pylint/checkers/typecheck.py +++ b/pylint/checkers/typecheck.py @@ -114,7 +114,14 @@ def _determine_callable(callable_obj): from_object = new and new.parent.scope().name == 'object' from_builti...
Add temporary fix for the builtins check in _determine_callable_obj.
py
diff --git a/pydle/features/rfc1459/client.py b/pydle/features/rfc1459/client.py index <HASH>..<HASH> 100644 --- a/pydle/features/rfc1459/client.py +++ b/pydle/features/rfc1459/client.py @@ -94,7 +94,7 @@ class RFC1459Support(BasicClient): ch['modes'][mode].remove(user) ch['mod...
Fix _destroy_user signature in RFC<I> feature. Fixes #<I>.
py
diff --git a/salt/loader.py b/salt/loader.py index <HASH>..<HASH> 100644 --- a/salt/loader.py +++ b/salt/loader.py @@ -811,13 +811,13 @@ class LazyLoader(salt.utils.lazy.LazyDict): Strip out of the opts any logger instance ''' if 'grains' in opts: - self.grains = opts['grains'] + ...
clear out grains and pillar in lazy loader so they don't collide with getattr in lazydict
py
diff --git a/lhc/binf/genomic_coordinate.py b/lhc/binf/genomic_coordinate.py index <HASH>..<HASH> 100644 --- a/lhc/binf/genomic_coordinate.py +++ b/lhc/binf/genomic_coordinate.py @@ -124,7 +124,7 @@ class Interval(BaseInterval): def getRelPos(self, pos): return pos - self.start if self.strand == '+'...
fixed get relative position on reverse strand
py
diff --git a/provider/ec2.py b/provider/ec2.py index <HASH>..<HASH> 100644 --- a/provider/ec2.py +++ b/provider/ec2.py @@ -87,13 +87,20 @@ def destroy_layer(layer): conn.delete_key_pair(name) # there's an ec2 race condition on instances terminating # successfully but still holding a lock on the security ...
Fixed #<I> -- retry deleting EC2 security group.
py
diff --git a/hypermap/aggregator/solr.py b/hypermap/aggregator/solr.py index <HASH>..<HASH> 100644 --- a/hypermap/aggregator/solr.py +++ b/hypermap/aggregator/solr.py @@ -149,7 +149,9 @@ class SolrHypermap(object): originator = username else: originator = domai...
Before creating the index, make sure to delete the existing one
py
diff --git a/enoslib/infra/enos_g5k/provider.py b/enoslib/infra/enos_g5k/provider.py index <HASH>..<HASH> 100644 --- a/enoslib/infra/enos_g5k/provider.py +++ b/enoslib/infra/enos_g5k/provider.py @@ -353,6 +353,8 @@ class G5k(Provider): """ _force_deploy = self.provider_conf.force_deploy self....
g5k: missing initialization
py
diff --git a/salt/modules/reg.py b/salt/modules/reg.py index <HASH>..<HASH> 100644 --- a/salt/modules/reg.py +++ b/salt/modules/reg.py @@ -361,6 +361,7 @@ def set_value(hive, or vtype == registry.vtype['REG_BINARY']: vdata = str(vdata) _winreg.SetValueEx(handle, vname, 0, vtype, v...
Added FlushKey to make sure it's changes are saved to disk
py
diff --git a/decorating/color.py b/decorating/color.py index <HASH>..<HASH> 100644 --- a/decorating/color.py +++ b/decorating/color.py @@ -3,12 +3,17 @@ # # Python Script # -# Copyleft © Manoel Vilela +# Copyright © Manoel Vilela # # +import sys + COLORED = True +if not sys.stdout.isatty(): + COLORED...
If the instance is not attached in the terminal, so don't colorize
py
diff --git a/storops/vnx/enums.py b/storops/vnx/enums.py index <HASH>..<HASH> 100644 --- a/storops/vnx/enums.py +++ b/storops/vnx/enums.py @@ -257,6 +257,7 @@ class VNXRaidType(VNXEnum): RAID5 = 'r5' RAID6 = 'r6' RAID10 = 'r1_0' + HOTSPARE = 'hot_spare' class VNXPoolRaidType(VNXEnum):
Add missing enum for VNX1. (#<I>) Add `hot_spare` enum for VNX.
py
diff --git a/pyte/screens.py b/pyte/screens.py index <HASH>..<HASH> 100644 --- a/pyte/screens.py +++ b/pyte/screens.py @@ -81,13 +81,10 @@ class Cursor(object): :meth:`Screen.selectel_graphic_rendition` for details). """ - __slots__ = "...
Turns out `deque` doesn't have a maxlen attribute in Python<I>
py
diff --git a/setuptools/command/upload.py b/setuptools/command/upload.py index <HASH>..<HASH> 100755 --- a/setuptools/command/upload.py +++ b/setuptools/command/upload.py @@ -75,8 +75,10 @@ class upload(Command): basename = os.path.basename(filename) if basename.endswith('.egg'): basename...
Add informative comment when uploading eggs, to help distinguish them from source archives. --HG-- branch : setuptools extra : convert_revision : svn%3A<I>fed2-<I>-<I>-9fe1-9d<I>cc<I>/sandbox/trunk/setuptools%<I>
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ setup(name='baron', version='0.2', description='Full Syntax Tree for python to make writing refactoring code a realist task', author='Laurent Peuch', - long_description=read_md("README....
[mod] include CHANGELOG at the end of the pypi description
py
diff --git a/tests/support/case.py b/tests/support/case.py index <HASH>..<HASH> 100644 --- a/tests/support/case.py +++ b/tests/support/case.py @@ -122,7 +122,7 @@ class ShellTestCase(TestCase, AdaptedConfigurationTestCaseMixin): self.assertIn('minion', data) ''' arg_str = '-c {0} ...
Pass the timeout variable to the CLI when calling salt in tests
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -112,6 +112,7 @@ setup( package_dir=umi_tools_package_dirs, include_package_data=True, # dependencies + setup_requires=['cython'], install_requires=install_requires, # extension modules # ext_m...
adds cython to setup_requires dependency
py
diff --git a/src/pybel/parser/parse_metadata.py b/src/pybel/parser/parse_metadata.py index <HASH>..<HASH> 100644 --- a/src/pybel/parser/parse_metadata.py +++ b/src/pybel/parser/parse_metadata.py @@ -99,6 +99,7 @@ class MetadataParser(BaseParser): return tokens url = tokens['url'] + url = ...
URL sanitization resource.belframework.org and resources.openbel.org point to the same stuff, so normalize these resources.
py
diff --git a/pyt/base_cfg.py b/pyt/base_cfg.py index <HASH>..<HASH> 100644 --- a/pyt/base_cfg.py +++ b/pyt/base_cfg.py @@ -650,3 +650,9 @@ class Visitor(ast.NodeVisitor): label_visitor.visit(node.test) return self.append_node(Node(label_visitor.result, node, line_number = node.lineno, path=self.file...
Attribute returned None cause not handled For instance instance.attribute on one line did return None cause its visitor was not implemented This solves one case in issue #<I>
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -13,8 +13,8 @@ deps = [ 'futures;python_version<"3.0"', # Require singledispatch on Python <3.4 'singledispatch;python_version<"3.4"', - "requests>=2.2,!=2.12.0,!=2.12.1,!=2.16.0,!=2.16.1,!=2.16.2,!=2.16.3,!=...
setup: update requests to latest version and set urllib3 to match
py
diff --git a/fc/io.py b/fc/io.py index <HASH>..<HASH> 100644 --- a/fc/io.py +++ b/fc/io.py @@ -954,10 +954,10 @@ class FCSData(np.ndarray): # FCS-Standard files store the time step in the $TIMESTEP keyword. # In CellQuest Pro's FCS2.0, the TIMETICKS keyword parameter contains # the time step ...
Changed order timestep reading in FCSData.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -22,19 +22,7 @@ class InstallCommand(install): """A class for "pip install". Handled by "pip install rpm-py-installer", - when the package should be published as a source distribution (sdist). - - If pip's ca...
Remove comment for cache issue, as it was fixed. (#<I>)
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -68,10 +68,10 @@ Releasing: * Update __version__ and __version_info__ in jks.py * Final test (currently, tox) * Commit: "bumping version for x.x.x release" -* Run: python setup.py sdist upload +* Run: python setup.py sdist ...
update setup directions to include bdist_wheel
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -236,7 +236,11 @@ class pydoop_clean(clean): absolute_paths = [ os.path.join(pydoop_src_path, f) for f in paths ] for f in absolute_paths: if not self.dry_run: - os.remove(f) + try: + if...
Don't raise an error when trying to clean a file that's already deleted.
py
diff --git a/test/common_utils.py b/test/common_utils.py index <HASH>..<HASH> 100644 --- a/test/common_utils.py +++ b/test/common_utils.py @@ -137,7 +137,7 @@ def _create_data_batch(height=3, width=3, channels=3, num_samples=4, device="cpu return batch_tensor -assert_equal = functools.partial(torch.testing.ass...
revert changes to assert_equal (#<I>) * revert changes to assert_equal * add tolerances for batch vs single test
py
diff --git a/phonopy/phonon/irreps.py b/phonopy/phonon/irreps.py index <HASH>..<HASH> 100644 --- a/phonopy/phonon/irreps.py +++ b/phonopy/phonon/irreps.py @@ -62,8 +62,16 @@ character_table = { ( 0, 0,-1 )),)}}], # C2 (3) - '2': None, - + '2': + [{'rotation_list': ('E', ...
Add C2 tables to irreps
py
diff --git a/keyboard/_winkeyboard.py b/keyboard/_winkeyboard.py index <HASH>..<HASH> 100644 --- a/keyboard/_winkeyboard.py +++ b/keyboard/_winkeyboard.py @@ -524,7 +524,7 @@ def prepare_intercept(callback): shift_is_pressed = False is_keypad = (scan_code, vk, is_extended) in keypad_keys - ...
Create Windows events with VK when scan code is missing
py
diff --git a/fcn/trainer.py b/fcn/trainer.py index <HASH>..<HASH> 100644 --- a/fcn/trainer.py +++ b/fcn/trainer.py @@ -10,6 +10,8 @@ from chainer import cuda import chainer.serializers as S from chainer import Variable import numpy as np +from scipy.misc import imsave +from skimage.color import label2rgb import tqd...
Save visualized label when testing is over
py
diff --git a/aegea/batch.py b/aegea/batch.py index <HASH>..<HASH> 100644 --- a/aegea/batch.py +++ b/aegea/batch.py @@ -438,7 +438,7 @@ def watch(args): logger.info("Job %s %s", args.job_id, format_job_status(job_desc["status"])) last_status = job_desc["status"] if job_desc["status...
aegea batch watch: fix logic error when job fails before starting
py
diff --git a/can/interfaces/ics_neovi/neovi_bus.py b/can/interfaces/ics_neovi/neovi_bus.py index <HASH>..<HASH> 100644 --- a/can/interfaces/ics_neovi/neovi_bus.py +++ b/can/interfaces/ics_neovi/neovi_bus.py @@ -15,8 +15,6 @@ import os import tempfile from collections import deque -from filelock import FileLock - f...
Adding dummy file lock when importing FileLock fails
py
diff --git a/sanic_cors/extension.py b/sanic_cors/extension.py index <HASH>..<HASH> 100644 --- a/sanic_cors/extension.py +++ b/sanic_cors/extension.py @@ -324,10 +324,12 @@ class CORSErrorHandler(ErrorHandler): # wrap app's original exception response function # so that error responses have proper CORS header...
Await responses in error handlers
py
diff --git a/toxbat/requirements.py b/toxbat/requirements.py index <HASH>..<HASH> 100644 --- a/toxbat/requirements.py +++ b/toxbat/requirements.py @@ -61,7 +61,7 @@ def are_requirements_changed(config): def build_fpath_for_previous_version(fname): tox_dir = config.config.toxworkdir.strpath - fnam...
Fix file names of files with previous hashes (#7) `tox-battery` stores a hash per requirements file and per environment to check for changes. There was a subtle bug, which would result in the environment not to be included in the file name, resulting in the same file name for multiple environments, which broke the ...
py
diff --git a/lib/colorize.py b/lib/colorize.py index <HASH>..<HASH> 100644 --- a/lib/colorize.py +++ b/lib/colorize.py @@ -44,7 +44,7 @@ class ColorizingStreamHandler(logging.StreamHandler): "Maps levels to colour/intensity settings." level_map = { logging.DEBUG: (None, 'blue', False), - ...
Hacking ColorizingStreamHandler to show green info instead of black
py
diff --git a/draftjs_exporter/dom.py b/draftjs_exporter/dom.py index <HASH>..<HASH> 100644 --- a/draftjs_exporter/dom.py +++ b/draftjs_exporter/dom.py @@ -107,7 +107,7 @@ class DOM(object): better way to do this. Dirty, but quite easy to understand. """ - return re.sub(r'</?(fragment|t...
Replace unicode with str to please Python3 gods
py
diff --git a/src/core/columns.py b/src/core/columns.py index <HASH>..<HASH> 100644 --- a/src/core/columns.py +++ b/src/core/columns.py @@ -51,7 +51,7 @@ class EnumCol(IntCol): ''' A column of integer with an enum ''' - def __init__(self, enum=None, label = None, default = 0): + def __init__(self, e...
add unit/start/end in def EnumCol add f2aa (probably erased earlier) in data to avoid bug.
py
diff --git a/pymemcache/test/utils.py b/pymemcache/test/utils.py index <HASH>..<HASH> 100644 --- a/pymemcache/test/utils.py +++ b/pymemcache/test/utils.py @@ -43,6 +43,10 @@ class MockMemcacheClient(object): self.ignore_exc = ignore_exc self.encoding = encoding + def clear(self): + """Meth...
adding clear method to MockMemcacheClient (#<I>)
py
diff --git a/troposphere/elasticloadbalancingv2.py b/troposphere/elasticloadbalancingv2.py index <HASH>..<HASH> 100644 --- a/troposphere/elasticloadbalancingv2.py +++ b/troposphere/elasticloadbalancingv2.py @@ -129,9 +129,17 @@ class Action(AWSProperty): requires('fixed-response', 'FixedResponseConfig') +c...
Add support for httpHeaderConfig (#<I>)
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100755 --- a/setup.py +++ b/setup.py @@ -15,6 +15,7 @@ import textwrap import subprocess from setuptools import setup, Extension +import gruvi version_info = { @@ -106,8 +107,12 @@ def main(): update_manifest() setup( packages = ['gruvi',...
Include CFFI generated files in dist.
py
diff --git a/graypy/__init__.py b/graypy/__init__.py index <HASH>..<HASH> 100644 --- a/graypy/__init__.py +++ b/graypy/__init__.py @@ -20,4 +20,4 @@ except ImportError: pass # amqplib is probably not installed -__version__ = (1, 1, 0) +__version__ = (1, 1, 1)
bumping to version `<I>`
py
diff --git a/salt/states/module.py b/salt/states/module.py index <HASH>..<HASH> 100644 --- a/salt/states/module.py +++ b/salt/states/module.py @@ -538,8 +538,9 @@ def _get_result(func_ret, changes): return res + def _get_result_in_depth(node): - for key, val in node.iteritems(): + for key, val in six.it...
Fix Python3 and pylint issue
py
diff --git a/sen/cli.py b/sen/cli.py index <HASH>..<HASH> 100755 --- a/sen/cli.py +++ b/sen/cli.py @@ -40,13 +40,15 @@ def main(): ui.run() except KeyboardInterrupt: print("Quitting on user request.") - return -1 + return 1 except Exception as ex: # pylint: disable=broad-excep...
application should end with a return code
py
diff --git a/bibliopixel/animation/base.py b/bibliopixel/animation/base.py index <HASH>..<HASH> 100644 --- a/bibliopixel/animation/base.py +++ b/bibliopixel/animation/base.py @@ -30,6 +30,15 @@ class BaseAnimation(object): self._led.push_to_driver() self.thread_strategy.wait_for_update() + def is...
Make an inline function into a method.
py
diff --git a/ipfn/ipfn.py b/ipfn/ipfn.py index <HASH>..<HASH> 100755 --- a/ipfn/ipfn.py +++ b/ipfn/ipfn.py @@ -226,7 +226,7 @@ class ipfn(object): elif isinstance(self.original, np.ndarray): self.original = self.original.astype('float64') while i <= self.max_itr and conv > self.conv_r...
add weight_col arg to ipfn_np()
py
diff --git a/holoviews/element/tabular.py b/holoviews/element/tabular.py index <HASH>..<HASH> 100644 --- a/holoviews/element/tabular.py +++ b/holoviews/element/tabular.py @@ -163,14 +163,10 @@ class Table(NdElement): self._sorted = False super(Table, self).__init__(OrderedDict(), **params) + ...
Simplified Table constructor and handled data=None
py
diff --git a/mythril/analysis/module/modules/arbitrary_jump.py b/mythril/analysis/module/modules/arbitrary_jump.py index <HASH>..<HASH> 100644 --- a/mythril/analysis/module/modules/arbitrary_jump.py +++ b/mythril/analysis/module/modules/arbitrary_jump.py @@ -14,7 +14,7 @@ Search for jumps to arbitrary locations in the ...
Update mythril/analysis/module/modules/arbitrary_jump.py
py
diff --git a/gcloud/storage/connection.py b/gcloud/storage/connection.py index <HASH>..<HASH> 100644 --- a/gcloud/storage/connection.py +++ b/gcloud/storage/connection.py @@ -414,13 +414,7 @@ class Connection(_Base): if isinstance(bucket, Bucket): return bucket - # Support Python 2 and 3....
No need for 'try: ... except:' when we have 'six'.
py
diff --git a/tests/test_sets.py b/tests/test_sets.py index <HASH>..<HASH> 100644 --- a/tests/test_sets.py +++ b/tests/test_sets.py @@ -55,6 +55,7 @@ class SetTest(RedisTestCase): self.assertNotEqual(s_1, s_3) self.assertEqual(s_2, s_3) self.assertEqual(s_3, s_3) + self....
Test __eq__ for sets
py
diff --git a/kubelet/datadog_checks/kubelet/kubelet.py b/kubelet/datadog_checks/kubelet/kubelet.py index <HASH>..<HASH> 100644 --- a/kubelet/datadog_checks/kubelet/kubelet.py +++ b/kubelet/datadog_checks/kubelet/kubelet.py @@ -175,6 +175,7 @@ class KubeletCheck(CadvisorPrometheusScraperMixin, OpenMetricsBaseCheck, Cadv...
Fix health check during first check run (#<I>)
py
diff --git a/pypercube/__init__.py b/pypercube/__init__.py index <HASH>..<HASH> 100644 --- a/pypercube/__init__.py +++ b/pypercube/__init__.py @@ -1 +1 @@ -__version__ = "0.1" +__version__ = "0.1.1"
Minor version bump for empty response bug fix.
py
diff --git a/python/vaex/ui/plot_windows.py b/python/vaex/ui/plot_windows.py index <HASH>..<HASH> 100644 --- a/python/vaex/ui/plot_windows.py +++ b/python/vaex/ui/plot_windows.py @@ -2547,7 +2547,7 @@ class ScatterPlotDialog(PlotDialog): self.cmap = matplotlib.cm.cmap_d[self.layer.state.colormap] self.norm = ...
bugfix: super didn't work for non-new-style classes
py
diff --git a/src/cwmon/cli.py b/src/cwmon/cli.py index <HASH>..<HASH> 100644 --- a/src/cwmon/cli.py +++ b/src/cwmon/cli.py @@ -49,7 +49,7 @@ class _MonitoringOptions: @with_plugins(iter_entry_points('cwmon.plugins')) -@click.group() +@click.group(chain=True) @click.option('--dry-run/--no-dry-run', default=False, ...
new: usr: Allow chaining subcommands.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -39,7 +39,7 @@ dependency_links = links_general | links_version setup( name='Gutenberg', - version='0.6.0', + version='0.6.1', author='Clemens Wolff', author_email='clemens.wolff+pypi@gmail.com', p...
Update setup.py (#<I>)
py
diff --git a/tests/jenkins.py b/tests/jenkins.py index <HASH>..<HASH> 100644 --- a/tests/jenkins.py +++ b/tests/jenkins.py @@ -185,7 +185,7 @@ def download_unittest_reports(options): 'salt {0} archive.tar zcvf /tmp/xml-test-reports.tar.gz \'*.xml\' cwd=/tmp/xml-unitests-output/', 'salt {0} cp.push /tm...
put -C tar command back in
py
diff --git a/SoftLayer/transports.py b/SoftLayer/transports.py index <HASH>..<HASH> 100644 --- a/SoftLayer/transports.py +++ b/SoftLayer/transports.py @@ -16,7 +16,6 @@ except ImportError: # pragma nocover import logging import requests import json -import re log = logging.getLogger(__name__)
Corrected PEP8 Errors
py
diff --git a/pyramid_authsanity/tests/test_authpolicy.py b/pyramid_authsanity/tests/test_authpolicy.py index <HASH>..<HASH> 100644 --- a/pyramid_authsanity/tests/test_authpolicy.py +++ b/pyramid_authsanity/tests/test_authpolicy.py @@ -182,6 +182,8 @@ class TestAuthServicePolicy(object): assert len(headers) =...
Source needs to store two values, currently in a list
py
diff --git a/tests.py b/tests.py index <HASH>..<HASH> 100644 --- a/tests.py +++ b/tests.py @@ -3,6 +3,7 @@ import os import shutil import subprocess import tempfile +import textwrap import unittest @@ -231,18 +232,21 @@ recursive-exclude src/zope *.sh self.assertEqual(parse('prune dir'), ...
Keep the indentation visually clear in the test. Remove leading whitespace programmatically with textwrap.dedent.
py
diff --git a/cmd2.py b/cmd2.py index <HASH>..<HASH> 100755 --- a/cmd2.py +++ b/cmd2.py @@ -34,6 +34,7 @@ import optparse import os import platform import re +import readline import shlex import six import subprocess @@ -1096,12 +1097,37 @@ class Cmd(cmd.Cmd): return False + @staticmethod + def ...
Added code to protect against GNU Readline bug GNU Readline has a bug in calculating prompt length when ANSI escape codes are present in the prompt. It requires you to escape the escape codes to tell it where sections of invisible characters begin and end. So before calling input(), cmd2 now makes the prompt safe by...
py
diff --git a/pythran/types/tog.py b/pythran/types/tog.py index <HASH>..<HASH> 100755 --- a/pythran/types/tog.py +++ b/pythran/types/tog.py @@ -977,7 +977,7 @@ def analyse(node, env, non_generic=None): raise PythranTypeError( "Invalid update operand for `{}`: `{}` and `{}`".format( ...
Fix unbound variable in tog exception handling Detected by beniget!
py
diff --git a/lendingclub/filters.py b/lendingclub/filters.py index <HASH>..<HASH> 100644 --- a/lendingclub/filters.py +++ b/lendingclub/filters.py @@ -40,7 +40,7 @@ class Filter(dict): __initialized = False __normalizing = False - def __init__(self, max_per_note=0, filters=None): + def __init__(self, ...
Remove max_per_note from Filter
py
diff --git a/holoviews/view/tabular.py b/holoviews/view/tabular.py index <HASH>..<HASH> 100644 --- a/holoviews/view/tabular.py +++ b/holoviews/view/tabular.py @@ -235,7 +235,7 @@ class Table(Layer, NdMapping): if col >= self.ndims: row_values = self.values()[row-1] return ...
Fixed bug in Table.cell_value method
py
diff --git a/proxalgs/operators.py b/proxalgs/operators.py index <HASH>..<HASH> 100644 --- a/proxalgs/operators.py +++ b/proxalgs/operators.py @@ -164,10 +164,14 @@ def bfgs(x0, rho, f, fgrad): @curry -def smooth(x0, rho, gamma): +def smooth(x0, rho, gamma, axis=0): """ Proximal operator for a smoothing ...
adds a smoothing proximal operator
py
diff --git a/ella/core/migrations/0004_add_field_category_app_data_add_field_publishable_app_data.py b/ella/core/migrations/0004_add_field_category_app_data_add_field_publishable_app_data.py index <HASH>..<HASH> 100644 --- a/ella/core/migrations/0004_add_field_category_app_data_add_field_publishable_app_data.py +++ b/e...
fixed missing default value in app_data field after migration
py
diff --git a/netpyne/analysis/interactive.py b/netpyne/analysis/interactive.py index <HASH>..<HASH> 100644 --- a/netpyne/analysis/interactive.py +++ b/netpyne/analysis/interactive.py @@ -1826,7 +1826,7 @@ def iplotLFP(electrodes=['avg', 'all'], plots=['timeSeries', 'PSD', 'spectrogram hover = HoverTool(toolt...
Updated deprecated legend to legend_label in iplotLFP in response to issue <I>
py
diff --git a/holoviews/plotting/mpl/plot.py b/holoviews/plotting/mpl/plot.py index <HASH>..<HASH> 100644 --- a/holoviews/plotting/mpl/plot.py +++ b/holoviews/plotting/mpl/plot.py @@ -752,7 +752,7 @@ class LayoutPlot(GenericLayoutPlot, CompositePlot): main_aspect = np.nan if isinstance(main, Empty) else...
Correctly handling aspect of trailing empty plots in layout
py
diff --git a/pyvlx/heartbeat.py b/pyvlx/heartbeat.py index <HASH>..<HASH> 100644 --- a/pyvlx/heartbeat.py +++ b/pyvlx/heartbeat.py @@ -25,6 +25,7 @@ class Heartbeat: def start(self): """Create loop task.""" self.stopped = False + self.stopped_event.clear() self.run_task = self.pyv...
Update heartbeat.py self.stopped_event is never cleared, so it should cause problems on the second stop of heartbeat.
py
diff --git a/glitter/assets/apps.py b/glitter/assets/apps.py index <HASH>..<HASH> 100644 --- a/glitter/assets/apps.py +++ b/glitter/assets/apps.py @@ -6,6 +6,7 @@ from django.apps import AppConfig class GlitterBasicAssetsConfig(AppConfig): name = 'glitter.assets' label = 'glitter_assets' + verbose_name = ...
Improve verbose name for assets
py
diff --git a/bliss/core/log.py b/bliss/core/log.py index <HASH>..<HASH> 100644 --- a/bliss/core/log.py +++ b/bliss/core/log.py @@ -193,7 +193,7 @@ def addRemoteHandlers (logger): # Do not "remote" log to this host, as that's already covered # by addLocalHandlers(). if socket.getfqdn() != host...
Issue #<I> - Switch gethostbyname() calls to getaddrinfo()
py
diff --git a/holoviews/core/ndmapping.py b/holoviews/core/ndmapping.py index <HASH>..<HASH> 100644 --- a/holoviews/core/ndmapping.py +++ b/holoviews/core/ndmapping.py @@ -108,6 +108,7 @@ class MultiDimensionalMapping(Dimensioned): self._cached_categorical = any(d.values for d in self.key_dimensions) ...
Allowed constructing empty MultiDimensionalMappings
py
diff --git a/curtsies/formatstring.py b/curtsies/formatstring.py index <HASH>..<HASH> 100644 --- a/curtsies/formatstring.py +++ b/curtsies/formatstring.py @@ -41,7 +41,7 @@ from typing import ( import itertools import re import sys -from cwcwidth import wcswidth +from cwcwidth import wcswidth, wcwidth from .escse...
Use wcwidth where it makes sense
py
diff --git a/pmagpy/contribution_builder.py b/pmagpy/contribution_builder.py index <HASH>..<HASH> 100644 --- a/pmagpy/contribution_builder.py +++ b/pmagpy/contribution_builder.py @@ -1428,10 +1428,10 @@ class MagicDataFrame(object): if result: decimals = result.string.split('.')[1] ...
be more thorough in truncating unnecessary digits, #<I>
py
diff --git a/code/photini/metadata_gexiv2.py b/code/photini/metadata_gexiv2.py index <HASH>..<HASH> 100644 --- a/code/photini/metadata_gexiv2.py +++ b/code/photini/metadata_gexiv2.py @@ -22,11 +22,12 @@ GExiv2.initialize() class MetadataHandler(object): def __init__(self, path): + self._path = path ...
Bug fix: gexiv2 save_file method needs a file name.
py
diff --git a/src/paperwork/backend/pdf/doc.py b/src/paperwork/backend/pdf/doc.py index <HASH>..<HASH> 100644 --- a/src/paperwork/backend/pdf/doc.py +++ b/src/paperwork/backend/pdf/doc.py @@ -145,8 +145,9 @@ class PdfDoc(BasicDoc): def _open_pdf(self): if self._pdf: return self._pdf - f...
PDF/doc: handle relative file paths correctly. Useful when the work directory is given in a relative manner (see tests)
py
diff --git a/tests/test_AnalyzerResult.py b/tests/test_AnalyzerResult.py index <HASH>..<HASH> 100644 --- a/tests/test_AnalyzerResult.py +++ b/tests/test_AnalyzerResult.py @@ -165,7 +165,7 @@ class TestAnalyzerResultNumpy(TestAnalyzerResultGoodType): class LevelAnalyzer(object): - def testOnLevelAnaylyzer(self):...
[test] fix typo in LevelAnalyzer
py
diff --git a/sllurp/verb/log.py b/sllurp/verb/log.py index <HASH>..<HASH> 100644 --- a/sllurp/verb/log.py +++ b/sllurp/verb/log.py @@ -44,7 +44,7 @@ class CsvLogger(object): for tag in tags: epc = tag['EPCData']['EPC'] if 'EPCData' in tag else tag['EPC-96'] if self.epc is not None and...
if filtering for one EPC, don't break round robin early exit was causing us never to hit the "pause this proto and move to the next one" bit!
py
diff --git a/tests/test_modeling_tf_convbert.py b/tests/test_modeling_tf_convbert.py index <HASH>..<HASH> 100644 --- a/tests/test_modeling_tf_convbert.py +++ b/tests/test_modeling_tf_convbert.py @@ -302,10 +302,6 @@ class TFConvBertModelTest(TFModelTesterMixin, unittest.TestCase): [self.model_teste...
Unlock XLA test for convbert (#<I>)
py
diff --git a/HARK/core.py b/HARK/core.py index <HASH>..<HASH> 100644 --- a/HARK/core.py +++ b/HARK/core.py @@ -62,7 +62,8 @@ def distanceMetric(thing_A, thing_B): if thing_A.shape == thing_B.shape: distance = np.max(abs(thing_A - thing_B)) else: - distance = np.max(abs(thing_A....
flatten dimensions when calculating distance b/w 2
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 @@ -143,7 +143,7 @@ def _linux_gpu_data(): ) return {} - elif not __opts__.get('enable_gpu_grains', None): + elif __opts__.get('enable_gpu_grains', None) is False: ...
Too broad. Don't throw errors in things like salt-call for this condition. Only warn if user has explicitely disabled.
py
diff --git a/exporters/readers/s3_reader.py b/exporters/readers/s3_reader.py index <HASH>..<HASH> 100644 --- a/exporters/readers/s3_reader.py +++ b/exporters/readers/s3_reader.py @@ -7,7 +7,7 @@ import datetime from exporters.progress_callback import BotoDownloadProgress from exporters.readers.base_reader import Base...
using short retry for downloading pointers
py