diff
stringlengths
139
3.65k
message
stringlengths
8
627
diff_languages
stringclasses
1 value
diff --git a/atomic_reactor/tasks/binary_container_build.py b/atomic_reactor/tasks/binary_container_build.py index <HASH>..<HASH> 100644 --- a/atomic_reactor/tasks/binary_container_build.py +++ b/atomic_reactor/tasks/binary_container_build.py @@ -5,6 +5,7 @@ All rights reserved. This software may be modified and distr...
Switch from try/finally to contextlib.ExitStack CLOUDBLD-<I> There will be more cleanup to do after the remote host integration is added. This is more convenient. And it's way cooler :)
py
diff --git a/openfisca_web_api/controllers/fields.py b/openfisca_web_api/controllers/fields.py index <HASH>..<HASH> 100644 --- a/openfisca_web_api/controllers/fields.py +++ b/openfisca_web_api/controllers/fields.py @@ -190,6 +190,7 @@ def api1_fields(req): (name, column.to_json()) for ...
Fix prestations condition in fields endpoint
py
diff --git a/grammpy/Rule.py b/grammpy/Rule.py index <HASH>..<HASH> 100644 --- a/grammpy/Rule.py +++ b/grammpy/Rule.py @@ -11,19 +11,12 @@ from .exceptions import CantCreateSingleRuleException, RuleNotDefinedException, class CP(object): - def __init__(self, getter, setter=None): + def __init__(self, getter)...
Remove from ClassProperty unnecessary methods and variables
py
diff --git a/tabletext.py b/tabletext.py index <HASH>..<HASH> 100644 --- a/tabletext.py +++ b/tabletext.py @@ -112,10 +112,14 @@ def main(): class MyFormatter(ArgumentDefaultsHelpFormatter, RawDescriptionHelpFormatter): pass + parser = ArgumentParser(formatter_class=MyFormatter...
Add epilog for the command line utility
py
diff --git a/spacy/language.py b/spacy/language.py index <HASH>..<HASH> 100644 --- a/spacy/language.py +++ b/spacy/language.py @@ -88,7 +88,7 @@ class Language(object): return orth.like_url(string) @staticmethod - def like_number(string): + def like_num(string): return orth.like_number(st...
* Rename like_number to like_num, to fix inconsistency re Issue #<I>
py
diff --git a/docs/conf.py b/docs/conf.py index <HASH>..<HASH> 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -7,16 +7,16 @@ extensions = [] templates_path = ['_templates'] source_suffix = '.rst' master_doc = 'index' -project = u'django-pwned-passwords' +project = u'pwned-passwords-django' copyright = u'2018, James...
And correct the name of the package in docs config.
py
diff --git a/chisel/doc.py b/chisel/doc.py index <HASH>..<HASH> 100644 --- a/chisel/doc.py +++ b/chisel/doc.py @@ -207,7 +207,7 @@ def _request_html(environ, request, nonav=False): Element('div', _class='chsl-notes', children=[ # Request URLs - Element('div', _class='chsl-...
don't show URL note if there are no URLs
py
diff --git a/openquake/hazardlib/tests/nrml_to_test.py b/openquake/hazardlib/tests/nrml_to_test.py index <HASH>..<HASH> 100644 --- a/openquake/hazardlib/tests/nrml_to_test.py +++ b/openquake/hazardlib/tests/nrml_to_test.py @@ -33,7 +33,10 @@ class TestCase(unittest.TestCase): gmodel = CD / 'data/sections/secti...
Skipping the test requiring fiona if not installed
py
diff --git a/test/regression/issue_4383.py b/test/regression/issue_4383.py index <HASH>..<HASH> 100755 --- a/test/regression/issue_4383.py +++ b/test/regression/issue_4383.py @@ -55,10 +55,18 @@ with driver.Cluster(initial_servers=['source1', 'source2', 'target'], output_fol }).run(conn) utils.print...
makign regression/issue_<I> less timing dependent
py
diff --git a/plenum/test/helper.py b/plenum/test/helper.py index <HASH>..<HASH> 100644 --- a/plenum/test/helper.py +++ b/plenum/test/helper.py @@ -409,14 +409,16 @@ class TestNode(TestNodeCore, Node): class TestRequestIdStore(RequestIdStore): def __init__(self): - self._currentId = 0 + self.ids = ...
make TestRequestIdStore support multiple signers
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100755 --- a/setup.py +++ b/setup.py @@ -75,8 +75,8 @@ if __name__ == "__main__": ext_modules = [ext1, ext2, ext3, ext4], install_requires = ['numpy', 'scipy>=0.15.0'], python_requires = '>=2.7, >=3.5', - setup_requ...
Update setup.py webdav is not a dependency of the tests though it is used in the example notebooks
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100755 --- a/setup.py +++ b/setup.py @@ -62,7 +62,7 @@ setup(name="ctypeslib", author="Thomas Heller", author_email="theller@ctypes.org", license="MIT License", - version = "0.5.0", + version = "0.5.1", ## url="http://stars...
Change the version number to the setup script (only to experiment with easy_install). git-svn-id: <URL>
py
diff --git a/dusty/systems/docker/testing_image.py b/dusty/systems/docker/testing_image.py index <HASH>..<HASH> 100644 --- a/dusty/systems/docker/testing_image.py +++ b/dusty/systems/docker/testing_image.py @@ -105,8 +105,14 @@ def test_image_exists(app_or_lib_name): image_name = test_image_name(app_or_lib_name) ...
Account for RepoTags is None in images return
py
diff --git a/cnxpublishing/subscribers.py b/cnxpublishing/subscribers.py index <HASH>..<HASH> 100644 --- a/cnxpublishing/subscribers.py +++ b/cnxpublishing/subscribers.py @@ -63,6 +63,9 @@ def _get_recipes(module_ident, cursor): LEFT JOIN module_files mf ...
add fallback to fixed name for recipe
py
diff --git a/requests_jwt.py b/requests_jwt.py index <HASH>..<HASH> 100644 --- a/requests_jwt.py +++ b/requests_jwt.py @@ -162,6 +162,8 @@ class JWTAuth(AuthBase): payload = self._generate(request) #import pdb; pdb.set_trace() token = jwt.encode(payload, self.secret, self.alg) - - ...
handle bytes vs str for the token returned by jwt.encode()
py
diff --git a/airflow/cli/commands/webserver_command.py b/airflow/cli/commands/webserver_command.py index <HASH>..<HASH> 100644 --- a/airflow/cli/commands/webserver_command.py +++ b/airflow/cli/commands/webserver_command.py @@ -401,7 +401,7 @@ def webserver(args): gunicorn_master_proc=gunicorn_master_pr...
Change worker_refresh_interval fallback to default of <I> (#<I>) The default value for worker_refresh_interval is <I>, so we should align the fallback to <I> too
py
diff --git a/satpy/writers/__init__.py b/satpy/writers/__init__.py index <HASH>..<HASH> 100644 --- a/satpy/writers/__init__.py +++ b/satpy/writers/__init__.py @@ -396,14 +396,9 @@ def compute_writer_results(results): if isinstance(res, tuple): # source, target to be passed to da.store ...
Simplify source and target collection using zip()
py
diff --git a/test/test_persistence.py b/test/test_persistence.py index <HASH>..<HASH> 100644 --- a/test/test_persistence.py +++ b/test/test_persistence.py @@ -19,6 +19,10 @@ class DatabaseTestCase(unittest.TestCase): for row in TEST_DATA: self.tbl.insert(row) + def tearDown(self): + fo...
Drop all tables of db after each test
py
diff --git a/ccmlib/node.py b/ccmlib/node.py index <HASH>..<HASH> 100644 --- a/ccmlib/node.py +++ b/ccmlib/node.py @@ -535,7 +535,10 @@ class Node(): cli = common.join_bin(cdir, 'bin', 'cqlsh') env = common.make_cassandra_env(cdir, self.get_path()) host = self.network_interfaces['thrift'][0] ...
Makes cqlsh use native protocol port on <I>+
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -2,8 +2,18 @@ from setuptools import setup, find_packages readme = open('README.rst').read() -reqs = [line.strip() for line in open('requirements.txt').readlines()] -requirements = list(filter(None, reqs)) +# reqs = [line...
Temporary: requirements as list instead of read from file
py
diff --git a/zinnia/management/commands/wp2zinnia.py b/zinnia/management/commands/wp2zinnia.py index <HASH>..<HASH> 100644 --- a/zinnia/management/commands/wp2zinnia.py +++ b/zinnia/management/commands/wp2zinnia.py @@ -216,7 +216,7 @@ class Command(LabelCommand): # Prefer use this function than ...
special case for unicode slug
py
diff --git a/openpnm/algorithms/GenericTransport.py b/openpnm/algorithms/GenericTransport.py index <HASH>..<HASH> 100644 --- a/openpnm/algorithms/GenericTransport.py +++ b/openpnm/algorithms/GenericTransport.py @@ -153,7 +153,7 @@ class GenericTransport(GenericAlgorithm): self.settings['quantity'] = quanti...
Fixed a typo (I guess): kwargs to **kwargs
py
diff --git a/chatterbot/ext/django_chatterbot/models.py b/chatterbot/ext/django_chatterbot/models.py index <HASH>..<HASH> 100644 --- a/chatterbot/ext/django_chatterbot/models.py +++ b/chatterbot/ext/django_chatterbot/models.py @@ -8,6 +8,7 @@ class Statement(models.Model): unique=True, blank=False, ...
existing blank statements still display empty but responses show <empty>
py
diff --git a/python_modules/dagstermill/dagstermill/__init__.py b/python_modules/dagstermill/dagstermill/__init__.py index <HASH>..<HASH> 100644 --- a/python_modules/dagstermill/dagstermill/__init__.py +++ b/python_modules/dagstermill/dagstermill/__init__.py @@ -232,7 +232,7 @@ def _dm_solid_transform(name, notebook_pa...
add run_id to dagstermill output notebook path
py
diff --git a/src/vmshepherd/http/rpc_api.py b/src/vmshepherd/http/rpc_api.py index <HASH>..<HASH> 100644 --- a/src/vmshepherd/http/rpc_api.py +++ b/src/vmshepherd/http/rpc_api.py @@ -118,7 +118,12 @@ class RpcApi(handler.JSONRPCView): if vm_id == vm.id: return {'vm_ip': vm.ip[0]} ...
Exception handling during get_vm iaas request
py
diff --git a/test/cli_test.py b/test/cli_test.py index <HASH>..<HASH> 100644 --- a/test/cli_test.py +++ b/test/cli_test.py @@ -15,6 +15,7 @@ from collections import namedtuple from contextlib import redirect_stdout import io +from os import environ from os.path import join from shutil import rmtree import sys @@ ...
set EDITOR, set dbuser dynamically
py
diff --git a/emirdrp/recipes/spec/subs.py b/emirdrp/recipes/spec/subs.py index <HASH>..<HASH> 100644 --- a/emirdrp/recipes/spec/subs.py +++ b/emirdrp/recipes/spec/subs.py @@ -61,8 +61,21 @@ class BaseABBARecipe(EmirRecipe): subres = dal.getRecipeResult(subresId) stareImages.append(subres['elem...
Update build_recipe_input in BaseABBARecipe
py
diff --git a/cassandra/cqltypes.py b/cassandra/cqltypes.py index <HASH>..<HASH> 100644 --- a/cassandra/cqltypes.py +++ b/cassandra/cqltypes.py @@ -556,7 +556,8 @@ class DateType(_CassandraType): tval = time.strptime(date, tformat) except ValueError: continue - r...
Scale interpreted timestamp for DateType
py
diff --git a/doc/conf.py b/doc/conf.py index <HASH>..<HASH> 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -240,9 +240,9 @@ on_saltstack = 'SALT_ON_SALTSTACK' in os.environ project = 'Salt' version = salt.version.__version__ -latest_release = '2016.11.6' # latest release -previous_release = '2016.3.6' # latest rel...
[<I>] Update version numbers in doc config for <I> release
py
diff --git a/mdf_toolbox/toolbox.py b/mdf_toolbox/toolbox.py index <HASH>..<HASH> 100644 --- a/mdf_toolbox/toolbox.py +++ b/mdf_toolbox/toolbox.py @@ -521,7 +521,7 @@ def globus_check_directory(transfer_client, endpoint, path, allow_missing=False) try: transfer_client.operation_ls(endpoint, path=path) ...
Remove unneccessary 'exc' in use of Globus exceptions
py
diff --git a/pydgraph/client.py b/pydgraph/client.py index <HASH>..<HASH> 100755 --- a/pydgraph/client.py +++ b/pydgraph/client.py @@ -91,7 +91,7 @@ class DgraphClient(object): return txn.Txn(self, read_only=read_only, best_effort=best_effort) def any_client(self): - """Returns a random client.""...
Clarify documenation of any_client. (#<I>)
py
diff --git a/stagpy/__main__.py b/stagpy/__main__.py index <HASH>..<HASH> 100644 --- a/stagpy/__main__.py +++ b/stagpy/__main__.py @@ -9,4 +9,5 @@ def main(): args = config.parse_args() args.func(args) -main() +if __name__ == '__main__': + main()
Add __name__ == '__main__' guard in __main__
py
diff --git a/abilian/web/forms/fields.py b/abilian/web/forms/fields.py index <HASH>..<HASH> 100644 --- a/abilian/web/forms/fields.py +++ b/abilian/web/forms/fields.py @@ -522,7 +522,7 @@ class QuerySelect2Field(SelectFieldBase): raise Exception( 'The sqlalchemy identity_key functio...
fix: workaround API change in SQLAlchemy <I>.
py
diff --git a/simplekv/__init__.py b/simplekv/__init__.py index <HASH>..<HASH> 100644 --- a/simplekv/__init__.py +++ b/simplekv/__init__.py @@ -33,6 +33,7 @@ class KeyValueStore(object): :param key: The key whose existence should be verified. :raises ValueError: If the key is not valid. + :rai...
More IOErrors part of spec.
py
diff --git a/holoviews/core/tree.py b/holoviews/core/tree.py index <HASH>..<HASH> 100644 --- a/holoviews/core/tree.py +++ b/holoviews/core/tree.py @@ -3,6 +3,7 @@ try: except: from collections import OrderedDict +from .pprint import PrettyPrinter from .util import valid_identifier @@ -249,3 +250,7 @@ class...
Added PrettyPrinter repr to AttrTree
py
diff --git a/test.py b/test.py index <HASH>..<HASH> 100644 --- a/test.py +++ b/test.py @@ -2014,7 +2014,7 @@ sys.stdout.write("line1") try: sh.sleep(sleep_for, _timeout=timeout).wait() except sh.TimeoutException as e: - self.assertEqual(e.full_cmd, '/bin/sleep 3') + ...
Remove hardcoded path for sleep executable test.py: In test_timeout the path for the sleep executable has been hardcoded to be /bin/sleep. However, on operating systems such as Arch Linux, Fedora or Solaris the executable resides in /usr/bin/sleep due to a /usr merge (e.g. see <URL> operating system (given that `sle...
py
diff --git a/heartbeat/heartbeat.py b/heartbeat/heartbeat.py index <HASH>..<HASH> 100644 --- a/heartbeat/heartbeat.py +++ b/heartbeat/heartbeat.py @@ -55,9 +55,8 @@ class Heartbeat(object): # Challenges is a list of 2-tuples (seed, hash_response) self.challenges = [] - def gen_challenges(self, nu...
Rename method to generate_challenges and fix docstring
py
diff --git a/dimod/reference/samplers/exact_solver.py b/dimod/reference/samplers/exact_solver.py index <HASH>..<HASH> 100644 --- a/dimod/reference/samplers/exact_solver.py +++ b/dimod/reference/samplers/exact_solver.py @@ -96,7 +96,7 @@ class ExactSolver(Sampler): return response -class ExactPolySolver(Exa...
removed ExactSolver class inheritence from ExactPolySolver()
py
diff --git a/neovim/plugin/host.py b/neovim/plugin/host.py index <HASH>..<HASH> 100644 --- a/neovim/plugin/host.py +++ b/neovim/plugin/host.py @@ -13,7 +13,8 @@ from ..compat import IS_PYTHON3, find_module __all__ = ('Host') logger = logging.getLogger(__name__) -debug, info, warn = (logger.debug, logger.info, logge...
Show more information about problems in plugins. Show a useful error message when loading a plugin fails.
py
diff --git a/google/auth/transport/urllib3.py b/google/auth/transport/urllib3.py index <HASH>..<HASH> 100644 --- a/google/auth/transport/urllib3.py +++ b/google/auth/transport/urllib3.py @@ -178,16 +178,22 @@ class AuthorizedHttp(urllib3.request.RequestMethods): if http is None: http = _make_defau...
Fix lint issues caught by new pylint (#<I>)
py
diff --git a/testing/test_pdb.py b/testing/test_pdb.py index <HASH>..<HASH> 100644 --- a/testing/test_pdb.py +++ b/testing/test_pdb.py @@ -63,9 +63,27 @@ def runpdb(func, input): oldstdin = sys.stdin oldstdout = sys.stdout + if sys.version_info < (3, ): + text_type = unicode + else: + te...
test_pdb.py: Introduce MyBytesIO class Its `write` method can take bytes or Unicode data. This solves the following exception in Python 3: TypeError: 'str' does not support the buffer interface
py
diff --git a/patroni/postgresql/__init__.py b/patroni/postgresql/__init__.py index <HASH>..<HASH> 100644 --- a/patroni/postgresql/__init__.py +++ b/patroni/postgresql/__init__.py @@ -1107,11 +1107,12 @@ class Postgresql(object): " ORDER BY sync_state DESC, {0}_{1} DESC".format(sort_col, self.lsn_name, ...
Prefer members without nofailover when picking sync nodes (#<I>) Previously sync nodes were selected only based on replication lag and hence the node with `nofailover` tag had the same chances to become synchronous as any other node. That behavior was confusing and dangerous at the same time, because in case of failed...
py
diff --git a/tests/supervisor_test.py b/tests/supervisor_test.py index <HASH>..<HASH> 100644 --- a/tests/supervisor_test.py +++ b/tests/supervisor_test.py @@ -16,7 +16,6 @@ # along with OpenQuake. If not, see <http://www.gnu.org/licenses/>. import logging -import mock import unittest from datetime import datet...
tests/supervisor_test: pep8/pyflakes
py
diff --git a/colab/accounts/middleware.py b/colab/accounts/middleware.py index <HASH>..<HASH> 100644 --- a/colab/accounts/middleware.py +++ b/colab/accounts/middleware.py @@ -22,8 +22,8 @@ class RemoteUserMiddleware(object): remote_user_data = {} - remote_user_data['EMAIL'] = user.email - rem...
Changed json keys to lower case
py
diff --git a/src/rinoh/attribute.py b/src/rinoh/attribute.py index <HASH>..<HASH> 100644 --- a/src/rinoh/attribute.py +++ b/src/rinoh/attribute.py @@ -10,11 +10,11 @@ import re from collections import OrderedDict from configparser import ConfigParser -from types import FunctionType from .util import (NamedDescri...
Function is no longer being used, so remove it
py
diff --git a/pelix/framework.py b/pelix/framework.py index <HASH>..<HASH> 100644 --- a/pelix/framework.py +++ b/pelix/framework.py @@ -1065,11 +1065,10 @@ class Framework(Bundle): # Notify listeners that the bundle is stopping self._dispatcher.fire_framework_stopping() - i = self.__next_bundl...
framework.stop() doesn't try to stop "next bid" bundle Bundle stopping loop starts at "next bundle ID" minus 1
py
diff --git a/scapy/asn1fields.py b/scapy/asn1fields.py index <HASH>..<HASH> 100644 --- a/scapy/asn1fields.py +++ b/scapy/asn1fields.py @@ -200,13 +200,14 @@ class ASN1F_field(ASN1F_element, Generic[_I, _A]): def do_copy(self, x): # type: (Any) -> Any - if hasattr(x, "copy"): - return x...
Fix do_copy() of class ASN1F_field (#<I>) * Fix do_copy() of class ASN1F_field * fix mypy
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -6,7 +6,7 @@ required = [ setup( name='buildapi_client', - version='0.6.1', + version='0.6.2.dev0', packages=find_packages(), install_requires=required + ['pytest-runner'],
Back to development: <I>
py
diff --git a/src/python/dxpy/utils/exec_utils.py b/src/python/dxpy/utils/exec_utils.py index <HASH>..<HASH> 100644 --- a/src/python/dxpy/utils/exec_utils.py +++ b/src/python/dxpy/utils/exec_utils.py @@ -219,7 +219,7 @@ def entry_point(entry_point_name): ENTRY_POINT_TABLE[entry_point_name] = f @wraps(f...
Return result of execution in entry point decorator
py
diff --git a/testing/test_python.py b/testing/test_python.py index <HASH>..<HASH> 100644 --- a/testing/test_python.py +++ b/testing/test_python.py @@ -1668,12 +1668,16 @@ class TestFuncargFactory: def test_factory_uses_unknown_funcarg_error(self, testdir): testdir.makepyfile(""" import pytest...
correctly have the test for issue #[C<I> actually fail
py
diff --git a/gwpy/tests/astro.py b/gwpy/tests/astro.py index <HASH>..<HASH> 100644 --- a/gwpy/tests/astro.py +++ b/gwpy/tests/astro.py @@ -34,7 +34,7 @@ __version__ = version.version class AstroTests(unittest.TestCase): - """`TestCase` for the timeseries module + """`TestCase` for the astro module """ ...
gwpy.tests: minor doc change
py
diff --git a/src/werkzeug/serving.py b/src/werkzeug/serving.py index <HASH>..<HASH> 100644 --- a/src/werkzeug/serving.py +++ b/src/werkzeug/serving.py @@ -297,7 +297,6 @@ class WSGIRequestHandler(BaseHTTPRequestHandler, object): finally: if hasattr(application_iter, "close"): ...
rm superfluous `<local_var> = None` last line ...of (nested) function. This statement has no effect.
py
diff --git a/jaraco/mongodb/oplog.py b/jaraco/mongodb/oplog.py index <HASH>..<HASH> 100644 --- a/jaraco/mongodb/oplog.py +++ b/jaraco/mongodb/oplog.py @@ -221,7 +221,7 @@ class Oplog(object): """ Query the oplog for items since ts and then return """ - spec = {'ts': {'$gt': ts}} + ...
Fix intermittent test failures where two transactions would occur in the same second and so the second one would be excluded from the restart.
py
diff --git a/carrot/messaging.py b/carrot/messaging.py index <HASH>..<HASH> 100644 --- a/carrot/messaging.py +++ b/carrot/messaging.py @@ -389,7 +389,7 @@ class Consumer(object): message.ack() discarded_count += 1 - def iterconsume(self, limit=None, no_ack=None): + def itercons...
Modifications to ConsumerSet to make iterconsume work
py
diff --git a/wafer/talks/renderers.py b/wafer/talks/renderers.py index <HASH>..<HASH> 100644 --- a/wafer/talks/renderers.py +++ b/wafer/talks/renderers.py @@ -19,6 +19,7 @@ class TalksRenderer(StaticSiteRenderer): for page in paginator.page_range: paths.append(reverse('wafer_users_talks_page', ...
Speakers page is missing from the static site, so add it
py
diff --git a/jawa/core/attribs/code.py b/jawa/core/attribs/code.py index <HASH>..<HASH> 100644 --- a/jawa/core/attribs/code.py +++ b/jawa/core/attribs/code.py @@ -118,6 +118,14 @@ class CodeAttribute(Attribute): """ return self._ex_table + @property + def attributes(self): + """ + ...
Added missing .attributes on CodeAttribute.
py
diff --git a/zarr/storage.py b/zarr/storage.py index <HASH>..<HASH> 100644 --- a/zarr/storage.py +++ b/zarr/storage.py @@ -1442,6 +1442,10 @@ class ZipStore(MutableMapping): Alternatively, use a :class:`DirectoryStore` when writing the data, then manually Zip the directory and use the Zip file for subsequen...
docs: Clarify how to manually convert a DirectoryStore to a ZipStore (#<I>) Fixes #<I>
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 @@ -86,13 +86,13 @@ class NdIndexableMapping(Dimensioned): Sorts data by key or index in pre-defined index in Dimension values. ...
Minor optimization to _resort on NdMapping It is probably best to avoid supplying a custom sorting function that implements the default sorting behaviour.
py
diff --git a/ospd/vts.py b/ospd/vts.py index <HASH>..<HASH> 100644 --- a/ospd/vts.py +++ b/ospd/vts.py @@ -192,8 +192,8 @@ class Vts: return m = sha256() - - for vt_id, vt in sorted(self._vts.items()): + temp_vts = self.vts.copy() + for vt_id, vt in sorted(temp_vts.items()):...
Copy the vts for calculation If the original vts collection is sorted for the calculation, the vts collection is copied into the main process.
py
diff --git a/gwpy/tests/test_table.py b/gwpy/tests/test_table.py index <HASH>..<HASH> 100644 --- a/gwpy/tests/test_table.py +++ b/gwpy/tests/test_table.py @@ -520,7 +520,7 @@ class TestEventTable(TestTable): @utils.skip_minimum_version('astropy', '2.0.4') -class TestGravitySpyTable(TestTable): +class TestGravitySp...
Test now inheriting from TestEventTable instead of TestTable
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -13,7 +13,7 @@ if sys.version_info <= (3,6): setup( name="moneywagon", - version='1.16.2', + version='1.16.3', description='Next Generation Cryptocurrency Platform', long_description=open('README.md').r...
'Made release <I>
py
diff --git a/vespa/kepler.py b/vespa/kepler.py index <HASH>..<HASH> 100644 --- a/vespa/kepler.py +++ b/vespa/kepler.py @@ -79,7 +79,7 @@ def kepler_starfield_file(koi): chips,ras,decs = np.loadtxt(CHIPLOC_FILE,unpack=True) ds = ((c.ra.deg-ras)**2 + (c.dec.deg-decs)**2) chip = chips[np.argmin(ds)] - re...
added h5 filename to kepler_starfield_file
py
diff --git a/src/Exscript/FunctionRunner.py b/src/Exscript/FunctionRunner.py index <HASH>..<HASH> 100644 --- a/src/Exscript/FunctionRunner.py +++ b/src/Exscript/FunctionRunner.py @@ -185,7 +185,7 @@ class FunctionRunner(Job): new_sequence.retry = sequence.retry - 1 retry = self.retry_logi...
Fix: Logfile handling in case of an error.
py
diff --git a/salt/modules/rh_ip.py b/salt/modules/rh_ip.py index <HASH>..<HASH> 100644 --- a/salt/modules/rh_ip.py +++ b/salt/modules/rh_ip.py @@ -876,9 +876,12 @@ def _read_file(path): Reads and returns the contents of a file ''' try: - with salt.utils.fopen(path, 'rb') as contents: + with...
Decode bytes to strings under Py3
py
diff --git a/flask_gears.py b/flask_gears.py index <HASH>..<HASH> 100644 --- a/flask_gears.py +++ b/flask_gears.py @@ -60,7 +60,7 @@ class Gears(object): return FileSystemFinder(directories=(self.get_assets_folder(app),)) def get_static_folder(self, app): - return app.static_folder + retur...
Add ability to change compiled assets target
py
diff --git a/jira/client.py b/jira/client.py index <HASH>..<HASH> 100644 --- a/jira/client.py +++ b/jira/client.py @@ -1397,16 +1397,16 @@ class JIRA(object): r = self._session.post( url, data=json.dumps(data)) - @translate_resource_args - def delete_issue_link(self, linkId): - """ - Delete a ...
Correcting tabs vs spaces
py
diff --git a/salt/pillar/mysql.py b/salt/pillar/mysql.py index <HASH>..<HASH> 100644 --- a/salt/pillar/mysql.py +++ b/salt/pillar/mysql.py @@ -408,7 +408,7 @@ class Merger(object): crd[ret[nk]] = [] crd[ret[nk]].append(ret[self.num_fields-1]) else: - ...
Compare against None rather than basing off anything that evaluates true
py
diff --git a/python/thunder/extraction/feature/methods/localmax.py b/python/thunder/extraction/feature/methods/localmax.py index <HASH>..<HASH> 100644 --- a/python/thunder/extraction/feature/methods/localmax.py +++ b/python/thunder/extraction/feature/methods/localmax.py @@ -31,6 +31,8 @@ class LocalMaxAlgorithm(Feature...
Convert row/column to x/y
py
diff --git a/zinnia/plugins/settings.py b/zinnia/plugins/settings.py index <HASH>..<HASH> 100644 --- a/zinnia/plugins/settings.py +++ b/zinnia/plugins/settings.py @@ -1,14 +1,17 @@ """Settings of Zinnia.plugins""" from django.conf import settings -from zinnia.plugins.menu import EntryMenu -from zinnia.plugins.menu ...
adding try except for old version of cms
py
diff --git a/util/plot.py b/util/plot.py index <HASH>..<HASH> 100644 --- a/util/plot.py +++ b/util/plot.py @@ -26,7 +26,7 @@ _DEFAULT_VALUES = {'transparent': True, # *** plot types *** # -def data(data, file, land_value=np.nan, no_data_value=np.inf, land_brightness=0, +def data(file, data, land_value=np.nan, no_d...
API: util.plot.data: file is now first argument
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100755 --- a/setup.py +++ b/setup.py @@ -35,7 +35,7 @@ setup( author_email="him@richardkiss.com", url="https://github.com/richardkiss/pycoin", license="http://opensource.org/licenses/MIT", - description="Utilities for Bitcoin and altcoin addresses ...
fix missing comma that causes setup.py to break
py
diff --git a/setuptools/monkey.py b/setuptools/monkey.py index <HASH>..<HASH> 100644 --- a/setuptools/monkey.py +++ b/setuptools/monkey.py @@ -126,7 +126,8 @@ def patch_for_msvc_specialized_compiler(): Patch functions in distutils to use standalone Microsoft Visual C++ compilers. """ - from . import m...
Use programmatic import and add comment explaining purpose.
py
diff --git a/test/python/tools/monitor/test_job_monitor.py b/test/python/tools/monitor/test_job_monitor.py index <HASH>..<HASH> 100644 --- a/test/python/tools/monitor/test_job_monitor.py +++ b/test/python/tools/monitor/test_job_monitor.py @@ -12,6 +12,7 @@ """Tests for the wrapper functionality.""" +import io imp...
Suppress stdout from TestJobMonitor (#<I>)
py
diff --git a/pandas/io/parsers.py b/pandas/io/parsers.py index <HASH>..<HASH> 100755 --- a/pandas/io/parsers.py +++ b/pandas/io/parsers.py @@ -171,7 +171,7 @@ default False * list of ints or names. e.g. If [1, 2, 3] -> try parsing columns 1, 2, 3 each as a separate date column. * list of lists. e.g. I...
DOC: typo in read_csv doc-string
py
diff --git a/discord/client.py b/discord/client.py index <HASH>..<HASH> 100644 --- a/discord/client.py +++ b/discord/client.py @@ -1684,9 +1684,10 @@ class Client: Leaves a :class:`Server`. - Warning + Note -------- - If you are the owner of the server then it is deleted. + ...
Add Client.delete_server.
py
diff --git a/nodeconductor/server/admin/menu.py b/nodeconductor/server/admin/menu.py index <HASH>..<HASH> 100644 --- a/nodeconductor/server/admin/menu.py +++ b/nodeconductor/server/admin/menu.py @@ -65,6 +65,7 @@ class CustomMenu(Menu): 'nodeconductor_openstack.*', 'nodeconductor_plus.aws.*', ...
Add waldur packages to admin page - WAL-<I>
py
diff --git a/tests/adapter/setup.py b/tests/adapter/setup.py index <HASH>..<HASH> 100644 --- a/tests/adapter/setup.py +++ b/tests/adapter/setup.py @@ -35,7 +35,7 @@ setup( long_description_content_type="text/markdown", author="dbt Labs", author_email="info@dbtlabs.com", - url="https://github.com/dbt-l...
Update "Homepage" link for dbt-tests-adapter on PyPI (#<I>)
py
diff --git a/sllurp/llrp.py b/sllurp/llrp.py index <HASH>..<HASH> 100644 --- a/sllurp/llrp.py +++ b/sllurp/llrp.py @@ -328,15 +328,22 @@ class LLRPClient(LineReceiver): return conf def parseCapabilities(self, capdict): - """Parse a capabilities dictionary and adjust instance settings - - ...
more descriptive docstring for parseCapabilities
py
diff --git a/topydo/lib/Filter.py b/topydo/lib/Filter.py index <HASH>..<HASH> 100644 --- a/topydo/lib/Filter.py +++ b/topydo/lib/Filter.py @@ -168,6 +168,9 @@ class OrdinalTagFilter(Filter): if not operand2: operand2 = date_string_to_date(self.value) + + if not operand1 or not...
Return False when any of the operands is invalid.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -47,7 +47,7 @@ install_requires = [ 'redis==2.10.3', 'requests>=2.6.0', 'sqlparse>=0.1.11', - 'stevedore>=1.4.0,<1.7.0', + 'stevedore>=1.4.0,<1.5.0', 'xhtml2pdf>=0.0.6', ]
Fix stevedore even more
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -3,13 +3,13 @@ from setuptools import setup, find_packages setup( name='pyseleniumjs', description='Small library with javascript utilities for official Python selenium bindings.', - version='1.1.1', + version...
Updated version, package classifiers.
py
diff --git a/docs/conf.py b/docs/conf.py index <HASH>..<HASH> 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -304,5 +304,7 @@ class Mock(MagicMock): def __getattr__(cls, name): return MagicMock() -MOCK_MODULES = ['astropy', 'numpy', 'numexpr', 'python-casacore', 'tensorflow'] +MOCK_MODULES = ['astr...
python-casacore => pyrap in sys import mock
py
diff --git a/webargs/tornadoparser.py b/webargs/tornadoparser.py index <HASH>..<HASH> 100644 --- a/webargs/tornadoparser.py +++ b/webargs/tornadoparser.py @@ -79,7 +79,7 @@ class TornadoParser(core.Parser): """Handles errors during parsing. Raises a `tornado.web.HTTPError` with a 400 error. "...
Use Exception#args instead of Exception#message for compatibility.
py
diff --git a/tests/functional/test_environment_vip.py b/tests/functional/test_environment_vip.py index <HASH>..<HASH> 100644 --- a/tests/functional/test_environment_vip.py +++ b/tests/functional/test_environment_vip.py @@ -263,9 +263,10 @@ class TestApiEnvironmentVip(TestCase): env_vip_id = self.api_environm...
Fixed test "Try to delete environment vip associated to some option vip"
py
diff --git a/sphinx_nbexamples/__init__.py b/sphinx_nbexamples/__init__.py index <HASH>..<HASH> 100644 --- a/sphinx_nbexamples/__init__.py +++ b/sphinx_nbexamples/__init__.py @@ -969,7 +969,7 @@ class Gallery(object): app.add_stylesheet( NotebookProcessor.BOKEH_STYLE_SHEET.format( ...
replace add_javascript with add_js_file
py
diff --git a/tests.py b/tests.py index <HASH>..<HASH> 100644 --- a/tests.py +++ b/tests.py @@ -99,7 +99,7 @@ def test_load_ui_baseinstance(): import sys from Qt import QtWidgets, QtCore, QtCompat app = QtWidgets.QApplication(sys.argv) - win = QtWidgets.QMainWindow() + win = QtWidgets.QWidget() ...
Changed QMainWindow to QWidget because baseinstance doesn't like mixing and matching
py
diff --git a/yandextank/plugins/Influx/decoder.py b/yandextank/plugins/Influx/decoder.py index <HASH>..<HASH> 100644 --- a/yandextank/plugins/Influx/decoder.py +++ b/yandextank/plugins/Influx/decoder.py @@ -47,6 +47,23 @@ class Decoder(object): def decode_aggregate_labeled(self, data, stat, prefix): times...
__OVERALL__ quantiles for labeled plugin work style
py
diff --git a/test_portend.py b/test_portend.py index <HASH>..<HASH> 100644 --- a/test_portend.py +++ b/test_portend.py @@ -11,15 +11,22 @@ def socket_infos(): """ host = '' port = portend.find_available_local_port() - infos = socket.getaddrinfo(host, port, socket.AF_UNSPEC, socket.SOCK_STREAM) - for info in infos...
Refactor fixture to provide meaningful ids
py
diff --git a/alot/buffers.py b/alot/buffers.py index <HASH>..<HASH> 100644 --- a/alot/buffers.py +++ b/alot/buffers.py @@ -376,6 +376,9 @@ class ThreadBuffer(Buffer): self.message_count = self.thread.get_total_messages() def render(self, size, focus=False): + if self.message_count == 0: + ...
fix #<I> This prevents the threadbuffer to look up a nonexistent focussed message if the thread is empty (e.g. after removal of the last msg).
py
diff --git a/openquake/engine/engine.py b/openquake/engine/engine.py index <HASH>..<HASH> 100644 --- a/openquake/engine/engine.py +++ b/openquake/engine/engine.py @@ -355,8 +355,8 @@ def cleanup(kind): parallel.workers_stop() elif kind == 'kill': # called in case of exceptions (including out of m...
Asking the DbServer to kill the workers
py
diff --git a/python/pyspark/ml/regression.py b/python/pyspark/ml/regression.py index <HASH>..<HASH> 100644 --- a/python/pyspark/ml/regression.py +++ b/python/pyspark/ml/regression.py @@ -593,7 +593,7 @@ class IsotonicRegression(JavaEstimator, _IsotonicRegressionParams, HasWeightCol, >>> model = ir.fit(df) >>>...
[SPARK-<I>][ML][PYSPARK][FOLLOWUP] Change IsotonicRegressionModel.numFeatures to property ### What changes were proposed in this pull request? Change `IsotonicRegressionModel.numFeatures` from plain method to property. ### Why are the changes needed? Consistency. Right now we use `numFeatures` in two other places i...
py
diff --git a/spacy/about.py b/spacy/about.py index <HASH>..<HASH> 100644 --- a/spacy/about.py +++ b/spacy/about.py @@ -4,7 +4,7 @@ # fmt: off __title__ = "spacy-nightly" -__version__ = "2.1.0a7.dev4" +__version__ = "2.1.0a7.dev5" __summary__ = "Industrial-strength Natural Language Processing (NLP) with Python and ...
Set version to <I>a7.dev5
py
diff --git a/h2o-py/h2o/model/model_base.py b/h2o-py/h2o/model/model_base.py index <HASH>..<HASH> 100644 --- a/h2o-py/h2o/model/model_base.py +++ b/h2o-py/h2o/model/model_base.py @@ -935,7 +935,8 @@ class ModelBase(backwards_compatible(Keyed)): plt.xlabel(timestep) plt.ylabel(metric) ...
GLM plot: make sure the plot is not empty when there was just 1 iteration regression is always done in one shot but any family might converge in 1 it
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -16,6 +16,8 @@ if not _on_rtd: install_requires = [ 'numpy', 'scipy', + 'jinja2', + 'slactrac', 'h5py', 'matplotlib>=1.5', 'periodictable',
Added jinja2, slactrac as requirements
py
diff --git a/synapse/lib/storm.py b/synapse/lib/storm.py index <HASH>..<HASH> 100644 --- a/synapse/lib/storm.py +++ b/synapse/lib/storm.py @@ -6,9 +6,9 @@ import collections import synapse.common as s_common +import synapse.lib.auth as s_auth import synapse.lib.tufo as s_tufo import synapse.lib.cache as s_cache ...
Log all storm queries and the executing user context.
py
diff --git a/DeepSpeech.py b/DeepSpeech.py index <HASH>..<HASH> 100755 --- a/DeepSpeech.py +++ b/DeepSpeech.py @@ -1614,7 +1614,8 @@ def train(server=None): update_progressbar.total_jobs = COORD._num_jobs_test # recreate pbar - update_progressbar.pbar = progressbar.ProgressBar...
Wrap stdout in training progress bars
py
diff --git a/wafer/registration/views.py b/wafer/registration/views.py index <HASH>..<HASH> 100644 --- a/wafer/registration/views.py +++ b/wafer/registration/views.py @@ -33,17 +33,22 @@ def github_login(request): token = r.content r = requests.get('https://api.github.com/user?%s' % token) - assert r.sta...
Replace asserts with HttpResponseForbidden
py
diff --git a/raven/contrib/flask/__init__.py b/raven/contrib/flask/__init__.py index <HASH>..<HASH> 100644 --- a/raven/contrib/flask/__init__.py +++ b/raven/contrib/flask/__init__.py @@ -48,6 +48,7 @@ class Sentry(object): servers=app.config.get('SENTRY_SERVERS'), name=app.config.get('...
Add config variable SENTRY_SITE_NAME for the flask integration to set a site name for the application.
py
diff --git a/airflow/executors/debug_executor.py b/airflow/executors/debug_executor.py index <HASH>..<HASH> 100644 --- a/airflow/executors/debug_executor.py +++ b/airflow/executors/debug_executor.py @@ -83,7 +83,7 @@ class DebugExecutor(BaseExecutor): except Exception as e: ti.set_state(State.FAIL...
Pass exception to ``run_finished_callback`` for Debug Executor (#<I>) When running the Debug Executor, the context inside the `on_failure_callback` method doesn't have the `exception` object. This is because the `exception` is not passed to `run_finished_callback` with the Debug Executor
py
diff --git a/doc/conf.py b/doc/conf.py index <HASH>..<HASH> 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -250,6 +250,7 @@ todo_include_todos = True autoclass_content = "both" +intersphinx_mapping = { + 'python': ('http://docs.python.org/', os.getenv('SPHINX_PYTHON_OBJECTS')), +} -# Example configuration for ...
Honour $SPHINX_PYTHON_OBJECTS for Python intersphinx cache.
py