diff
stringlengths
139
3.65k
message
stringlengths
8
627
diff_languages
stringclasses
1 value
diff --git a/brigade/plugins/tasks/networking/netmiko_run.py b/brigade/plugins/tasks/networking/netmiko_run.py index <HASH>..<HASH> 100644 --- a/brigade/plugins/tasks/networking/netmiko_run.py +++ b/brigade/plugins/tasks/networking/netmiko_run.py @@ -32,9 +32,10 @@ def netmiko_run(task, method, ip=None, host=None, user...
added port and correct way of getting the ip of the host
py
diff --git a/ccmlib/node.py b/ccmlib/node.py index <HASH>..<HASH> 100644 --- a/ccmlib/node.py +++ b/ccmlib/node.py @@ -1084,7 +1084,10 @@ class Node(object): common.replace_or_add_into_file_tail(conf_file, full_logger_pattern, logger_pattern + class_name + '" level="' + self.__classes_log_level[class_name]...
Fix jmx not being bound on unix
py
diff --git a/fades/main.py b/fades/main.py index <HASH>..<HASH> 100644 --- a/fades/main.py +++ b/fades/main.py @@ -226,3 +226,4 @@ def go(argv): rc = p.wait() if rc: l.debug("Child process not finished correctly: returncode=%d", rc) + sys.exit(rc)
Transmit the return code from child back to whom called fades. Fixes #<I>.
py
diff --git a/wes_service/arvados_wes.py b/wes_service/arvados_wes.py index <HASH>..<HASH> 100644 --- a/wes_service/arvados_wes.py +++ b/wes_service/arvados_wes.py @@ -189,7 +189,7 @@ class ArvadosBackend(WESBackend): workflow_attachment_file = tempfile.NamedTemporaryFile() workflow_attachment_...
workflow_url default to local path or url workflow_url could be any secondary file required by the workflow.
py
diff --git a/regions/io/crtf/read.py b/regions/io/crtf/read.py index <HASH>..<HASH> 100644 --- a/regions/io/crtf/read.py +++ b/regions/io/crtf/read.py @@ -67,7 +67,7 @@ def read_crtf(filename, errors='strict'): raise CRTFRegionParserError('Every CRTF Region must start with "#CRTF" ') -class CRTFParser:...
explicitly inheriting from object for backward compatibility
py
diff --git a/scs_core/osio/config/project_topic.py b/scs_core/osio/config/project_topic.py index <HASH>..<HASH> 100644 --- a/scs_core/osio/config/project_topic.py +++ b/scs_core/osio/config/project_topic.py @@ -40,6 +40,7 @@ class ProjectTopic(JSONable): ('PM1', 'PM2.5', 'PM10')...
Fixed a bug in ProjectTopic.
py
diff --git a/py/h2o.py b/py/h2o.py index <HASH>..<HASH> 100644 --- a/py/h2o.py +++ b/py/h2o.py @@ -909,15 +909,15 @@ class H2O(object): raise Exception("Maybe bad url? no r.json in __do_json_request in %s:" % inspect.stack()[1][3]) rjson = None - + try: rjson = ...
messaging beta_features when json requests fails
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -2,7 +2,7 @@ import setuptools setuptools.setup( name="foobot_async", - version="0.3.2", + version="0.3.3", url="https://github.com/reefab/foobot_async", author="Fabien Piuzzi", @@ -11,7 +11,7 @@ setu...
upgraded version number and ignore more locations for tests.
py
diff --git a/tests/test_buku.py b/tests/test_buku.py index <HASH>..<HASH> 100644 --- a/tests/test_buku.py +++ b/tests/test_buku.py @@ -762,4 +762,3 @@ def test_convert_bookmark_set(export_type, exp_res, monkeypatch): res = convert_bookmark_set(bms, export_type=export_type) assert res['count'] == 2 ...
fix: test: lint
py
diff --git a/src/saml2/mdstore.py b/src/saml2/mdstore.py index <HASH>..<HASH> 100644 --- a/src/saml2/mdstore.py +++ b/src/saml2/mdstore.py @@ -66,6 +66,7 @@ classnames = { ENTITY_CATEGORY = "http://macedir.org/entity-category" ENTITY_CATEGORY_SUPPORT = "http://macedir.org/entity-category-support" +ASSURANCE_CERTIFI...
Add mdstore method to extract assurance certifications
py
diff --git a/tests/test_main.py b/tests/test_main.py index <HASH>..<HASH> 100644 --- a/tests/test_main.py +++ b/tests/test_main.py @@ -10,10 +10,14 @@ Tests for `respect.main` module. import sys import requests -from urlparse import urljoin from respect import main +if sys.version < '3': + from urlparse imp...
Fixed urljoin import problem in Python 3 so urllib, urllib2, and urlparse were combined
py
diff --git a/pandas/tests/extension/base/casting.py b/pandas/tests/extension/base/casting.py index <HASH>..<HASH> 100644 --- a/pandas/tests/extension/base/casting.py +++ b/pandas/tests/extension/base/casting.py @@ -1,6 +1,8 @@ import numpy as np import pytest +import pandas.util._test_decorators as td + import pan...
TST: fix casting extension tests for external users (#<I>)
py
diff --git a/pale/fields/resource.py b/pale/fields/resource.py index <HASH>..<HASH> 100644 --- a/pale/fields/resource.py +++ b/pale/fields/resource.py @@ -1,6 +1,7 @@ from pale.fields.base import BaseField, ListField from pale.resource import Resource +import logging class ResourceField(BaseField): """A fie...
paledoc: warn when subfields is None
py
diff --git a/dark/utils.py b/dark/utils.py index <HASH>..<HASH> 100644 --- a/dark/utils.py +++ b/dark/utils.py @@ -957,7 +957,7 @@ def alignmentPanel(summary, recordFilenameOrHits, fastaFilename, db='nt', xRange=xRange) if outputDir: - imageBasename = '%d.png' % i + ima...
Produce individual alignment plots in SVG not PNG.
py
diff --git a/doc/plot/detect_single_face.py b/doc/plot/detect_single_face.py index <HASH>..<HASH> 100644 --- a/doc/plot/detect_single_face.py +++ b/doc/plot/detect_single_face.py @@ -2,7 +2,6 @@ import bob.io.base import bob.io.base.test_utils import bob.io.image import bob.ip.facedetect -import bob.ip.draw # loa...
[sphinx] Removed traces of bob.ip.draw
py
diff --git a/aegea/__init__.py b/aegea/__init__.py index <HASH>..<HASH> 100644 --- a/aegea/__init__.py +++ b/aegea/__init__.py @@ -15,17 +15,6 @@ from io import open from .util.compat import USING_PYTHON2 from .version import __version__ -if sys.version_info < (2, 7, 9): # See https://urllib3.readthedocs.io/en/lat...
Remove workaround for Python <I> and older
py
diff --git a/ws4redis/__init__.py b/ws4redis/__init__.py index <HASH>..<HASH> 100644 --- a/ws4redis/__init__.py +++ b/ws4redis/__init__.py @@ -1,2 +1,2 @@ # -*- coding: utf-8 -*- -__version__ = '0.2.0' +__version__ = '0.2.1'
Bumped to version <I>
py
diff --git a/memorious/operations/parse.py b/memorious/operations/parse.py index <HASH>..<HASH> 100644 --- a/memorious/operations/parse.py +++ b/memorious/operations/parse.py @@ -29,12 +29,12 @@ def parse_html(context, data, result): else: roots = [] for path in include: - roots = root...
ENH parse uses xpath() for include_paths
py
diff --git a/datascience/tables.py b/datascience/tables.py index <HASH>..<HASH> 100644 --- a/datascience/tables.py +++ b/datascience/tables.py @@ -3736,6 +3736,9 @@ class Table(collections.abc.MutableMapping): raise ValueError("You can't specify both normed and density. " "Use...
split default, moved params into vargs
py
diff --git a/salt/states/acme.py b/salt/states/acme.py index <HASH>..<HASH> 100644 --- a/salt/states/acme.py +++ b/salt/states/acme.py @@ -43,6 +43,7 @@ def cert(name, aliases=None, email=None, webroot=None, + certname=None, test_cert=False, renew=None, ...
added certname even in the acme state
py
diff --git a/astrocats/catalog/catalog.py b/astrocats/catalog/catalog.py index <HASH>..<HASH> 100644 --- a/astrocats/catalog/catalog.py +++ b/astrocats/catalog/catalog.py @@ -531,7 +531,7 @@ class Catalog: keys = list(sorted(self.entries.keys())) for n1, name1 in enumerate(pbar(keys, task_str)): - ...
BUG: fixed very expensive name lookup
py
diff --git a/flask_sqlalchemy_bundle/sqla/relationships.py b/flask_sqlalchemy_bundle/sqla/relationships.py index <HASH>..<HASH> 100644 --- a/flask_sqlalchemy_bundle/sqla/relationships.py +++ b/flask_sqlalchemy_bundle/sqla/relationships.py @@ -1,3 +1,5 @@ +import inspect + from flask_sqlalchemy.model import Model, came...
fix foreign_key helper when called with a model class
py
diff --git a/billy/importers/events.py b/billy/importers/events.py index <HASH>..<HASH> 100644 --- a/billy/importers/events.py +++ b/billy/importers/events.py @@ -6,6 +6,7 @@ import datetime import json from billy import db +from billy.importers.names import get_legislator_id from billy.importers.utils import prep...
Rough cut at the leg importer
py
diff --git a/odl/operator/operator.py b/odl/operator/operator.py index <HASH>..<HASH> 100644 --- a/odl/operator/operator.py +++ b/odl/operator/operator.py @@ -82,7 +82,7 @@ def _default_call_in_place(op, x, out, **kwargs): ------- `None` """ - out.assign(op._call_out_of_place(x, **kwargs)) + out.as...
ENH: fix casting of default out of place call
py
diff --git a/scapy/tools/UTscapy.py b/scapy/tools/UTscapy.py index <HASH>..<HASH> 100644 --- a/scapy/tools/UTscapy.py +++ b/scapy/tools/UTscapy.py @@ -259,7 +259,7 @@ def parse_config_file(config_path, verb=3): Empty default json: { "testfiles": [], - "breakfailed": false, + "breakfailed": tr...
Fix UTscapy not failing with breakfailed=False
py
diff --git a/maildir_deduplicate/mail.py b/maildir_deduplicate/mail.py index <HASH>..<HASH> 100644 --- a/maildir_deduplicate/mail.py +++ b/maildir_deduplicate/mail.py @@ -78,8 +78,12 @@ class Mail(object): return os.path.getctime(self.path) # Fetch from the date header. - return email.uti...
timestamp: don't fail if mktime_tz does The earlier commit turns out to be insufficient, because this code only runs when there is a duplicate of a message with a bogus Date: header, and a deduplicate mode like date-header is used.
py
diff --git a/cathub/classification.py b/cathub/classification.py index <HASH>..<HASH> 100644 --- a/cathub/classification.py +++ b/cathub/classification.py @@ -196,7 +196,6 @@ def get_site_dict(B, ads_pos0): D[k]['sym'] = atomi.symbol + '_' + atom.symbol b_ind += 1 - h_dist = np.linalg.nor...
order wrt z-position
py
diff --git a/src/python/dxpy/utils/resolver.py b/src/python/dxpy/utils/resolver.py index <HASH>..<HASH> 100644 --- a/src/python/dxpy/utils/resolver.py +++ b/src/python/dxpy/utils/resolver.py @@ -504,6 +504,7 @@ def resolve_existing_path(path, expected=None, ask_to_resolve=True, expected_cla :param all_mult: Whethe...
Add :raises: to docstring of resolve_existing_path.
py
diff --git a/src/runez/system.py b/src/runez/system.py index <HASH>..<HASH> 100644 --- a/src/runez/system.py +++ b/src/runez/system.py @@ -1252,13 +1252,18 @@ class SystemInfo: """Info on currently running process""" return _R._runez_module().PsInfo() - def diagnostics(self, via=" ⚡ "): + def ...
Allow to override diagnostics userid
py
diff --git a/src/pyipmi/interfaces/aardvark.py b/src/pyipmi/interfaces/aardvark.py index <HASH>..<HASH> 100644 --- a/src/pyipmi/interfaces/aardvark.py +++ b/src/pyipmi/interfaces/aardvark.py @@ -231,7 +231,6 @@ class Aardvark: rsp_received = False retries = 0 - start_time = time.time() ...
aardvark: fix timeout handling Inner loop was never quit in case of a timeout because the timeout value was never updated. Fix this.
py
diff --git a/examples/timeseries/blrms.py b/examples/timeseries/blrms.py index <HASH>..<HASH> 100644 --- a/examples/timeseries/blrms.py +++ b/examples/timeseries/blrms.py @@ -52,12 +52,13 @@ llo = TimeSeriesDict.get([c % 'L1' for c in channels], # instrument: plot = TimeSeriesPlot(lho, llo) ax1, ax2 = plot.axes -for...
examples: fixed two text issues with blrms.py
py
diff --git a/mysql/toolkit/script/execute.py b/mysql/toolkit/script/execute.py index <HASH>..<HASH> 100644 --- a/mysql/toolkit/script/execute.py +++ b/mysql/toolkit/script/execute.py @@ -96,7 +96,7 @@ class SQLScript: # Remove 'DROP' commands if skip_drops: - commands = filter_commands(co...
Added UNLOCK and LOCK to the list of ignore commands
py
diff --git a/cherrypyserver.py b/cherrypyserver.py index <HASH>..<HASH> 100644 --- a/cherrypyserver.py +++ b/cherrypyserver.py @@ -15,7 +15,7 @@ class SkillResponse(object): @cherrypy.expose @cherrypy.tools.json_out() def index(self): - content_length = cherrypy.request.headers['Content-Length'] +...
fixed minor bug in how request was being read
py
diff --git a/hamper/plugins/karma.py b/hamper/plugins/karma.py index <HASH>..<HASH> 100644 --- a/hamper/plugins/karma.py +++ b/hamper/plugins/karma.py @@ -110,7 +110,7 @@ class Karma(ChatCommandPlugin): Return the top or bottom 5 """ - regex = r'^karma --(top|bottom)$' + regex = r'^(sc...
karma: per request !karma or !score works
py
diff --git a/bika/lims/upgrade/v3_2_0_1705.py b/bika/lims/upgrade/v3_2_0_1705.py index <HASH>..<HASH> 100644 --- a/bika/lims/upgrade/v3_2_0_1705.py +++ b/bika/lims/upgrade/v3_2_0_1705.py @@ -39,8 +39,9 @@ def upgrade(tool): BaseAnalysisRefactoring(portal) # Throw out ARPriorities (the types have been remove...
NMRL-<I>: Migration will check if exists, then delete bika_arpriorities
py
diff --git a/discord/shard.py b/discord/shard.py index <HASH>..<HASH> 100644 --- a/discord/shard.py +++ b/discord/shard.py @@ -328,7 +328,7 @@ class AutoShardedClient(Client): else: return ShardInfo(parent, self.shard_count) - @utils.cached_property + @property def shards(self): ...
Remove caching from AutoShardedClient.shards
py
diff --git a/validator/journal/consensus/poet1/poet_consensus.py b/validator/journal/consensus/poet1/poet_consensus.py index <HASH>..<HASH> 100644 --- a/validator/journal/consensus/poet1/poet_consensus.py +++ b/validator/journal/consensus/poet1/poet_consensus.py @@ -119,8 +119,7 @@ class PoetConsensus(Consensus): ...
more accurate comments/logs We're not actually adding ourselves to the store, but rather proposing that we should be added via the normal consensus mechanism.
py
diff --git a/pytds/dbapi.py b/pytds/dbapi.py index <HASH>..<HASH> 100644 --- a/pytds/dbapi.py +++ b/pytds/dbapi.py @@ -326,8 +326,6 @@ class _Connection(object): return except ClosedConnectionError: pass - except: - logger.exception('unexpected error in rollback'...
let other exceptions in rollback to propagate
py
diff --git a/melodist/station.py b/melodist/station.py index <HASH>..<HASH> 100644 --- a/melodist/station.py +++ b/melodist/station.py @@ -330,7 +330,7 @@ class Station(object): self.data_disagg.precip = precip_disagg - def disaggregate_radiation(self, method='pot_rad'): + def disaggregate_radiation(...
Add pot_rad argument to Station.disaggregate_radiation
py
diff --git a/thumbor/storages/file_storage.py b/thumbor/storages/file_storage.py index <HASH>..<HASH> 100644 --- a/thumbor/storages/file_storage.py +++ b/thumbor/storages/file_storage.py @@ -13,7 +13,7 @@ import tempfile from datetime import datetime from tornado.options import options, define -from os.path import ...
getting the modification time, not the created time to check if the file is expired
py
diff --git a/gwpy/tests/test_io.py b/gwpy/tests/test_io.py index <HASH>..<HASH> 100644 --- a/gwpy/tests/test_io.py +++ b/gwpy/tests/test_io.py @@ -152,6 +152,11 @@ class TestIoNds2(object): ('nds.ligo-la.caltech.edu', 31200), ('nds.ligo.caltech.edu', 31200)] + # ...
tests: assert warning from io.nds2.host_resolution_order for unknown IFO prefix
py
diff --git a/src/nupic/research/spatial_pooler.py b/src/nupic/research/spatial_pooler.py index <HASH>..<HASH> 100644 --- a/src/nupic/research/spatial_pooler.py +++ b/src/nupic/research/spatial_pooler.py @@ -1610,8 +1610,10 @@ class SpatialPooler(object): rangeND.append(numpy.unique(curRange)) - neighbors ...
Modified spatial_pooler.py to use vectorized version of ravel_multi_index
py
diff --git a/test_undecorated.py b/test_undecorated.py index <HASH>..<HASH> 100644 --- a/test_undecorated.py +++ b/test_undecorated.py @@ -120,7 +120,7 @@ def test_simple_method(): decorated = decorate_with_params('dp')(decorate(A.foo)) assert decorated(A(), 1, 2) == (1, 2, 'd', 'dp') - assert undecorate...
Fix failing test in python 2.x A.foo is not A.foo in python 2.x
py
diff --git a/openquake/calculators/classical.py b/openquake/calculators/classical.py index <HASH>..<HASH> 100644 --- a/openquake/calculators/classical.py +++ b/openquake/calculators/classical.py @@ -244,8 +244,8 @@ class ClassicalCalculator(base.HazardCalculator): maxweight = min(self.csm.get_maxweight( ...
Increased the task_duration by <I>%
py
diff --git a/tests/html_quotations_test.py b/tests/html_quotations_test.py index <HASH>..<HASH> 100644 --- a/tests/html_quotations_test.py +++ b/tests/html_quotations_test.py @@ -50,6 +50,24 @@ def test_quotation_splitter_outside_blockquote(): RE_WHITESPACE.sub('', quotations.extract_from_html(msg_body))) ...
add failing test that shows how regular blockquotes are removed
py
diff --git a/exchangelib/util.py b/exchangelib/util.py index <HASH>..<HASH> 100644 --- a/exchangelib/util.py +++ b/exchangelib/util.py @@ -244,9 +244,6 @@ _forgiving_parser = ForgivingParser() def to_xml(text): try: - if PY2: - # On python2, fromstring expects an encoded string - re...
No need to special-case Python 2 after moving to lxml
py
diff --git a/paystackapi/tests/test_charge.py b/paystackapi/tests/test_charge.py index <HASH>..<HASH> 100644 --- a/paystackapi/tests/test_charge.py +++ b/paystackapi/tests/test_charge.py @@ -60,7 +60,7 @@ class TestCharge(BaseTestCase): @httpretty.activate def test_submit_otp(self): - """Method defin...
Test submit_phone method defined for a charge
py
diff --git a/dtool_config/cli.py b/dtool_config/cli.py index <HASH>..<HASH> 100644 --- a/dtool_config/cli.py +++ b/dtool_config/cli.py @@ -98,7 +98,7 @@ def get(scheme): """Print the cache directory of the specific storage scheme.""" click.secho(dtool_config.utils.get_cache( CONFIG_PATH, - sch...
Add cache 'ls' and 'set_all' commands
py
diff --git a/ford/tipue_search.py b/ford/tipue_search.py index <HASH>..<HASH> 100644 --- a/ford/tipue_search.py +++ b/ford/tipue_search.py @@ -6,22 +6,18 @@ # # Copyright 2015 Christopher MacMackin <cmacmackin@gmail.com> # -# This program is free software; you can redistribute it and/or modify +# Foobar is fr...
Correct inadvertent issue with licensing.
py
diff --git a/tests/test_ep.py b/tests/test_ep.py index <HASH>..<HASH> 100644 --- a/tests/test_ep.py +++ b/tests/test_ep.py @@ -17,5 +17,5 @@ def test_ep_logit(): with open(data_path("simpletrans-4.dat")) as f: num_items, data = parse_pairwise(f.read()) mean, cov = choix.ep_pairwise(num_items, data, 8...
Increase the tolerance in EP unit test. I relaxed a bit the requirement of "closeness" between the ground truth numpy array and the EP estimate, otherwise the tests would fail from time to time.
py
diff --git a/termdown.py b/termdown.py index <HASH>..<HASH> 100755 --- a/termdown.py +++ b/termdown.py @@ -392,8 +392,9 @@ def countdown( draw_text(stdscr, "E") input_action = input_queue.get() if input_action == INPUT_PAUSE: - ...
avoid repeated call to datetime.now()
py
diff --git a/setuptools/command/build_py.py b/setuptools/command/build_py.py index <HASH>..<HASH> 100644 --- a/setuptools/command/build_py.py +++ b/setuptools/command/build_py.py @@ -7,6 +7,8 @@ import fnmatch import textwrap import io import distutils.errors +import collections +import itertools try: @@ -195,1...
Use a defaultdict and count to track seen items
py
diff --git a/tests/test_actionAngle.py b/tests/test_actionAngle.py index <HASH>..<HASH> 100644 --- a/tests/test_actionAngle.py +++ b/tests/test_actionAngle.py @@ -2541,6 +2541,10 @@ def test_actionAngleIsochroneInverse_wrtIsochrone(): o= Orbit([R,vR,vT,z,vz,phi]) check_actionAngleIsochroneInverse_wrtIsochrone...
Add test of actionAngleIsochroneInverse with veyr high eccentricity, to make Newton-Raphson fail and test fallback onto Brent
py
diff --git a/scripts/aws.py b/scripts/aws.py index <HASH>..<HASH> 100644 --- a/scripts/aws.py +++ b/scripts/aws.py @@ -74,9 +74,9 @@ if __name__ == '__main__': if len(sys.argv) != 3: print ("Usage: {0} action role name".format(sys.argv[0])) return 1 - action, role, name = sys.argv[1:] + act...
Use actual role name and not boolean flag if it is a master to tag AWS objects (EBS volumes and EC2 instances).
py
diff --git a/tests/test_samples.py b/tests/test_samples.py index <HASH>..<HASH> 100644 --- a/tests/test_samples.py +++ b/tests/test_samples.py @@ -4,7 +4,9 @@ import subprocess class TestSamples(object): - def test_samples(self): + def test_wpe(self): + min_wpe = 50 + examples_dir = os.path.j...
Ensure that proselint stays over <I> wpe on samples This may need tuning later
py
diff --git a/tests/functional_tests.py b/tests/functional_tests.py index <HASH>..<HASH> 100644 --- a/tests/functional_tests.py +++ b/tests/functional_tests.py @@ -94,6 +94,24 @@ class DataManagerUserStory(unittest.TestCase): with self.assertRaises(RuntimeError): data_manager.load(os.path.join(DATA...
Added failing test for data manager reload after unpacking
py
diff --git a/great_expectations/expectations/core/expect_column_values_to_be_json_parseable.py b/great_expectations/expectations/core/expect_column_values_to_be_json_parseable.py index <HASH>..<HASH> 100644 --- a/great_expectations/expectations/core/expect_column_values_to_be_json_parseable.py +++ b/great_expectations/...
fixed parseable / parsable typo (#<I>)
py
diff --git a/hairball/__init__.py b/hairball/__init__.py index <HASH>..<HASH> 100644 --- a/hairball/__init__.py +++ b/hairball/__init__.py @@ -99,10 +99,11 @@ class Hairball(object): return os.path.splitext(filename)[1] in extensions while paths: - arg_path = paths.pop() + ...
Use logical Argument and directory traversal order. Arguments are traversed in the order they are given, and sub directories are traversed in sorted order.
py
diff --git a/macroeco/models/test_distributions.py b/macroeco/models/test_distributions.py index <HASH>..<HASH> 100644 --- a/macroeco/models/test_distributions.py +++ b/macroeco/models/test_distributions.py @@ -170,7 +170,7 @@ class TestNbinom_ztrunc(TestCase): # Test cdf and pmf agree! tpmf = np.sum(...
Change equal to almost_equal in test_cdf
py
diff --git a/python/neuroglancer/json_utils.py b/python/neuroglancer/json_utils.py index <HASH>..<HASH> 100644 --- a/python/neuroglancer/json_utils.py +++ b/python/neuroglancer/json_utils.py @@ -13,13 +13,21 @@ # limitations under the License. import numpy as np +import numbers + +min_safe_integer = -90071992547409...
fix(python): json_utils: handle sets, and unsafe integers Encode sets as lists. Encode integers that cannot be exactly represented as <I>-bit floating point numbers as strings.
py
diff --git a/tests/unit/test_command_install.py b/tests/unit/test_command_install.py index <HASH>..<HASH> 100644 --- a/tests/unit/test_command_install.py +++ b/tests/unit/test_command_install.py @@ -350,6 +350,27 @@ def test_count_errors(): str(install.errors['pkg'][0]['exception']).should.equal('P0wned!') +de...
Test for the Install.wheels attribute
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -1,4 +1,4 @@ -from distutils.core import setup +from setuptools import setup setup( name='schema-migrations',
use setup from setuptools instead of distutils
py
diff --git a/spyderlib/plugins/findinfiles.py b/spyderlib/plugins/findinfiles.py index <HASH>..<HASH> 100644 --- a/spyderlib/plugins/findinfiles.py +++ b/spyderlib/plugins/findinfiles.py @@ -90,7 +90,14 @@ class FindInFiles(FindInFilesWidget, SpyderPluginMixin): if text: self.find() -...
PyQt5: fixed "Find in files" switch-to-plugin feature At least on Windows with PyQt5, it is necessary to reimplement the "switch_to_plugin" method in order to call the "findinfiles_callback" method. Otherwise, when pressing Ctrl+Shift+F after selecting text in an editor widget (Editor, Console, etc.), the selection is...
py
diff --git a/nanoplotter/nanoplotter.py b/nanoplotter/nanoplotter.py index <HASH>..<HASH> 100644 --- a/nanoplotter/nanoplotter.py +++ b/nanoplotter/nanoplotter.py @@ -144,7 +144,7 @@ def scatter(x, y, names, path, plots, color="#4CB391", figformat="png", space=0, xlim=(minvalx, maxvalx), ...
changing size to height according to seaborn changes should solve <URL>
py
diff --git a/openquake/hazardlib/sec_perils.py b/openquake/hazardlib/sec_perils.py index <HASH>..<HASH> 100644 --- a/openquake/hazardlib/sec_perils.py +++ b/openquake/hazardlib/sec_perils.py @@ -79,9 +79,9 @@ class NewarkDisplacement(SecondaryPeril): sites.add_col('crit_accel', float, ne...
Small renaming [skip CI]
py
diff --git a/src/cltkv1/wordnet/wordnet.py b/src/cltkv1/wordnet/wordnet.py index <HASH>..<HASH> 100644 --- a/src/cltkv1/wordnet/wordnet.py +++ b/src/cltkv1/wordnet/wordnet.py @@ -2065,9 +2065,9 @@ class WordNetICCorpusReader(CorpusReader): fileids=None, ): if not root: - iso_map ={'lat...
removed my iso_mapping functionality; it's not needed.
py
diff --git a/tools/debugging/stress_test_transfers.py b/tools/debugging/stress_test_transfers.py index <HASH>..<HASH> 100755 --- a/tools/debugging/stress_test_transfers.py +++ b/tools/debugging/stress_test_transfers.py @@ -615,7 +615,7 @@ def main() -> None: return # Uncomment this if you want t...
Tell the user he can continue by pressing Enter
py
diff --git a/tendril/application.py b/tendril/application.py index <HASH>..<HASH> 100644 --- a/tendril/application.py +++ b/tendril/application.py @@ -46,7 +46,6 @@ class Application(object): self.parent.send_frame(frame) - @abc.abstractmethod def closed(self, error): """ Called t...
Not every application cares about closed().
py
diff --git a/flask_dropzone/__init__.py b/flask_dropzone/__init__.py index <HASH>..<HASH> 100644 --- a/flask_dropzone/__init__.py +++ b/flask_dropzone/__init__.py @@ -284,7 +284,7 @@ Dropzone.options.myDropzone = { maxFilesize: %d, // MB acceptedFiles: "%s", maxFiles: %s, - dic...
Use backticks to support both single or double quotes
py
diff --git a/elastic/check.py b/elastic/check.py index <HASH>..<HASH> 100644 --- a/elastic/check.py +++ b/elastic/check.py @@ -476,8 +476,8 @@ class ESCheck(AgentCheck): if version >= [0, 90, 10]: # ES versions 0.90.10 and above - health_url = "/_cluster/health?pretty=true" - ...
[elastic] robots do not care about pretty json
py
diff --git a/telethon/utils.py b/telethon/utils.py index <HASH>..<HASH> 100644 --- a/telethon/utils.py +++ b/telethon/utils.py @@ -43,7 +43,7 @@ mimetypes.add_type('video/mp4', '.mp4') mimetypes.add_type('video/quicktime', '.mov') mimetypes.add_type('video/avi', '.avi') -mimetypes.add_type('audio/mp3', '.mp3') +mim...
Fix mimetype for mp3 files It was incorrectly audio/mp3, when audio/mpeg is the correct one. This was causing sending mp3 voice notes to not work.
py
diff --git a/telemetry/telemetry/core/platform/profiler/perf_profiler.py b/telemetry/telemetry/core/platform/profiler/perf_profiler.py index <HASH>..<HASH> 100644 --- a/telemetry/telemetry/core/platform/profiler/perf_profiler.py +++ b/telemetry/telemetry/core/platform/profiler/perf_profiler.py @@ -77,6 +77,12 @@ Try re...
telemetry: Pass correct objdump binary to perf Use the --objdump argument to point perf to the correct ARM objdump binary so that it can properly annotate source code. Since this requires a fairly new version of perf (<I>), don't add the argument to the default set of perf options but rather just print a hint. See <U...
py
diff --git a/icekit/publishing/models.py b/icekit/publishing/models.py index <HASH>..<HASH> 100644 --- a/icekit/publishing/models.py +++ b/icekit/publishing/models.py @@ -652,7 +652,7 @@ class PublishableFluentContentsPage(FluentContentsPage, PublishingModel): Replace `mptt.models.MPTTModel.get_ancestors` with...
Fix bug in MPTT method overrides, re #5
py
diff --git a/src/hunter/const.py b/src/hunter/const.py index <HASH>..<HASH> 100644 --- a/src/hunter/const.py +++ b/src/hunter/const.py @@ -3,8 +3,11 @@ import sys from distutils.sysconfig import get_python_lib -SITE_PACKAGES_PATHS = set(site.getsitepackages()) -SITE_PACKAGES_PATHS.add(site.getusersitepackages()) +...
Add checks in case site.py is broken (eg: virtualenv).
py
diff --git a/flask_httpauth.py b/flask_httpauth.py index <HASH>..<HASH> 100644 --- a/flask_httpauth.py +++ b/flask_httpauth.py @@ -60,9 +60,14 @@ class HTTPAuth(object): # Flask/Werkzeug do not recognize any authentication types # other than Basic or Digest, so here we parse the header...
Catching exception when Authorization header is empty Previously, if browser would send a: Authorized: Token (where Token can be another auth token) or simply: Authorized: <blank> http header, the split() method raises a ValueError resulting in a <I> error. This errenous header should (probably) be handled as if i...
py
diff --git a/deployutils/__init__.py b/deployutils/__init__.py index <HASH>..<HASH> 100644 --- a/deployutils/__init__.py +++ b/deployutils/__init__.py @@ -115,7 +115,7 @@ def load_config(app_name, *args, **kwargs): if passphrase: content = crypt.decrypt(content, passphrase) if...
only uses decode/encode if present (Python3)
py
diff --git a/java-recommendations-ai/synth.py b/java-recommendations-ai/synth.py index <HASH>..<HASH> 100644 --- a/java-recommendations-ai/synth.py +++ b/java-recommendations-ai/synth.py @@ -18,6 +18,8 @@ import synthtool as s import synthtool.gcp as gcp import synthtool.languages.java as java +AUTOSYNTH_MULTIPLE_C...
chore: enable context aware commits (#9)
py
diff --git a/recipes/python2/__init__.py b/recipes/python2/__init__.py index <HASH>..<HASH> 100644 --- a/recipes/python2/__init__.py +++ b/recipes/python2/__init__.py @@ -40,9 +40,6 @@ class Python2Recipe(Recipe): print('sqlite or openssl support not yet enabled in python recipe') exit(1) - ...
Removed ipdb call
py
diff --git a/web3utils/contracts.py b/web3utils/contracts.py index <HASH>..<HASH> 100644 --- a/web3utils/contracts.py +++ b/web3utils/contracts.py @@ -64,7 +64,7 @@ class ContractMethod: def __tobytes(self, candidate): if isinstance(candidate, str): try: - candidate = bytes(can...
cleaner way to write utf-8 encoding
py
diff --git a/ceph_deploy/tests/parser/test_install.py b/ceph_deploy/tests/parser/test_install.py index <HASH>..<HASH> 100644 --- a/ceph_deploy/tests/parser/test_install.py +++ b/ceph_deploy/tests/parser/test_install.py @@ -111,3 +111,17 @@ class TestParserInstall(object): args = self.parser.parse_args(('instal...
[RM-<I>] Add tests for install adjust repos
py
diff --git a/oinkwall/firewall.py b/oinkwall/firewall.py index <HASH>..<HASH> 100644 --- a/oinkwall/firewall.py +++ b/oinkwall/firewall.py @@ -32,7 +32,7 @@ ipv4 = 'IPv4' ipv6 = 'IPv6' logger = logging.getLogger("oinkwall") -__version__ = '0.3' +__version__ = 'UNRELEASED' class IPTables:
set __version__ in develop to UNRELEASED Change this to a release version number after merging changes to master
py
diff --git a/bugwarrior/services/jira.py b/bugwarrior/services/jira.py index <HASH>..<HASH> 100644 --- a/bugwarrior/services/jira.py +++ b/bugwarrior/services/jira.py @@ -290,16 +290,13 @@ class JiraService(IssueService): def annotations(self, issue, issue_obj): comments = self.jira.comments(issue.key) ...
Include the issue url for jira tasks even if there are no annotations.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -52,6 +52,8 @@ classifiers = [ "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", + "Programming Language :: Python :: 3.1", + "Program...
Tests are run on Python <I>, and <I> is parity with <I>, so declare support for them.
py
diff --git a/salt/utils/yamlloader.py b/salt/utils/yamlloader.py index <HASH>..<HASH> 100644 --- a/salt/utils/yamlloader.py +++ b/salt/utils/yamlloader.py @@ -27,7 +27,7 @@ class DuplicateKeyWarning(RuntimeWarning): warnings.simplefilter('always', category=DuplicateKeyWarning) -# with code integrated form https://...
salt/utils/yamlloader.py: fix typos in comments
py
diff --git a/tools/distrib/check_copyright.py b/tools/distrib/check_copyright.py index <HASH>..<HASH> 100755 --- a/tools/distrib/check_copyright.py +++ b/tools/distrib/check_copyright.py @@ -149,9 +149,15 @@ LICENSE_YEAR = f'Copyright {YEAR} gRPC authors.' def join_license_text(header, prefix, footer, notice): ...
[check-copyright] Avoid trailing whitespaces (#<I>) There was a bug in #<I> where we added a whitespace between comment prefix and each line of the license notice, regardless it's empty or not. This creates trailing whitespaces if the license note contains blank lines, which makes most of the formatters and linters...
py
diff --git a/pnc/builds.py b/pnc/builds.py index <HASH>..<HASH> 100644 --- a/pnc/builds.py +++ b/pnc/builds.py @@ -16,7 +16,7 @@ def _get_build_configuration_id_by_name(name): :param name: name of build configuration :return: id of the matching build configuration, or None if no match found """ - resp...
fix building by name of configuration; add some form of pretty-printing to the build by id command
py
diff --git a/meshio/ply/_ply.py b/meshio/ply/_ply.py index <HASH>..<HASH> 100644 --- a/meshio/ply/_ply.py +++ b/meshio/ply/_ply.py @@ -303,7 +303,6 @@ def _read_binary( def _read_binary_list(buffer, count_dtype, data_dtype, num_cells, endianness): - print(count_dtype) """Parse a ply ragged list into a :cla...
Remove debug print statement I meant to remove this in SHA: 1af5b5bf<I>ceef<I>c<I>d<I>e1b<I>e2c<I>a7c0 but forgot.
py
diff --git a/tests/test_plotting.py b/tests/test_plotting.py index <HASH>..<HASH> 100644 --- a/tests/test_plotting.py +++ b/tests/test_plotting.py @@ -2,7 +2,7 @@ import pytest from unittest import mock from shapely.geometry import shape, Polygon, Point -from folium import GeoJson +from ipyleaflet import Map fro...
Fix plot test Remember: always use autospec=True
py
diff --git a/salt/modules/mac_ports.py b/salt/modules/mac_ports.py index <HASH>..<HASH> 100644 --- a/salt/modules/mac_ports.py +++ b/salt/modules/mac_ports.py @@ -308,13 +308,13 @@ def install(name=None, refresh=False, pkgs=None, **kwargs): if pkgs is None: version_num = kwargs.get('version') var...
emit port cli version, variants as separate args
py
diff --git a/pykrige/ok.py b/pykrige/ok.py index <HASH>..<HASH> 100755 --- a/pykrige/ok.py +++ b/pykrige/ok.py @@ -597,8 +597,8 @@ class OrdinaryKriging: if style != 'grid' and style != 'masked' and style != 'points': raise ValueError("style argument must be 'grid', 'points', or 'masked'") - ...
Removed flattening of the grid
py
diff --git a/tests/test_webui.py b/tests/test_webui.py index <HASH>..<HASH> 100644 --- a/tests/test_webui.py +++ b/tests/test_webui.py @@ -207,7 +207,7 @@ class TestWebUI(unittest.TestCase): rv = self.app.get('/tasks') self.assertEqual(rv.status_code, 200, rv.data) self.assertIn(b'SUCCESS</sp...
fix uncompleted fix due to different os and slow network, not reproduct issue on my computer
py
diff --git a/pypika/queries.py b/pypika/queries.py index <HASH>..<HASH> 100644 --- a/pypika/queries.py +++ b/pypika/queries.py @@ -87,6 +87,7 @@ class Schema: def __ne__(self, other): return not self.__eq__(other) + @ignore_copy def __getattr__(self, item): return Table(item, schema=sel...
Add deepcopy decorator to schema and database
py
diff --git a/luigi/contrib/ssh.py b/luigi/contrib/ssh.py index <HASH>..<HASH> 100644 --- a/luigi/contrib/ssh.py +++ b/luigi/contrib/ssh.py @@ -40,6 +40,7 @@ import contextlib import os import random import subprocess +import posixpath import luigi import luigi.format @@ -173,7 +174,7 @@ class RemoteFileSystem(lu...
Fix for #<I>: Normalize remote paths with posixpath On Windows clients, RemoteFileSystem normalizes paths Windows-style. This leads to wrong path names on the remote Linux side. Explicitly using posixpath.normpath instead of os.path.normpath fixes the problem.
py
diff --git a/jsonfield/fields.py b/jsonfield/fields.py index <HASH>..<HASH> 100644 --- a/jsonfield/fields.py +++ b/jsonfield/fields.py @@ -130,7 +130,7 @@ class JSONFieldBase(six.with_metaclass(SubfieldBase, base=models.Field)): return super(JSONFieldBase, self).get_default() def db_type(self, connectio...
Revert back the JSON native field type from PG <I> to PG <I>, because it causes more problems than it solves. PG <I> support seems incomplete.
py
diff --git a/ch_ops.py b/ch_ops.py index <HASH>..<HASH> 100755 --- a/ch_ops.py +++ b/ch_ops.py @@ -314,7 +314,7 @@ class sum(ch.Ch): if wrt is not self.x: return if self.axis == None: - return row(np.ones((1, len(self.x.r)))) + return row(np.ones((1, len(self.x.r.rav...
ch_ops.py (sum::compute_dr_wrt): bugfix for when axis is None and input is multidimensional.
py
diff --git a/ciscosparkapi/api/teams.py b/ciscosparkapi/api/teams.py index <HASH>..<HASH> 100644 --- a/ciscosparkapi/api/teams.py +++ b/ciscosparkapi/api/teams.py @@ -190,7 +190,7 @@ class TeamsAPI(object): "argument must be specified." raise ciscosparkapiException(error_messag...
Changing http method "POST" to "PUT" in TeamsAPI Modifying "update" function's http method to "PUT" which was "POST" earlier due to which update team was returning error
py
diff --git a/indra/tools/live_curation.py b/indra/tools/live_curation.py index <HASH>..<HASH> 100644 --- a/indra/tools/live_curation.py +++ b/indra/tools/live_curation.py @@ -6,8 +6,8 @@ import boto3 import pickle import logging import argparse -from os import path from pathlib import Path +from os import path, env...
Look for env vars before aws profile
py
diff --git a/bin/pysaunter.py b/bin/pysaunter.py index <HASH>..<HASH> 100644 --- a/bin/pysaunter.py +++ b/bin/pysaunter.py @@ -139,7 +139,7 @@ for noneable in ['traceconfig', 'pdb']: arguments.append("--%s" % noneable) for has_value in ['maxfail']: - if has_value in results.__dict__: + if has_value in...
xfail was causign things to fail. irony. yes. i have it.
py
diff --git a/claripy/frontend.py b/claripy/frontend.py index <HASH>..<HASH> 100644 --- a/claripy/frontend.py +++ b/claripy/frontend.py @@ -431,7 +431,7 @@ class Frontend(ana.Storable): if not isinstance(e, Bool): raise ClaripyValueError("got a non-Boolean expression in Frontend.is_false()") - ...
fixed a silly typo that broke boolean checks
py
diff --git a/backtrader/cerebro.py b/backtrader/cerebro.py index <HASH>..<HASH> 100644 --- a/backtrader/cerebro.py +++ b/backtrader/cerebro.py @@ -189,6 +189,9 @@ class Cerebro(with_metaclass(MetaParams, object)): Any other kwargs like ``timeframe``, ``compression``, ``todate`` which are supported by ...
Addresses #<I> by auto-cloning datas in resampledata if the data was already in the system
py