diff
stringlengths
139
3.65k
message
stringlengths
8
627
diff_languages
stringclasses
1 value
diff --git a/tests/test_utils.py b/tests/test_utils.py index <HASH>..<HASH> 100644 --- a/tests/test_utils.py +++ b/tests/test_utils.py @@ -19,4 +19,7 @@ def test_import_string(): utils.import_string('cihai') with pytest.raises((ImportError, exc.CihaiException, exc.ImportStringError)): + utils.import_...
Test importing of module with unexisting target inside There's a coverage case where a module exists, but what's inside it isn't covered.
py
diff --git a/salt/modules/hg.py b/salt/modules/hg.py index <HASH>..<HASH> 100644 --- a/salt/modules/hg.py +++ b/salt/modules/hg.py @@ -203,5 +203,5 @@ def clone(cwd, repository, opts=None, user=None): if not opts: opts = '' - cmd = 'hg clone {0} {1} {2}'.format(repository, cwd, opts) + cmd = 'hg c...
ENH: Encapsulte the repository and cwd arguments in quotes for hg clone command to allow for directories with spaces in them
py
diff --git a/_pytest/pytester.py b/_pytest/pytester.py index <HASH>..<HASH> 100644 --- a/_pytest/pytester.py +++ b/_pytest/pytester.py @@ -16,7 +16,12 @@ from _pytest.core import HookCaller, add_method_wrapper from _pytest.main import Session, EXIT_OK # used at least by pytest-xdist plugin -def pytest_funcarg___pyt...
accomodate Floris' comments. (The reason was i just reinstanted the old code :) --HG-- branch : reintroduce_pytest_fixture
py
diff --git a/src/infi/docopt_completion/zsh.py b/src/infi/docopt_completion/zsh.py index <HASH>..<HASH> 100644 --- a/src/infi/docopt_completion/zsh.py +++ b/src/infi/docopt_completion/zsh.py @@ -15,7 +15,7 @@ FILE_TEMPLATE = '''#compdef {0} _message_next_arg() {{ argcount=0 - for word in "${{words[0,-2]}}" + ...
amend last commit, slicing was still wrong
py
diff --git a/feedjack/fjupdate.py b/feedjack/fjupdate.py index <HASH>..<HASH> 100644 --- a/feedjack/fjupdate.py +++ b/feedjack/fjupdate.py @@ -208,7 +208,8 @@ class FeedProcessor(object): ENTRY_SAME: 0, ENTRY_ERR: 0 } report_errors = not self.options.report_after\ - or self.feed.last_checked + self.options...
fjupdate: fixed a bug with --report-after and no Feed.last_checked date set
py
diff --git a/dtool_irods/storagebroker.py b/dtool_irods/storagebroker.py index <HASH>..<HASH> 100644 --- a/dtool_irods/storagebroker.py +++ b/dtool_irods/storagebroker.py @@ -137,13 +137,18 @@ def _put_metadata(irods_path, key, value): cmd() +_metadata_cache = {} def _get_metadata(irods_path, key): + if ir...
Add cache to reduce calls to irods to access metadata
py
diff --git a/primer3/bindings.py b/primer3/bindings.py index <HASH>..<HASH> 100644 --- a/primer3/bindings.py +++ b/primer3/bindings.py @@ -1,4 +1,3 @@ -import glob import os from collections import namedtuple @@ -13,8 +12,7 @@ local_dir = os.path.dirname(os.path.realpath(__file__)) if not os.environ.get('PRIMER3...
corrected path issues in bindings.py
py
diff --git a/zoonado/recipes/tree_cache.py b/zoonado/recipes/tree_cache.py index <HASH>..<HASH> 100644 --- a/zoonado/recipes/tree_cache.py +++ b/zoonado/recipes/tree_cache.py @@ -31,7 +31,7 @@ class TreeCache(Recipe): self.root = ZNodeCache( self.base_path, self.defaults, - self.clien...
Fixes to the TreeCache recipe. * The IOLoop class's current is a method, not an attribute * The sub-recipe's name is child_watcher, not children_watcher
py
diff --git a/osmnx/downloader.py b/osmnx/downloader.py index <HASH>..<HASH> 100644 --- a/osmnx/downloader.py +++ b/osmnx/downloader.py @@ -197,9 +197,7 @@ def _get_from_cache(url, check_remark=False): utils.log(f'Found remark, so ignoring cache file "{cache_filepath}"') return ...
don't log url if getting response from cache
py
diff --git a/bcbio/chipseq/atac.py b/bcbio/chipseq/atac.py index <HASH>..<HASH> 100644 --- a/bcbio/chipseq/atac.py +++ b/bcbio/chipseq/atac.py @@ -111,12 +111,14 @@ def split_ATAC(data, bam_file=None): split_files["full"] = bam_file data = tz.assoc_in(data, ['atac', 'align'], split_files) ret...
fix #<I> (#<I>)
py
diff --git a/ryu/tests/unit/packet/test_bgp.py b/ryu/tests/unit/packet/test_bgp.py index <HASH>..<HASH> 100644 --- a/ryu/tests/unit/packet/test_bgp.py +++ b/ryu/tests/unit/packet/test_bgp.py @@ -127,3 +127,22 @@ class Test_bgp(unittest.TestCase): for m in sp.parse(b): results.append(m) ...
packet.bgp test: parse real packets taken from quagga bgp4-update case is commented out for now because we don't support 4-octet AS numbers.
py
diff --git a/ufork/ufork.py b/ufork/ufork.py index <HASH>..<HASH> 100644 --- a/ufork/ufork.py +++ b/ufork/ufork.py @@ -166,7 +166,7 @@ class Arbiter(object): log.info('shutting down arbiter '+repr(self)+\ repr(threading.current_thread())+"N:{0} t:{1}".format(os.getpid(),time.time()%1)...
migrating gevent function to use parent_pre_exit to shutdown socket
py
diff --git a/tests/test_gau.py b/tests/test_gau.py index <HASH>..<HASH> 100644 --- a/tests/test_gau.py +++ b/tests/test_gau.py @@ -233,10 +233,12 @@ def test_dynamic(): check_results_gau(dsampler.results, logz_tol) # check error analysis functions + # IMPORTANT I had to bump up the agreement threshold to...
increase the test thresold of agreement
py
diff --git a/indra/db/content_manager.py b/indra/db/content_manager.py index <HASH>..<HASH> 100644 --- a/indra/db/content_manager.py +++ b/indra/db/content_manager.py @@ -852,6 +852,10 @@ class PmcManager(NihManager): missing_pmid_entries.append(tr_entry) num_missing = len(missing_pmid_entri...
Don't find missing pmids if there are no missing pmids.
py
diff --git a/thefuck/shells/zsh.py b/thefuck/shells/zsh.py index <HASH>..<HASH> 100644 --- a/thefuck/shells/zsh.py +++ b/thefuck/shells/zsh.py @@ -31,7 +31,9 @@ class Zsh(Generic): def instant_mode_alias(self, alias_name): if os.environ.get('THEFUCK_INSTANT_MODE', '').lower() == 'true': - mar...
#<I>: Fix zsh PS1 width in experimental instant mode
py
diff --git a/examples/comment/reply_to_media_comments.py b/examples/comment/reply_to_media_comments.py index <HASH>..<HASH> 100644 --- a/examples/comment/reply_to_media_comments.py +++ b/examples/comment/reply_to_media_comments.py @@ -67,8 +67,8 @@ for comment in tqdm(comments): if replied: continue ...
fixed space after , in <I> and <I>
py
diff --git a/salt/modules/boto_vpc.py b/salt/modules/boto_vpc.py index <HASH>..<HASH> 100644 --- a/salt/modules/boto_vpc.py +++ b/salt/modules/boto_vpc.py @@ -2453,7 +2453,7 @@ def describe_route_table(route_table_id=None, route_table_name=None, ''' - salt.utils.warn_until('Nitrogen', + salt.utils.warn_u...
Move boto_vpc.describe_route_table deprecation version to Oxygen (#<I>) Deprecations need 2 feature releases before we can remove them. This deprecation notice appeared first in <I>, so we need to allow a little more time to adapt to the change.
py
diff --git a/zinnia/moderator.py b/zinnia/moderator.py index <HASH>..<HASH> 100644 --- a/zinnia/moderator.py +++ b/zinnia/moderator.py @@ -6,6 +6,8 @@ from django.template import loader from django.core.mail import send_mail from django.utils.encoding import smart_str from django.contrib.sites.models import Site +fr...
sending emails in the language of the site
py
diff --git a/troposphere/ec2.py b/troposphere/ec2.py index <HASH>..<HASH> 100644 --- a/troposphere/ec2.py +++ b/troposphere/ec2.py @@ -311,6 +311,20 @@ class NetworkInterfaceAttachment(AWSObject): } +PERMISSION_INSTANCE_ATTACH = 'INSTANCE-ATTACH' +PERMISSION_EIP_ASSOCIATE = 'EIP-ASSOCIATE' + + +class NetworkIn...
Add AWS::EC2::NetworkInterfacePermission
py
diff --git a/ffpyplayer/__init__.py b/ffpyplayer/__init__.py index <HASH>..<HASH> 100644 --- a/ffpyplayer/__init__.py +++ b/ffpyplayer/__init__.py @@ -9,7 +9,7 @@ import platform __all__ = ('dep_bins', ) -__version__ = '4.3.0' +__version__ = '4.3.1.dev0' version = __version__ # the ffmpeg src git version teste...
Bump to <I>.dev0.
py
diff --git a/raiden/network/proxies/token_network.py b/raiden/network/proxies/token_network.py index <HASH>..<HASH> 100644 --- a/raiden/network/proxies/token_network.py +++ b/raiden/network/proxies/token_network.py @@ -777,6 +777,9 @@ class TokenNetwork: channel_participant_deposit_limit = self.channel...
Blockchain query have to be inside the try block. The call to `balance_of` does an rpc call to query the state of the blockchain at the block `given_block_identifier`, which may have been pruned. For thir reason the call must be inside the try block.
py
diff --git a/tests/_utils.py b/tests/_utils.py index <HASH>..<HASH> 100644 --- a/tests/_utils.py +++ b/tests/_utils.py @@ -488,7 +488,7 @@ def cleanup_deployments(): while len(_list) > 0: for d in _list: try: - d.delete(cascade=False) + d.dele...
tests.utils: cascade delete on Deployments cleanup
py
diff --git a/src/jottalib/JFS.py b/src/jottalib/JFS.py index <HASH>..<HASH> 100644 --- a/src/jottalib/JFS.py +++ b/src/jottalib/JFS.py @@ -1032,6 +1032,7 @@ class JFS(object): self.fs = o return self.fs elif o.tag == 'filedirlist': return JFSFileDirList(o, jfs=self, parentpath=parent)...
Instantiate JFSsearchresult when we see one
py
diff --git a/spyderlib/plugins/runconfig.py b/spyderlib/plugins/runconfig.py index <HASH>..<HASH> 100644 --- a/spyderlib/plugins/runconfig.py +++ b/spyderlib/plugins/runconfig.py @@ -175,11 +175,9 @@ class RunConfigOptions(QWidget): self.connect(self.pclo_cb, SIGNAL("toggled(bool)"), sel...
Run config dialog: Move "-u option" text to a tooltip - This text was not letting the dialog to resize automatically to fit its own contents.
py
diff --git a/pmagpy/pmag.py b/pmagpy/pmag.py index <HASH>..<HASH> 100755 --- a/pmagpy/pmag.py +++ b/pmagpy/pmag.py @@ -9280,7 +9280,7 @@ def mktk03(terms, seed, G2, G3): g10, sfact, afact = -18e3, 3.8, 2.4 g20 = G2 * g10 g30 = G3 * g10 - alpha = old_div(g10, afact) + alpha = g10/afact s1 = s_l...
modified: pmag.py
py
diff --git a/tests/test_suite.py b/tests/test_suite.py index <HASH>..<HASH> 100755 --- a/tests/test_suite.py +++ b/tests/test_suite.py @@ -1,3 +1,5 @@ +import re + import django import pytest from admin_honeypot.models import LoginAttempt @@ -51,6 +53,11 @@ class AdminHoneypotTest(TestCase): .replace(qu...
Fix test broken by CSRF token
py
diff --git a/chess/uci.py b/chess/uci.py index <HASH>..<HASH> 100644 --- a/chess/uci.py +++ b/chess/uci.py @@ -745,10 +745,10 @@ class Engine(object): pass elif current_parameter == "currline": try: - if cpunr is None: - cpunr ...
Fix: cpunr should be currline_cpunr
py
diff --git a/acos_client/v30/partition.py b/acos_client/v30/partition.py index <HASH>..<HASH> 100644 --- a/acos_client/v30/partition.py +++ b/acos_client/v30/partition.py @@ -65,16 +65,20 @@ class Partition(base.BaseV30): z = a['partition-available-id']['oper']['range-list'][0]['start'] return int(z) ...
Added functionality for specifying application-type when creating partitions.
py
diff --git a/test/test_sphere_sph.py b/test/test_sphere_sph.py index <HASH>..<HASH> 100644 --- a/test/test_sphere_sph.py +++ b/test/test_sphere_sph.py @@ -192,4 +192,4 @@ def test_write(): if __name__ == '__main__': - test_schmidt_normality() + test_schmidt_seminormality()
another pylint fix
py
diff --git a/noisyopt/main.py b/noisyopt/main.py index <HASH>..<HASH> 100644 --- a/noisyopt/main.py +++ b/noisyopt/main.py @@ -306,8 +306,14 @@ def minimizeSPSA(func, x0, args=(), bounds=None, niter=100, paired=True, delta = np.random.choice([-1, 1], size=N) fkwargs = dict() if paired: - ...
fixed SPSA optimization (single seed, only feasible evaluations respecting bounds)
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -65,7 +65,6 @@ if __name__ == "__main__": 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', 'Programming Language :: Python :: 3.6', - 'Programm...
removed <I> <I> isn't ready for testing yet.
py
diff --git a/owncloud/owncloud.py b/owncloud/owncloud.py index <HASH>..<HASH> 100644 --- a/owncloud/owncloud.py +++ b/owncloud/owncloud.py @@ -731,20 +731,16 @@ class Client(): :raises: ResponseError in case an HTTP error status was returned """ - res = self.__make_ocs_request( - '...
rewritten user_exists to use search_users
py
diff --git a/doc/conf.py b/doc/conf.py index <HASH>..<HASH> 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -145,7 +145,7 @@ html_theme = 'sphinx_rtd_theme' # Add any paths that contain custom static files (such as style sheets) here, # relative to this directory. They are copied after the builtin static files, # so a...
Avoid warning that static doesn't exist
py
diff --git a/atmos/equations.py b/atmos/equations.py index <HASH>..<HASH> 100644 --- a/atmos/equations.py +++ b/atmos/equations.py @@ -409,9 +409,9 @@ a more approximate formula is appropriate.''') @assumes('goff-gratch') def es_from_T_Goff_Gratch(T): return ne.evaluate( - '''101325.*10.**(-1.90298*((373....
corrected es_from_T_Goff_Gratch
py
diff --git a/shapes.py b/shapes.py index <HASH>..<HASH> 100644 --- a/shapes.py +++ b/shapes.py @@ -176,15 +176,15 @@ class Box(Image): def image(self): image = [] - image.append([True]*self._size[0]) - for yPos in range(1, self._size[0]-2): + image.append([True]*self._size[1]) + ...
Fixed new algorithum in last commit.
py
diff --git a/makerlabs/fablabs_io.py b/makerlabs/fablabs_io.py index <HASH>..<HASH> 100644 --- a/makerlabs/fablabs_io.py +++ b/makerlabs/fablabs_io.py @@ -95,6 +95,8 @@ def get_labs(format): current_lab.avatar = i["avatar_url"] current_lab.blurb = i["blurb"] current_lab.capabilities = i["capa...
Fix a case problem with cities in Fablabs.io
py
diff --git a/foursquare/tests/test_venues.py b/foursquare/tests/test_venues.py index <HASH>..<HASH> 100644 --- a/foursquare/tests/test_venues.py +++ b/foursquare/tests/test_venues.py @@ -30,7 +30,7 @@ class VenuesEndpointTestCase(BaseAuthenticatedEndpointTestCase): assert 'groups' in response def test_e...
[test] make sure we have a unicode example in the specs
py
diff --git a/content.py b/content.py index <HASH>..<HASH> 100644 --- a/content.py +++ b/content.py @@ -794,6 +794,7 @@ class OPSContent(object): pass if tab_first: table.setAttribute('id', 'h{0}'.format(name)) + tab_first = Fa...
Fixed a bug where multiple table elements in table-wrap had redundant fragment identifiers by inhibiting assignment of fragment identifiers after the first table element
py
diff --git a/mot/cl_routines/optimizing/base.py b/mot/cl_routines/optimizing/base.py index <HASH>..<HASH> 100644 --- a/mot/cl_routines/optimizing/base.py +++ b/mot/cl_routines/optimizing/base.py @@ -376,8 +376,14 @@ class AbstractParallelOptimizerWorker(Worker): ''' + param_modifier.get_name() + '''((v...
Small update to allow the model to signal for bounds
py
diff --git a/demo/threads.py b/demo/threads.py index <HASH>..<HASH> 100755 --- a/demo/threads.py +++ b/demo/threads.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python import threading import time
demo/threads: Add shebang.
py
diff --git a/pystache/tests/test_doctests.py b/pystache/tests/test_doctests.py index <HASH>..<HASH> 100644 --- a/pystache/tests/test_doctests.py +++ b/pystache/tests/test_doctests.py @@ -24,7 +24,16 @@ from pystache.tests.common import PROJECT_DIR, SOURCE_DIR text_file_paths = ['README.rst'] -def load_tests(loader...
Tests can now be run with nosetests or Distribute's test.
py
diff --git a/metpy/calc/tests/test_thermo.py b/metpy/calc/tests/test_thermo.py index <HASH>..<HASH> 100644 --- a/metpy/calc/tests/test_thermo.py +++ b/metpy/calc/tests/test_thermo.py @@ -178,6 +178,16 @@ def test_lfc_basic(): assert_almost_equal(l[1], 9.705 * units.celsius, 2) +def test_no_lfc(): + """Test ...
Add test for case of no LFC in data
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100755 --- a/setup.py +++ b/setup.py @@ -28,7 +28,7 @@ setup(name='HammerTime-http', extras_require={ 'simhash': ['simhash==2.0.0'], 'simhash-py': [ - 'simhash-py@git+https://github.com/seomoz/simhash-py.git@46de27b310022e3...
Using a forked version of simhash-py (#<I>) The original version doesn't do pypi releases anymore.
py
diff --git a/pyemma/_base/estimator.py b/pyemma/_base/estimator.py index <HASH>..<HASH> 100644 --- a/pyemma/_base/estimator.py +++ b/pyemma/_base/estimator.py @@ -127,10 +127,13 @@ def _estimate_param_scan_worker(estimator, params, X, evaluate, evaluate_args, """ # run estimation + model = None try:...
[estimator] fix exception handling. * Do not try to access estimator_instance.model in case of an exception. * Log exceptions as warning, if estimator is Loggable.
py
diff --git a/wooey/signals.py b/wooey/signals.py index <HASH>..<HASH> 100644 --- a/wooey/signals.py +++ b/wooey/signals.py @@ -49,7 +49,7 @@ def script_presave(instance, **kwargs): def script_postsave(instance, created, **kwargs): from .backend import utils - if created and not skip_script(instance): + if...
fix for upgraded scripts not running through add_wooey_script
py
diff --git a/keylib/private_key.py b/keylib/private_key.py index <HASH>..<HASH> 100644 --- a/keylib/private_key.py +++ b/keylib/private_key.py @@ -69,7 +69,7 @@ class ECPrivateKey(): def to_wif(self): if self._compressed: return encode_privkey( - self._ecdsa_private_key.to_stri...
use _pubkeyhash_version_byte when converting to WIF
py
diff --git a/pulsar/async/protocols.py b/pulsar/async/protocols.py index <HASH>..<HASH> 100644 --- a/pulsar/async/protocols.py +++ b/pulsar/async/protocols.py @@ -644,7 +644,8 @@ class TcpServer(Producer): protocol.bind_event('connection_lost', self._connection_lost, ...
don't log stopping server when it is already stopping
py
diff --git a/cerberus/validator.py b/cerberus/validator.py index <HASH>..<HASH> 100644 --- a/cerberus/validator.py +++ b/cerberus/validator.py @@ -11,7 +11,7 @@ from __future__ import absolute_import from ast import literal_eval -from collections import Hashable, Iterable, Mapping, Sequence +from collections import...
Checks the empty rule against values of type Sized
py
diff --git a/autopython/highlighter.py b/autopython/highlighter.py index <HASH>..<HASH> 100644 --- a/autopython/highlighter.py +++ b/autopython/highlighter.py @@ -130,12 +130,12 @@ else: class Token: pass - Token.Index = object() - Token.Prompt = object() - Token.Text = object() - Token.Lite...
Exception when colorama or pygments were not installed
py
diff --git a/spyder/plugins/editor/widgets/editor.py b/spyder/plugins/editor/widgets/editor.py index <HASH>..<HASH> 100644 --- a/spyder/plugins/editor/widgets/editor.py +++ b/spyder/plugins/editor/widgets/editor.py @@ -2748,11 +2748,13 @@ def test(): import time t0 = time.time() - test.load(osp.join(s...
Change files references in editor standalone test.
py
diff --git a/pyeapi/client.py b/pyeapi/client.py index <HASH>..<HASH> 100644 --- a/pyeapi/client.py +++ b/pyeapi/client.py @@ -765,6 +765,5 @@ def connect_to(name): username=kwargs.get('username'), password=kwargs.get('password'), port=kwargs.get('port'), - ...
Update client.py Undone the change.
py
diff --git a/tinytag/tinytag.py b/tinytag/tinytag.py index <HASH>..<HASH> 100644 --- a/tinytag/tinytag.py +++ b/tinytag/tinytag.py @@ -159,7 +159,7 @@ class TinyTag(object): try: # cast pathlib.Path to str import pathlib if isinstance(filename, pathlib.Path): - filenam...
fixing pathlib behavior on python <I> and <I>
py
diff --git a/rw/www.py b/rw/www.py index <HASH>..<HASH> 100644 --- a/rw/www.py +++ b/rw/www.py @@ -135,12 +135,13 @@ class StaticURL(object): return parent._static.get_content(fname) except: pass - raise IOError('File not found {0}:{1...
fix error message on missing file in static()
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 setup( name='Highton', - version='1.2.6', + version='1.2.7', license='Apache License 2.0', description='A Python library for Highrise', long_description='A...
Version Push and Upload to PyPi
py
diff --git a/cosmic_ray/testing/test_runner.py b/cosmic_ray/testing/test_runner.py index <HASH>..<HASH> 100644 --- a/cosmic_ray/testing/test_runner.py +++ b/cosmic_ray/testing/test_runner.py @@ -18,19 +18,22 @@ class TestOutcome: class TestRunnerFailure(Exception): """Failure reported from a test runner. """...
Fixed some linting issues.
py
diff --git a/pyethereum/apiserver.py b/pyethereum/apiserver.py index <HASH>..<HASH> 100644 --- a/pyethereum/apiserver.py +++ b/pyethereum/apiserver.py @@ -117,16 +117,18 @@ def block(arg=None): # ######## Transactions ############ +def make_transaction_response(txs): + return dict(transactions = [tx.to_dict() f...
redirect PUT tx to tx view
py
diff --git a/colormath/__init__.py b/colormath/__init__.py index <HASH>..<HASH> 100644 --- a/colormath/__init__.py +++ b/colormath/__init__.py @@ -1 +1 @@ -VERSION = '1.0.7' \ No newline at end of file +VERSION = '1.0.8'
Bumping svn to <I>.
py
diff --git a/tests/test_basic.py b/tests/test_basic.py index <HASH>..<HASH> 100755 --- a/tests/test_basic.py +++ b/tests/test_basic.py @@ -5,9 +5,12 @@ Basic tests for WPTools. """ +import os +import sys import unittest -import wptools +sys.path.insert(0, os.path.join(os.path.dirname(__file__), '..')) +import wp...
stopgap path to wptools in tests/
py
diff --git a/fuse.py b/fuse.py index <HASH>..<HASH> 100644 --- a/fuse.py +++ b/fuse.py @@ -579,7 +579,7 @@ class FUSE(object): attrs = self.operations('listxattr', path.decode(self.encoding)) or '' ret = '\x00'.join(attrs).encode(self.encoding) if len(ret) > 0: - ret += '\x00' + ...
fix string encoding as referenced in #<I>/#<I>
py
diff --git a/py/selenium/webdriver/common/service.py b/py/selenium/webdriver/common/service.py index <HASH>..<HASH> 100644 --- a/py/selenium/webdriver/common/service.py +++ b/py/selenium/webdriver/common/service.py @@ -126,7 +126,7 @@ class Service(object): except URLError: return - for _...
for _ -> for x on behalf of cgoldberg
py
diff --git a/tests/slice_test.py b/tests/slice_test.py index <HASH>..<HASH> 100644 --- a/tests/slice_test.py +++ b/tests/slice_test.py @@ -4,6 +4,15 @@ from common import * def test_slice_expression(df): assert df.x[:2].tolist() == df[:2].x.tolist() assert df.x[2:6].tolist() == df[2:6].x.tolist() + assert...
Update to the unit-test for slicing dataframes and expressions
py
diff --git a/chess/pgn.py b/chess/pgn.py index <HASH>..<HASH> 100644 --- a/chess/pgn.py +++ b/chess/pgn.py @@ -491,8 +491,8 @@ class GameNode: Parses the first valid ``[%clk ...]`` annotation in the comment of this node, if any. - Returns the remaining time to the next time control after this...
Clarify that %clk refers to a player
py
diff --git a/pyocd/core/session.py b/pyocd/core/session.py index <HASH>..<HASH> 100644 --- a/pyocd/core/session.py +++ b/pyocd/core/session.py @@ -328,7 +328,7 @@ class Session(object): 'FileProgrammer': pyocd.flash.loader.FileProgrammer, 'FlashEraser': pyocd.flash.loader.Flash...
Fixed up user script LOG variable.
py
diff --git a/pyvista/core/pyvista_ndarray.py b/pyvista/core/pyvista_ndarray.py index <HASH>..<HASH> 100644 --- a/pyvista/core/pyvista_ndarray.py +++ b/pyvista/core/pyvista_ndarray.py @@ -4,7 +4,11 @@ import numpy as np from pyvista.utilities.helpers import convert_array, FieldAssociation from vtk.numpy_interface.data...
Fix import issues (#<I>)
py
diff --git a/datadog-checks-base/datadog_checks/checks/win/winpdh.py b/datadog-checks-base/datadog_checks/checks/win/winpdh.py index <HASH>..<HASH> 100644 --- a/datadog-checks-base/datadog_checks/checks/win/winpdh.py +++ b/datadog-checks-base/datadog_checks/checks/win/winpdh.py @@ -127,7 +127,8 @@ class WinPDHCounter(o...
[windows] fix python linting error on excption handling; log an error (#<I>) message (though we should never, ever see this case)
py
diff --git a/dbussy.py b/dbussy.py index <HASH>..<HASH> 100644 --- a/dbussy.py +++ b/dbussy.py @@ -4761,7 +4761,8 @@ class PendingCall : def set_notify(self, function, user_data, free_user_data = None) : "sets the callback for libdbus to notify you that the pending message" \ - " has become avail...
Note that (contrary to documentation) PendingCall.steal_reply() should not be called if reply is not yet available; also it seems I need to guard against spurious notifications that the reply is in fact available.
py
diff --git a/src/clc/APIv2/queue.py b/src/clc/APIv2/queue.py index <HASH>..<HASH> 100644 --- a/src/clc/APIv2/queue.py +++ b/src/clc/APIv2/queue.py @@ -63,7 +63,7 @@ class Requests(object): for r in requests_lst: - if 'server' in r and len(r['server'])<=6: + if 'server' in r and len(r['server'])<=8: # Ho...
Fix request object for server creation with short clc alias
py
diff --git a/scripts/cibuild.py b/scripts/cibuild.py index <HASH>..<HASH> 100755 --- a/scripts/cibuild.py +++ b/scripts/cibuild.py @@ -118,8 +118,10 @@ def pypi_upload(): sdist = glob.glob(os.path.join("dist/", 'svtplay_dl-*.tar.gz'))[0] subprocess.check_call(["twine", "upload", sdist]) +logger.info("Branch...
cibuild: run this on custom branches and not on tagged builds
py
diff --git a/neo/Wallets/Wallet.py b/neo/Wallets/Wallet.py index <HASH>..<HASH> 100755 --- a/neo/Wallets/Wallet.py +++ b/neo/Wallets/Wallet.py @@ -1220,8 +1220,8 @@ be 100. Issuing 'wallet rebuild' restarts the syncing process.") Returns: bool: True if wallet is synced. """ - perce...
Made _percent_synced a variable with Wallet
py
diff --git a/wallace/models.py b/wallace/models.py index <HASH>..<HASH> 100644 --- a/wallace/models.py +++ b/wallace/models.py @@ -1280,7 +1280,7 @@ class Transformation(Base, SharedMixin): .format(node, info_in)) -class Notification(Base): +class Notification(Base, SharedMixin): ...
Use shared mixin for Notification table definition
py
diff --git a/anycast_healthchecker/servicecheck.py b/anycast_healthchecker/servicecheck.py index <HASH>..<HASH> 100644 --- a/anycast_healthchecker/servicecheck.py +++ b/anycast_healthchecker/servicecheck.py @@ -229,7 +229,7 @@ class ServiceCheck(Thread): self.log.info("Going UP {}".format(up_cnt)) ...
ServiceCheck.py: check was unnecessarily executed twice
py
diff --git a/bokeh/plot_object.py b/bokeh/plot_object.py index <HASH>..<HASH> 100644 --- a/bokeh/plot_object.py +++ b/bokeh/plot_object.py @@ -46,7 +46,7 @@ class Viewable(MetaHasProps): @classmethod def _preload_models(cls): - from . import objects, widgets + from . import models fro...
Rename objects -> models in _preload_models()
py
diff --git a/sos/plugins/foreman.py b/sos/plugins/foreman.py index <HASH>..<HASH> 100644 --- a/sos/plugins/foreman.py +++ b/sos/plugins/foreman.py @@ -217,6 +217,9 @@ class Foreman(Plugin): self.add_cmd_output(_cmd, suggest_filename=dyn, timeout=600, env=self.env) + ...
[foreman] collect http[|s]_proxy env.variables Presence or values of the variables is crucial in some foreman-installer issues. Resolves: #<I>
py
diff --git a/aiogram/dispatcher/filters.py b/aiogram/dispatcher/filters.py index <HASH>..<HASH> 100644 --- a/aiogram/dispatcher/filters.py +++ b/aiogram/dispatcher/filters.py @@ -132,6 +132,32 @@ class RegexpFilter(Filter): return bool(self.regexp.search(message.text)) +class RegexpCommandsFilter(Async...
Added Regexp Commands Filter
py
diff --git a/osmnx/distance.py b/osmnx/distance.py index <HASH>..<HASH> 100644 --- a/osmnx/distance.py +++ b/osmnx/distance.py @@ -155,10 +155,10 @@ def nearest_nodes(G, X, Y, return_dist=False): ---------- G : networkx.MultiDiGraph graph in which to find nearest nodes - X : list + X : numpy.ar...
expect X and Y as numpy arrays
py
diff --git a/dingo/core/network/__init__.py b/dingo/core/network/__init__.py index <HASH>..<HASH> 100644 --- a/dingo/core/network/__init__.py +++ b/dingo/core/network/__init__.py @@ -289,12 +289,14 @@ class StationDingo: """ Cumulative peak load of loads connected to underlying LV grid """ - ...
replace StationDingo's peak_load() bottom-up by peak load from associated LVGD
py
diff --git a/betfairlightweight/errors/apierrorhandling.py b/betfairlightweight/errors/apierrorhandling.py index <HASH>..<HASH> 100644 --- a/betfairlightweight/errors/apierrorhandling.py +++ b/betfairlightweight/errors/apierrorhandling.py @@ -37,7 +37,10 @@ def api_order_error_handling(response, params=None, method=Non...
errorCode error; error handling added for order
py
diff --git a/cmsplugin_filer_utils/migration.py b/cmsplugin_filer_utils/migration.py index <HASH>..<HASH> 100644 --- a/cmsplugin_filer_utils/migration.py +++ b/cmsplugin_filer_utils/migration.py @@ -12,9 +12,9 @@ def rename_tables(db, table_mapping, reverse=False): table_names = connection.introspection.table_name...
nicer indenting for migration helper
py
diff --git a/django_jenkins/tasks/run_pep8.py b/django_jenkins/tasks/run_pep8.py index <HASH>..<HASH> 100644 --- a/django_jenkins/tasks/run_pep8.py +++ b/django_jenkins/tasks/run_pep8.py @@ -65,3 +65,9 @@ class Reporter(object): rcfile = getattr(settings, 'PEP8_RCFILE', None) if rcfile: r...
Make config search for pep8 same as for flake8 for #<I>
py
diff --git a/client/deis.py b/client/deis.py index <HASH>..<HASH> 100755 --- a/client/deis.py +++ b/client/deis.py @@ -205,8 +205,8 @@ class Settings(dict): with open(self._path, 'w') as f: f.write(data) except IOError: - self._logger.error("Could not write to settings ...
fix(client): _logger doesn't exist for settings
py
diff --git a/zipline/utils/api_support.py b/zipline/utils/api_support.py index <HASH>..<HASH> 100644 --- a/zipline/utils/api_support.py +++ b/zipline/utils/api_support.py @@ -48,7 +48,13 @@ def api_method(f): @wraps(f) def wrapped(*args, **kwargs): # Get the instance and call the method - retu...
ENH: An improved error message when calling zipline api functions outside of a running simulation. Previously, an AttributeError was raised.
py
diff --git a/contrib/git_buildbot.py b/contrib/git_buildbot.py index <HASH>..<HASH> 100644 --- a/contrib/git_buildbot.py +++ b/contrib/git_buildbot.py @@ -82,9 +82,9 @@ def grab_commit_info(c, rev): files.append(m.group(1)) continue - m = re.match(r"^Commit:\s+(.+)$", line) + m...
git_buildbot should show the author, not the committer When I'm looking at my waterfall, I'd like to see the names of the people who wrote code, not just mine because I happened to have cherry-picked or am'd a bunch of changes.
py
diff --git a/solidity/python/Formula/__init__.py b/solidity/python/Formula/__init__.py index <HASH>..<HASH> 100644 --- a/solidity/python/Formula/__init__.py +++ b/solidity/python/Formula/__init__.py @@ -88,13 +88,15 @@ def calculateSaleReturn(_supply, _reserveBalance, _reserveRatio, _sellAmount): def safeMul(x,y):...
Add assertions to safeMul and safeAdd
py
diff --git a/django_freeradius/admin.py b/django_freeradius/admin.py index <HASH>..<HASH> 100644 --- a/django_freeradius/admin.py +++ b/django_freeradius/admin.py @@ -1,3 +1,34 @@ +from django.contrib import admin +from .models import (Nas, RadiusAccounting, RadiusChecks, RadiusGroup, + RadiusGrou...
[admin] Added admin classes
py
diff --git a/tests/test_algorithm.py b/tests/test_algorithm.py index <HASH>..<HASH> 100644 --- a/tests/test_algorithm.py +++ b/tests/test_algorithm.py @@ -1907,7 +1907,7 @@ class TestTradingAlgorithm(TestCase): }) def test_analyze_called(self): - results_ref = None + self.perf_ref = None ...
TST: Fixed up test result comparison
py
diff --git a/src/ocrmypdf/pipeline.py b/src/ocrmypdf/pipeline.py index <HASH>..<HASH> 100644 --- a/src/ocrmypdf/pipeline.py +++ b/src/ocrmypdf/pipeline.py @@ -540,14 +540,13 @@ def select_ocr_image( white = ImageColor.getcolor('#ffffff', im.mode) draw = ImageDraw.ImageDraw(im) - xres = im.wid...
pipeline: use the resolution of the OCR image rather than recalculating (Recalculating would fail if the image is not centered.)
py
diff --git a/ansibleci/helper.py b/ansibleci/helper.py index <HASH>..<HASH> 100644 --- a/ansibleci/helper.py +++ b/ansibleci/helper.py @@ -8,18 +8,25 @@ class Helper: def __init__(self, config): self.config = config - def get_roles(self): + def get_roles_path(self): + ''' + Returns t...
FEATURE: Added Helper.get_roles_path() The method returns the absolute path to the roles directory, while considering the BASEDIR and ROLES config variables.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -117,10 +117,10 @@ def run_setup(exts): def main(modules, is_pypy): language = "cpp" includes = ['.', path.join(sys.prefix, 'include')] - compile_args = ['-O3', '-stdlib=libc++'] + compile_args = ['-O3'] ...
* Move libc++ argument back under check for darwin. This assumes that extensions on OSX will be built with clang, but OSX GCC builds are also possible. Need to detect compiler and disable this flag
py
diff --git a/jaraco/util/functools.py b/jaraco/util/functools.py index <HASH>..<HASH> 100644 --- a/jaraco/util/functools.py +++ b/jaraco/util/functools.py @@ -102,14 +102,12 @@ def method_cache(method): a.calls would have been 76 (due to the cached value of 0 having been flushed by the 'b' instance). """ - cac...
An alternate implementation inspired by <URL>
py
diff --git a/autoit/autoit.py b/autoit/autoit.py index <HASH>..<HASH> 100644 --- a/autoit/autoit.py +++ b/autoit/autoit.py @@ -2,11 +2,15 @@ __author__ = 'Jace Xu' -import ctypes import os import platform from ctypes.wintypes import * from functools import wraps +import sys +if sys.version_info[0] == 3: + f...
Import 'reduce' method within python 3
py
diff --git a/leancloud/object_.py b/leancloud/object_.py index <HASH>..<HASH> 100644 --- a/leancloud/object_.py +++ b/leancloud/object_.py @@ -576,21 +576,25 @@ class Object(six.with_metaclass(ObjectMeta, object)): def disable_before_hook(self): hook_key = client.get_app_info().get("hook_key") - ...
fix: master key is also allowed to ignore hooks.
py
diff --git a/dwave/cloud/package_info.py b/dwave/cloud/package_info.py index <HASH>..<HASH> 100644 --- a/dwave/cloud/package_info.py +++ b/dwave/cloud/package_info.py @@ -14,7 +14,7 @@ __packagename__ = 'dwave-cloud-client' __title__ = 'D-Wave Cloud Client' -__version__ = '0.7.6' +__version__ = '0.7.7' __author__ ...
Release version <I> Changes since <I> Fixes --- - Restored support for `order by` in solver features definition dict (#<I>) - Fix interface of public, but undocumented `reformat_qubo_as_ising` (#<I>) - Include package version in user-agent string (#<I>)
py
diff --git a/spade/wui.py b/spade/wui.py index <HASH>..<HASH> 100644 --- a/spade/wui.py +++ b/spade/wui.py @@ -38,6 +38,7 @@ class WUI(Thread): try: self.httpd = SocketServer.ThreadingTCPServer(('', self.port), WUIHandler) self.httpd.owner = self + self....
Add timeout for WUI's httpd. Otherwise, agents can't stop. Fixes Issue #<I>.
py
diff --git a/greenhouse/utils.py b/greenhouse/utils.py index <HASH>..<HASH> 100644 --- a/greenhouse/utils.py +++ b/greenhouse/utils.py @@ -321,6 +321,13 @@ class Timer(object): if tp[index][1].run is self.func: tp[index:index + 1] = [] + @classmethod + def wrap(cls, secs, args=(), kwargs=N...
nifty decorator for Timers
py
diff --git a/spyderlib/plugins/console.py b/spyderlib/plugins/console.py index <HASH>..<HASH> 100644 --- a/spyderlib/plugins/console.py +++ b/spyderlib/plugins/console.py @@ -40,7 +40,8 @@ class Console(SpyderPluginWidget): """ CONF_SECTION = 'internal_console' def __init__(self, parent=None, namespace...
Internal console (Spyder debugging only): turned off the multithreaded mode
py
diff --git a/vcs/nodes.py b/vcs/nodes.py index <HASH>..<HASH> 100644 --- a/vcs/nodes.py +++ b/vcs/nodes.py @@ -262,7 +262,7 @@ class FileNode(Node): mode = self._mode return mode - @LazyProperty + @property def content(self): """ Returns lazily content of the FileNod...
small reimplementation of binary check, changed two lazy properties to regular properties
py
diff --git a/openfisca_core/scenarios.py b/openfisca_core/scenarios.py index <HASH>..<HASH> 100644 --- a/openfisca_core/scenarios.py +++ b/openfisca_core/scenarios.py @@ -474,7 +474,7 @@ def make_json_or_python_to_test(tax_benefit_system): output_variables = test_case.pop(u'output_variables') period =...
Don't fail when a test case has no input variable and no entity variable.
py
diff --git a/src/pybel/manager/models.py b/src/pybel/manager/models.py index <HASH>..<HASH> 100644 --- a/src/pybel/manager/models.py +++ b/src/pybel/manager/models.py @@ -336,9 +336,12 @@ class Network(Base): 'version': self.version } - def __str__(self): + def __repr__(self): ...
Update repr of network [skip ci]
py
diff --git a/cherrypy/_cpconfig.py b/cherrypy/_cpconfig.py index <HASH>..<HASH> 100644 --- a/cherrypy/_cpconfig.py +++ b/cherrypy/_cpconfig.py @@ -310,6 +310,19 @@ def _engine_namespace_handler(k, v): engine.listeners['SIGHUP'] = set([v]) elif k == 'SIGTERM': engine.listeners['SIGTERM'] = set([v]...
Easier config access to engine and plugins.
py
diff --git a/eventsourcing/tests/test_runner.py b/eventsourcing/tests/test_runner.py index <HASH>..<HASH> 100644 --- a/eventsourcing/tests/test_runner.py +++ b/eventsourcing/tests/test_runner.py @@ -95,11 +95,15 @@ class TestMultiThreadedRunner(RunnerTestCase): class BrokenInitialisation(EmailNotifications): ...
Reworded exception message (more obviously deliberate).
py