diff
stringlengths
139
3.65k
message
stringlengths
8
627
diff_languages
stringclasses
1 value
diff --git a/chess/pgn.py b/chess/pgn.py index <HASH>..<HASH> 100644 --- a/chess/pgn.py +++ b/chess/pgn.py @@ -779,8 +779,7 @@ def read_game(handle, Visitor=GameModelCreator): By using text mode the parser does not need to handle encodings. It is the callers responsibility to open the file with the correct en...
Tweak note about encodings on pgn.read_game
py
diff --git a/pipenv/cli.py b/pipenv/cli.py index <HASH>..<HASH> 100644 --- a/pipenv/cli.py +++ b/pipenv/cli.py @@ -210,11 +210,14 @@ def ensure_virtualenv(three=None, python=None): ensure_virtualenv(three=three, python=python) -def ensure_project(three=None, python=None, validate=True): +def ensure_project...
skip virtualenv creation when --system was used.
py
diff --git a/msrestazure/azure_operation.py b/msrestazure/azure_operation.py index <HASH>..<HASH> 100644 --- a/msrestazure/azure_operation.py +++ b/msrestazure/azure_operation.py @@ -173,15 +173,19 @@ class LongRunningOperation(object): resource = self.get_outputs(response) response.status_code = prev...
Fix #<I> - Polling error if initial was <I>
py
diff --git a/microsoftbotframework/state.py b/microsoftbotframework/state.py index <HASH>..<HASH> 100644 --- a/microsoftbotframework/state.py +++ b/microsoftbotframework/state.py @@ -1,6 +1,6 @@ from abc import ABCMeta, abstractmethod try: - from pymongo import MongoClient + from pymongo import MongoClient, DES...
Swaped to built in args
py
diff --git a/alarmdecoder/decoder.py b/alarmdecoder/decoder.py index <HASH>..<HASH> 100644 --- a/alarmdecoder/decoder.py +++ b/alarmdecoder/decoder.py @@ -117,7 +117,7 @@ class AlarmDecoder(object): """The status of the devices COM emulation.""" #Version Information - serial_number = 0xFFFFFFFF + seri...
serial_number is alpha numeric not int.
py
diff --git a/filesystems/tests/common.py b/filesystems/tests/common.py index <HASH>..<HASH> 100644 --- a/filesystems/tests/common.py +++ b/filesystems/tests/common.py @@ -869,7 +869,24 @@ class TestFS(object): os.strerror(errno.ENOENT) + ": " + str(directory), ) - def test_remove_link_empty_d...
Another missing test for removing empty directories that are files.
py
diff --git a/pylabcontrol/core/read_write_functions.py b/pylabcontrol/core/read_write_functions.py index <HASH>..<HASH> 100644 --- a/pylabcontrol/core/read_write_functions.py +++ b/pylabcontrol/core/read_write_functions.py @@ -21,6 +21,7 @@ import os, inspect from importlib import import_module import platform + d...
fix spacing in read_write_functions
py
diff --git a/girder/cli/serve.py b/girder/cli/serve.py index <HASH>..<HASH> 100644 --- a/girder/cli/serve.py +++ b/girder/cli/serve.py @@ -34,5 +34,6 @@ def main(dev, mode, database, host, port): _attachFileLogHandlers() server.setup(mode) + cherrypy.engine.signal_handler.subscribe() cherrypy.engine...
Make Girder natively respond to SIGTERM and SIGHUP See: <URL>. This was tested by using "docker kill -s SIGTERM" on locally built slim container. Fixes #<I>.
py
diff --git a/eq3bt/connection.py b/eq3bt/connection.py index <HASH>..<HASH> 100644 --- a/eq3bt/connection.py +++ b/eq3bt/connection.py @@ -39,7 +39,7 @@ class BTLEConnection(btle.DefaultDelegate): try: self._conn.connect(self._mac) except Exception as ex2: - _LO...
do not suppress exceptions from bluepy, but log them to debug logger and raise exceptions for users to handle
py
diff --git a/pythonforandroid/toolchain.py b/pythonforandroid/toolchain.py index <HASH>..<HASH> 100644 --- a/pythonforandroid/toolchain.py +++ b/pythonforandroid/toolchain.py @@ -210,6 +210,18 @@ class NoAbbrevParser(argparse.ArgumentParser): class ToolchainCL(object): def __init__(self): + + argv = sys....
Added temporary fix for buildozer <I>
py
diff --git a/discord/ext/commands/help.py b/discord/ext/commands/help.py index <HASH>..<HASH> 100644 --- a/discord/ext/commands/help.py +++ b/discord/ext/commands/help.py @@ -326,7 +326,7 @@ class HelpCommand: self.command_attrs = attrs = options.pop('command_attrs', {}) attrs.setdefault('name', 'help...
Use MISSING instead of None for HelpCommand.context It's basically just late-init
py
diff --git a/bokeh/models/widgets/panels.py b/bokeh/models/widgets/panels.py index <HASH>..<HASH> 100644 --- a/bokeh/models/widgets/panels.py +++ b/bokeh/models/widgets/panels.py @@ -5,7 +5,7 @@ from __future__ import absolute_import from ...properties import Bool, Int, String, Instance, List from ..widget import W...
Fix comflict (not merge conflict) because of those inter-related PRs.
py
diff --git a/backtrader/analyzer.py b/backtrader/analyzer.py index <HASH>..<HASH> 100644 --- a/backtrader/analyzer.py +++ b/backtrader/analyzer.py @@ -204,9 +204,11 @@ class Analyzer(with_metaclass(MetaAnalyzer, object)): def prenext(self): '''Invoked for each prenext invocation of the strategy, until t...
Analyzer default behavior for prenext changed to go to next to let it analyze everything
py
diff --git a/elasticsearch_dsl/field.py b/elasticsearch_dsl/field.py index <HASH>..<HASH> 100644 --- a/elasticsearch_dsl/field.py +++ b/elasticsearch_dsl/field.py @@ -9,7 +9,7 @@ from .utils import DslBase, _make_dsl_class, ObjectBase, AttrDict, AttrList from .exceptions import ValidationException __all__ = [ - ...
[FIX]add String field to __init__ (#<I>) can't import string directly from elasticsearch_dsl since miss 'String' in __init__
py
diff --git a/src/AppiumLibrary/keywords/_touch.py b/src/AppiumLibrary/keywords/_touch.py index <HASH>..<HASH> 100644 --- a/src/AppiumLibrary/keywords/_touch.py +++ b/src/AppiumLibrary/keywords/_touch.py @@ -90,11 +90,6 @@ class _TouchKeywords(KeywordGroup): action = TouchAction(driver) action.tap(el,...
fix tap() which need to delete old code
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -27,8 +27,8 @@ setup(name='bika.lims', 'Products.CMFEditions', 'Products.AdvancedQuery', 'Products.TinyMCE', - 'collective.js.jqueryui==1.8.16.9', 'collective.monkeypatcher'...
Remove version pin from collective.js.jqueryui This change is not, by default, compatible with Plone <I>. If you need to use Plone <I> read the collective.js.jqueryui readme. (cherry picked from commit <I>af2c7cfcfdbf4cd<I>da0e<I>a<I>b<I>edd1)
py
diff --git a/master/buildbot/data/buildslaves.py b/master/buildbot/data/buildslaves.py index <HASH>..<HASH> 100644 --- a/master/buildbot/data/buildslaves.py +++ b/master/buildbot/data/buildslaves.py @@ -86,6 +86,9 @@ class Buildslave(base.ResourceType): plural = "buildslaves" endpoints = [BuildslaveEndpoint, ...
automatically send update message when slaves are connected/disconnected
py
diff --git a/djangoratings/__init__.py b/djangoratings/__init__.py index <HASH>..<HASH> 100644 --- a/djangoratings/__init__.py +++ b/djangoratings/__init__.py @@ -48,7 +48,7 @@ class RatingManager(object): content_type = self.get_content_type(), object_id = self.instance.id, ...
Fixed issue #2: typo in ip_address
py
diff --git a/tests/qpu/test_dwavecliquesampler.py b/tests/qpu/test_dwavecliquesampler.py index <HASH>..<HASH> 100644 --- a/tests/qpu/test_dwavecliquesampler.py +++ b/tests/qpu/test_dwavecliquesampler.py @@ -23,10 +23,15 @@ from dwave.system import DWaveCliqueSampler from parameterized import parameterized +_SAMPLE...
Cache samplers used in unit tests
py
diff --git a/semantic_release/__init__.py b/semantic_release/__init__.py index <HASH>..<HASH> 100644 --- a/semantic_release/__init__.py +++ b/semantic_release/__init__.py @@ -1,6 +1,6 @@ """Semantic Release """ -__version__ = '4.11.0' +__version__ = '5.0.0' from .errors import UnknownCommitMessageStyleError # n...
<I> Automatically generated by python-semantic-release
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 @@ -837,7 +837,7 @@ def test_surface_based_cape_cin(): dewpoint = np.array([19., -11.2, -10.8, -10.4, -10., -53.2]) * units.celsius ...
MNT: Adjust CIN value in test Now that sfc cape/cin uses a profile that includes the LCL, this increases the amount of negative area in the profile, so we need to adjust the value here.
py
diff --git a/morpfw/jslcrud/model.py b/morpfw/jslcrud/model.py index <HASH>..<HASH> 100644 --- a/morpfw/jslcrud/model.py +++ b/morpfw/jslcrud/model.py @@ -64,6 +64,15 @@ class Collection(object): def schema(self): raise NotImplementedError + def __setitem__(self, key, value): + self.data[key] ...
allow collection to be subscriptable too
py
diff --git a/zappa/wsgi.py b/zappa/wsgi.py index <HASH>..<HASH> 100644 --- a/zappa/wsgi.py +++ b/zappa/wsgi.py @@ -57,12 +57,11 @@ def create_wsgi_request(event_info, body = base64.b64decode(encoded_body) else: body = event_info['body'] - # Will this generat...
six to the r e s c u e
py
diff --git a/salt/modules/netaddress.py b/salt/modules/netaddress.py index <HASH>..<HASH> 100644 --- a/salt/modules/netaddress.py +++ b/salt/modules/netaddress.py @@ -23,7 +23,8 @@ def __virtual__(): Only load if netaddr library exist. ''' if not HAS_NETADDR: - return False + return (False,...
modules.netaddress: __virtual__ return err msg. Updated message when netaddr library is not installed.
py
diff --git a/tsip/structs.py b/tsip/structs.py index <HASH>..<HASH> 100644 --- a/tsip/structs.py +++ b/tsip/structs.py @@ -157,7 +157,7 @@ class Struct0x47(object): count = struct.unpack('>B', s[1])[0] fields = [0x47, count] - for i in range(0, count-1): + for i in range(0, count): ...
Fix off by one in for loop Range end value is already non-inclusive. Using count-1 results in last SV not being reported.
py
diff --git a/tests/test_concurrently.py b/tests/test_concurrently.py index <HASH>..<HASH> 100644 --- a/tests/test_concurrently.py +++ b/tests/test_concurrently.py @@ -23,6 +23,13 @@ class ConcurrentlyTest(TestCase): r_mock.assert_called_once_with([task_one, task_two]) s_mock.assert_called_once_with([t...
Added test to capture stderr.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -54,6 +54,7 @@ setup( "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", + "Programming Language :: Python :: 3.7", ...
Updates package tags to include Python <I> for next release
py
diff --git a/patroni/ctl.py b/patroni/ctl.py index <HASH>..<HASH> 100644 --- a/patroni/ctl.py +++ b/patroni/ctl.py @@ -868,7 +868,7 @@ def scaffold(obj, cluster_name, sysid): click.echo("Cluster {0} has been created successfully".format(cluster_name)) -@ctl.command('flush', help='Flush scheduled events') +@ctl...
Better patronictl help text for the "flush" subcommand (#<I>) Right now it's not really clear from --help what it does, flushing in software context usually means persisting...so actually it's the opposite, so make the intention more explicit.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -25,6 +25,7 @@ setup(name='switchboard', 'TurboGears2 >= 2', 'Jinja2 >= 2.6', 'Paste >= 1.7.5', + 'pylibmc >= 1.2', ], tests_require=[ 'nose >= 0.11',
Added pylibmc dependency.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -13,7 +13,7 @@ setup( version='0.1dev', author='Jens Rantil', author_email='jens.rantil@gmail.com', - license='LICENSE.txt', + license='GNU AGPL, version 3', packages=[ 'rewind', 're...
`setup.py` is now set to GNU AGPL v. 3
py
diff --git a/tests/asyncio/test_keep_alive.py b/tests/asyncio/test_keep_alive.py index <HASH>..<HASH> 100644 --- a/tests/asyncio/test_keep_alive.py +++ b/tests/asyncio/test_keep_alive.py @@ -1,7 +1,7 @@ from __future__ import annotations import asyncio -from typing import Callable, Generator +from typing import Asy...
Close and await server fixture task in the tests This avoids warnings printed when testing, which add noise and confuse.
py
diff --git a/stagpy/stagyydata.py b/stagpy/stagyydata.py index <HASH>..<HASH> 100644 --- a/stagpy/stagyydata.py +++ b/stagpy/stagyydata.py @@ -453,17 +453,16 @@ class _Snaps(_Steps): def last(self): """Last snapshot available""" if self._last is UNDETERMINED: - self._last = None + ...
Fix research of last snapshot Using the sorted list of snapshots could lead to wrongly determine the last snap to be e.g. 4 if out_t{0-5} but only out_vp{0-4} existed.
py
diff --git a/manticore/ethereum/manticore.py b/manticore/ethereum/manticore.py index <HASH>..<HASH> 100644 --- a/manticore/ethereum/manticore.py +++ b/manticore/ethereum/manticore.py @@ -1065,8 +1065,8 @@ class ManticoreEVM(ManticoreBase): args=None, compile_args=None, ): - owner_account =...
Use fixed owner and attacker accounts in multi_tx_analysis (#<I>)
py
diff --git a/rewind/logbook.py b/rewind/logbook.py index <HASH>..<HASH> 100644 --- a/rewind/logbook.py +++ b/rewind/logbook.py @@ -768,6 +768,7 @@ class LogBookRunner(object): # maximum number of messages that are send for each request. # Otherwise we might run out of memory for a lot of event...
Whitespace fix. Clarifies what the comment is about.
py
diff --git a/ytfs.py b/ytfs.py index <HASH>..<HASH> 100755 --- a/ytfs.py +++ b/ytfs.py @@ -112,8 +112,7 @@ class YTFS(Operations): Key: descriptor. Value: ``YTStor`` object for given file. __sh_script : bytes - Bytes returned during control file read (empty shell script). System has to hav...
+w on main dir - fix for file managers
py
diff --git a/master/buildbot/steps/source/p4.py b/master/buildbot/steps/source/p4.py index <HASH>..<HASH> 100644 --- a/master/buildbot/steps/source/p4.py +++ b/master/buildbot/steps/source/p4.py @@ -108,10 +108,6 @@ class P4(Source): config.error('p4branch should not end with a trailing / [p4branch = {}]'....
Remove dead code in p4 step
py
diff --git a/salt/modules/network.py b/salt/modules/network.py index <HASH>..<HASH> 100644 --- a/salt/modules/network.py +++ b/salt/modules/network.py @@ -146,7 +146,7 @@ def _interfaces_ifconfig(): ret = {} piface = re.compile('^(\w+)') - pmac = re.compile('.*?(?:HWaddr|ether) (.*?)\s') + pmac = re.c...
Fixed MAC address handling in FreeBSD
py
diff --git a/bcbio/provenance/system.py b/bcbio/provenance/system.py index <HASH>..<HASH> 100644 --- a/bcbio/provenance/system.py +++ b/bcbio/provenance/system.py @@ -88,7 +88,7 @@ def _torque_info(queue): if line.strip().startswith("np = "): info["cores"] = int(line.replace("np = ", "").s...
Use physmem instead of totmem on Torque systems for memory estimation. Fixes #<I>
py
diff --git a/src/jaraco/net/notification.py b/src/jaraco/net/notification.py index <HASH>..<HASH> 100644 --- a/src/jaraco/net/notification.py +++ b/src/jaraco/net/notification.py @@ -86,13 +86,13 @@ class SMTPMailbox(NotificationTarget): @staticmethod def format_message(headers, msg): msg = msg.encode('ascii',...
Updated notification once again; I hope this is more platform agnostic
py
diff --git a/adrest/models.py b/adrest/models.py index <HASH>..<HASH> 100644 --- a/adrest/models.py +++ b/adrest/models.py @@ -32,6 +32,8 @@ if settings.ADREST_ACCESSLOG: class AccessAdmin(admin.ModelAdmin): list_display = 'status_code', 'uri', 'method', 'identifier', 'created_at' list_filter = '...
Modified admin for Access and AccessKey. Listing, search, filters.
py
diff --git a/pymola/backends/casadi/api.py b/pymola/backends/casadi/api.py index <HASH>..<HASH> 100644 --- a/pymola/backends/casadi/api.py +++ b/pymola/backends/casadi/api.py @@ -7,8 +7,7 @@ import fnmatch import logging import shelve -from pymola import parser, tree, ast -from pymola.version import version as pymo...
Use __version__ rather than pymola.version.
py
diff --git a/gala/integrate/setup_package.py b/gala/integrate/setup_package.py index <HASH>..<HASH> 100644 --- a/gala/integrate/setup_package.py +++ b/gala/integrate/setup_package.py @@ -30,4 +30,13 @@ def get_extensions(): cfg['sources'].append('gala/integrate/cyintegrators/dopri/dop853.c') exts.append(Exten...
add build info for extension ruth4
py
diff --git a/pydriller/repository_mining.py b/pydriller/repository_mining.py index <HASH>..<HASH> 100644 --- a/pydriller/repository_mining.py +++ b/pydriller/repository_mining.py @@ -134,7 +134,6 @@ class RepositoryMining: if isinstance(self._path_to_repo, str): self._path_to_repo = [self._path_to...
roll back, cleanup doesn't solve the problem
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -2,12 +2,12 @@ from setuptools import setup, find_packages setup( - name='hvac', - version='0.2.17.1', + name='alooma-hvac', + version='0.2.18', description='HashiCorp Vault API client', - author='Ian U...
setup.py: rename to hvac-alooma, change version
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100755 --- a/setup.py +++ b/setup.py @@ -41,7 +41,7 @@ setup(name='cwltool', 'rdflib >= 4.1.0', 'rdflib-jsonld >= 0.3.0', 'shellescape', - 'schema-salad==1.14.20160707164023', + 'schema-salad==1.14.20160708181155', ...
bump schema-salad requirement version
py
diff --git a/palladium/fit.py b/palladium/fit.py index <HASH>..<HASH> 100644 --- a/palladium/fit.py +++ b/palladium/fit.py @@ -1,6 +1,7 @@ """Utilities for fitting modles. """ +import gc from warnings import warn import sys @@ -74,9 +75,13 @@ def fit(dataset_loader_train, model, model_persister, persist=True, ...
In pld-fit, free training data memory before loading any test data
py
diff --git a/modeltranslation/admin.py b/modeltranslation/admin.py index <HASH>..<HASH> 100644 --- a/modeltranslation/admin.py +++ b/modeltranslation/admin.py @@ -29,7 +29,9 @@ class TranslationAdminBase(object): # translation field required instead. if db_field.language == settings.LANGUAGES[...
Fixed occasional "This field is required" error for the original field. Resolves issue 5.
py
diff --git a/mapillary_tools/uploader.py b/mapillary_tools/uploader.py index <HASH>..<HASH> 100644 --- a/mapillary_tools/uploader.py +++ b/mapillary_tools/uploader.py @@ -1039,6 +1039,7 @@ def upload_video_for_processing(video, video_start_time, max_attempts, credentia break exce...
add: print error when DONE file upload fails
py
diff --git a/satpy/resample.py b/satpy/resample.py index <HASH>..<HASH> 100644 --- a/satpy/resample.py +++ b/satpy/resample.py @@ -506,9 +506,9 @@ class KDTreeResampler(BaseResampler): filename = self._create_cache_filename(cache_dir, prefix='nn_lut-', mask=mask_...
Fix mask usage for nearest neighbour resampling
py
diff --git a/columnize.py b/columnize.py index <HASH>..<HASH> 100644 --- a/columnize.py +++ b/columnize.py @@ -265,7 +265,7 @@ def columnize(array, displaywidth=80, colsep = ' ', pass # Demo it -if __name__=='__main__': +if __name__=='__main__': # pragma: no cover # from trepan.api import debug # de...
Ignore coverage for __main__ It's a lot of uncovered lines for example code.
py
diff --git a/libcomxml/__init__.py b/libcomxml/__init__.py index <HASH>..<HASH> 100644 --- a/libcomxml/__init__.py +++ b/libcomxml/__init__.py @@ -2,3 +2,8 @@ """libcomxml package""" +try: + __version__ = __import__('pkg_resources') \ + .get_distribution(__name__).version +except Exception, e: + __ver...
Add a method to get the version of the package
py
diff --git a/pyqode/core/managers/file.py b/pyqode/core/managers/file.py index <HASH>..<HASH> 100644 --- a/pyqode/core/managers/file.py +++ b/pyqode/core/managers/file.py @@ -379,7 +379,7 @@ class FileManager(Manager): # get file persmission on linux try: st_mode = os.stat(path).st_mode -...
Fix OSError on first save fix tests
py
diff --git a/ffn/core.py b/ffn/core.py index <HASH>..<HASH> 100644 --- a/ffn/core.py +++ b/ffn/core.py @@ -207,7 +207,7 @@ class PerformanceStats(object): self.log_returns = p.to_log_returns() r = self.returns # Replace all positive returns with nan so that downside volatility can be calculat...
Fixed bug due to copying of returns series
py
diff --git a/salt/modules/ssh.py b/salt/modules/ssh.py index <HASH>..<HASH> 100644 --- a/salt/modules/ssh.py +++ b/salt/modules/ssh.py @@ -635,8 +635,8 @@ def set_known_host(user, hostname, try: with salt.utils.fopen(full, 'a') as ofile: ofile.write(line) - except (IOError, OSError): - ...
more detailed feedback if the ssh.set_known_host failed to append to known hosts file Commands should always tell the reason on why they have failed.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -34,7 +34,7 @@ setupdict = { "download_url" : "http://www.nimbusproject.org/downloads/dashi-%s.tar.gz" % VERSION, } -install_requires = ['kombu>=2.1.2,<2.5.0', 'pyyaml'] +install_requires = ['kombu>=2.5.0', 'pyyaml'] ...
Bump kombu dep to >=<I>
py
diff --git a/qnet/algebra/circuit_algebra.py b/qnet/algebra/circuit_algebra.py index <HASH>..<HASH> 100755 --- a/qnet/algebra/circuit_algebra.py +++ b/qnet/algebra/circuit_algebra.py @@ -2176,6 +2176,8 @@ def getABCD(slh, a0={}, doubled_up=True): o = o.expand() if o is IdentityOperator: ...
changed how ABCD matrices are extracted
py
diff --git a/rope/__init__.py b/rope/__init__.py index <HASH>..<HASH> 100644 --- a/rope/__init__.py +++ b/rope/__init__.py @@ -1,7 +1,7 @@ """rope, a python refactoring library""" INFO = __doc__ -VERSION = '0.10.6' +VERSION = '0.10.7' COPYRIGHT = """\ Copyright (C) 2015-2016 Nicholas Smith Copyright (C) 2014-201...
Update version to match bump to <I>
py
diff --git a/niworkflows/conftest.py b/niworkflows/conftest.py index <HASH>..<HASH> 100644 --- a/niworkflows/conftest.py +++ b/niworkflows/conftest.py @@ -1,8 +1,10 @@ """py.test configuration""" import os from pathlib import Path -import numpy +import numpy as np +import nibabel as nb import pytest +import tempfil...
DOCTEST: Make nifti_fname available to doctests
py
diff --git a/gwpy/plot/tests/test_gps.py b/gwpy/plot/tests/test_gps.py index <HASH>..<HASH> 100644 --- a/gwpy/plot/tests/test_gps.py +++ b/gwpy/plot/tests/test_gps.py @@ -183,3 +183,17 @@ def test_auto_gps_scale(scale, unit): transform = xscale.get_transform() assert transform.unit.name == unit pyplot.cl...
gwpy.plot: added regression test (#<I>)
py
diff --git a/plenum/test/plugin/demo_plugin/auction_req_handler.py b/plenum/test/plugin/demo_plugin/auction_req_handler.py index <HASH>..<HASH> 100644 --- a/plenum/test/plugin/demo_plugin/auction_req_handler.py +++ b/plenum/test/plugin/demo_plugin/auction_req_handler.py @@ -1,5 +1,4 @@ -import json - +from common.seria...
INDY-<I>: Attempt to fix intermittent test
py
diff --git a/tests/test_50_datamodels.py b/tests/test_50_datamodels.py index <HASH>..<HASH> 100644 --- a/tests/test_50_datamodels.py +++ b/tests/test_50_datamodels.py @@ -39,7 +39,7 @@ def test_ecmwf(): res = cfcoords.translate_coords(ds, coord_model=datamodels.ECMWF) assert set(res.dims) == {'latitude', 'l...
Add tests for #<I>.
py
diff --git a/ftw/http.py b/ftw/http.py index <HASH>..<HASH> 100644 --- a/ftw/http.py +++ b/ftw/http.py @@ -265,8 +265,7 @@ class HttpUA(object): 'msg': err, 'function': 'http.HttpUA.send_request' }) - finally: - self.get_response() + se...
Only get the response if we sent something Spotted by airween.
py
diff --git a/openquake/baselib/parallel.py b/openquake/baselib/parallel.py index <HASH>..<HASH> 100644 --- a/openquake/baselib/parallel.py +++ b/openquake/baselib/parallel.py @@ -545,7 +545,9 @@ class Starmap(object): @classmethod def init(cls, poolsize=None, distribute=OQ_DISTRIBUTE): if distribute ...
Do not propagate SIGINT to pool workers
py
diff --git a/src/cs50/sql.py b/src/cs50/sql.py index <HASH>..<HASH> 100644 --- a/src/cs50/sql.py +++ b/src/cs50/sql.py @@ -384,7 +384,7 @@ class SQL(object): # If constraint violated except sqlalchemy.exc.IntegrityError as e: - self._logger.error(termcolor.colored(statement, "...
logging bytes-abbreviated _statement instead
py
diff --git a/coconut/icoconut/root.py b/coconut/icoconut/root.py index <HASH>..<HASH> 100644 --- a/coconut/icoconut/root.py +++ b/coconut/icoconut/root.py @@ -55,7 +55,7 @@ class kernel(Kernel): def do_execute(self, code, silent, store_history=True, user_expressions=None, allow_stdin=False): sys.stdout, s...
Uses the proper parsing for the notebook
py
diff --git a/kernel.py b/kernel.py index <HASH>..<HASH> 100755 --- a/kernel.py +++ b/kernel.py @@ -313,11 +313,21 @@ class Kernel: self._destinations.setdefault(self._get_basename(stmt.lvalue), []) self._destinations[self._get_basename(stmt.lvalue)].append( self._get_offsets(...
fixed handling of +=, -= and other assignment operators
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -10,7 +10,7 @@ setup( url='https://github.com/trailofbits/pyevmasm', license='Apache License 2.0', packages=['pyevmasm'], - python_requires='>2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, !=3.5.*', + p...
Fix python version requirements in setup.py
py
diff --git a/OpenPNM/Base/__Core__.py b/OpenPNM/Base/__Core__.py index <HASH>..<HASH> 100644 --- a/OpenPNM/Base/__Core__.py +++ b/OpenPNM/Base/__Core__.py @@ -764,6 +764,7 @@ class Core(Base): ind = (none == 0) #Extract indices from boolean mask ind = sp.where(ind==True)[0] + ind =...
Tiny change to _get_indices so that always returns an int<I> array. For some reason, sp.where returns an int<I> array.
py
diff --git a/udata/forms/fields.py b/udata/forms/fields.py index <HASH>..<HASH> 100644 --- a/udata/forms/fields.py +++ b/udata/forms/fields.py @@ -710,7 +710,7 @@ class ExtrasField(Field): if expected in self.KNOWN_TYPES: try: return field_parse(self.KNOWN_TYPES[expected], value) ...
Narrow the catched exceptions while parsing extras
py
diff --git a/pyxmpp/streamevents.py b/pyxmpp/streamevents.py index <HASH>..<HASH> 100644 --- a/pyxmpp/streamevents.py +++ b/pyxmpp/streamevents.py @@ -176,5 +176,3 @@ class StreamConnectedEvent(StreamEvent): self.peer = peer def __unicode__(self): return u"Connected to {0}".format(peer) - -__all_...
drop __all__ in streamevents.py It was intended to make 'from pyxmpp2.streamevents import *' usable, but it didn't work exactly the way I wanted. Especially together with pylint.
py
diff --git a/sdh/metrics/server/__init__.py b/sdh/metrics/server/__init__.py index <HASH>..<HASH> 100644 --- a/sdh/metrics/server/__init__.py +++ b/sdh/metrics/server/__init__.py @@ -55,9 +55,9 @@ class MetricsApp(AgoraApp): elif 'text/rdf+n3' in mimes: return 'text/rdf+n3', 'n3' else: - ...
Proper MIMEs for root endpoint
py
diff --git a/sos/report/plugins/vmware.py b/sos/report/plugins/vmware.py index <HASH>..<HASH> 100644 --- a/sos/report/plugins/vmware.py +++ b/sos/report/plugins/vmware.py @@ -37,7 +37,8 @@ class VMWare(Plugin, RedHatPlugin): self.add_cmd_output([ "vmware-checkvm", "vmware-toolbox-cmd ...
[vmware] collect vmware timesync status It displays information whether VMware time sync is enabled, which affects how ntpd/chronyd works. Resolves: #<I>
py
diff --git a/discord/emoji.py b/discord/emoji.py index <HASH>..<HASH> 100644 --- a/discord/emoji.py +++ b/discord/emoji.py @@ -81,6 +81,9 @@ class PartialEmoji(namedtuple('PartialEmoji', 'animated name id')): if isinstance(other, (PartialEmoji, Emoji)): return self.id == other.id + def __hash...
Add back PartialEmoji.__hash__ that was deleted due to __eq__.
py
diff --git a/ocrd/ocrd/cli/workspace.py b/ocrd/ocrd/cli/workspace.py index <HASH>..<HASH> 100644 --- a/ocrd/ocrd/cli/workspace.py +++ b/ocrd/ocrd/cli/workspace.py @@ -54,6 +54,8 @@ def workspace_cli(ctx, directory, mets_basename, backup): def validate_workspace(ctx, mets_url, download, skip, page_textequiv_consistency...
hotfix: default was wrong for ocrd workspace validate
py
diff --git a/zsl/task/task_decorator.py b/zsl/task/task_decorator.py index <HASH>..<HASH> 100644 --- a/zsl/task/task_decorator.py +++ b/zsl/task/task_decorator.py @@ -6,7 +6,6 @@ """ from __future__ import unicode_literals from builtins import str -from past.builtins import basestring import json @@ -393,11 +39...
FIX removed basestring in favor of (str, bytes) Basestring is in the past, so I test for both instead.
py
diff --git a/dashboard_server/settings.py b/dashboard_server/settings.py index <HASH>..<HASH> 100644 --- a/dashboard_server/settings.py +++ b/dashboard_server/settings.py @@ -30,7 +30,10 @@ Settings module suitable for development # # When this is False a very simple configuration is created that allows # you to run...
Fix settings.py to allow local_settings.py to define CONFIGURED=True Cherry-picked from trunk
py
diff --git a/pyzotero/zotero.py b/pyzotero/zotero.py index <HASH>..<HASH> 100644 --- a/pyzotero/zotero.py +++ b/pyzotero/zotero.py @@ -121,6 +121,8 @@ class Zotero(object): """ Set request parameters. Will always add the user ID if it hasn't been specifically set by an API call """ + ...
Don't blow away url_params until just before they're superseded
py
diff --git a/testing/test_custom_op.py b/testing/test_custom_op.py index <HASH>..<HASH> 100644 --- a/testing/test_custom_op.py +++ b/testing/test_custom_op.py @@ -24,6 +24,9 @@ class TestVecToTri(unittest.TestCase): def setUp(self): self.sess = tf.InteractiveSession() + def tearDown(self): + s...
tearing down interactive session when finished in testing (#<I>)
py
diff --git a/dfply/transform.py b/dfply/transform.py index <HASH>..<HASH> 100644 --- a/dfply/transform.py +++ b/dfply/transform.py @@ -10,7 +10,6 @@ def mutate(df, **kwargs): @dfpipe def transmute(df, *keep_columns, **kwargs): - print keep_columns, kwargs.keys() for key, value in kwargs.items(): df...
removed print statement that shouldnt be there
py
diff --git a/www/tests/test_list.py b/www/tests/test_list.py index <HASH>..<HASH> 100644 --- a/www/tests/test_list.py +++ b/www/tests/test_list.py @@ -53,7 +53,6 @@ class List(list): return "TEST" lst = List() assert lst.__getitem__(100) == "TEST" -<<<<<<< HEAD assert lst[100] == "TEST" x = ['a','r','bg'...
Remove merge conflict lines in test_list.py
py
diff --git a/tests/calculators/hazard/event_based/core_next_test.py b/tests/calculators/hazard/event_based/core_next_test.py index <HASH>..<HASH> 100644 --- a/tests/calculators/hazard/event_based/core_next_test.py +++ b/tests/calculators/hazard/event_based/core_next_test.py @@ -187,7 +187,7 @@ class EventBasedHazardCal...
tests/calcs/hazard/event_based/core_next_test: Stabilized a test (it was intermittently failing due to ordering of db query results). Former-commit-id: <I>c7e0ae<I>d<I>da6ea<I>e8cc<I>d2fa6c3
py
diff --git a/tests/conftest.py b/tests/conftest.py index <HASH>..<HASH> 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -50,8 +50,8 @@ def tmp_commitizen_project_with_gpg(tmp_commitizen_project): if _m: _key_id = _m.group(1) - cmd.run("git config --global commit.gpgsign true") - ...
fix: avoid that pytest overrides existing gpg config
py
diff --git a/faradayio_cli/faradayio_cli.py b/faradayio_cli/faradayio_cli.py index <HASH>..<HASH> 100644 --- a/faradayio_cli/faradayio_cli.py +++ b/faradayio_cli/faradayio_cli.py @@ -1,6 +1,6 @@ """faradayio-cli.faradayio-cli: provides entry point main().""" -__version__ = "0.0.2" +__version__ = "0.0.3" import ar...
Updated to <I> for #<I> updates
py
diff --git a/insane.py b/insane.py index <HASH>..<HASH> 100755 --- a/insane.py +++ b/insane.py @@ -1851,7 +1851,7 @@ def main(argv=None): print >>oStream, "\n".join([i[0]+"%8.3f%8.3f%8.3f"%i[1] for i in sol]) # Print the box - print >>oStream, "%10.5f%10.5f%10.5f%10.5f%10.5f%10.5f%10.5f%1...
Remove new line at the end of GRO files Fixes #6
py
diff --git a/tests/test_run.py b/tests/test_run.py index <HASH>..<HASH> 100644 --- a/tests/test_run.py +++ b/tests/test_run.py @@ -228,3 +228,11 @@ def test_process_sonify(): @image_comparison(baseline_images=['run_bounds'], extensions=['png']) def test_process_plot(): est_times, est_labels = msaf.run.process(lo...
Testing full dataset Former-commit-id: d6a<I>a1a1ffdc<I>af<I>ebf0c<I>a<I>da<I> Former-commit-id: <I>cac<I>ff0c<I>f<I>e1df<I>fa<I>
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -16,7 +16,7 @@ setup(name='morpfw', author='Izhar Firdaus', author_email='izhar@kagesenshi.org', url='http://github.com/morpframework/morpfw', - license='MIT', + license='Apache-2.0', pack...
relicense to Apache-<I>
py
diff --git a/persephone/datasets/na.py b/persephone/datasets/na.py index <HASH>..<HASH> 100644 --- a/persephone/datasets/na.py +++ b/persephone/datasets/na.py @@ -532,7 +532,7 @@ class Corpus(corpus.Corpus): prepare_untran(feat_type=feat_type, tgt_dir=tgt_dir, untran_dir=untran_...
Disabled pylint complaint about too many function args.
py
diff --git a/gems/__init__.py b/gems/__init__.py index <HASH>..<HASH> 100644 --- a/gems/__init__.py +++ b/gems/__init__.py @@ -2,7 +2,7 @@ __author__ = 'Blake Printy' __email__ = 'bprinty@gmail.com' -__version__ = '0.2.6' +__version__ = '0.2.7' from .datatypes import composite
incremented patch version for minor feature addition
py
diff --git a/pandas/tests/arithmetic/test_numeric.py b/pandas/tests/arithmetic/test_numeric.py index <HASH>..<HASH> 100644 --- a/pandas/tests/arithmetic/test_numeric.py +++ b/pandas/tests/arithmetic/test_numeric.py @@ -1429,3 +1429,16 @@ def test_sub_multiindex_swapped_levels(): result = df - df2 expected = p...
TST: Adding test to test_numeric, #<I> (#<I>)
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -1,11 +1,12 @@ from __future__ import print_function -from setuptools import setup +from setuptools import setup, find_packages deps = ["protobuf", "pycrypto", "python-axolotl-curve25519"] setup( name='python-axolo...
Fixed setup.py package and deps
py
diff --git a/cauldron/test/test_snapshot.py b/cauldron/test/test_snapshot.py index <HASH>..<HASH> 100644 --- a/cauldron/test/test_snapshot.py +++ b/cauldron/test/test_snapshot.py @@ -42,7 +42,9 @@ class TestSnapshot(scaffolds.ResultsTest): """ """ - support.create_project(self, 'gerald') + ...
Unit Testing Expand snapshot testing to make sure project was properly created before adding snapshot.
py
diff --git a/avi_vantage/tests/conftest.py b/avi_vantage/tests/conftest.py index <HASH>..<HASH> 100644 --- a/avi_vantage/tests/conftest.py +++ b/avi_vantage/tests/conftest.py @@ -15,7 +15,7 @@ HERE = get_here() @pytest.fixture(scope='session') -def dd_environment(unit_instance): +def dd_environment(integration_ins...
Fix E2E environment to start with the proper instance (#<I>)
py
diff --git a/tests/test_sftp.py b/tests/test_sftp.py index <HASH>..<HASH> 100755 --- a/tests/test_sftp.py +++ b/tests/test_sftp.py @@ -192,6 +192,10 @@ class SFTPTest (unittest.TestCase): """ verify that an opened file can be used as a context manager """ + major, minor, micro, release...
Verify Python version >= <I> before running context manager test
py
diff --git a/fabfile.py b/fabfile.py index <HASH>..<HASH> 100644 --- a/fabfile.py +++ b/fabfile.py @@ -238,7 +238,7 @@ def collect_remote_statics(): remote_static_dir = '{project_dir}/{project_name}/remote_static'.format(**env) run_as_umap('mkdir -p {0}'.format(remote_static_dir)) remote_repositories = {...
Update to Leaflet <I>
py
diff --git a/flask_nav/renderers.py b/flask_nav/renderers.py index <HASH>..<HASH> 100644 --- a/flask_nav/renderers.py +++ b/flask_nav/renderers.py @@ -37,7 +37,7 @@ class SimpleRenderer(BaseRenderer): **kwargs) def visit_Subgroup(self, node): - group = tags.ul() + group = tag...
More differentiation in SimpleRenderer output.
py
diff --git a/plaso/multi_processing/psort.py b/plaso/multi_processing/psort.py index <HASH>..<HASH> 100644 --- a/plaso/multi_processing/psort.py +++ b/plaso/multi_processing/psort.py @@ -135,7 +135,11 @@ class PsortEventHeap(object): EventObject: event. """ try: - return heapq.heappop(self._heap...
Improved compatibility of CLI tests with Python 3 #<I> (#<I>)
py
diff --git a/skflow/preprocessing/text.py b/skflow/preprocessing/text.py index <HASH>..<HASH> 100644 --- a/skflow/preprocessing/text.py +++ b/skflow/preprocessing/text.py @@ -67,7 +67,8 @@ class ByteProcessor(object): for document in X: if isinstance(document, six.text_type): docu...
Adding memoryview to ByteProcessor to not copy additional memory when map to bytes
py
diff --git a/js2py/base.py b/js2py/base.py index <HASH>..<HASH> 100644 --- a/js2py/base.py +++ b/js2py/base.py @@ -126,7 +126,7 @@ def HJs(val): except Exception as e: message = 'your Python function failed! ' try: - message += e.message + ...
fix error msg from python function beacuase python3+ does not support e.message , just supports str(e) and also python2+ too
py
diff --git a/openquake/risklib/asset.py b/openquake/risklib/asset.py index <HASH>..<HASH> 100644 --- a/openquake/risklib/asset.py +++ b/openquake/risklib/asset.py @@ -305,6 +305,9 @@ class TagCollection(object): # fill missing tagvalues with "?", raise an error for unknown tagnames idxs = [] ...
Fixed a small bug with multi-exposure [skip CI] Former-commit-id: b8d<I>ab<I>ea<I>d8a<I>bea<I>b3
py
diff --git a/cgutils/cgroup.py b/cgutils/cgroup.py index <HASH>..<HASH> 100644 --- a/cgutils/cgroup.py +++ b/cgutils/cgroup.py @@ -131,7 +131,7 @@ class SubsystemStatus(dict): 103 234 """ -class SimpleList(dict): +class SimpleList(list): @staticmethod def parse(path): ret = []
Fix. SimpleList should be a subclass of list
py