diff
stringlengths
139
3.65k
message
stringlengths
8
627
diff_languages
stringclasses
1 value
diff --git a/src/postal/models.py b/src/postal/models.py index <HASH>..<HASH> 100644 --- a/src/postal/models.py +++ b/src/postal/models.py @@ -0,0 +1,23 @@ +""" +Model of Postal Address, could possibly use some ideas from +http://www.djangosnippets.org/snippets/912/ in the future +""" + +from django.db import models +f...
initial location agnostic PostalAddress model
py
diff --git a/src/nmi/builds/genbuild.py b/src/nmi/builds/genbuild.py index <HASH>..<HASH> 100755 --- a/src/nmi/builds/genbuild.py +++ b/src/nmi/builds/genbuild.py @@ -5,10 +5,18 @@ import os import sys import commands -from glue import nmi.opts + +from optparse import OptionParser + # define common options (e.g.,...
removed nmiOpts.py dependency
py
diff --git a/src/you_get/extractors/baidu.py b/src/you_get/extractors/baidu.py index <HASH>..<HASH> 100644 --- a/src/you_get/extractors/baidu.py +++ b/src/you_get/extractors/baidu.py @@ -129,7 +129,8 @@ def baidu_download(url, output_dir='.', stream_type=None, merge=True, info_only= html = get_html(url) ...
[baidu] as you can see
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100755 --- a/setup.py +++ b/setup.py @@ -25,9 +25,6 @@ setup( 'requests', 'ppp_datamodel', ], - dependency_links=[ - 'git+https://github.com/ProjetPP/PPP-datamodel-Python.git', - ], packages=[ 'ppp_core', ],
Remove dependency_links as it seems to be ignored. I also added ppp_datamodel to Pypi so it is not needed anymore.
py
diff --git a/caravel/models.py b/caravel/models.py index <HASH>..<HASH> 100644 --- a/caravel/models.py +++ b/caravel/models.py @@ -1951,9 +1951,10 @@ class DruidDatasource(Model, AuditMixinNullable, Queryable): client.timeseries(**qry) if len(groupby) == 1: if not timeseries_limit: - ...
[hotfix] groupby may be a set
py
diff --git a/lands/gui/main.py b/lands/gui/main.py index <HASH>..<HASH> 100644 --- a/lands/gui/main.py +++ b/lands/gui/main.py @@ -344,7 +344,7 @@ class LandsGui(QtGui.QMainWindow): self.canvas = MapCanvas(self.label, self.world.width, self.world.height) self._on_bw_view() self.saveproto_acti...
Disabling precipitations menu item after precipitations are simulated Former-commit-id: bdcebb<I>f<I>ed6a1fce<I>ce<I>e<I>f1a
py
diff --git a/pandas/plotting/_core.py b/pandas/plotting/_core.py index <HASH>..<HASH> 100644 --- a/pandas/plotting/_core.py +++ b/pandas/plotting/_core.py @@ -2477,8 +2477,6 @@ def hist_series(self, by=None, ax=None, grid=True, xlabelsize=None, bin edges are calculated and returned. If bins is a sequence, give...
Tidy documentation about plotting Series histograms (#<I>)
py
diff --git a/dbbackup/db/mongodb.py b/dbbackup/db/mongodb.py index <HASH>..<HASH> 100644 --- a/dbbackup/db/mongodb.py +++ b/dbbackup/db/mongodb.py @@ -14,8 +14,8 @@ class MongoDumpConnector(BaseCommandDBConnector): def _create_dump(self): cmd = '{} --db {}'.format(self.dump_cmd, self.settings['NAME']) -...
fix mongodb dump/restore with empty HOST or PORT
py
diff --git a/elasticsearch/transport.py b/elasticsearch/transport.py index <HASH>..<HASH> 100644 --- a/elasticsearch/transport.py +++ b/elasticsearch/transport.py @@ -5,7 +5,7 @@ from .connection import Urllib3HttpConnection from .connection_pool import ConnectionPool, DummyConnectionPool from .serializer import JSON...
ImproperlyConfigured is imported but not used in transport. (#<I>)
py
diff --git a/astrobase/checkplotserver.py b/astrobase/checkplotserver.py index <HASH>..<HASH> 100644 --- a/astrobase/checkplotserver.py +++ b/astrobase/checkplotserver.py @@ -250,8 +250,14 @@ def main(): serverport = serverport + 1 sock.close() - http_server.listen(serverport, options.serve) + ...
cpserver: check if port in use, try next 5 in sequence, then give up Former-commit-id: 2c8b3fdd5e<I>dbbb<I>b<I>c0f5f6b1b<I>
py
diff --git a/autopep8.py b/autopep8.py index <HASH>..<HASH> 100755 --- a/autopep8.py +++ b/autopep8.py @@ -1,5 +1,8 @@ #!/usr/bin/env python # +# Copyright (C) 2010-2011 Hideo Hattori +# Copyright (C) 2011-2013 Hideo Hattori, Steven Myint +# # Permission is hereby granted, free of charge, to any person obtaining # ...
Add missing names/dates to copyright notice
py
diff --git a/reana_commons/version.py b/reana_commons/version.py index <HASH>..<HASH> 100755 --- a/reana_commons/version.py +++ b/reana_commons/version.py @@ -14,4 +14,4 @@ and parsed by ``setup.py``. from __future__ import absolute_import, print_function -__version__ = "0.6.0.dev20190619" +__version__ = "0.6.0.de...
release: <I>.de<I>
py
diff --git a/gandi/cli/core/params.py b/gandi/cli/core/params.py index <HASH>..<HASH> 100644 --- a/gandi/cli/core/params.py +++ b/gandi/cli/core/params.py @@ -184,6 +184,21 @@ class CertificateDcvMethod(click.Choice): pass +class IpType(click.Choice): + """ Choice parameter to filter on ip types. + + ...
Add an ip type filter (public VS private).
py
diff --git a/batinfo/battery.py b/batinfo/battery.py index <HASH>..<HASH> 100644 --- a/batinfo/battery.py +++ b/batinfo/battery.py @@ -26,6 +26,8 @@ logging.basicConfig() log = logging.getLogger(__name__) log.setLevel(logging.CRITICAL) +SMAPI = '/sys/devices/platform/smapi' + class Battery(object): """ @@ -...
fix cycle_count for older thinkpads using smapi
py
diff --git a/gae/PRESUBMIT.py b/gae/PRESUBMIT.py index <HASH>..<HASH> 100644 --- a/gae/PRESUBMIT.py +++ b/gae/PRESUBMIT.py @@ -54,14 +54,15 @@ def header(input_api): def source_file_filter(input_api): """Returns filter that selects source code files only.""" - bl = list(input_api.DEFAULT_BLACK_LIST) + [ + files...
Rename white_list/black_list in presubmit in gae These are being renamed for presubmit scripts. Bug: <I> Change-Id: I<I>a<I>a2df<I>fdedbc<I>ed<I>de<I>de<I>e<I>c Reviewed-on: <URL>
py
diff --git a/devassistant/command_helpers.py b/devassistant/command_helpers.py index <HASH>..<HASH> 100644 --- a/devassistant/command_helpers.py +++ b/devassistant/command_helpers.py @@ -9,6 +9,7 @@ import os import signal import subprocess import sys +import time import six
Missing import of time in command_helpers (used in DockerHelper)
py
diff --git a/claptcha/claptcha.py b/claptcha/claptcha.py index <HASH>..<HASH> 100644 --- a/claptcha/claptcha.py +++ b/claptcha/claptcha.py @@ -40,7 +40,7 @@ class Claptcha(object): # Line self._drawLine(image) - return image + return (text, image) @property def bytes(self):
image(): Return used text and Image object as tuple
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100755 --- a/setup.py +++ b/setup.py @@ -47,10 +47,15 @@ if __name__ == "__main__": license=LICENSE, url=URL, long_description=LONG_DESCRIPTION, - packages=['pymc3', 'pymc3.distributions', - 'pymc3.step_me...
Removed doc from packages list (#<I>)
py
diff --git a/metpy/io/nexrad.py b/metpy/io/nexrad.py index <HASH>..<HASH> 100644 --- a/metpy/io/nexrad.py +++ b/metpy/io/nexrad.py @@ -380,7 +380,7 @@ class Level2File(object): #TODO: need to parse VCP descriptions in this data msg_fmt = NamedStruct(fields, '>', 'Msg18Fmt') - self...
Use unpack() rather than unpack_from(). We should be using all the data in the unpack, and using unpack() will check this.
py
diff --git a/www/tests/brython_test_utils/unittest.py b/www/tests/brython_test_utils/unittest.py index <HASH>..<HASH> 100644 --- a/www/tests/brython_test_utils/unittest.py +++ b/www/tests/brython_test_utils/unittest.py @@ -18,8 +18,8 @@ class BrythonModuleTestCase(unittest.TestCase): status, tstart, tend, msg ...
fix: Fix CI I am not sure of the root of the problem, but the assertEqual method of unittest.TestCase was failing for some reason. Replacing it with an equality test and a plain failureException works fine... Needs more investigation, though.
py
diff --git a/tests/base.py b/tests/base.py index <HASH>..<HASH> 100644 --- a/tests/base.py +++ b/tests/base.py @@ -60,6 +60,12 @@ def data2es(items, ocean): ts = datetime.fromtimestamp(item['timestamp']) item['metadata__timestamp'] = ts.isoformat() + # the _fix_item does not apply to ...
[tests] Include _fix_item method in tests This code includes the _fix_item method, which is called during the collection of raw and enrich items.
py
diff --git a/hordak/forms/accounts.py b/hordak/forms/accounts.py index <HASH>..<HASH> 100644 --- a/hordak/forms/accounts.py +++ b/hordak/forms/accounts.py @@ -24,7 +24,11 @@ class AccountForm(forms.ModelForm): initial = kwargs.get("kwargs", {}) if "code" not in initial: # TODO...
Fixing account creation when intermediate accounts are missing
py
diff --git a/docs/conf.py b/docs/conf.py index <HASH>..<HASH> 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -241,7 +241,7 @@ intersphinx_mapping = { 'mongodb': ('https://api.mongodb.com/python/current/', None), 'pandas': ('https://pandas.pydata.org/pandas-docs/stable/', None), 'python': ('https://docs....
[AIRFLOW-XXX] Don't trust python-requests.org to run a valid HTTPS server (#<I>) This is the 3rd or 4th time we've had a problem with the docs from requests causing the docs step of our build to fail. So lets switch to RTD.io instead as they are much better at this.
py
diff --git a/pyvista/filters.py b/pyvista/filters.py index <HASH>..<HASH> 100644 --- a/pyvista/filters.py +++ b/pyvista/filters.py @@ -101,6 +101,9 @@ class DataSetFilters(object): # run the clip if isinstance(dataset, vtk.vtkPolyData): alg = vtk.vtkClipPolyData() + elif isinstance...
Leverage vtkClipVolume for ImageData
py
diff --git a/kconfiglib.py b/kconfiglib.py index <HASH>..<HASH> 100644 --- a/kconfiglib.py +++ b/kconfiglib.py @@ -3252,20 +3252,16 @@ class Comment(Item): # Private methods # - def __init__(self): - """Comment constructor -- not intended to be called directly by - Kconfiglib clients.""" - ...
Remove empty Comment.__init__() Didn't even notice that it had become empty...
py
diff --git a/pgmpy/inference/ExactInference.py b/pgmpy/inference/ExactInference.py index <HASH>..<HASH> 100644 --- a/pgmpy/inference/ExactInference.py +++ b/pgmpy/inference/ExactInference.py @@ -150,7 +150,7 @@ class VariableElimination(Inference): # _variable_elimination returns a dict. if isinstance...
Fixed bug in max_marginal (removed normalization)
py
diff --git a/pyte/graphics.py b/pyte/graphics.py index <HASH>..<HASH> 100644 --- a/pyte/graphics.py +++ b/pyte/graphics.py @@ -132,17 +132,17 @@ FG_BG_256 = [ (0xff, 0xff, 0xff), # 15 ] -# colors 16..232: the 6x6x6 color cube +# colors 16..231: the 6x6x6 color cube valuerange = (0x00, 0x5f, 0x87, 0xaf, 0xd7, ...
Add missing colors to FG_BG_<I> Also remove extra #<I> entry
py
diff --git a/gutenberg/gutenberg.py b/gutenberg/gutenberg.py index <HASH>..<HASH> 100644 --- a/gutenberg/gutenberg.py +++ b/gutenberg/gutenberg.py @@ -130,3 +130,24 @@ class EText(Base): author=self.author, title=self.title, text=self.fulltext[:15] + '...')...
Expose corpus functionality via CLI Fixes #4
py
diff --git a/GPy/models/GP.py b/GPy/models/GP.py index <HASH>..<HASH> 100644 --- a/GPy/models/GP.py +++ b/GPy/models/GP.py @@ -243,7 +243,7 @@ class GP(model): m, var, lower, upper = self.predict(Xnew, slices=which_functions) gpplot(Xnew,m, lower, upper) pb.plot(self.X[which_data]...
Change in plot() y-limits
py
diff --git a/credentials/__init__.py b/credentials/__init__.py index <HASH>..<HASH> 100644 --- a/credentials/__init__.py +++ b/credentials/__init__.py @@ -1,5 +1,7 @@ -from base import Credentials -from backends import EnvBackend +import os -backends = [EnvBackend()] +from .base import Credentials +from .backends imp...
Add .credentials as second default source.
py
diff --git a/samalg/__init__.py b/samalg/__init__.py index <HASH>..<HASH> 100644 --- a/samalg/__init__.py +++ b/samalg/__init__.py @@ -1506,6 +1506,9 @@ class SAM(object): else: lblsu = np.unique(clusters) + if 'X_knn_avg' not in list(self.adata.layers.keys()): + print('Perform...
added check for knn averaging in sw marker gene finder
py
diff --git a/spyder/plugins/editor/utils/decoration.py b/spyder/plugins/editor/utils/decoration.py index <HASH>..<HASH> 100644 --- a/spyder/plugins/editor/utils/decoration.py +++ b/spyder/plugins/editor/utils/decoration.py @@ -72,6 +72,7 @@ class TextDecorationsManager(Manager): except ValueError: ...
Editor: Add comment mentioning why a change is needed
py
diff --git a/spyder/plugins/editor/widgets/codeeditor.py b/spyder/plugins/editor/widgets/codeeditor.py index <HASH>..<HASH> 100644 --- a/spyder/plugins/editor/widgets/codeeditor.py +++ b/spyder/plugins/editor/widgets/codeeditor.py @@ -541,6 +541,9 @@ class CodeEditor(TextEditBaseWidget): # Diagnostics ...
Editor: Set methods and signals to update diagnostics in a thread only once This was causing to call finish_code_analysis multiple times, which ended up causing a lot sluggishness.
py
diff --git a/knxip/core.py b/knxip/core.py index <HASH>..<HASH> 100644 --- a/knxip/core.py +++ b/knxip/core.py @@ -24,6 +24,10 @@ def parse_group_address(addr): This allows to convert x/x/x and x/x address syntax to a numeric KNX group address """ + + if addr is None: + raise KNXException("No a...
Raise an exception if no address is given
py
diff --git a/web/admin/bibformatadmin.py b/web/admin/bibformatadmin.py index <HASH>..<HASH> 100644 --- a/web/admin/bibformatadmin.py +++ b/web/admin/bibformatadmin.py @@ -69,7 +69,7 @@ def index(req, ln=cdslang): else: is_admin = False - navtrail = """<a class=navtrail href="%s/admin/index?ln...
Fixed link to the Admin Area in the navtrail of the BibFormat Admin index page.
py
diff --git a/toot/__init__.py b/toot/__init__.py index <HASH>..<HASH> 100644 --- a/toot/__init__.py +++ b/toot/__init__.py @@ -10,7 +10,7 @@ DEFAULT_INSTANCE = 'mastodon.social' def create_app(base_url): - url = base_url + 'api/v1/apps' + url = base_url + '/api/v1/apps' response = requests.post(url, {...
Add missing slash to relative urls
py
diff --git a/stravalib/model.py b/stravalib/model.py index <HASH>..<HASH> 100644 --- a/stravalib/model.py +++ b/stravalib/model.py @@ -455,6 +455,10 @@ class BaseEffort(LoadableEntity): start_date = TimestampAttribute((SUMMARY,DETAILED)) #: :class:`datetime.datetime` when effort was started in GMT start_date_...
as per changelog june 3, <I> @ strava.github.io/api/v3/changelog
py
diff --git a/client.py b/client.py index <HASH>..<HASH> 100644 --- a/client.py +++ b/client.py @@ -241,7 +241,10 @@ class GanetiRapiClient(object): # pylint: disable-msg=R0904 self._logger.debug("Sending request to %s %s", url, kwargs) # print "Sending request to %s %s" % (url, kwargs) - r = ...
util/client: Raise GAE on failed or refused connections.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -3,7 +3,7 @@ from setuptools import setup setup( name='slacker', - version='0.9.40', + version='0.9.42', packages=['slacker'], description='Slack API client', author='Oktay Sancak',
Set version number to <I>
py
diff --git a/geomet/tests/wkt_test.py b/geomet/tests/wkt_test.py index <HASH>..<HASH> 100644 --- a/geomet/tests/wkt_test.py +++ b/geomet/tests/wkt_test.py @@ -76,10 +76,11 @@ class LineStringTestCase(unittest.TestCase): def test_dumps_linestring_2d(self): # Test a typical 2D LineString case: - ls...
tests/wkt_test: Added some negative values to test_dumps_linestring_2d.
py
diff --git a/gcm/api.py b/gcm/api.py index <HASH>..<HASH> 100644 --- a/gcm/api.py +++ b/gcm/api.py @@ -64,4 +64,4 @@ class GCMMessage(object): data=values, headers=headers) response.raise_for_status() - return registration_ids, json.loads(response.content) + return registration_ids...
with python 3, response.content is an instance of bytes and json.loads() expect str
py
diff --git a/rootpy/io/file.py b/rootpy/io/file.py index <HASH>..<HASH> 100644 --- a/rootpy/io/file.py +++ b/rootpy/io/file.py @@ -482,6 +482,8 @@ class _DirectoryBase(Object): if cp_name not in dest_dir: # Destination directory doesn't exist, so make a new one ...
fixed "local variable new_dir referenced before assignment"
py
diff --git a/deezer/client.py b/deezer/client.py index <HASH>..<HASH> 100644 --- a/deezer/client.py +++ b/deezer/client.py @@ -7,7 +7,7 @@ from urllib.parse import urlencode from deezer.utils import SortedDict from deezer.resources import Album, Artist, Comment, Genre -from deezer.resources import Chart, Resource +...
Function _process_json now fail if an unknow objects type is returned.
py
diff --git a/zipline/protocol.py b/zipline/protocol.py index <HASH>..<HASH> 100644 --- a/zipline/protocol.py +++ b/zipline/protocol.py @@ -102,5 +102,8 @@ class SIDData(object): def __len__(self): return len(self.__dict__) + def __contains__(self, name): + return name in self.__dict__ + d...
Adds a contains method to SIDData to support `in` statement.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100755 --- a/setup.py +++ b/setup.py @@ -38,7 +38,7 @@ if __name__ == "__main__": ] doc_requirements = [ - 'sphinx', + 'sphinx<2.1', 'sphinx-autodoc-typehints', 'sphinx-rtd-theme', 'sphinx-click',
pin sphinx due to bug
py
diff --git a/pythran/backend.py b/pythran/backend.py index <HASH>..<HASH> 100644 --- a/pythran/backend.py +++ b/pythran/backend.py @@ -689,12 +689,12 @@ class CxxBackend(Backend): if type(node.n) == complex: return "{0}({1}, {2})".format( pytype_to_ctype_table[type(node.n)], -...
Fix accuracy of double representation. the str(...) intrinsic does not represent double correctly, repr(...) must be used instead.
py
diff --git a/tests/utils/__init__.py b/tests/utils/__init__.py index <HASH>..<HASH> 100644 --- a/tests/utils/__init__.py +++ b/tests/utils/__init__.py @@ -18,15 +18,18 @@ class BaseRestCherryPyTest(BaseCherryPyTestCase): @mock.patch('saltapi.APIClient', autospec=True) @mock.patch('salt.auth.Resolver', autospe...
Add mock for replacing get_event() in tests where needed
py
diff --git a/bigquery/docs/snippets.py b/bigquery/docs/snippets.py index <HASH>..<HASH> 100644 --- a/bigquery/docs/snippets.py +++ b/bigquery/docs/snippets.py @@ -983,12 +983,7 @@ def test_load_table_from_file(client, to_delete): job_config.autodetect = True with open(filename, "rb") as source_file: - ...
BigQuery Snippets: Use autodetected location (#<I>) * b/<I> Remove location since it is now auto-detected. * Update snippets.py
py
diff --git a/cookiecutter/vcs.py b/cookiecutter/vcs.py index <HASH>..<HASH> 100644 --- a/cookiecutter/vcs.py +++ b/cookiecutter/vcs.py @@ -114,12 +114,12 @@ def clone(repo_url, checkout=None, clone_to_dir='.', no_input=False): raise RepositoryNotFound( f'The repository {repo_url} c...
Include caused exception details on reraise (PEP <I>) (vcs.py)
py
diff --git a/nodeconductor/iaas/backend/openstack.py b/nodeconductor/iaas/backend/openstack.py index <HASH>..<HASH> 100644 --- a/nodeconductor/iaas/backend/openstack.py +++ b/nodeconductor/iaas/backend/openstack.py @@ -2155,7 +2155,7 @@ class OpenStackBackend(object): return False if backend_rule[...
Better security group rule check - NC-<I>
py
diff --git a/numina/user/clirundal.py b/numina/user/clirundal.py index <HASH>..<HASH> 100644 --- a/numina/user/clirundal.py +++ b/numina/user/clirundal.py @@ -131,7 +131,13 @@ def mode_run_common_obs(args, extra_args): recipe.intermediate_results = True _logger.debug('recipe created') - rinpu...
Capture ValueError during build_recipe_input and give error log
py
diff --git a/tests/test_union.py b/tests/test_union.py index <HASH>..<HASH> 100644 --- a/tests/test_union.py +++ b/tests/test_union.py @@ -145,11 +145,28 @@ class TestUnion(unittest.TestCase): props=[SomeProps, DifferentProps], ) - dp = {'c': 1, 'd': 2} + dp = {'u': {'c': 1...
Update failing tests to cover two test cases
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -24,7 +24,7 @@ print find_packages() setup( name='twiceredis', - version='1.0.5', + version='1.0.6', author='Trey Morris', author_email='trey@treymorris.com', description='sentinel pool backed read...
listerize sentinels appropriately 2
py
diff --git a/tornado/wsgi.py b/tornado/wsgi.py index <HASH>..<HASH> 100644 --- a/tornado/wsgi.py +++ b/tornado/wsgi.py @@ -94,7 +94,7 @@ class WSGIApplication(web.Application): assert handler._finished status = str(handler._status_code) + " " + \ httplib.responses[handler._status_code] - ...
fixed the bug that RequestHandler.add_header doesn't work for WSGI applications
py
diff --git a/tests/__init__.py b/tests/__init__.py index <HASH>..<HASH> 100644 --- a/tests/__init__.py +++ b/tests/__init__.py @@ -69,3 +69,7 @@ for path in glob.glob(os.path.join(os.path.dirname(__file__), '*test*.py')): if module not in sys.modules: print >> sys.stderr, "Potential missing import of " ...
avoiding 'no handlers for amqplib' warning during tests run
py
diff --git a/gutter/client/operators/misc.py b/gutter/client/operators/misc.py index <HASH>..<HASH> 100644 --- a/gutter/client/operators/misc.py +++ b/gutter/client/operators/misc.py @@ -5,7 +5,7 @@ class PercentRange(Base): label = 'percent_range' group = 'misc' - preposition = 'in the percentage range'...
Change prepositions of percentages.
py
diff --git a/stanza/server/java_protobuf_requests.py b/stanza/server/java_protobuf_requests.py index <HASH>..<HASH> 100644 --- a/stanza/server/java_protobuf_requests.py +++ b/stanza/server/java_protobuf_requests.py @@ -2,13 +2,13 @@ import subprocess from stanza.server.client import resolve_classpath -def send_req...
Make it possible to pass in the classpath to send_request as well
py
diff --git a/pycbc/workflow/core.py b/pycbc/workflow/core.py index <HASH>..<HASH> 100644 --- a/pycbc/workflow/core.py +++ b/pycbc/workflow/core.py @@ -1346,15 +1346,28 @@ def resolve_url(url): if url.startswith('http://') or url.startswith('https://'): filename = url.split('/')[-1] filename = os....
Retry failed downloads a few times to protect against transient network errors
py
diff --git a/PyGitUp/gitup.py b/PyGitUp/gitup.py index <HASH>..<HASH> 100644 --- a/PyGitUp/gitup.py +++ b/PyGitUp/gitup.py @@ -281,11 +281,15 @@ class GitUp(object): if self.settings['fetch.all']: fetch_kwargs['all'] = True else: - fetch_args.append(self.remotes) + ...
Fix problem with local/remote origins mixed
py
diff --git a/pymatgen/io/vasp/tests/test_sets.py b/pymatgen/io/vasp/tests/test_sets.py index <HASH>..<HASH> 100644 --- a/pymatgen/io/vasp/tests/test_sets.py +++ b/pymatgen/io/vasp/tests/test_sets.py @@ -1183,7 +1183,7 @@ class MPHSEBSTest(PymatgenTest): self.assertEqual(len(vis.kpoints.kpts), 180) w...
Fix test I guess defining it as a variable is needed
py
diff --git a/aiogram/utils/executor.py b/aiogram/utils/executor.py index <HASH>..<HASH> 100644 --- a/aiogram/utils/executor.py +++ b/aiogram/utils/executor.py @@ -75,7 +75,7 @@ def start(dispatcher, func, *, loop=None, skip_updates=None, executor = Executor(dispatcher, skip_updates=skip_updates, loop=loop) _s...
Return result from executor. (`Executor.start(...)`)
py
diff --git a/tests/test_types.py b/tests/test_types.py index <HASH>..<HASH> 100644 --- a/tests/test_types.py +++ b/tests/test_types.py @@ -66,6 +66,14 @@ def test_decimal(): hug.types.decimal('bacon') +def test_boolean(): + '''Test to ensure the custom boolean type correctly supports boolean conversion'...
Add test for intended boolean value support
py
diff --git a/keyring/tests/backends/test_pyfs.py b/keyring/tests/backends/test_pyfs.py index <HASH>..<HASH> 100644 --- a/keyring/tests/backends/test_pyfs.py +++ b/keyring/tests/backends/test_pyfs.py @@ -4,6 +4,8 @@ import textwrap from ..py30compat import unittest +import pytest + import keyring.backend from key...
Mark tests as xfail. Ref #<I>
py
diff --git a/opentrons_sdk/labware/instruments.py b/opentrons_sdk/labware/instruments.py index <HASH>..<HASH> 100644 --- a/opentrons_sdk/labware/instruments.py +++ b/opentrons_sdk/labware/instruments.py @@ -175,6 +175,8 @@ class Pipette(object): self.dispense() self.aspirate(volume) + ...
adding final dispense to mix command
py
diff --git a/test/test_service.py b/test/test_service.py index <HASH>..<HASH> 100644 --- a/test/test_service.py +++ b/test/test_service.py @@ -272,13 +272,14 @@ def test_service_dos(get_connection): eventlet.sleep() spam_called.wait() - # At this point we will have exhausted the pool-size and + # At t...
extending DOS test to make an extra call to check message distribution
py
diff --git a/src/tonicdnscli/command.py b/src/tonicdnscli/command.py index <HASH>..<HASH> 100644 --- a/src/tonicdnscli/command.py +++ b/src/tonicdnscli/command.py @@ -334,8 +334,8 @@ def parse_options(): parser_template_delete.set_defaults( server=server, username=username) - parser_template_...
Change required option to argument when template delete
py
diff --git a/dallinger/command_line/docker_ssh.py b/dallinger/command_line/docker_ssh.py index <HASH>..<HASH> 100644 --- a/dallinger/command_line/docker_ssh.py +++ b/dallinger/command_line/docker_ssh.py @@ -182,6 +182,7 @@ server_option = click.option( ) @click.option("--config", "-c", "config_options", nargs=2, mult...
Fix missing AWS credentials when deploying
py
diff --git a/lib/websearch_templates.py b/lib/websearch_templates.py index <HASH>..<HASH> 100644 --- a/lib/websearch_templates.py +++ b/lib/websearch_templates.py @@ -333,7 +333,10 @@ class Template: 'p' : title, 'sc' : 1, 'of' : 'hb'}, {})) - return...
When OpenURL does not correspond to an existing record, return a search for recid:-1, which already produces a nice "Requested record does not seems to exist." message.
py
diff --git a/fedmsg/tests/test_meta.py b/fedmsg/tests/test_meta.py index <HASH>..<HASH> 100644 --- a/fedmsg/tests/test_meta.py +++ b/fedmsg/tests/test_meta.py @@ -91,6 +91,7 @@ class TestForWarning(unittest.TestCase): original = fedmsg.meta.log.warn try: fedmsg.meta.log.warn = mocked_warn...
Fix a couple tests which try to reinitialize the processors with mocked config.
py
diff --git a/xapian_backend.py b/xapian_backend.py index <HASH>..<HASH> 100755 --- a/xapian_backend.py +++ b/xapian_backend.py @@ -843,7 +843,7 @@ class SearchBackend(BaseSearchBackend): """ return self._get_enquire_mset( database, enquire, 0, database.get_doccount() - ).get_matche...
Changed get_matches_estimated to size using all documents. This should be more accurate.
py
diff --git a/discord/guild.py b/discord/guild.py index <HASH>..<HASH> 100644 --- a/discord/guild.py +++ b/discord/guild.py @@ -132,7 +132,7 @@ class Guild(Hashable): 'owner_id', 'mfa_level', 'emojis', 'features', 'verification_level', 'explicit_content_filter', 'splash', ...
Add currently undocumented premium_tier field. Needs more testing to find out what it is.
py
diff --git a/tests/multicolumn_map_expectations/test_multicolumn_map_expectations.py b/tests/multicolumn_map_expectations/test_multicolumn_map_expectations.py index <HASH>..<HASH> 100644 --- a/tests/multicolumn_map_expectations/test_multicolumn_map_expectations.py +++ b/tests/multicolumn_map_expectations/test_multicolu...
Updated test runner for multi-column-map to pass schemas to get_dataset
py
diff --git a/torf.py b/torf.py index <HASH>..<HASH> 100644 --- a/torf.py +++ b/torf.py @@ -410,9 +410,11 @@ def add_features_to_rfont(rfont, feature_prefixes, classes, features): if disabled: lines.append(' # -- disabled --') lines.extend(' #' + line for line in code.splitlines()) -...
Consider features with only comments to be empty. This is important when deciding when to add empty instructions to feature definitions -- a feature definition with only comments and no instructions will cause makeotf to fail.
py
diff --git a/zipline/pipeline/factors/statistical.py b/zipline/pipeline/factors/statistical.py index <HASH>..<HASH> 100644 --- a/zipline/pipeline/factors/statistical.py +++ b/zipline/pipeline/factors/statistical.py @@ -504,8 +504,8 @@ class SimpleBeta(CustomFactor, StandardOutputs): params = ('allowed_missing_coun...
MAINT: Put expect_types in same order as __new__.
py
diff --git a/glitch/glitch.py b/glitch/glitch.py index <HASH>..<HASH> 100644 --- a/glitch/glitch.py +++ b/glitch/glitch.py @@ -31,7 +31,6 @@ import base64 import random import string import docopt -from contextlib import contextmanager class Glitch: def __init__(self): @@ -91,7 +90,7 @@ class Glitch: de...
Fix: remove set(because couldn't check mote bytes) in mostbytes and remove contextlib
py
diff --git a/allauth/account/admin.py b/allauth/account/admin.py index <HASH>..<HASH> 100644 --- a/allauth/account/admin.py +++ b/allauth/account/admin.py @@ -3,6 +3,7 @@ from django.contrib import admin from .models import EmailConfirmation, EmailAddress from .adapter import get_adapter +from . import app_settings...
Don't register EmailConfirmation admin
py
diff --git a/tests/test_tornado.py b/tests/test_tornado.py index <HASH>..<HASH> 100644 --- a/tests/test_tornado.py +++ b/tests/test_tornado.py @@ -45,13 +45,14 @@ class TestConsul(object): def main(): yield c.kv.put('index', 'bump') index, data = yield c.kv.get('foo') + ass...
flake8; assert the first get is empty
py
diff --git a/napalm_eos/eos.py b/napalm_eos/eos.py index <HASH>..<HASH> 100644 --- a/napalm_eos/eos.py +++ b/napalm_eos/eos.py @@ -1431,9 +1431,15 @@ class EOSDriver(NetworkDriver): def get_config(self): """get_config implementation for EOS.""" - result = self.device.run_commands(['show startup-c...
Added candidate config to get_config
py
diff --git a/test/test_monitor.py b/test/test_monitor.py index <HASH>..<HASH> 100644 --- a/test/test_monitor.py +++ b/test/test_monitor.py @@ -25,14 +25,6 @@ from test import unittest, port, host, IntegrationTest from test.utils import single_client, one, connected, wait_until -def registered(executor): - for r...
Simplify TestMonitor. The executor is now registered immediately, don't need to wait.
py
diff --git a/tools/interop_matrix/client_matrix.py b/tools/interop_matrix/client_matrix.py index <HASH>..<HASH> 100644 --- a/tools/interop_matrix/client_matrix.py +++ b/tools/interop_matrix/client_matrix.py @@ -282,6 +282,7 @@ LANG_RELEASE_MATRIX = { ('v1.44.1', ReleaseInfo()), ('v1.45.1', Rel...
Add grpc-java <I> to client_matrix.py (#<I>)
py
diff --git a/master/buildbot/steps/source.py b/master/buildbot/steps/source.py index <HASH>..<HASH> 100644 --- a/master/buildbot/steps/source.py +++ b/master/buildbot/steps/source.py @@ -635,13 +635,18 @@ class SVN(Source): if self.svnurl: return self.computeRepositoryURL(self.svnurl) els...
Raise a RuntimeError when the branch from the SourceStamp and defaultBranch are both None.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100755 --- a/setup.py +++ b/setup.py @@ -15,6 +15,8 @@ Plugin provides some fixtures to simplify app testing: - ``client`` - an instance of ``app.test_client``, - ``client_class`` - ``client`` fixture for class-based tests, - ``config`` - you application config, ...
Add note about `live_server` to pypi page
py
diff --git a/sanji/router.py b/sanji/router.py index <HASH>..<HASH> 100644 --- a/sanji/router.py +++ b/sanji/router.py @@ -5,12 +5,13 @@ This is router class import re from sanji.message import trim_resource + def compile_resource(resource): """ Return compiled regex for resource matching """ r...
Update router.py. Refine pep8 style
py
diff --git a/pgcontents/db_utils.py b/pgcontents/db_utils.py index <HASH>..<HASH> 100644 --- a/pgcontents/db_utils.py +++ b/pgcontents/db_utils.py @@ -17,7 +17,7 @@ Utilities for working with databases. """ from contextlib import contextmanager -from itertools import izip +from six.moves import zip from psycopg2...
BUG: itertools.izip -> six.moves.zip.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -7,7 +7,7 @@ with open("README", 'r') as f: setup( name='pgdbpy', - version='1.0.13', + version='1.0.14', description='A simple PostgreSQL database connection manager that exploits the power of cfgpy', licen...
incrementing revnumber again, trying to get pip to recognize
py
diff --git a/sanic_prometheus/__init__.py b/sanic_prometheus/__init__.py index <HASH>..<HASH> 100644 --- a/sanic_prometheus/__init__.py +++ b/sanic_prometheus/__init__.py @@ -70,12 +70,12 @@ def monitor(app, endpoint_type='url:1', @app.middleware('request') async def before_request(request): - if req...
request.url -> request.path
py
diff --git a/gprof2dot.py b/gprof2dot.py index <HASH>..<HASH> 100755 --- a/gprof2dot.py +++ b/gprof2dot.py @@ -746,7 +746,7 @@ class OprofileParser(LineParser): - http://oprofile.sourceforge.net/doc/opreport.html#opreport-callgraph """ - _field_re = re.compile(r'\([^)]*\)|\S+(?:\s\(tgid:[^)]*\))?') + _field_re = ...
Accept " " in oprofile profiles (Jakob Bornecrantz).
py
diff --git a/opbeat/utils/traces.py b/opbeat/utils/traces.py index <HASH>..<HASH> 100644 --- a/opbeat/utils/traces.py +++ b/opbeat/utils/traces.py @@ -102,7 +102,7 @@ class RequestsStore(object): self._traces = defaultdict(list) self.collect_frequency = collect_frequency self._last_collect = ...
Bumped LRU stack trace cache from 1k to 5k items.
py
diff --git a/charmhelpers/contrib/openstack/amulet/deployment.py b/charmhelpers/contrib/openstack/amulet/deployment.py index <HASH>..<HASH> 100644 --- a/charmhelpers/contrib/openstack/amulet/deployment.py +++ b/charmhelpers/contrib/openstack/amulet/deployment.py @@ -303,22 +303,29 @@ class OpenStackAmuletDeployment(Amu...
Update get_ceph_expected_pools for Pike and Luminous (#<I>)
py
diff --git a/jet/utils.py b/jet/utils.py index <HASH>..<HASH> 100644 --- a/jet/utils.py +++ b/jet/utils.py @@ -163,7 +163,7 @@ class SuccessMessageMixin(object): return self.success_message % cleaned_data -def get_model_queryset(admin_site, model, preserved_filters=None): +def get_model_queryset(admin_site...
Added request param to get_model_queryset
py
diff --git a/bibo/query.py b/bibo/query.py index <HASH>..<HASH> 100644 --- a/bibo/query.py +++ b/bibo/query.py @@ -13,7 +13,7 @@ def search(data, search_terms): def _recursive_search(data, search_terms): try: search_term = next(search_terms) - return search( + return _recursive_search( ...
Fix a source of possible bugs with confusing query implementation
py
diff --git a/docs/source/conf.py b/docs/source/conf.py index <HASH>..<HASH> 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -296,4 +296,8 @@ texinfo_documents = [ # Example configuration for intersphinx: refer to the Python standard library. intersphinx_mapping = {'https://docs.python.org/': None} - +...
fix(docs): add nitpick_ignores for stdlib classes Seems to be related to <URL>
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -30,7 +30,7 @@ setup( use_katversion=True, install_requires=[ "ply", - "tornado>=4.0", + "tornado>=4.3", "futures", "future" ],
Bumped tornado dependency to <I> in setup.py This is necessary because the `tornado.gen.Multi` class and the function `multi_future` was replaced with a unified function `multi` in <I>. We use `multi` since df<I>a<I>a1d<I>b4a<I>cbf<I>f<I> (didn't check earlier commits)
py
diff --git a/ibis/tests/test_impala_e2e.py b/ibis/tests/test_impala_e2e.py index <HASH>..<HASH> 100644 --- a/ibis/tests/test_impala_e2e.py +++ b/ibis/tests/test_impala_e2e.py @@ -1216,9 +1216,6 @@ class TestUDFWrapping(ImpalaE2E, unittest.TestCase): self.udf_ll = self.test_data_dir + '/udf/udf-sample.ll' ...
TST: no longer auto-skip UDF e2e tests if built libraries not present
py
diff --git a/tests/test_asf.py b/tests/test_asf.py index <HASH>..<HASH> 100644 --- a/tests/test_asf.py +++ b/tests/test_asf.py @@ -17,12 +17,6 @@ class TASFFile(TestCase): add(TASFFile) -try: sorted -except NameError: - def sorted(l): - n = list(l) - n.sort() - return n class TASFInfo(Te...
test_asf.py: no need to check for sorted, since Python <I> is the minimum version.
py
diff --git a/gflags/__init__.py b/gflags/__init__.py index <HASH>..<HASH> 100644 --- a/gflags/__init__.py +++ b/gflags/__init__.py @@ -830,7 +830,7 @@ def DEFINE_alias(name, original_name, flag_values=FLAGS, module_name=None): # p Raises: gflags.FlagError: UnrecognizedFlagError: if the referenced flag d...
Replace flags.DuplicateFlag with flags.DuplicateFlagError They are same class now, and flags.DuplicateFlag will be removed soon.
py
diff --git a/smart_open/tests/test_s3.py b/smart_open/tests/test_s3.py index <HASH>..<HASH> 100644 --- a/smart_open/tests/test_s3.py +++ b/smart_open/tests/test_s3.py @@ -525,6 +525,11 @@ class SinglepartWriterTest(unittest.TestCase): ARBITRARY_CLIENT_ERROR = botocore.client.ClientError(error_response={}, operation_na...
disable iter_bucket tests on AppVeyor
py
diff --git a/tasktiger/worker.py b/tasktiger/worker.py index <HASH>..<HASH> 100644 --- a/tasktiger/worker.py +++ b/tasktiger/worker.py @@ -597,12 +597,6 @@ class Worker(object): def _mark_done(): # Remove the task from active queue - if task.unique: - # For unique tasks...
Remove unused code (#<I>)
py
diff --git a/stacktask_tempest_plugin/stacktask_client.py b/stacktask_tempest_plugin/stacktask_client.py index <HASH>..<HASH> 100644 --- a/stacktask_tempest_plugin/stacktask_client.py +++ b/stacktask_tempest_plugin/stacktask_client.py @@ -31,7 +31,7 @@ class StacktaskClient(rest_client.RestClient): } ...
Update to expect Adjutant to return <I> for in progress tasks. Supports Adjutant change I<I>c1c<I>b<I>b<I>f6ffeb3d<I>b<I>be<I>ee<I>ba7
py
diff --git a/db_tests/__init__.py b/db_tests/__init__.py index <HASH>..<HASH> 100644 --- a/db_tests/__init__.py +++ b/db_tests/__init__.py @@ -16,3 +16,13 @@ # You should have received a copy of the GNU Lesser General Public License # version 3 along with OpenQuake. If not, see # <http://www.gnu.org/licenses/lgpl-3...
added missing imports in db_tests/__init__.py (for nosetests)
py