diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/salt/loader.py b/salt/loader.py
index <HASH>..<HASH> 100644
--- a/salt/loader.py
+++ b/salt/loader.py
@@ -5,10 +5,21 @@ Routines to set up a minion
import os
import sys
import imp
+import distutils.sysconfig
# Import cython
import pyximport; pyximport.install()
+def minion_mods(opts):
+ '''
+ ... | Add propper opt loading into the main loader | py |
diff --git a/ndb/msgprop.py b/ndb/msgprop.py
index <HASH>..<HASH> 100644
--- a/ndb/msgprop.py
+++ b/ndb/msgprop.py
@@ -8,6 +8,7 @@ from . import utils
__all__ = ['MessageProperty']
+# TODO: Use new methods that Rafe will send me.
protocols_registry = remote.Protocols.new_default()
default_protocol = 'protojson' ... | Address minor comments brought up in review. | py |
diff --git a/OpenPNM/Base/__Core__.py b/OpenPNM/Base/__Core__.py
index <HASH>..<HASH> 100644
--- a/OpenPNM/Base/__Core__.py
+++ b/OpenPNM/Base/__Core__.py
@@ -194,7 +194,7 @@ class Core(Base):
'''
#Check no duplicate or invalid locations
- locs = sp.unique(new_order.values())
+ locs = ... | Fixed a strange bug in reorder_models. I upgraded to numpy <I>, and now unique is now returning a tuple that must be indexed (like shape)...I don't think it was doing this before or else this bug would have appeared. | py |
diff --git a/MAVProxy/tools/mavflightview.py b/MAVProxy/tools/mavflightview.py
index <HASH>..<HASH> 100755
--- a/MAVProxy/tools/mavflightview.py
+++ b/MAVProxy/tools/mavflightview.py
@@ -664,7 +664,10 @@ if __name__ == "__main__":
try:
import faulthandler, signal
- faulthandler.register(signal.SI... | mavlfightview: fixed faulthandler have no register in windows | py |
diff --git a/source/awesome_tool/mvc/models/state_machine.py b/source/awesome_tool/mvc/models/state_machine.py
index <HASH>..<HASH> 100755
--- a/source/awesome_tool/mvc/models/state_machine.py
+++ b/source/awesome_tool/mvc/models/state_machine.py
@@ -99,6 +99,8 @@ class Selection(Observable):
@Observable.observed
... | Accept single model instead of list The selection class supports now single models in the set method and converts them automatically to a list. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -3,7 +3,7 @@
from setuptools import setup, find_packages
# Match releases to redis-py versions
-__version__ = '2.9.3'
+__version__ = '2.9.4'
# Jenkins will replace __build__ with a unique value.
__build__ = '' | Releasing <I> so bumping the version to <I>. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -84,7 +84,8 @@ extras_require = {
'pyproj >=1.9',
],
'dev': [
- 'nose >=1.3, <1.4',
+ 'nose >=1.3',
+ 'pytest >=4.5',
'flake8 >=3.5, <3.8',
'pdbpp',
'ipython'... | Add pytest to dev requirements | py |
diff --git a/tests/unit/utils/test_ssdp.py b/tests/unit/utils/test_ssdp.py
index <HASH>..<HASH> 100644
--- a/tests/unit/utils/test_ssdp.py
+++ b/tests/unit/utils/test_ssdp.py
@@ -196,3 +196,18 @@ class SSDPFactoryTestCase(TestCase):
assert 'Received bad signature from' in factory.log.debug.call_args[0][0]
... | Add unit test for wrong timestamp with no reply (quiet) | py |
diff --git a/dynamic_dynamodb/__init__.py b/dynamic_dynamodb/__init__.py
index <HASH>..<HASH> 100644
--- a/dynamic_dynamodb/__init__.py
+++ b/dynamic_dynamodb/__init__.py
@@ -65,6 +65,7 @@ class DynamicDynamoDBDaemon(Daemon):
# Ensure provisioning
for table_name, key_name in sorted(table_names... | added missing sleep statement fixes #<I> | py |
diff --git a/ailment/converter_vex.py b/ailment/converter_vex.py
index <HASH>..<HASH> 100644
--- a/ailment/converter_vex.py
+++ b/ailment/converter_vex.py
@@ -328,14 +328,17 @@ class VEXIRSBConverter(Converter):
manager.tyenv = irsb.tyenv
manager.block_addr = irsb.addr
- addr = None
+ ... | VEXConverter: No block should ever have None as its address. | py |
diff --git a/modeltranslation/models.py b/modeltranslation/models.py
index <HASH>..<HASH> 100644
--- a/modeltranslation/models.py
+++ b/modeltranslation/models.py
@@ -15,8 +15,14 @@ from modeltranslation.translator import translator
try:
import translation
except ImportError:
- sys.stderr.write("modeltransla... | Added workaround for swallowed ImportErrors by printing a traceback explicitly. Mostly resolves issue <I>. | py |
diff --git a/tests/seattle_benchmark.py b/tests/seattle_benchmark.py
index <HASH>..<HASH> 100644
--- a/tests/seattle_benchmark.py
+++ b/tests/seattle_benchmark.py
@@ -31,17 +31,16 @@ def run_tests(data):
means = {}
for jsonfile in ["../transit/seattle-data0.json", "../transit/seattle-data0.jsonv"]:
- fd = open(j... | nitpick: file open/close through with statement. | py |
diff --git a/path.py b/path.py
index <HASH>..<HASH> 100644
--- a/path.py
+++ b/path.py
@@ -1121,7 +1121,15 @@ class Path(text_type):
return self
def chmod(self, mode):
- """ .. seealso:: :func:`os.chmod` """
+ """
+ Set the mode. May be the new mode (os.chmod behavior) or a `symboli... | #<I>: Add support for setting the mode using symbolic modes. | py |
diff --git a/pyocd/debug/breakpoints/manager.py b/pyocd/debug/breakpoints/manager.py
index <HASH>..<HASH> 100644
--- a/pyocd/debug/breakpoints/manager.py
+++ b/pyocd/debug/breakpoints/manager.py
@@ -1,5 +1,6 @@
# pyOCD debugger
# Copyright (c) 2015-2019 Arm Limited
+# Copyright (c) 2021 Chris Reed
# SPDX-License-Ide... | BreakpointManager: fix bug in checking if HW BP can be added on flush. The to-be-added hardware breakpoints were not counted correctly due to not using the correct variable (probable copy/paste error). | py |
diff --git a/paegan/transport/shoreline.py b/paegan/transport/shoreline.py
index <HASH>..<HASH> 100644
--- a/paegan/transport/shoreline.py
+++ b/paegan/transport/shoreline.py
@@ -415,7 +415,7 @@ class ShorelineWFS(Shoreline):
d = {sube.tag[28:]:sube.text or sube.attrib or None for sube in e.getchildren... | Round bounding box to 4 dec places | py |
diff --git a/asammdf/gui/widgets/tabular_base.py b/asammdf/gui/widgets/tabular_base.py
index <HASH>..<HASH> 100644
--- a/asammdf/gui/widgets/tabular_base.py
+++ b/asammdf/gui/widgets/tabular_base.py
@@ -584,7 +584,7 @@ class HeaderView(QtWidgets.QTableView):
self.selectionModel().selectionChanged.connect(
... | disable set_spans to further improve loading time | py |
diff --git a/salt/modules/grains.py b/salt/modules/grains.py
index <HASH>..<HASH> 100644
--- a/salt/modules/grains.py
+++ b/salt/modules/grains.py
@@ -2,6 +2,8 @@
Control aspects of the grains data
'''
+from math import floor
+
# Seed the grains dict so cython will build
__grains__ = {}
@@ -12,13 +14,16 @@ __ou... | Tweak sanitizer to work with serials of any length | py |
diff --git a/glances/__init__.py b/glances/__init__.py
index <HASH>..<HASH> 100644
--- a/glances/__init__.py
+++ b/glances/__init__.py
@@ -95,7 +95,15 @@ def main():
Run it...
"""
# Setup translations
- locale.setlocale(locale.LC_ALL, '')
+ try:
+ locale.setlocale(locale.LC_ALL, '')
+ exc... | Avoid crashing if LC_ALL is not defined by user (issue #<I>) | py |
diff --git a/symfit/core/fit.py b/symfit/core/fit.py
index <HASH>..<HASH> 100644
--- a/symfit/core/fit.py
+++ b/symfit/core/fit.py
@@ -352,7 +352,7 @@ class CallableModel(BaseModel):
param_vals = [bound_arguments.arguments[param.name] for param in self.params]
param_vals = np.array(param_vals, dtype=f... | Fixed the issue with py<I>. Floor division is a thing. | py |
diff --git a/tests/test_error.py b/tests/test_error.py
index <HASH>..<HASH> 100644
--- a/tests/test_error.py
+++ b/tests/test_error.py
@@ -13,15 +13,21 @@ class StripeErrorTests(StripeTestCase):
self.assertEqual(u'öre', six.text_type(err))
if six.PY2:
self.assertEqual('\xc3\xb6re', str(er... | Adds a couple more error assertions for Python 3 This is basically a no-op, but just adds a few more test case branches for Python 3 to demonstrate what `str(...)` on an error should be expected to return in that version (instead of just on Python 2). | py |
diff --git a/openid/store/filestore.py b/openid/store/filestore.py
index <HASH>..<HASH> 100644
--- a/openid/store/filestore.py
+++ b/openid/store/filestore.py
@@ -396,18 +396,25 @@ class FileOpenIDStore(OpenIDStore):
() -> NoneType
"""
+ for assoc_filename, assoc in self._allAssocs():
+ ... | [project @ openid.filestore.FileOpenIDStore.cleanupNonces: added] | py |
diff --git a/irc/dict.py b/irc/dict.py
index <HASH>..<HASH> 100644
--- a/irc/dict.py
+++ b/irc/dict.py
@@ -53,25 +53,25 @@ class IRCDict(KeyTransformingDict):
>>> d = IRCDict({'[This]': 'that'}, A='foo')
The dict maintains the original case:
- >>> d.keys()
- [u'A', u'[This]']
+ >>> '[This]' in ''.j... | Fixed failing tests in irc.client on Python <I> | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -25,7 +25,6 @@ tests_require = [
'isort>=4.2.2',
'mock>=1.3.0',
'pydocstyle>=1.0.0',
- 'pytest-cache>=1.0',
'pytest-cov>=1.8.0',
'pytest-pep8>=1.0.6',
'pytest>=2.8.3', | installation: removed pytest-cache dependency | py |
diff --git a/tests/custodia.py b/tests/custodia.py
index <HASH>..<HASH> 100644
--- a/tests/custodia.py
+++ b/tests/custodia.py
@@ -27,10 +27,8 @@ class CustodiaTests(unittest.TestCase):
@classmethod
def tearDownClass(self):
- try:
- os.killpg(self.custodia_process.pid, signal.SIGTERM)
- ... | kill() and waitpid() custodia process The test suite leaves child processes behind. The teardown class method now call Popen.kill() and Popen.wait() to kill and wait for its child process. | py |
diff --git a/tests/integration/test_orders_api.py b/tests/integration/test_orders_api.py
index <HASH>..<HASH> 100644
--- a/tests/integration/test_orders_api.py
+++ b/tests/integration/test_orders_api.py
@@ -647,7 +647,7 @@ async def test_download_order_state(tmpdir, order_description, oid, session):
@respx.mock
@py... | Test for no files downloaded, not raised exception. | py |
diff --git a/python_modules/libraries/dagster-postgres/dagster_postgres/event_log/alembic/versions/4ea2b1f6f67b_change_varchar_to_text.py b/python_modules/libraries/dagster-postgres/dagster_postgres/event_log/alembic/versions/4ea2b1f6f67b_change_varchar_to_text.py
index <HASH>..<HASH> 100644
--- a/python_modules/librar... | Fix create date for migration script Summary: Test complains if the postgres migration scripts are not exactly the same. The diff was the creation date, so we just fix that. Test Plan: bk Reviewers: dgibson, nate Reviewed By: dgibson Differential Revision: <URL> | py |
diff --git a/contentful/cda/version.py b/contentful/cda/version.py
index <HASH>..<HASH> 100644
--- a/contentful/cda/version.py
+++ b/contentful/cda/version.py
@@ -1 +1 @@
-__version__ = '0.9.3'
+__version__ = '0.9.4d1' | Prepare for next development iteration: <I>d1 | py |
diff --git a/install.py b/install.py
index <HASH>..<HASH> 100644
--- a/install.py
+++ b/install.py
@@ -292,10 +292,10 @@ def install(inst, version):
print(f'Please activate the venv with source {inst.VENV}/bin/activate')
# create systemd services
- if inst is server and os.path.exists('/lib/syste... | change systemd check to /usr/lib/systemd as this is the standard | py |
diff --git a/connor/connor.py b/connor/connor.py
index <HASH>..<HASH> 100644
--- a/connor/connor.py
+++ b/connor/connor.py
@@ -200,7 +200,6 @@ class TagFamily(object):
right_consensus_align = deepcopy(alignments[0].right_alignment, {})
left_consensus_align.query_sequence = left_consensus_sequence
... | CON-5 (cgates): Removed obselete debugging call | py |
diff --git a/ntfy/config.py b/ntfy/config.py
index <HASH>..<HASH> 100644
--- a/ntfy/config.py
+++ b/ntfy/config.py
@@ -28,7 +28,7 @@ def load_config(config_path=DEFAULT_CONFIG):
if isfile(expanduser('~/.ntfy.json')):
logger.error('~/.ntfy.json no longer supported, use {}'.format(
... | It isn't a problem if you don't have a config | py |
diff --git a/acceptancetests/jujupy/workloads.py b/acceptancetests/jujupy/workloads.py
index <HASH>..<HASH> 100644
--- a/acceptancetests/jujupy/workloads.py
+++ b/acceptancetests/jujupy/workloads.py
@@ -117,14 +117,14 @@ def deploy_simple_server_to_new_model(
new_model = client.add_model(client.env.clone(model_nam... | Deploy nrpe and nagios with --force; | py |
diff --git a/mpv-test.py b/mpv-test.py
index <HASH>..<HASH> 100755
--- a/mpv-test.py
+++ b/mpv-test.py
@@ -622,25 +622,25 @@ class RegressionTests(MpvTestCase):
handler(*args, **kw)
t = T()
- m.loop = 'inf'
+ m.slang = 'ru'
time.sleep(0.5)
- m.observe_propert... | tests: Fix test_instance_method_property_observer (#<I>) The loop property was a poor choice here since setting it messes with libmpv's event loop, leading to property change observer events being dropped. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -26,7 +26,7 @@ with open('README.md') as fp:
setup(
name = 'galoshes',
- version = '0.1.5',
+ version = '0.2.0',
packages = find_packages(),
install_requires = ['numpy>=1.7',
], | Version <I> with Python <I>, <I>, <I>, <I> support. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -29,6 +29,5 @@ setup(
license = 'New BSD License',
platforms = ['OS Independent'],
classifiers = CLASSIFIERS,
- install_requires = ['Django>=1.3.1'],
packages = find_packages()
)
\ No newline... | Removing `install_requires` because it forces Django to be downloaded when installing via `pip`. Every time django-gravatar is installed, the whole Django application installs as well. No bueno. | py |
diff --git a/gitlab/__init__.py b/gitlab/__init__.py
index <HASH>..<HASH> 100644
--- a/gitlab/__init__.py
+++ b/gitlab/__init__.py
@@ -2615,7 +2615,7 @@ class Gitlab(object):
return False
@staticmethod
- def getall(fn, *args, page=None, **kwargs):
+ def getall(fn, page=None, *args, **kwargs):
... | Fixed getall to work with <I> again | py |
diff --git a/tests/labware/test_containers.py b/tests/labware/test_containers.py
index <HASH>..<HASH> 100644
--- a/tests/labware/test_containers.py
+++ b/tests/labware/test_containers.py
@@ -282,13 +282,13 @@ class ContainerTest(unittest.TestCase):
a2 = rack.tip_offset(1)
a3 = rack.tip_offset(2)
... | I always forget to zero-index things... | py |
diff --git a/gwpy/tests/test_timeseries.py b/gwpy/tests/test_timeseries.py
index <HASH>..<HASH> 100644
--- a/gwpy/tests/test_timeseries.py
+++ b/gwpy/tests/test_timeseries.py
@@ -160,7 +160,8 @@ class TimeSeriesTestMixin(object):
# write a cache file and read that
try:
- with tempfile.Nam... | tests: fixed python3 compatibility issue in tests | py |
diff --git a/python/ccxt/base/exchange.py b/python/ccxt/base/exchange.py
index <HASH>..<HASH> 100644
--- a/python/ccxt/base/exchange.py
+++ b/python/ccxt/base/exchange.py
@@ -1342,12 +1342,10 @@ class Exchange(object):
trades = self.fetch_trades(symbol, since, limit, params)
return self.build_ohlcv(tr... | base/exchange.py fetchStatus → fetch_status + minor simplification | py |
diff --git a/littlechef/runner.py b/littlechef/runner.py
index <HASH>..<HASH> 100644
--- a/littlechef/runner.py
+++ b/littlechef/runner.py
@@ -138,6 +138,13 @@ def _node_runner():
if '@' in env.host_string:
env.user = env.host_string.split('@')[0]
node = lib.get_node(env.host_string)
+
+ # set the... | Set the shell based on whether the target OS has /bin/bash | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -20,7 +20,7 @@ setup(
author_email='dev@intersis.org',
install_requires=[
'django>=1.6',
- 'djangorestframework>=3.0.0, <3.0.5',
+ 'djangorestframework>=3.0.0, <=3.8',
],
classifiers=... | Update allowed DRF version in setup.py. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -12,17 +12,18 @@ from distutils.extension import Extension
import numpy
-# If the user wants to build, the user is going to need cython
-USE_CYTHON = (sys.argv[1] in ['build', 'sdist'])
+# If we're building from Git (no P... | Use PKG-INFO file, not argv[1], to decide whether to cythonize. We want to run Cython if building from Git, and we want the source distribution to have the .cpp files pregenerated. Doesn't matter what setup.py command you're using, or what your environment looks like. | py |
diff --git a/spyderlib/workers/updates.py b/spyderlib/workers/updates.py
index <HASH>..<HASH> 100644
--- a/spyderlib/workers/updates.py
+++ b/spyderlib/workers/updates.py
@@ -6,7 +6,7 @@
# (see spyderlib/__init__.py for details)
import json
-
+import ssl
from spyderlib import __version__
from spyderlib.config.b... | Opt out of certificate verification on check for updates | py |
diff --git a/oauth2client/django_orm.py b/oauth2client/django_orm.py
index <HASH>..<HASH> 100644
--- a/oauth2client/django_orm.py
+++ b/oauth2client/django_orm.py
@@ -35,13 +35,15 @@ class CredentialsField(models.Field):
return "TextField"
def to_python(self, value):
- if not value:
+ if value is None:
... | Fix None handling in Django fields. Reviewed in <URL> | py |
diff --git a/tasks.py b/tasks.py
index <HASH>..<HASH> 100644
--- a/tasks.py
+++ b/tasks.py
@@ -246,12 +246,12 @@ def log_ver(ctx):
@task
-def release(ctx, notest=False, nodoc=False, pypi_username="Shyue.Ping.Ong"):
+def release(ctx, notest=False, nodoc=False):
ctx.run("rm -r dist build pymatgen.egg-info", war... | Remove unnecessary pypi_username kwarg now TWINE_USERNAME is used | py |
diff --git a/tests/cell.py b/tests/cell.py
index <HASH>..<HASH> 100644
--- a/tests/cell.py
+++ b/tests/cell.py
@@ -293,6 +293,26 @@ def test_bounding_box():
assert_bb(cell6.get_bounding_box(), ((2, 0), (3, 1)))
+ cell7a = gdspy.Cell("7a")
+
+ assert cell7a.get_bounding_box() is None
+
+ cell7b = gdspy... | test case 7b will cause master to fail but this fixed version will pass | py |
diff --git a/gitlint/utils.py b/gitlint/utils.py
index <HASH>..<HASH> 100644
--- a/gitlint/utils.py
+++ b/gitlint/utils.py
@@ -71,7 +71,7 @@ def getpreferredencoding():
# This scenario is fairly common on Windows where git sets LC_CTYPE=C when invoking the commit-msg hook, which
# is not a valid encod... | Fix pypy pylint(no-member) failure in CI (#<I>) pylint is not able to find the member statically. It means that the lookup member is created dynamically in the pypy implementation | py |
diff --git a/tests/support.py b/tests/support.py
index <HASH>..<HASH> 100644
--- a/tests/support.py
+++ b/tests/support.py
@@ -194,7 +194,7 @@ class taskforce(object):
raise e
if self.proc.poll() is not None: return ''
- def search(self, regex, limit=30, iolimit=10, log=None):
+ def search(self, regex, limit=4... | needs more lax iolimit when log level is warning or higher | py |
diff --git a/tests/integration/modules/gem.py b/tests/integration/modules/gem.py
index <HASH>..<HASH> 100644
--- a/tests/integration/modules/gem.py
+++ b/tests/integration/modules/gem.py
@@ -27,7 +27,10 @@ def check_status():
'''
Check the status of the rubygems source
'''
- ret = salt.utils.http.quer... | Skip Ruby tests on exception in pre-req check | py |
diff --git a/proso/release.py b/proso/release.py
index <HASH>..<HASH> 100644
--- a/proso/release.py
+++ b/proso/release.py
@@ -1 +1 @@
-VERSION = '3.15.0.dev'
+VERSION = '3.15.0' | release a new version <I> | py |
diff --git a/graphene/core/classtypes/objecttype.py b/graphene/core/classtypes/objecttype.py
index <HASH>..<HASH> 100644
--- a/graphene/core/classtypes/objecttype.py
+++ b/graphene/core/classtypes/objecttype.py
@@ -42,17 +42,18 @@ class ObjectTypeMeta(FieldsClassTypeMeta):
class ObjectType(six.with_metaclass(Objec... | Fixed default in DjangoConnection | py |
diff --git a/internetarchive/item.py b/internetarchive/item.py
index <HASH>..<HASH> 100644
--- a/internetarchive/item.py
+++ b/internetarchive/item.py
@@ -464,7 +464,7 @@ class File(object):
fp.write(data.read())
- # download()
+ # delete()
#_____________________________________... | Fixed minor typo in docstring. | py |
diff --git a/regions/io/fits/read.py b/regions/io/fits/read.py
index <HASH>..<HASH> 100644
--- a/regions/io/fits/read.py
+++ b/regions/io/fits/read.py
@@ -201,6 +201,9 @@ class FITSRegionRowParser():
for x, y in zip(coords[0], coords[1]):
coords_new += [x, y]
coords = coords_n... | When reading FITS box, add a <I> rotation angle This makes it simpler to be consistent later on. | py |
diff --git a/selene/support/webdriver.py b/selene/support/webdriver.py
index <HASH>..<HASH> 100644
--- a/selene/support/webdriver.py
+++ b/selene/support/webdriver.py
@@ -37,7 +37,7 @@ class Help:
html = self._driver.page_source
try:
- with open(file, 'w') as f:
+ with open(fil... | Fixed UnicodeEncodeError: 'charmap' codec UnicodeEncodeError: 'charmap' codec can't encode character '\u<I>' in position <I>: character maps to <undefined> | py |
diff --git a/client/sources/ok_test/sqlite.py b/client/sources/ok_test/sqlite.py
index <HASH>..<HASH> 100644
--- a/client/sources/ok_test/sqlite.py
+++ b/client/sources/ok_test/sqlite.py
@@ -267,6 +267,7 @@ class SqliteConsole(interpreter.Console):
class SqliteSuite(doctest.DoctestSuite):
console_type = SqliteC... | add TODO about ordered on cases not suites | py |
diff --git a/bcbio/broad/__init__.py b/bcbio/broad/__init__.py
index <HASH>..<HASH> 100644
--- a/bcbio/broad/__init__.py
+++ b/bcbio/broad/__init__.py
@@ -241,10 +241,8 @@ class BroadRunner:
params.extend(["-nt", str(cores)])
elif prog in support_nct:
params.extend(["-nct"... | GATK: ensure memory scaling for BaseRecalibrator Scale memory usage along with cores when running BaseRecalibrator. Fixes #<I> | py |
diff --git a/nose/test_diskdf.py b/nose/test_diskdf.py
index <HASH>..<HASH> 100644
--- a/nose/test_diskdf.py
+++ b/nose/test_diskdf.py
@@ -47,6 +47,17 @@ def test_surfaceSigmaProfile_formatStringParams():
assert essp.formatStringParams()[2] == r'%6.4f', "surfaceSigmaProfile's formatStringParams does not behave as ... | test diskdf setup with explicit surfaceSigmaProfile class | py |
diff --git a/tornado/stack_context.py b/tornado/stack_context.py
index <HASH>..<HASH> 100644
--- a/tornado/stack_context.py
+++ b/tornado/stack_context.py
@@ -259,8 +259,9 @@ def wrap(fn):
exc = _handle_exception(top, exc)
else:
# Otherwise take shorter path and run stack ... | Don't use range for performance reasons | py |
diff --git a/autotime/__init__.py b/autotime/__init__.py
index <HASH>..<HASH> 100644
--- a/autotime/__init__.py
+++ b/autotime/__init__.py
@@ -23,7 +23,7 @@ class LineWatcher(object):
def stop(self):
delta = monotonic() - self.start_time
- print('time: {}'.format(format_delta(delta)))
+ pr... | Fix printing 'time: <I> µs' on py<I> | py |
diff --git a/setuptools/command/egg_info.py b/setuptools/command/egg_info.py
index <HASH>..<HASH> 100644
--- a/setuptools/command/egg_info.py
+++ b/setuptools/command/egg_info.py
@@ -610,12 +610,13 @@ class manifest_maker(sdist):
def _safe_data_files(self, build_py):
"""
- The parent class implem... | Reformat docstring and rewrite in imperative voice. | py |
diff --git a/b3j0f/annotation/__init__.py b/b3j0f/annotation/__init__.py
index <HASH>..<HASH> 100755
--- a/b3j0f/annotation/__init__.py
+++ b/b3j0f/annotation/__init__.py
@@ -366,7 +366,7 @@ class Annotation(object):
exclude = () if exclude is None else exclude
- for annotation_cls in annotations_in... | :fix: bug while iterating a dictionary in the Annotation | py |
diff --git a/TeamComp/persist/config.py b/TeamComp/persist/config.py
index <HASH>..<HASH> 100644
--- a/TeamComp/persist/config.py
+++ b/TeamComp/persist/config.py
@@ -14,12 +14,12 @@ class JSONConfigEncoder(JSONEncoder):
def default(self, o):
if hasattr(o, '__iter__'):
- return self.encode([x... | Fixed a a bug in the JSONConfigEncoder. It was returning json encoded objects instead of objects, leading them to be converted again to strings | py |
diff --git a/instabot/bot/bot_follow.py b/instabot/bot/bot_follow.py
index <HASH>..<HASH> 100644
--- a/instabot/bot/bot_follow.py
+++ b/instabot/bot/bot_follow.py
@@ -36,8 +36,9 @@ def follow_users(self, user_ids):
# Remove skipped and followed list from user_ids
user_ids = list(set(user_ids) - followed.set... | Towards not hardcoding the filenames | py |
diff --git a/shinken/util.py b/shinken/util.py
index <HASH>..<HASH> 100644
--- a/shinken/util.py
+++ b/shinken/util.py
@@ -59,7 +59,11 @@ def get_sec_from_morning(t):
#@memoized
def get_start_of_day(year, month_id, day):
start_time = (year, month_id, day, 00, 00, 00, 0, 0, -1)
- start_time_epoch = time.mktime... | *Catch exceptions caused by mktime(<I>,1,1,...) on Windows | py |
diff --git a/tests/functional/test_rule_modifiers.py b/tests/functional/test_rule_modifiers.py
index <HASH>..<HASH> 100644
--- a/tests/functional/test_rule_modifiers.py
+++ b/tests/functional/test_rule_modifiers.py
@@ -66,5 +66,21 @@ def test_ws():
metamodel.model_from_str("entity Person first second")
... | Added one more test for rule ws. | py |
diff --git a/safe/common/qgis_interface.py b/safe/common/qgis_interface.py
index <HASH>..<HASH> 100644
--- a/safe/common/qgis_interface.py
+++ b/safe/common/qgis_interface.py
@@ -53,6 +53,8 @@ class QgisInterface(QObject):
QgsMapLayerRegistry.instance().layersAdded.connect(self.addLayers)
# noinspecti... | Remove layers from canvas before they get deleted | py |
diff --git a/test/runtest.py b/test/runtest.py
index <HASH>..<HASH> 100644
--- a/test/runtest.py
+++ b/test/runtest.py
@@ -1328,10 +1328,11 @@ class SchedulingAlgorithm(unittest.TestCase):
def testLoadBalancing(self):
# This test ensures that tasks are being assigned to all local schedulers
# in a roughly ... | Loadbalancing Test issue (#<I>) * Limiting number of CPUs in loadbalancing test * fixes as requested | py |
diff --git a/config_resolver/core.py b/config_resolver/core.py
index <HASH>..<HASH> 100644
--- a/config_resolver/core.py
+++ b/config_resolver/core.py
@@ -272,6 +272,8 @@ class Config(ConfigParser): # pylint: disable = too-many-ancestors
**kwargs):
# pylint: disable = too-many-arguments
... | Fix crash on "None" search path | py |
diff --git a/pytorch2keras/normalization_layers.py b/pytorch2keras/normalization_layers.py
index <HASH>..<HASH> 100644
--- a/pytorch2keras/normalization_layers.py
+++ b/pytorch2keras/normalization_layers.py
@@ -100,6 +100,7 @@ def convert_instancenorm(params, w_name, scope_name, inputs, layers, weights, na
bet... | Fix problem with normalization layer lambda. | py |
diff --git a/deal/_testing.py b/deal/_testing.py
index <HASH>..<HASH> 100644
--- a/deal/_testing.py
+++ b/deal/_testing.py
@@ -77,11 +77,6 @@ def get_excs(func: typing.Any) -> typing.Iterator[typing.Type[Exception]]:
obj = cell.cell_contents
if isinstance(obj, Raises):
... | do not suppress inner pre-contract errors | py |
diff --git a/cycy/target.py b/cycy/target.py
index <HASH>..<HASH> 100644
--- a/cycy/target.py
+++ b/cycy/target.py
@@ -24,4 +24,4 @@ def untranslated_main():
"""
import sys
- sys.exit(main(sys.argv[1:]))
+ sys.exit(main(sys.argv)) | Whoops, takes the whole argv. | py |
diff --git a/pytablewriter/_logger/_logger.py b/pytablewriter/_logger/_logger.py
index <HASH>..<HASH> 100644
--- a/pytablewriter/_logger/_logger.py
+++ b/pytablewriter/_logger/_logger.py
@@ -48,7 +48,7 @@ def set_logger(is_enable: bool, propagation_depth: int = 1) -> None:
def set_log_level(log_level):
# deprec... | Suppress unintended logging output | py |
diff --git a/runtests.py b/runtests.py
index <HASH>..<HASH> 100644
--- a/runtests.py
+++ b/runtests.py
@@ -42,10 +42,7 @@ def runtests():
pass
argv = [sys.argv[0], 'test']
- try:
- execute_from_command_line(argv)
- except:
- pass
-
+ return execute_from_command_line(argv)
+
i... | fix tests always "succeed" The problem is that runtests.py used in tox always returns with exitcode 0 whatever happens. Tox (and in extension Travis) needs an exitcode != 0 to be able to know that something went wrong. | py |
diff --git a/scripts/build_handlebars_templates.py b/scripts/build_handlebars_templates.py
index <HASH>..<HASH> 100755
--- a/scripts/build_handlebars_templates.py
+++ b/scripts/build_handlebars_templates.py
@@ -68,7 +68,7 @@ try:
# Write the parts to files to the temporary directory, so that we can pass them to ... | Additional python change Review <I> by @neumino | py |
diff --git a/sensorimotor/experiments/capacity/experiment.py b/sensorimotor/experiments/capacity/experiment.py
index <HASH>..<HASH> 100755
--- a/sensorimotor/experiments/capacity/experiment.py
+++ b/sensorimotor/experiments/capacity/experiment.py
@@ -77,7 +77,7 @@ DEFAULTS = {
"initConnectedPct": 0.5
}
}
-VERB... | Turn down verbosity by default | py |
diff --git a/app/actions/mzidtsv/prot2gene.py b/app/actions/mzidtsv/prot2gene.py
index <HASH>..<HASH> 100644
--- a/app/actions/mzidtsv/prot2gene.py
+++ b/app/actions/mzidtsv/prot2gene.py
@@ -13,7 +13,9 @@ def add_genes_to_psm_table(psmfn, oldheader, fastafn):
for psm in tsvreader.generate_tsv_psms(psmfn, oldheader... | Do not report duplicates of genes when matching proteins to genes | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -8,7 +8,7 @@ os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
setup(
name='django-easy-timezones',
- version='0.2.0',
+ version='0.3.0',
packages=['easy_timezones'],
instal... | <I> - push initial ipv6 support. needs tests still. | py |
diff --git a/src/satosa/micro_services/processors/scope_processor.py b/src/satosa/micro_services/processors/scope_processor.py
index <HASH>..<HASH> 100644
--- a/src/satosa/micro_services/processors/scope_processor.py
+++ b/src/satosa/micro_services/processors/scope_processor.py
@@ -17,7 +17,4 @@ class ScopeProcessor(Ba... | Modified according to @c<I>kiemon5ter comment | py |
diff --git a/tensorflow_probability/python/distributions/cauchy.py b/tensorflow_probability/python/distributions/cauchy.py
index <HASH>..<HASH> 100644
--- a/tensorflow_probability/python/distributions/cauchy.py
+++ b/tensorflow_probability/python/distributions/cauchy.py
@@ -28,6 +28,7 @@ from tensorflow_probability.pyt... | Update Cauchy to use internally-stateless sampling. PiperOrigin-RevId: <I> | py |
diff --git a/pkg_resources/__init__.py b/pkg_resources/__init__.py
index <HASH>..<HASH> 100644
--- a/pkg_resources/__init__.py
+++ b/pkg_resources/__init__.py
@@ -1725,10 +1725,14 @@ class DefaultProvider(EggProvider):
with open(path, 'rb') as stream:
return stream.read()
-register_loader_type(t... | Pull up DefaultProvider registration into a classmethod. | py |
diff --git a/src/test_mongolock.py b/src/test_mongolock.py
index <HASH>..<HASH> 100644
--- a/src/test_mongolock.py
+++ b/src/test_mongolock.py
@@ -73,7 +73,7 @@ def test_context_raises_if_locked(lock):
def test_touch(lock):
dtnow = datetime.utcnow()
lock.lock('key', 'owner', expire=1)
- lock.touch('key', ... | tests were updated in order to pass with new touch | py |
diff --git a/onecodex/version.py b/onecodex/version.py
index <HASH>..<HASH> 100644
--- a/onecodex/version.py
+++ b/onecodex/version.py
@@ -1 +1 @@
-__version__ = '0.4.4'
+__version__ = '0.4.5' | Bump for version <I> | py |
diff --git a/psiturk/models.py b/psiturk/models.py
index <HASH>..<HASH> 100644
--- a/psiturk/models.py
+++ b/psiturk/models.py
@@ -81,7 +81,7 @@ class Participant(Base):
def get_event_data(self):
try:
eventdata = json.loads(self.datastring)["eventdata"]
- except TypeError, ValueError:
... | Added more exception handling to loading questionnaire data because it was null | py |
diff --git a/examples/neural_net.py b/examples/neural_net.py
index <HASH>..<HASH> 100644
--- a/examples/neural_net.py
+++ b/examples/neural_net.py
@@ -11,13 +11,13 @@ def make_nn_funs(layer_sizes, L2_reg):
shapes = zip(layer_sizes[:-1], layer_sizes[1:])
N = sum((m+1)*n for m, n in shapes)
- def unpack_la... | rename params -> W_vect for consistency | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -1,6 +1,13 @@
from os import path
from setuptools import setup, find_packages
+try:
+ from django.utils import six
+except ImportError:
+ REQUIRE_SIX = True
+else:
+ REQUIRE_SIX = False
+
with open(path.join(path... | setup.py require `six` with django < <I> | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -66,7 +66,7 @@ with open('README.rst') as f:
# especially for end-users (non-developers) who use pip to install hangups.
install_requires = [
'ConfigArgParse==0.11.0',
- 'aiohttp>=1.2,<1.3',
+ 'aiohttp>=1.2,<2',
... | loosen aiohttp version restriction better compatibility with other modern libraries | py |
diff --git a/src/nlpia/loaders.py b/src/nlpia/loaders.py
index <HASH>..<HASH> 100644
--- a/src/nlpia/loaders.py
+++ b/src/nlpia/loaders.py
@@ -743,9 +743,9 @@ def wc(f, verbose=False, nrows=None):
tqdm_prog = tqdm if verbose else no_tqdm
with ensure_open(f, mode='r') as fin:
for i, line in tqdm_prog(... | obey nrows within read_txt and read_csv | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -45,7 +45,7 @@ try:
import Cython
from Cython.Distutils import build_ext
- if Cython.__version__ < '0.18':
+ if Cython.__version__ < '0.28':
raise ImportError()
except ImportError:
print( | Bump minimum cython to <I> | py |
diff --git a/pfurl/pfurl.py b/pfurl/pfurl.py
index <HASH>..<HASH> 100644
--- a/pfurl/pfurl.py
+++ b/pfurl/pfurl.py
@@ -148,6 +148,8 @@ class Pfurl():
if key == 'version': self.str_version = val
if key == 'desc': self.str_desc ... | Fix b_quiet flag in new debug object. | py |
diff --git a/salt/cloud/clouds/nova.py b/salt/cloud/clouds/nova.py
index <HASH>..<HASH> 100644
--- a/salt/cloud/clouds/nova.py
+++ b/salt/cloud/clouds/nova.py
@@ -639,7 +639,7 @@ def create(vm_):
networkname = rackconnectv3
for network in node['addresses'].get(networkname, []):
... | make sure to set access_ip Note: ssh_interface has to be in the provider for this to work with map files, right now at least | py |
diff --git a/salt/utils/http.py b/salt/utils/http.py
index <HASH>..<HASH> 100644
--- a/salt/utils/http.py
+++ b/salt/utils/http.py
@@ -59,6 +59,12 @@ try:
except ImportError:
HAS_MSGPACK = False
+try:
+ import certifi
+ HAS_CERTIFI = True
+except ImportError:
+ HAS_CERTIFI = False
+
log = logging.getL... | Added certifi to fix ssl bug in windows | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -52,8 +52,6 @@ setup(
packages=[
'qinfer',
'qinfer._lib',
- 'qinfer.examples',
- 'qinfer.ui',
'qinfer.experimental',
'qinfer.tomography'
], | Removed qinfer.examples and qinfer.ui from setup packages. | py |
diff --git a/figgypy/config.py b/figgypy/config.py
index <HASH>..<HASH> 100644
--- a/figgypy/config.py
+++ b/figgypy/config.py
@@ -51,14 +51,11 @@ class Config(object):
def _get_file(self, f):
"""Get a config file if possible"""
if os.path.isabs(f):
- print ('absolute found - ', f)
... | Remove print statements These were only here for testing | py |
diff --git a/rshell/main.py b/rshell/main.py
index <HASH>..<HASH> 100755
--- a/rshell/main.py
+++ b/rshell/main.py
@@ -1390,7 +1390,7 @@ def connect(port, baud=115200, user='micro', password='python', wait=0):
ip_address = socket.gethostbyname(port)
#print('Connecting to ip', ip_address)
conn... | Catch exception raised by socket.gethostbyname() if the serial port name is too long. | py |
diff --git a/wafer/sponsors/models.py b/wafer/sponsors/models.py
index <HASH>..<HASH> 100644
--- a/wafer/sponsors/models.py
+++ b/wafer/sponsors/models.py
@@ -50,6 +50,7 @@ class SponsorshipPackage(models.Model):
@python_2_unicode_compatible
class Sponsor(models.Model):
"""A conference sponsor."""
+ order = m... | Add url and order fields to the model | py |
diff --git a/stomp.py b/stomp.py
index <HASH>..<HASH> 100644
--- a/stomp.py
+++ b/stomp.py
@@ -55,6 +55,7 @@
* 2008/09/11 : (JRB) fix incompatibilities with RabbitMQ, add wait for socket-connect
* 2008/10/28 : (Eugene) add jms map (from stomp1.1 ideas)
* 2008/11/25 : (Eugene) remove superfluous (incorrec... | remove code to replace underscores with dashes in header names which causes a problem in rabbit-mq | py |
diff --git a/transformers/modeling_tf_utils.py b/transformers/modeling_tf_utils.py
index <HASH>..<HASH> 100644
--- a/transformers/modeling_tf_utils.py
+++ b/transformers/modeling_tf_utils.py
@@ -494,7 +494,7 @@ class TFSequenceSummary(tf.keras.layers.Layer):
def shape_list(x):
"""Deal with dynamic shape in tensor... | reducing my level of enthousiasm | py |
diff --git a/lark/indenter.py b/lark/indenter.py
index <HASH>..<HASH> 100644
--- a/lark/indenter.py
+++ b/lark/indenter.py
@@ -1,8 +1,12 @@
"Provides Indentation services for languages with indentation similar to Python"
+from .exceptions import LarkError
from .lexer import Token
###{standalone
+class DedentErro... | Indenter now throws DedentError instead of AssertionError | py |
diff --git a/pymzn/mzn/minizinc.py b/pymzn/mzn/minizinc.py
index <HASH>..<HASH> 100644
--- a/pymzn/mzn/minizinc.py
+++ b/pymzn/mzn/minizinc.py
@@ -291,7 +291,7 @@ def _prepare_data(mzn_file, data, keep_data=False, declare_enums=True):
elif not isinstance(data, list):
raise TypeError('The additional data p... | minizinc: bugfix with dzn_width config variable | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -72,6 +72,7 @@ setup(
'future',
'humanize',
'numpy >= 1.11, < 1.16', # to work with tables
+ 'tables >= 3.4.4, < 4.0.0',
'openfisca-core >=34.2.2,<35.0.0',
'pandas >= 0.22',... | Add tables library to default requirements to avoid error | py |
diff --git a/tests/test_pytest_cov.py b/tests/test_pytest_cov.py
index <HASH>..<HASH> 100644
--- a/tests/test_pytest_cov.py
+++ b/tests/test_pytest_cov.py
@@ -169,6 +169,7 @@ def prop(request):
code2=SCRIPT2,
conf=request.param[0],
fullconf='[run]\n%s\n' % request.param[0],
+ prefixedf... | Use aliasing for non-colocation test. | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.