diff
stringlengths
139
3.65k
message
stringlengths
8
627
diff_languages
stringclasses
1 value
diff --git a/elizabeth/intd/dec.py b/elizabeth/intd/dec.py index <HASH>..<HASH> 100644 --- a/elizabeth/intd/dec.py +++ b/elizabeth/intd/dec.py @@ -185,8 +185,8 @@ ROMANIZATION_ALPHABETS = { "з": "z", "И": "Y", "и": "y", - "І": "І", - "і": "і", + "І": "I", + "і": "i...
Changed uk letter to latin
py
diff --git a/tests/test_runtime.py b/tests/test_runtime.py index <HASH>..<HASH> 100644 --- a/tests/test_runtime.py +++ b/tests/test_runtime.py @@ -87,7 +87,7 @@ class TestRuntime(unittest.TestCase): crossplat_loop_run(test()) def test_joined_lines(self): - """Test joining and iterating over lines...
Remove redundant docstring comment from runtime tests
py
diff --git a/flask_jsonrpc/__init__.py b/flask_jsonrpc/__init__.py index <HASH>..<HASH> 100644 --- a/flask_jsonrpc/__init__.py +++ b/flask_jsonrpc/__init__.py @@ -72,7 +72,7 @@ def _validate_arg(value, expected): return False def _eval_arg_type(arg_type, T=Any, arg=None, sig=None): - """Returns a type from a...
docs: Fix simple typo, snippit -> snippet There is a small typo in flask_jsonrpc/__init__.py. Should read `snippet` rather than `snippit`.
py
diff --git a/discord/guild.py b/discord/guild.py index <HASH>..<HASH> 100644 --- a/discord/guild.py +++ b/discord/guild.py @@ -104,7 +104,11 @@ class Guild(Hashable): max_presences: Optional[:class:`int`] The maximum amount of presences for the guild. max_members: Optional[:class:`int`] - The ...
Specify where to get max_members in documentation
py
diff --git a/demo/chat_server.py b/demo/chat_server.py index <HASH>..<HASH> 100644 --- a/demo/chat_server.py +++ b/demo/chat_server.py @@ -14,10 +14,10 @@ class ChatServer(object): @coroutine def handle_accept(self, server, client): - Terminator(client, delim='\r\n') + Terminator(client, delim...
Getting example chat_server.py to work with py3.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -67,4 +67,5 @@ setuptools.setup( include_package_data=True, zip_safe=True, python_requires='>=3.4', + test_loader='unittest:TestLoader', )
Add support for python setup.py test. Tell setuptools to use the default unittest loader, unittest.TestLoader, rather than its own version, setuptools.command.test.ScanningLoader, as documented here: <URL>
py
diff --git a/LiSE/LiSE/util.py b/LiSE/LiSE/util.py index <HASH>..<HASH> 100644 --- a/LiSE/LiSE/util.py +++ b/LiSE/LiSE/util.py @@ -212,3 +212,23 @@ def sort_set(s): if s not in _sort_set_memo: _sort_set_memo[s] = sorted(s, key=_sort_set_key) return _sort_set_memo[s] + + +def fake_submit(func, *args, ...
Add a test utility for making parallel things serial
py
diff --git a/trionyx/trionyx/apps.py b/trionyx/trionyx/apps.py index <HASH>..<HASH> 100644 --- a/trionyx/trionyx/apps.py +++ b/trionyx/trionyx/apps.py @@ -37,13 +37,18 @@ class Config(BaseConfig): """Auto load Trionyx""" models_config.auto_load_configs() - for app in apps.get_app_configs(): -...
[FEATURE] Auto load signals module for appps
py
diff --git a/hamster/charting.py b/hamster/charting.py index <HASH>..<HASH> 100644 --- a/hamster/charting.py +++ b/hamster/charting.py @@ -2,12 +2,12 @@ horizontal bar charts. This library is not intended for scientific graphs. More like some visual clues to the user. -Currently chart understands only list of two m...
added some info on color/background svn path=/trunk/; revision=<I>
py
diff --git a/tabledata/_core.py b/tabledata/_core.py index <HASH>..<HASH> 100644 --- a/tabledata/_core.py +++ b/tabledata/_core.py @@ -226,8 +226,6 @@ class TableData(object): from typepy import Typecode - self.__dp_extractor.float_type = float - dict_body = [] for value_dp_list in...
Remove a float_type setting that no longer needed
py
diff --git a/pghoard/basebackup.py b/pghoard/basebackup.py index <HASH>..<HASH> 100644 --- a/pghoard/basebackup.py +++ b/pghoard/basebackup.py @@ -173,7 +173,7 @@ class PGBaseBackup(Thread): else: backup_time = time.monotonic() - start_time - self.metrics.gauge("pghoard.backup_time", ...
Fix tag->tags for PR #<I> gauge should have tags not tag
py
diff --git a/sitetree/admin.py b/sitetree/admin.py index <HASH>..<HASH> 100644 --- a/sitetree/admin.py +++ b/sitetree/admin.py @@ -192,7 +192,9 @@ class TreeItemAdmin(admin.ModelAdmin): sort_order = 'sort_order' else: sort_order = '-sort_order' - siblings = TreeItem._default_ma...
Update admin.py Fix bug: changing sort order of top level tree items (tree items without a parent).
py
diff --git a/alarmdecoder/zonetracking.py b/alarmdecoder/zonetracking.py index <HASH>..<HASH> 100644 --- a/alarmdecoder/zonetracking.py +++ b/alarmdecoder/zonetracking.py @@ -198,6 +198,9 @@ class Zonetracker(object): self._update_zone(zone) self._clear_zones(zone) + ...
Improved Handling of New Zone Faults Avoids some inaccuracies where a newly faulted zone could cause other faulted zones to appear as ready temporarily. Fixes #<I>
py
diff --git a/speed_test.py b/speed_test.py index <HASH>..<HASH> 100755 --- a/speed_test.py +++ b/speed_test.py @@ -80,6 +80,7 @@ def deltaToFloat( delta ): print "Speed test compares the time required for " \ "cdmpyparser and the standard pyclbr modules to collect module info." +print "cdmpyparser version: " ...
Print the parser version as well
py
diff --git a/tests/test_utils.py b/tests/test_utils.py index <HASH>..<HASH> 100644 --- a/tests/test_utils.py +++ b/tests/test_utils.py @@ -8,7 +8,7 @@ from django.test import TestCase from django.utils import six from django.utils.six.moves.urllib.parse import parse_qsl, urlparse -from two_factor.models import Phon...
Added random_hex test to make sure function returns string.
py
diff --git a/test/lib/gobgp.py b/test/lib/gobgp.py index <HASH>..<HASH> 100644 --- a/test/lib/gobgp.py +++ b/test/lib/gobgp.py @@ -366,15 +366,17 @@ class GoBGPContainer(BGPContainer): neigh_addr = None interface = None + peer_as = None if info['interface'] == '': ...
test/lib: Allow unconfigured peer-as for Unnumbered BGP For Unnumbered BGP, neighbor AS number isn't needed to be specified, so 'peer-as' should not be specified in the scenario test for Unnumbered BGP. However, currently 'peer-as' is always specified in test/lib/gobgp.py This commit solves this by not specifying `pe...
py
diff --git a/ceph_deploy/hosts/fedora/__init__.py b/ceph_deploy/hosts/fedora/__init__.py index <HASH>..<HASH> 100644 --- a/ceph_deploy/hosts/fedora/__init__.py +++ b/ceph_deploy/hosts/fedora/__init__.py @@ -1,5 +1,6 @@ import mon from ceph_deploy.hosts.centos import pkg +from ceph_deploy.hosts.centos.install import r...
make fedora re-use the centos repo install
py
diff --git a/pyensembl/database.py b/pyensembl/database.py index <HASH>..<HASH> 100644 --- a/pyensembl/database.py +++ b/pyensembl/database.py @@ -98,7 +98,6 @@ class Database(object): # mapping from database tables to their primary keys # sadly exon IDs *are* not unique, so can't be in this dict PRIMAY_...
don't use protein_id as primary key of CDS table
py
diff --git a/openpnm/utils/_workspace.py b/openpnm/utils/_workspace.py index <HASH>..<HASH> 100644 --- a/openpnm/utils/_workspace.py +++ b/openpnm/utils/_workspace.py @@ -43,12 +43,10 @@ class WorkspaceSettings(SettingsAttr): @property def loglevel(self): - logger = logging.getLogger() retur...
prevent getting logger from root level This call was getting the logger from the root level and overwriting the app settings for logging level. I was having trouble in mak issue #<I>
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -4,7 +4,7 @@ from os import path from distutils.version import LooseVersion from setuptools import find_packages, setup -VERSION = '1.17.1' +VERSION = '1.17.2' # Import README.md into long_description pwd = path.abspat...
Bump package version to <I>
py
diff --git a/isogeo_pysdk/__about__.py b/isogeo_pysdk/__about__.py index <HASH>..<HASH> 100644 --- a/isogeo_pysdk/__about__.py +++ b/isogeo_pysdk/__about__.py @@ -19,7 +19,7 @@ __title__ = "Isogeo Python SDK" __summary__ = "API wrapper for the Isogeo REST API" __uri__ = "https://github.com/isogeo/isogeo-api-py-minsdk...
Bump package version to <I>
py
diff --git a/tensorflow_probability/python/internal/backend/numpy/numpy_test.py b/tensorflow_probability/python/internal/backend/numpy/numpy_test.py index <HASH>..<HASH> 100644 --- a/tensorflow_probability/python/internal/backend/numpy/numpy_test.py +++ b/tensorflow_probability/python/internal/backend/numpy/numpy_test....
Use keyword args for hnp.array_shapes. A future version of hypothesis makes array_shapes a keyword only function. See <URL>
py
diff --git a/cwltool/argparser.py b/cwltool/argparser.py index <HASH>..<HASH> 100644 --- a/cwltool/argparser.py +++ b/cwltool/argparser.py @@ -381,7 +381,7 @@ def add_argument(toolparser, name, inptype, records, description="", else: flag = "--" - required = True + required = default is None ...
style: remove the need for None checks in argparser
py
diff --git a/pyinfra/modules/linux.py b/pyinfra/modules/linux.py index <HASH>..<HASH> 100644 --- a/pyinfra/modules/linux.py +++ b/pyinfra/modules/linux.py @@ -47,11 +47,11 @@ def user(name, present=True, home='/home/{0}', shell='/bin/bash', public_keys=No user = server.fact('Users')[name] # Check home...
bugfix on ordering of usermod commands
py
diff --git a/pyquaternion/test/test_quaternion.py b/pyquaternion/test/test_quaternion.py index <HASH>..<HASH> 100644 --- a/pyquaternion/test/test_quaternion.py +++ b/pyquaternion/test/test_quaternion.py @@ -606,6 +606,12 @@ class TestQuaternionArithmetic(unittest.TestCase): q1 ** None with self.as...
Add tests for scalar and identity quaternion powers
py
diff --git a/devscripts/validation/docker_compose.py b/devscripts/validation/docker_compose.py index <HASH>..<HASH> 100644 --- a/devscripts/validation/docker_compose.py +++ b/devscripts/validation/docker_compose.py @@ -169,9 +169,9 @@ def validate_docker_compose(release=None, quiet=False): with tut.run("se...
do not pass extra csr
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -48,6 +48,9 @@ setup( "Programming Language :: Python", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", + "Programming Language :: Python :: 3.8", + "P...
Add more Python versions to setup.py (#<I>)
py
diff --git a/foolbox/zoo/zoo.py b/foolbox/zoo/zoo.py index <HASH>..<HASH> 100644 --- a/foolbox/zoo/zoo.py +++ b/foolbox/zoo/zoo.py @@ -15,7 +15,7 @@ def get_model(url): >>> from foolbox import zoo >>> url = "https://github.com/bveliqi/foolbox-zoo-dummy.git" - >>> model = zoo.get_model(url) # doctest: +E...
trying to fix DocTestFailure on travis
py
diff --git a/pyvex/__init__.py b/pyvex/__init__.py index <HASH>..<HASH> 100644 --- a/pyvex/__init__.py +++ b/pyvex/__init__.py @@ -5,14 +5,14 @@ import collections _counts = collections.Counter() class vex(object): - #pass - def __init__(self): - #print "CREATING:",type(self) - _counts[type(self...
commented out the reference count debugging
py
diff --git a/src/spring/setup.py b/src/spring/setup.py index <HASH>..<HASH> 100644 --- a/src/spring/setup.py +++ b/src/spring/setup.py @@ -16,7 +16,7 @@ except ImportError: # TODO: Confirm this is the right version number you want and it matches your # HISTORY.rst entry. -VERSION = '1.0.0' +VERSION = '1.1.0' # T...
GA Enterprise tier (#<I>)
py
diff --git a/svn/common.py b/svn/common.py index <HASH>..<HASH> 100644 --- a/svn/common.py +++ b/svn/common.py @@ -41,7 +41,8 @@ class CommonClient(object): p = subprocess.Popen(cmd, stdout=subprocess.PIPE, - stderr=subprocess.STDOUT) + ...
With LANG=es_CL.utf8 fail with UnicodeDecodeError
py
diff --git a/scapy.py b/scapy.py index <HASH>..<HASH> 100755 --- a/scapy.py +++ b/scapy.py @@ -438,6 +438,12 @@ class ManufDA(DADict): return self._get_manuf_couple(mac)[1] def _get_short_manuf(self, mac): return self._get_manuf_couple(mac)[0] + def _resolve_MAC(self, mac): + oui = ":"....
Added ManufDA._resolve_MAC() and used it in MACField.i2repr()
py
diff --git a/parsl/monitoring/monitoring.py b/parsl/monitoring/monitoring.py index <HASH>..<HASH> 100644 --- a/parsl/monitoring/monitoring.py +++ b/parsl/monitoring/monitoring.py @@ -446,7 +446,11 @@ class MonitoringHub(RepresentationMixin): self.router_proc.join() self.logger.debug("Finished ...
Add more debugging messages around router/dbm termination (#<I>) This is to get more information about one place I have seen shutdown hang in CI.
py
diff --git a/test/integration/integration.py b/test/integration/integration.py index <HASH>..<HASH> 100644 --- a/test/integration/integration.py +++ b/test/integration/integration.py @@ -79,11 +79,14 @@ class IntegrationTest(unittest.TestCase): setattr(self, i.name, install_dirs[i].realize(path_vars)) ...
Fix target name generation for building in the integration tests
py
diff --git a/ggplotx/geoms/geom_text.py b/ggplotx/geoms/geom_text.py index <HASH>..<HASH> 100644 --- a/ggplotx/geoms/geom_text.py +++ b/ggplotx/geoms/geom_text.py @@ -61,6 +61,7 @@ class geom_text(geom): data['verticalalignment'] = params['vjust'] data['family'] = params['family'] data['fontw...
Fix zorder in geom_text It was not used.
py
diff --git a/rw/plugins/mail_smtp.py b/rw/plugins/mail_smtp.py index <HASH>..<HASH> 100644 --- a/rw/plugins/mail_smtp.py +++ b/rw/plugins/mail_smtp.py @@ -1,4 +1,5 @@ import smtplib +import copy from email.mime.text import MIMEText from email.mime.multipart import MIMEMultipart @@ -24,7 +25,7 @@ class SmtpMail(rpl...
mail_smtp plugin: create copy of body before altering it
py
diff --git a/web/ext/local.py b/web/ext/local.py index <HASH>..<HASH> 100644 --- a/web/ext/local.py +++ b/web/ext/local.py @@ -19,7 +19,7 @@ class ThreadLocalExtension(object): """ first = True - provides = ['threadlocal'] + provides = ['local', 'threadlocal'] def __init__(self, where='web.core:local'): ...
Added abbreviated provides.
py
diff --git a/attachments/templatetags/attachments_tags.py b/attachments/templatetags/attachments_tags.py index <HASH>..<HASH> 100644 --- a/attachments/templatetags/attachments_tags.py +++ b/attachments/templatetags/attachments_tags.py @@ -9,7 +9,7 @@ register = Library() @register.inclusion_tag('attachments/add_fo...
Allow overriding of next URL in attachment_form tag (#<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 @@ -596,11 +596,12 @@ def test_help(command, expected_regex): # Redirect sys.stdout because Python 2 pdb.py has `print >>self.stdout` for # some functions and plain ol' `pri...
test_help: fix restoring of sys.stdout (#<I>)
py
diff --git a/filterpy/common/kinematic.py b/filterpy/common/kinematic.py index <HASH>..<HASH> 100644 --- a/filterpy/common/kinematic.py +++ b/filterpy/common/kinematic.py @@ -146,7 +146,7 @@ def kinematic_kf(dim, order, dt=1., dim_z=1, order_by_dim=True): dim_x = order + 1 - kf = KalmanFilter(dim_x=dim * di...
Properly assign dim_z in kinematic_kf Fixes #<I>
py
diff --git a/src/client/NL4Py/nl4py/NetLogoControllerServerStarter.py b/src/client/NL4Py/nl4py/NetLogoControllerServerStarter.py index <HASH>..<HASH> 100644 --- a/src/client/NL4Py/nl4py/NetLogoControllerServerStarter.py +++ b/src/client/NL4Py/nl4py/NetLogoControllerServerStarter.py @@ -72,7 +72,7 @@ class NetLogoContro...
fix to glob check for jar files
py
diff --git a/pyDOE/__init__.py b/pyDOE/__init__.py index <HASH>..<HASH> 100644 --- a/pyDOE/__init__.py +++ b/pyDOE/__init__.py @@ -8,9 +8,11 @@ Copyright: 2013 """ __author__ = 'Abraham Lee' -__version__ = '0.1' +__version__ = '0.2' from doe_box_behnken import * from doe_composite import * from doe_fac...
added imports to doe_form and doe_plackett_burnam
py
diff --git a/scarlet/cms/list.py b/scarlet/cms/list.py index <HASH>..<HASH> 100644 --- a/scarlet/cms/list.py +++ b/scarlet/cms/list.py @@ -386,7 +386,7 @@ class ListView(ModelCMSMixin, MultipleObjectMixin, ModelCMSView): msg = None action = request.POST.get('actions', None) selected = request...
check for python None as well as 'None'
py
diff --git a/hedgehog/client/sync_client.py b/hedgehog/client/sync_client.py index <HASH>..<HASH> 100644 --- a/hedgehog/client/sync_client.py +++ b/hedgehog/client/sync_client.py @@ -44,6 +44,13 @@ class SyncClient(object): def clear_client(): self.client = None + if t...
add SIGINT handler for sync client; no cleanup yet!
py
diff --git a/pyradigm/multiple.py b/pyradigm/multiple.py index <HASH>..<HASH> 100644 --- a/pyradigm/multiple.py +++ b/pyradigm/multiple.py @@ -298,6 +298,11 @@ class MultiDatasetClassify(BaseMultiDataset): self.append(ds_out, identifier=identifier) + @property + def target_set(self): + """Set ...
new attr for easy class based handling multidatasetclassify
py
diff --git a/paypal/pro/helpers.py b/paypal/pro/helpers.py index <HASH>..<HASH> 100644 --- a/paypal/pro/helpers.py +++ b/paypal/pro/helpers.py @@ -131,6 +131,15 @@ class PayPalWPP(object): """ Check the dude out: """ + if "amt" in params: + import warnings + + war...
Updated DoExpressCheckoutPayment with amt deprecation logic
py
diff --git a/pystorm/component.py b/pystorm/component.py index <HASH>..<HASH> 100644 --- a/pystorm/component.py +++ b/pystorm/component.py @@ -1,7 +1,6 @@ """Base primititve classes for working with Storm.""" from __future__ import absolute_import, print_function, unicode_literals -import io import logging import...
Remove extra imports from component.py
py
diff --git a/source/clique/collection.py b/source/clique/collection.py index <HASH>..<HASH> 100644 --- a/source/clique/collection.py +++ b/source/clique/collection.py @@ -187,7 +187,19 @@ class Collection(object): raise clique.error.CollectionError('Item not present in sequence.') def format(self, p...
Add list of supported keys to Collection.format docstring.
py
diff --git a/cmd2.py b/cmd2.py index <HASH>..<HASH> 100755 --- a/cmd2.py +++ b/cmd2.py @@ -1506,11 +1506,21 @@ class Cmd(cmd.Cmd): # Overwrite line to pass into completers line = expanded_line + # If the cursor is right after a closed quote, then insert a space + ...
Don't try to tab complete when the cursor is right after a closed quote
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -10,12 +10,15 @@ setuptools.setup(name='nestcheck', description=('Error analysis, diagnostic tests and plots for ' 'nested sampling calculations'), url='https:...
adding futures to setup.py for backwards compatibility
py
diff --git a/cnxarchive/search.py b/cnxarchive/search.py index <HASH>..<HASH> 100644 --- a/cnxarchive/search.py +++ b/cnxarchive/search.py @@ -61,6 +61,7 @@ SQL_SEARCH_TEMPLATES = {name: _read_sql_file(name, extension='.part.sql', remove_comments=True) ...
Read the search query statment on module load.
py
diff --git a/pdc_client/__init__.py b/pdc_client/__init__.py index <HASH>..<HASH> 100644 --- a/pdc_client/__init__.py +++ b/pdc_client/__init__.py @@ -10,7 +10,6 @@ import os from os.path import expanduser, isfile, isdir import sys from subprocess import Popen, PIPE -import exceptions import beanbag import reque...
Remove the get_paged function in pdc client JIRA: PDC-<I>
py
diff --git a/cherrypy/test/helper.py b/cherrypy/test/helper.py index <HASH>..<HASH> 100644 --- a/cherrypy/test/helper.py +++ b/cherrypy/test/helper.py @@ -12,6 +12,7 @@ import re import sys import time import warnings +import io import cherrypy from cherrypy._cpcompat import text_or_bytes, copyitems, HTTPSConnec...
Use io module to write text to a file
py
diff --git a/invocations/testing.py b/invocations/testing.py index <HASH>..<HASH> 100644 --- a/invocations/testing.py +++ b/invocations/testing.py @@ -45,7 +45,7 @@ def integration(c, module=None, runner=None, opts=None, pty=True): @task -def watch_tests(c, module=None): +def watch_tests(c, module=None, opts=None)...
Pass-thru the opts flag in watch_tests
py
diff --git a/table_fu/formatters.py b/table_fu/formatters.py index <HASH>..<HASH> 100644 --- a/table_fu/formatters.py +++ b/table_fu/formatters.py @@ -4,7 +4,13 @@ Inspired by James Bennett's template_utils and Django's template filters. """ -DEFAULT_FORMATTERS = {} +def link(title, url): + return u'<a href="%(u...
Added a link formatter. Still having trouble making Formatter.register work as a decorator
py
diff --git a/amplpy/amplpython/__init__.py b/amplpy/amplpython/__init__.py index <HASH>..<HASH> 100644 --- a/amplpy/amplpython/__init__.py +++ b/amplpy/amplpython/__init__.py @@ -2,14 +2,22 @@ from __future__ import absolute_import import os +import ctypes import platform if platform.system() == 'Windows': ...
Add workaround for conda python Python versions that come with conda for Windows do not load .dlls in the same way as standard python versions.
py
diff --git a/git_aggregator/repo.py b/git_aggregator/repo.py index <HASH>..<HASH> 100644 --- a/git_aggregator/repo.py +++ b/git_aggregator/repo.py @@ -325,6 +325,7 @@ class Repo(object): format(**locals())) continue state = r.json().get('state') + merged = (...
[IMP] Add merge status on closed pull requests
py
diff --git a/h2o-py/tests/testdir_algos/gbm/pyunit_offset_tweedie_gbm.py b/h2o-py/tests/testdir_algos/gbm/pyunit_offset_tweedie_gbm.py index <HASH>..<HASH> 100644 --- a/h2o-py/tests/testdir_algos/gbm/pyunit_offset_tweedie_gbm.py +++ b/h2o-py/tests/testdir_algos/gbm/pyunit_offset_tweedie_gbm.py @@ -5,12 +5,9 @@ import h...
Fix formatting, clean-up comments - just to have a test to show this PR works
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -4,7 +4,7 @@ import sys from setuptools import setup, find_packages from setuptools.command.install import install -VERSION = '0.2.0rc10' +VERSION = '0.2.0rc11' class VerifyVersionCommand(install): """Custom comman...
Bump for rc<I> with ci fix
py
diff --git a/SeriouslyCommands.py b/SeriouslyCommands.py index <HASH>..<HASH> 100755 --- a/SeriouslyCommands.py +++ b/SeriouslyCommands.py @@ -788,7 +788,7 @@ def g_fn(srs): def reduce_fn(srs): a = srs.pop() if isinstance(a, collections.Iterable): - srs.push([x//gcd_list(*a) for x in a]) + srs....
Update SeriouslyCommands.py
py
diff --git a/pykube/objects.py b/pykube/objects.py index <HASH>..<HASH> 100644 --- a/pykube/objects.py +++ b/pykube/objects.py @@ -177,11 +177,12 @@ class Pod(NamespacedAPIObject): return condition is not None and condition["status"] == "True" def logs(self, container=None, pretty=None, previous=False, ...
Tries to fix PEP8 warnings/errors on logs method.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -22,6 +22,9 @@ setup(name='sparc.common', packages=find_packages(exclude=['ez_setup']), namespace_packages=['sparc'], include_package_data=True, + package_data = { + '': ['*.zcml'] + }...
include zcml files for packaging
py
diff --git a/fabfile.py b/fabfile.py index <HASH>..<HASH> 100644 --- a/fabfile.py +++ b/fabfile.py @@ -85,6 +85,10 @@ def release(): upload_release("%(root_dir)s/enabler/target/openxc-enabler.apk" % env, "openxc-enabler-%s.apk" % env.release) +@task +def snapshot(): + local("mvn clean deploy -pl ...
Add Fabric task to deploy snapshot to Sonatype repo.
py
diff --git a/openid/store/nonce.py b/openid/store/nonce.py index <HASH>..<HASH> 100644 --- a/openid/store/nonce.py +++ b/openid/store/nonce.py @@ -9,7 +9,7 @@ from time import strptime, strftime, gmtime, time from calendar import timegm import string -NONCE_CHARS = string.letters + string.digits +NONCE_CHARS = stri...
[project @ store.nonce.NONCE_CHARS: s/letters/ascii_letters/]
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -118,7 +118,7 @@ setup( install_requires=[ 'numpy>1.14', 'numba>=0.38.1', - 'scikit-learn>=0.19,<0.19.99', + 'scikit-learn>=0.20', 'scipy', ], )
Update to use scikit-learn>=<I>
py
diff --git a/abilian/web/views/object.py b/abilian/web/views/object.py index <HASH>..<HASH> 100644 --- a/abilian/web/views/object.py +++ b/abilian/web/views/object.py @@ -155,6 +155,12 @@ class ObjectEdit(ObjectView): #: submitted form data data = None + #: action name from form data + action = None + + #: b...
fix error when no action is found in form submitted data lead directly to self.cancel() -> self.redirect_to_view() without setting self.button
py
diff --git a/eventsourcing/tests/sequenced_item_tests/base.py b/eventsourcing/tests/sequenced_item_tests/base.py index <HASH>..<HASH> 100644 --- a/eventsourcing/tests/sequenced_item_tests/base.py +++ b/eventsourcing/tests/sequenced_item_tests/base.py @@ -288,8 +288,9 @@ class WithActiveRecordStrategies(AbstractDatastor...
Changed tests to teardown by truncating not dropping tables. This seems to halve the time of the test suite, when running without the tests marked as "notquick".
py
diff --git a/ceph_deploy/cli.py b/ceph_deploy/cli.py index <HASH>..<HASH> 100644 --- a/ceph_deploy/cli.py +++ b/ceph_deploy/cli.py @@ -7,7 +7,7 @@ import sys from . import exc from . import validate from . import sudo_pushy - +from .util import log LOG = logging.getLogger(__name__) @@ -82,12 +82,13 @@ def parse...
be more verbose for logging to the terminal
py
diff --git a/synapse/tests/test_lib_lmdb.py b/synapse/tests/test_lib_lmdb.py index <HASH>..<HASH> 100644 --- a/synapse/tests/test_lib_lmdb.py +++ b/synapse/tests/test_lib_lmdb.py @@ -30,6 +30,8 @@ class LmdbTest(SynTest): lenv = lmdb.open(dirn, writemap=True, max_dbs=128) metr = s_lmdb.Metri...
Add LMDB metric stat test
py
diff --git a/gubernator/appengine_config.py b/gubernator/appengine_config.py index <HASH>..<HASH> 100644 --- a/gubernator/appengine_config.py +++ b/gubernator/appengine_config.py @@ -15,6 +15,7 @@ import os from google.appengine.ext import vendor +from google.appengine.api import urlfetch # Add any libraries ins...
Increase Gubernator's url fetch deadline -- 5 seconds is too fast! This should avoid a lot of refreshes because some directory listing or download takes slightly too long.
py
diff --git a/git/__init__.py b/git/__init__.py index <HASH>..<HASH> 100644 --- a/git/__init__.py +++ b/git/__init__.py @@ -79,5 +79,8 @@ def refresh(path=None): #} END initialize git executable path ################# -refresh() +try: + refresh() +except Exception as exc: + raise ImportError('Failed to initial...
Fix exception on import in MacOS This is related to my fix in #<I>. Apparently, MacOS adds a git executable that is just a stub which displays an error. This gets past the try/except I added in #<I>, and allows all of the GitPython components to be imported, but since the executable is not *actually* git, it results i...
py
diff --git a/tests/test_baseapi.py b/tests/test_baseapi.py index <HASH>..<HASH> 100644 --- a/tests/test_baseapi.py +++ b/tests/test_baseapi.py @@ -407,7 +407,7 @@ class TestAPIMethods(object): def test_inventory(self, baseapi): inventory_body = [{ 'certname': 'test_certname', - 'ti...
:bug: Bad syntax for checked timestamp in inventory() unit test
py
diff --git a/src/graphs.py b/src/graphs.py index <HASH>..<HASH> 100644 --- a/src/graphs.py +++ b/src/graphs.py @@ -268,6 +268,8 @@ class Graph(object): self.equivalent_nodes[node] = (node,) def get_distance(self, node_a, node_b): + self.init_distances() + self.init_index() ...
Some extra function calls to make life easier
py
diff --git a/datasette/app.py b/datasette/app.py index <HASH>..<HASH> 100644 --- a/datasette/app.py +++ b/datasette/app.py @@ -641,10 +641,12 @@ class Datasette: }, } if using_pysqlite3: - try: - info["pysqlite3"] = pkg_resources.get_distribution("pysqlite3").ver...
Try pysqlite3-binary version as well, refs #<I>
py
diff --git a/mythril/laser/ethereum/transaction/symbolic.py b/mythril/laser/ethereum/transaction/symbolic.py index <HASH>..<HASH> 100644 --- a/mythril/laser/ethereum/transaction/symbolic.py +++ b/mythril/laser/ethereum/transaction/symbolic.py @@ -63,6 +63,7 @@ def _setup_global_state_for_execution(laser_evm, transactio...
Constraints need to be carried over in case a previous node exists
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 @@ -16,10 +16,10 @@ # If extensions (or modules to document with autodoc) are in another directory, # add these directories to sys.path here. If the directory is relative to the # do...
insert path to project in conf.py for autodoc
py
diff --git a/lib/bx/align/core.py b/lib/bx/align/core.py index <HASH>..<HASH> 100644 --- a/lib/bx/align/core.py +++ b/lib/bx/align/core.py @@ -360,9 +360,9 @@ def shuffle_columns( a ): c.text = ''.join( [ c.text[i] for i in mask ] ) def src_split( src ): # splits src into species,chrom - dot = src.rfind(...
Update align.core.src_split() to split species, chrom from the left.
py
diff --git a/tests/test_struct.py b/tests/test_struct.py index <HASH>..<HASH> 100644 --- a/tests/test_struct.py +++ b/tests/test_struct.py @@ -116,7 +116,7 @@ def test_no_longer_has_dict(Struct): def test_shadow_methods(Struct): if platform.python_implementation() == "PyPy": - method_str = "<bound method...
Fixed test that failed on pypy3
py
diff --git a/foolbox/models/caffe.py b/foolbox/models/caffe.py index <HASH>..<HASH> 100644 --- a/foolbox/models/caffe.py +++ b/foolbox/models/caffe.py @@ -1,5 +1,6 @@ from __future__ import absolute_import +import warnings from .base import DifferentiableModel from .. import utils @@ -16,6 +17,11 @@ class CaffeM...
added DeprecationWarning for Caffe
py
diff --git a/py/zk/zkocc.py b/py/zk/zkocc.py index <HASH>..<HASH> 100644 --- a/py/zk/zkocc.py +++ b/py/zk/zkocc.py @@ -2,6 +2,7 @@ import itertools import json import logging import os +import random from net import bsonrpc from net import gorpc @@ -81,6 +82,7 @@ class ZkOccConnection(object): def __init__(se...
Now zkocc.py connects to a random server in its list.
py
diff --git a/jaraco/mongodb/fixtures.py b/jaraco/mongodb/fixtures.py index <HASH>..<HASH> 100644 --- a/jaraco/mongodb/fixtures.py +++ b/jaraco/mongodb/fixtures.py @@ -17,11 +17,11 @@ def pytest_addoption(parser): @pytest.yield_fixture(scope='session') -def mongodb_instance(): +def mongodb_instance(request): if '...
Fix DeprecationWarning on late pytest
py
diff --git a/pyquil/tests/test_qpu.py b/pyquil/tests/test_qpu.py index <HASH>..<HASH> 100644 --- a/pyquil/tests/test_qpu.py +++ b/pyquil/tests/test_qpu.py @@ -214,10 +214,10 @@ def test_resolve_mem_references(gate_arithmetic_binaries, mock_qpu): def test_theta_and_beta(theta, beta): mock_qpu.write_memory(...
Update test in test_qpu to use SQRT, COS, SIN rather than sqrt, cos, sin (the latter of which can't be parsed) (#<I>)
py
diff --git a/master/buildbot/test/unit/test_secret_rendered_service.py b/master/buildbot/test/unit/test_secret_rendered_service.py index <HASH>..<HASH> 100644 --- a/master/buildbot/test/unit/test_secret_rendered_service.py +++ b/master/buildbot/test/unit/test_secret_rendered_service.py @@ -56,4 +56,5 @@ class TestRende...
Use assertRaises as context manager in test_secret_rendered_service
py
diff --git a/f5/bigip/ltm/test/test_rule.py b/f5/bigip/ltm/test/test_rule.py index <HASH>..<HASH> 100644 --- a/f5/bigip/ltm/test/test_rule.py +++ b/f5/bigip/ltm/test/test_rule.py @@ -102,7 +102,8 @@ def test_get_rule(rule): def test_get_rules(rule): - raise Exception + # TBD: write a test + pass def ...
Update test_rule.py Make incomplete unit tests pass instead of fail to get the build healthy.
py
diff --git a/treeherder/webapp/api/runnable_jobs.py b/treeherder/webapp/api/runnable_jobs.py index <HASH>..<HASH> 100644 --- a/treeherder/webapp/api/runnable_jobs.py +++ b/treeherder/webapp/api/runnable_jobs.py @@ -78,8 +78,16 @@ class RunnableJobsViewSet(viewsets.ViewSet): 'result': 'runnable'}) ...
Bug <I> - Skip taskcluster jobs without treeherder metadata in runnable jobs (#<I>)
py
diff --git a/easymode/i18n/meta.py b/easymode/i18n/meta.py index <HASH>..<HASH> 100644 --- a/easymode/i18n/meta.py +++ b/easymode/i18n/meta.py @@ -108,7 +108,7 @@ class DefaultFieldDescriptor(property): # the database does not have our localized data. # check if we have a translation, first get the ms...
When to_python returns a weird object on a field, it is now converted to unicode before it is used as a msgid.
py
diff --git a/openshift/dynamic/discovery.py b/openshift/dynamic/discovery.py index <HASH>..<HASH> 100644 --- a/openshift/dynamic/discovery.py +++ b/openshift/dynamic/discovery.py @@ -9,7 +9,7 @@ from abc import abstractmethod, abstractproperty from urllib3.exceptions import ProtocolError, MaxRetryError from openshi...
Ignore ServiceUnavailableError for an all resource group search (#<I>) There are situations where a given api service unrelated to the requested resource is unavailable and an ServiceUnavailableError exception is thrown. The change in this PR will allow resources to be found if the resource being requested is un...
py
diff --git a/FlowCal/io.py b/FlowCal/io.py index <HASH>..<HASH> 100644 --- a/FlowCal/io.py +++ b/FlowCal/io.py @@ -1342,7 +1342,7 @@ class FCSData(np.ndarray): for ch_idx, ch in enumerate(channels): PnR = float(fcs_file.text.get('$P{}R'.format(ch_idx + 1))) data_range.append([0., PnR ...
FCSData.resolution is now composed of integers.
py
diff --git a/example/settings.py b/example/settings.py index <HASH>..<HASH> 100644 --- a/example/settings.py +++ b/example/settings.py @@ -31,6 +31,7 @@ SECRET_KEY = 'abc123' PASSWORD_HASHERS = ('django.contrib.auth.hashers.UnsaltedMD5PasswordHasher', ) +MIDDLEWARE_CLASSES = () REST_FRAMEWORK = { 'PAGINATE...
Update example test settings. Adding MIDDLEWARE_CLASSES so Django <I> does not complain during the system check when running tests.
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 @@ -542,8 +542,9 @@ def job_from_file(cfg_file_path, username, log_level='info', exports='', job.save_params(params) del params['hazard_cal...
Improved the check on the maximum_distance
py
diff --git a/matrix_client/room.py b/matrix_client/room.py index <HASH>..<HASH> 100644 --- a/matrix_client/room.py +++ b/matrix_client/room.py @@ -40,7 +40,7 @@ class Room(object): """ return self.client.api.send_message(self.room_id, text) - def get_html_body(self, html, body=None, msgtype="m.te...
matrix_client: Rename get_html_body to get_html_content
py
diff --git a/autopep8.py b/autopep8.py index <HASH>..<HASH> 100755 --- a/autopep8.py +++ b/autopep8.py @@ -59,9 +59,13 @@ class FixPEP8(object): - w391 - w602,w603,w604 """ - def __init__(self, filename, options): + def __init__(self, filename, options, contents=None): self.filenam...
Avoid file IO in FixPEP8 if file contents is passed in.
py
diff --git a/tests/test_secrets.py b/tests/test_secrets.py index <HASH>..<HASH> 100644 --- a/tests/test_secrets.py +++ b/tests/test_secrets.py @@ -92,18 +92,14 @@ def test_counterspell_wild_pyromancer(): def test_dart_trap(): - game = prepare_game(CardClass.WARRIOR, CardClass.WARRIOR) + game = prepare_game(CardCla...
Make Dart Trap test more deterministic
py
diff --git a/baron/baron.py b/baron/baron.py index <HASH>..<HASH> 100644 --- a/baron/baron.py +++ b/baron/baron.py @@ -32,7 +32,7 @@ def _parse(tokens, print_function): import traceback traceback.print_exc(file=sys.stderr) sys.stderr.write("%s\n" % e) - sys.stderr.write("\nIt is not no...
[mod] update error message on parsing error since we don't use ast.py anymore
py
diff --git a/bin/wsdump.py b/bin/wsdump.py index <HASH>..<HASH> 100755 --- a/bin/wsdump.py +++ b/bin/wsdump.py @@ -59,7 +59,7 @@ class InteractiveConsole(code.InteractiveConsole): def write(self, data): sys.stdout.write("\033[2K\033[E") # sys.stdout.write("\n") - sys.stdout.write("\033[34m...
console decoration of wsdump.py inside InteractiveConsole
py
diff --git a/slickqa/data.py b/slickqa/data.py index <HASH>..<HASH> 100644 --- a/slickqa/data.py +++ b/slickqa/data.py @@ -210,6 +210,7 @@ class ResultsByStatus(micromodels.Model): NOT_TESTED = micromodels.IntegerField() SKIPPED = micromodels.IntegerField() NO_RESULT = micromodels.IntegerField() + CAN...
forgot the CANCELLED status on resultsByStatus, oops
py
diff --git a/python/hypertools/align.py b/python/hypertools/align.py index <HASH>..<HASH> 100644 --- a/python/hypertools/align.py +++ b/python/hypertools/align.py @@ -28,7 +28,7 @@ def align(data): assert all(isinstance(i, np.ndarray) for i in data) and type(data) is list and len(data)>1, "Input must be list of arr...
srm num features computed from the shape of the data
py
diff --git a/buku.py b/buku.py index <HASH>..<HASH> 100755 --- a/buku.py +++ b/buku.py @@ -2955,6 +2955,7 @@ def get_page_title(resp): charset = 'utf-8' try: + charset = 'utf-8' if 'content-type' in resp.headers: _, params = cgi.parse_header(resp.headers['content-type']) ...
chg: dev: use utf8 as default decoder
py
diff --git a/zipline/assets/asset_writer.py b/zipline/assets/asset_writer.py index <HASH>..<HASH> 100644 --- a/zipline/assets/asset_writer.py +++ b/zipline/assets/asset_writer.py @@ -98,7 +98,7 @@ class AssetDBWriter(with_metaclass(ABCMeta)): def write_all(self, engine, fuzzy_...
MAINT: Default constraints=True in AssetDBWriter
py
diff --git a/allauth/account/utils.py b/allauth/account/utils.py index <HASH>..<HASH> 100644 --- a/allauth/account/utils.py +++ b/allauth/account/utils.py @@ -70,7 +70,7 @@ def user_field(user, field, *args): """ Gets or sets (optional) user model fields. No-op if fields do not exist. """ - if field: ...
Extra check for user model fields (related to #<I>)
py