diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/zappa/cli.py b/zappa/cli.py
index <HASH>..<HASH> 100644
--- a/zappa/cli.py
+++ b/zappa/cli.py
@@ -357,7 +357,8 @@ class ZappaCLI(object):
self.s3_bucket_name, self.zip_path, self.lambda_name)
# Remove the uploaded zip from S3, because it is now registered..
- self.zappa.remov... | add a few more places to delete based on settings | py |
diff --git a/raiden/network/proxies/token_network.py b/raiden/network/proxies/token_network.py
index <HASH>..<HASH> 100644
--- a/raiden/network/proxies/token_network.py
+++ b/raiden/network/proxies/token_network.py
@@ -1134,8 +1134,8 @@ class TokenNetwork:
def _check_channel_state_for_settle(self, participant1, pa... | Fix RaidenUnrecoverableError when channel is already settled [ci integration] | py |
diff --git a/openstack_dashboard/dashboards/admin/aggregates/tables.py b/openstack_dashboard/dashboards/admin/aggregates/tables.py
index <HASH>..<HASH> 100644
--- a/openstack_dashboard/dashboards/admin/aggregates/tables.py
+++ b/openstack_dashboard/dashboards/admin/aggregates/tables.py
@@ -37,6 +37,11 @@ class DeleteAg... | Hide the Button of delete aggregate if a host in the aggregate According to the code in [1], if there is a host in the aggregate, an error will be shown when deleting. [1]<URL> | py |
diff --git a/flask_jwt_extended/view_decorators.py b/flask_jwt_extended/view_decorators.py
index <HASH>..<HASH> 100644
--- a/flask_jwt_extended/view_decorators.py
+++ b/flask_jwt_extended/view_decorators.py
@@ -123,7 +123,7 @@ def jwt_required(optional=False, fresh=False, refresh=False, locations=None):
# ... | Ignore coverage for quick fix unitl I can get a better spec in place | py |
diff --git a/xclim/indices/generic.py b/xclim/indices/generic.py
index <HASH>..<HASH> 100644
--- a/xclim/indices/generic.py
+++ b/xclim/indices/generic.py
@@ -596,7 +596,7 @@ def extreme_temperature_range(
return out
-def aggregate_between_dates(data, start, end, op="sum", freq=None):
+def aggregate_between_da... | update agg_between_dates docstring | py |
diff --git a/connor/samtools.py b/connor/samtools.py
index <HASH>..<HASH> 100644
--- a/connor/samtools.py
+++ b/connor/samtools.py
@@ -268,8 +268,16 @@ class _Pysam9SamtoolsUtil(object):
catch_stdout=False)
@staticmethod
+ def _byte_array_to_string(sequence):
+ if isinstanc... | CON-<I> (cgates): fix discrepancy in pysam idxstats results (str/bytestream handling in py2/3) | py |
diff --git a/salt/client/ssh/client.py b/salt/client/ssh/client.py
index <HASH>..<HASH> 100644
--- a/salt/client/ssh/client.py
+++ b/salt/client/ssh/client.py
@@ -56,6 +56,7 @@ class SSHClient:
("rosters", list),
("ignore_host_keys", bool),
("raw_shell", bool),
+ ("extr... | Allow extra_filerefs as sanitized kwargs for SSH client | py |
diff --git a/sexpr/__init__.py b/sexpr/__init__.py
index <HASH>..<HASH> 100644
--- a/sexpr/__init__.py
+++ b/sexpr/__init__.py
@@ -1,4 +1,4 @@
-__version__ = '0.1.4'
+__version__ = '0.1.5'
from .loaders import load, load_file, load_string, load_dict
from .sexpr import Sexpr, inject, extend | Bump patch to <I> | py |
diff --git a/scraper/util.py b/scraper/util.py
index <HASH>..<HASH> 100644
--- a/scraper/util.py
+++ b/scraper/util.py
@@ -135,9 +135,7 @@ def git_repo_to_sloc(url):
out = execute(cmd)
try:
- json_start = out.find('{"header"')
- json_blob = out[json_start:].replace("\\n", "").r... | Remove unnecessary processing before decoding JSON Now that the returned value of the execute() function is a UTF-8 string we do not need to perform any pre-processing before we use the json.loads() function. | py |
diff --git a/neo.py b/neo.py
index <HASH>..<HASH> 100755
--- a/neo.py
+++ b/neo.py
@@ -195,6 +195,9 @@ def scm(name):
return cls
return scm
+# pylint: disable=no-self-argument
+# pylint: disable=no-method-argument
+# pylint: disable=no-member
@scm('hg')
@staticclass
class Hg(object):
@@ -376,6 +379,9... | Add pylint override for static-classes The staticclass decorator confuses pylint, causing a large number of of false-positives. (#<I>) | py |
diff --git a/nxviz/base.py b/nxviz/base.py
index <HASH>..<HASH> 100644
--- a/nxviz/base.py
+++ b/nxviz/base.py
@@ -11,14 +11,34 @@ class BasePlot(object):
self.nodes = nodes
self.edges = edges
+ # Set the node and edge props and colors.
+ # These are written with functions because ther... | Added comments and attributes to __init__ function. | py |
diff --git a/pyviews/rendering/flow.py b/pyviews/rendering/flow.py
index <HASH>..<HASH> 100644
--- a/pyviews/rendering/flow.py
+++ b/pyviews/rendering/flow.py
@@ -79,9 +79,8 @@ def default_setter(node: Node, key: str, value):
'''Calls node setter'''
node.setter(node, key, value)
-def render_children(node: N... | get_child_args is deprecated Instead of calling get_child_args from NodeSetup child args are passed in render_children method | py |
diff --git a/test/rql_test/drivers/driver.py b/test/rql_test/drivers/driver.py
index <HASH>..<HASH> 100644
--- a/test/rql_test/drivers/driver.py
+++ b/test/rql_test/drivers/driver.py
@@ -360,7 +360,7 @@ class PyTestDriver:
if isinstance(result, r.Cursor):
print_debug('Evaluat... | minor change from review for #<I> | py |
diff --git a/domaintools/base_results.py b/domaintools/base_results.py
index <HASH>..<HASH> 100644
--- a/domaintools/base_results.py
+++ b/domaintools/base_results.py
@@ -58,7 +58,7 @@ class Results(MutableMapping, MutableSequence):
def _make_request(self):
with Session() as session:
- sessio... | fix KeyError is latest commit The last commit was failing some tests due to a KeyError. This fixes that problem by using .get() and providing a default. | py |
diff --git a/django_extensions/management/commands/pipchecker.py b/django_extensions/management/commands/pipchecker.py
index <HASH>..<HASH> 100644
--- a/django_extensions/management/commands/pipchecker.py
+++ b/django_extensions/management/commands/pipchecker.py
@@ -273,7 +273,7 @@ class Command(BaseCommand):
... | Fix pipchecker "up to date" When requirement is from GitHub correctly check commit sha to see if the requirement is up to date if in the requirement string there is branch name instead of commit sha | py |
diff --git a/src/ploneintranet/workspace/tests/test_policy.py b/src/ploneintranet/workspace/tests/test_policy.py
index <HASH>..<HASH> 100644
--- a/src/ploneintranet/workspace/tests/test_policy.py
+++ b/src/ploneintranet/workspace/tests/test_policy.py
@@ -66,3 +66,27 @@ class TestPolicy(BaseTestCase):
permi... | added tests to check if policy settings are being stored | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -11,7 +11,8 @@ except ImportError:
long_description = open('README.rst').read()
-install_reqs = ['pyusb==1.0.0a3', 'units >= 0.5', 'argparse', 'requests==1.1.0',]
+install_reqs = ['pyusb==1.0.0a3', 'units >= 0.5', 'argpar... | Add protobuf dependency to Python package. | py |
diff --git a/twitter_ads/http.py b/twitter_ads/http.py
index <HASH>..<HASH> 100644
--- a/twitter_ads/http.py
+++ b/twitter_ads/http.py
@@ -133,7 +133,7 @@ class Response(object):
# Content-Type: application/json
# instead it returns:
# Content-Type: application/gzip
- r... | Use UTF-8 to decode downloaded async data (#<I>) Sometimes there are non-ASCII characters in the downloaded API data | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -12,7 +12,7 @@ with open('requirements.txt', 'r') as f:
setuptools.setup(
name="etk",
- version="2.1.6",
+ version="2.1.7",
author="Amandeep Singh",
author_email="amandeep.s.saggu@gmail.com",
descr... | update version for pypi | py |
diff --git a/pcef/modes/python/py_cc.py b/pcef/modes/python/py_cc.py
index <HASH>..<HASH> 100644
--- a/pcef/modes/python/py_cc.py
+++ b/pcef/modes/python/py_cc.py
@@ -22,12 +22,19 @@ from pcef.modes.cc import Suggestion
Icons = {'Class': ':/icons/rc/class.png',
+ 'class': ':/icons/rc/class.png',
... | Support the latest jedi dev branch token names (all lowercase now) | py |
diff --git a/librosa/core/constantq.py b/librosa/core/constantq.py
index <HASH>..<HASH> 100644
--- a/librosa/core/constantq.py
+++ b/librosa/core/constantq.py
@@ -538,8 +538,8 @@ def __early_downsample(y, sr, hop_length, res_type, n_octaves,
downsample_count = min(downsample_count1, downsample_count2)
- if ... | changed early downsampling logic to leave a full-octave buffer | py |
diff --git a/docker/auth/auth.py b/docker/auth/auth.py
index <HASH>..<HASH> 100644
--- a/docker/auth/auth.py
+++ b/docker/auth/auth.py
@@ -92,7 +92,7 @@ def decode_auth(auth):
if isinstance(auth, six.string_types):
auth = auth.encode('ascii')
s = base64.b64decode(auth)
- login, pwd = s.split(b':')... | Handle passwords with ':' characters. | py |
diff --git a/tests/unit/beacons/test_watchdog.py b/tests/unit/beacons/test_watchdog.py
index <HASH>..<HASH> 100644
--- a/tests/unit/beacons/test_watchdog.py
+++ b/tests/unit/beacons/test_watchdog.py
@@ -92,9 +92,21 @@ class IWatchdogBeaconTestCase(TestCase, LoaderModuleMockMixin):
ret = check_events(config)
... | Fix modified test to account for OS variances | py |
diff --git a/salt/minion.py b/salt/minion.py
index <HASH>..<HASH> 100644
--- a/salt/minion.py
+++ b/salt/minion.py
@@ -473,6 +473,7 @@ class Minion(object):
context = zmq.Context()
socket = context.socket(zmq.SUB)
socket.setsockopt(zmq.SUBSCRIBE, '')
+ socket.setsockopt(zmq.IDENTITY, s... | Set the identity on the minions This prevents ram overusage in the master pub interface when using the WAN autohealing system, this fixes #<I>, make sure the master has also been updated or this could cause a larger memory leak on the master | py |
diff --git a/cherrypy/_cptree.py b/cherrypy/_cptree.py
index <HASH>..<HASH> 100644
--- a/cherrypy/_cptree.py
+++ b/cherrypy/_cptree.py
@@ -286,14 +286,6 @@ class Tree(object):
environ['SCRIPT_NAME'] = sn
environ['PATH_INFO'] = path[len(sn.rstrip("/")):]
else:
- if e... | Fix unicode characters in path on Python 3 Variables PATH_INFO and SCRIPT_NAME are already ISO-<I>-1 string. Old code makes these variables double encoded. | py |
diff --git a/mavproxy.py b/mavproxy.py
index <HASH>..<HASH> 100755
--- a/mavproxy.py
+++ b/mavproxy.py
@@ -1082,7 +1082,8 @@ def process_flightgear(m, master):
master.mav.vfr_hud_send(kt2mps(airspeed), groundspeed, int(heading),
int(status.rc_throttle*100), ft2m(altitude), 0)
... | fixed longitude scaling in GPS heading thanks to Jason for the tip | py |
diff --git a/polyaxon/experiment_groups/iteration_managers/hyperband.py b/polyaxon/experiment_groups/iteration_managers/hyperband.py
index <HASH>..<HASH> 100644
--- a/polyaxon/experiment_groups/iteration_managers/hyperband.py
+++ b/polyaxon/experiment_groups/iteration_managers/hyperband.py
@@ -31,7 +31,7 @@ class Hyper... | Hyperband reduce config should increment bracket iteration | py |
diff --git a/beekeeper/data_handlers.py b/beekeeper/data_handlers.py
index <HASH>..<HASH> 100644
--- a/beekeeper/data_handlers.py
+++ b/beekeeper/data_handlers.py
@@ -66,7 +66,9 @@ mimetypes = {
}
def code(action, data, mimetype, encoding='utf-8'):
- if mimetype in mimetypes and action in mimetypes[mimetype].__d... | Adding automatic passthrough for raw bytes data | py |
diff --git a/tests/test_pay_schedule.py b/tests/test_pay_schedule.py
index <HASH>..<HASH> 100644
--- a/tests/test_pay_schedule.py
+++ b/tests/test_pay_schedule.py
@@ -70,4 +70,4 @@ def test_pay_schedule(iamport):
iamport.pay_schedule(**payload_full)
except iamport.ResponseError as e:
assert e.cod... | Refactor assertion message in test_pay_schedule | py |
diff --git a/examples/synthesis_json.py b/examples/synthesis_json.py
index <HASH>..<HASH> 100755
--- a/examples/synthesis_json.py
+++ b/examples/synthesis_json.py
@@ -61,7 +61,7 @@ FEATURE_MAP = {
'radius': lambda n, kwargs: n.get_soma_radius(**kwargs),
'number': lambda n, kwargs: n.get_n_neurites(**kwargs),
... | Correct synthesis_json to conform with new trunk measurements. | py |
diff --git a/salt/modules/mac_system.py b/salt/modules/mac_system.py
index <HASH>..<HASH> 100644
--- a/salt/modules/mac_system.py
+++ b/salt/modules/mac_system.py
@@ -13,6 +13,8 @@ try: # python 3
except ImportError: # python 2
from pipes import quote as _cmd_quote
+import getpass
+
# Import salt libs
impor... | mac_system: return False for non-root user Fixes #<I>. Previously an exception was raised and salt repeatedly tried to load the module. This spammed the console with error messages. | py |
diff --git a/test/multisig/commands/prepare_multisig_transfer_test.py b/test/multisig/commands/prepare_multisig_transfer_test.py
index <HASH>..<HASH> 100644
--- a/test/multisig/commands/prepare_multisig_transfer_test.py
+++ b/test/multisig/commands/prepare_multisig_transfer_test.py
@@ -264,8 +264,25 @@ class PrepareMul... | [#<I>] `transfers` must not be empty. | py |
diff --git a/gwpy/plotter/filter.py b/gwpy/plotter/filter.py
index <HASH>..<HASH> 100644
--- a/gwpy/plotter/filter.py
+++ b/gwpy/plotter/filter.py
@@ -19,7 +19,9 @@
"""Definition of a BodePlot
"""
+import warnings
from math import pi
+
import numpy
from scipy import signal | plotter.filter: added missing import [ci skip] | py |
diff --git a/km3pipe/calib.py b/km3pipe/calib.py
index <HASH>..<HASH> 100644
--- a/km3pipe/calib.py
+++ b/km3pipe/calib.py
@@ -9,7 +9,6 @@ import numpy as np
from .core import Module
from .hardware import Detector
from .dataclasses import Table
-from .dataclass_templates import TEMPLATES
from .tools import istype
... | Remove TEMPLATES since not used | py |
diff --git a/wtfpeewee/orm.py b/wtfpeewee/orm.py
index <HASH>..<HASH> 100644
--- a/wtfpeewee/orm.py
+++ b/wtfpeewee/orm.py
@@ -80,7 +80,9 @@ class ModelConverter(object):
if field.null:
kwargs['filters'].append(handle_null_filter)
- if not field.null:
+ if field.null or field.defau... | Changing back as this breaks fields that accept nulls...oh wtforms, wtf | py |
diff --git a/bootstrap_admin/templatetags/bootstrap_admin_list.py b/bootstrap_admin/templatetags/bootstrap_admin_list.py
index <HASH>..<HASH> 100644
--- a/bootstrap_admin/templatetags/bootstrap_admin_list.py
+++ b/bootstrap_admin/templatetags/bootstrap_admin_list.py
@@ -9,6 +9,6 @@ def paginator_number(cl, i):
if ... | fix old template tag for pagination. was not compatible with django<I>, now it's ok | py |
diff --git a/websocket/__init__.py b/websocket/__init__.py
index <HASH>..<HASH> 100644
--- a/websocket/__init__.py
+++ b/websocket/__init__.py
@@ -490,7 +490,7 @@ class WebSocket(object):
hostname, port, resource, is_secure = _parse_url(url)
proxy_host, proxy_port = options.get("http_proxy_host", None... | Bug fix: socket always connects to port <I>. | py |
diff --git a/templates/genomics/steps/genomic_feature_set.py b/templates/genomics/steps/genomic_feature_set.py
index <HASH>..<HASH> 100644
--- a/templates/genomics/steps/genomic_feature_set.py
+++ b/templates/genomics/steps/genomic_feature_set.py
@@ -17,7 +17,7 @@ class GetGenomicFeatureByPosition(Step):
for p... | fixed early stopping bug in get genomic feature by position | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -30,7 +30,7 @@ tests_require = [
"yanc",
"remotecv",
"pyssim",
- "cairosvg>=1.0.20,<1.1,!=1.0.21",
+ "cairosvg!=1.0.21",
"preggy>=1.3.0",
] | Just skipping bugged cairosvg version (<I>) | py |
diff --git a/pystorm/version.py b/pystorm/version.py
index <HASH>..<HASH> 100644
--- a/pystorm/version.py
+++ b/pystorm/version.py
@@ -29,5 +29,5 @@ def _safe_int(string):
return string
-__version__ = '1.0.0'
+__version__ = '1.1.0.dev'
VERSION = tuple(_safe_int(x) for x in __version__.split('.')) | Set version to <I>.dev for development | py |
diff --git a/ansible_runner/interface.py b/ansible_runner/interface.py
index <HASH>..<HASH> 100644
--- a/ansible_runner/interface.py
+++ b/ansible_runner/interface.py
@@ -50,11 +50,12 @@ def init_runner(**kwargs):
output.set_logfile(logfile)
event_callback_handler = kwargs.pop('event_handler', None)... | Fixes cancel_callback to work with async | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -47,9 +47,9 @@ def _build_extension(name=None, srcdir=None, targetdir=None,
F2pyCommand.append('f2py -c -m {}'.format(name))
F2pyCommand.append('--fcompiler={} --noopt'.format(compiler))
F2pyCommand.append('-I{}... | Remove unnecessary include directories for fortran builds. | py |
diff --git a/tests/test_jams.py b/tests/test_jams.py
index <HASH>..<HASH> 100644
--- a/tests/test_jams.py
+++ b/tests/test_jams.py
@@ -102,7 +102,8 @@ def test_jobject_nonzero(data, value):
def test_jobject_repr():
- repr(jams.JObject(foo=1, bar=2))
+ assert (repr(jams.JObject(foo=1, bar=2)) ==
+ ... | Added a content test to jobject repr | py |
diff --git a/pyhomematic/devicetypes/misc.py b/pyhomematic/devicetypes/misc.py
index <HASH>..<HASH> 100644
--- a/pyhomematic/devicetypes/misc.py
+++ b/pyhomematic/devicetypes/misc.py
@@ -41,6 +41,8 @@ class Remote(HMEvent, HelperActionPress):
return 3
if "RC-4" in self.TYPE or "PB-4" in self.TYPE:... | Added support for HM-PBI-4-FM | py |
diff --git a/aws_lambda/aws_lambda.py b/aws_lambda/aws_lambda.py
index <HASH>..<HASH> 100755
--- a/aws_lambda/aws_lambda.py
+++ b/aws_lambda/aws_lambda.py
@@ -173,6 +173,9 @@ def pip_install_to_target(path):
"""
print('Gathering pip packages')
for r in pip.operations.freeze.freeze():
+ if r.starts... | don't try to install python with Pip | py |
diff --git a/{{cookiecutter.project_slug}}/config/settings/production.py b/{{cookiecutter.project_slug}}/config/settings/production.py
index <HASH>..<HASH> 100644
--- a/{{cookiecutter.project_slug}}/config/settings/production.py
+++ b/{{cookiecutter.project_slug}}/config/settings/production.py
@@ -288,7 +288,7 @@ SENTR... | Update {{cookiecutter.project_slug}}/config/settings/production.py | py |
diff --git a/deployment/freebsd/setup/watchdog.py b/deployment/freebsd/setup/watchdog.py
index <HASH>..<HASH> 100644
--- a/deployment/freebsd/setup/watchdog.py
+++ b/deployment/freebsd/setup/watchdog.py
@@ -53,4 +53,4 @@ def install_watchdog(build=True):
local_dir='requirements.txt')
with fab.cd(a... | properly force installation of newer egg this is only relevant during development though, when newer versions still come with the same version identifier | py |
diff --git a/pyani/fastani.py b/pyani/fastani.py
index <HASH>..<HASH> 100644
--- a/pyani/fastani.py
+++ b/pyani/fastani.py
@@ -200,6 +200,7 @@ def parse_fastani_file(filename: Path) -> ComparisonResult:
results = []
for line in [_.strip().split() for _ in open(filename, "r").readlines()]:
if len(line... | Added comment explaining type conversions in `parse_fastani_file.py` | py |
diff --git a/sacred/config/custom_containers.py b/sacred/config/custom_containers.py
index <HASH>..<HASH> 100644
--- a/sacred/config/custom_containers.py
+++ b/sacred/config/custom_containers.py
@@ -203,9 +203,15 @@ class DogmaticList(list):
def __setitem__(self, key, value):
pass
+ def __setslice__(... | added back setslice and delslice to DogmaticList for python <I> compatibility | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -15,7 +15,7 @@ with open(path.join(this_directory, 'README.md'), encoding='utf-8') as f:
setup(
name='sutime',
- version='1.0.0rc3',
+ version='1.0.0rc4',
description='A Python wrapper for Stanford CoreNLP\'... | Declare release candidate 4 for <I> | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -11,7 +11,8 @@ Please note: the /usr/bin/openquake script requires a celeryconfig.py
file in the PYTHONPATH. Please make sure this is the case and that your
celeryconfig.py file works with your python-celery setup.
-Feel ... | Now the upgrade scripts are copied in the installation directory | py |
diff --git a/fritzconnection/lib/fritzwlan.py b/fritzconnection/lib/fritzwlan.py
index <HASH>..<HASH> 100644
--- a/fritzconnection/lib/fritzwlan.py
+++ b/fritzconnection/lib/fritzwlan.py
@@ -58,7 +58,7 @@ class FritzWLAN:
for service in itertools.count(1):
self.service = service
try:
... | Bug because of a typo removed from fritzwlan | py |
diff --git a/pyinfra/modules/apt.py b/pyinfra/modules/apt.py
index <HASH>..<HASH> 100644
--- a/pyinfra/modules/apt.py
+++ b/pyinfra/modules/apt.py
@@ -180,12 +180,12 @@ def deb(state, host, source, present=True):
if present and not exists:
commands.extend([
# Install .deb file - ignoring fail... | Add `--force-conf` dpkg args to both dpkg calls. | py |
diff --git a/km3pipe/io/aanet.py b/km3pipe/io/aanet.py
index <HASH>..<HASH> 100644
--- a/km3pipe/io/aanet.py
+++ b/km3pipe/io/aanet.py
@@ -90,12 +90,16 @@ class AanetPump(Pump):
# pylint: disable:F0401,W0612
from ROOT import EventFile
+ found_any_files = False
for filename in self.fi... | Aapump: raise exception if none of the input files could be found | py |
diff --git a/openstack_auth/views.py b/openstack_auth/views.py
index <HASH>..<HASH> 100644
--- a/openstack_auth/views.py
+++ b/openstack_auth/views.py
@@ -447,8 +447,9 @@ def switch_system_scope(request, redirect_field_name=auth.REDIRECT_FIELD_NAME):
# Ensure the user-originating redirection url is safe.
# Ta... | Address RemovedInDjango<I>Warning This patch is a follow-up patch of <I>def<I>de which renamed is_safe_url() -> url_has_allowed_host_and_scheme() because is_safe_url() is deprecated in Django <I>. For more info, please refer [1]. [1] <URL> | py |
diff --git a/salt/modules/freebsdpkg.py b/salt/modules/freebsdpkg.py
index <HASH>..<HASH> 100644
--- a/salt/modules/freebsdpkg.py
+++ b/salt/modules/freebsdpkg.py
@@ -190,7 +190,7 @@ def remove(name):
if name in old:
name = '{0}-{1}'.format(name, old[name])
if _check_pkgng():
- pkg_com... | Over looked another pkg call: s/pkg_delete/pkg delete/ | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -6,7 +6,7 @@ setup(
version="1.6.1",
packages=find_packages(),
install_requires=['GitPython>=2.1.8', 'colorama>=0.3.7',
- 'termcolor>=1.1.0', 'click>=7.0.0',
+ 'termcolo... | Require click x.y rather than x.y.z Click follows versioning with x.y rather than x.y.z. While most tools handle this consider <I> >= <I>, it's not all. RPM has gained abilities to automatically generate dependencies for Python packages based on the metadata and doesn't handle this. Using the simple x.y form does work... | py |
diff --git a/test/TodoListTest.py b/test/TodoListTest.py
index <HASH>..<HASH> 100644
--- a/test/TodoListTest.py
+++ b/test/TodoListTest.py
@@ -78,7 +78,7 @@ class TodoListTester(unittest.TestCase):
"(C) Baz @Context1 +Project1 key:value")
self.assertEquals(self.todolist.count(), count - 1)
... | Add test to check consistency of graph after removing a todo. | py |
diff --git a/{{cookiecutter.project_slug}}/config/settings/production.py b/{{cookiecutter.project_slug}}/config/settings/production.py
index <HASH>..<HASH> 100644
--- a/{{cookiecutter.project_slug}}/config/settings/production.py
+++ b/{{cookiecutter.project_slug}}/config/settings/production.py
@@ -99,11 +99,10 @@ GS_DE... | If using whitenoise disable AWS and GCE for static If using whitenoise disable AWS and GCE for static setting. | py |
diff --git a/pydarksky/darksky.py b/pydarksky/darksky.py
index <HASH>..<HASH> 100644
--- a/pydarksky/darksky.py
+++ b/pydarksky/darksky.py
@@ -206,6 +206,9 @@ class DarkSky(object):
if isinstance(excludes, str):
if excludes in self.EXCLUDES:
self._exclude = [excludes]
+ ... | Added new exception to exclude setter | py |
diff --git a/spyder/widgets/ipythonconsole/shell.py b/spyder/widgets/ipythonconsole/shell.py
index <HASH>..<HASH> 100644
--- a/spyder/widgets/ipythonconsole/shell.py
+++ b/spyder/widgets/ipythonconsole/shell.py
@@ -89,7 +89,10 @@ class ShellWidget(NamepaceBrowserWidget, HelpWidget, DebuggingWidget):
def long_banne... | Deprecated IPython import surrounded by try except | py |
diff --git a/openquake/shapes.py b/openquake/shapes.py
index <HASH>..<HASH> 100644
--- a/openquake/shapes.py
+++ b/openquake/shapes.py
@@ -540,7 +540,12 @@ class Curve(object):
return self.y_values.ndim > 1
def ordinate_for(self, x_value, y_index=0):
- """Return the y value corresponding to the g... | more commenting on Curve.ordinate_for | py |
diff --git a/exchangelib/util.py b/exchangelib/util.py
index <HASH>..<HASH> 100644
--- a/exchangelib/util.py
+++ b/exchangelib/util.py
@@ -11,7 +11,7 @@ import socket
from threading import get_ident
import time
from urllib.parse import urlparse
-import xml.sax.handler
+import xml.sax.handler # nosec
import lxml.... | Silence warning from Bandit in Codacy | py |
diff --git a/salt/modules/virtualenv_mod.py b/salt/modules/virtualenv_mod.py
index <HASH>..<HASH> 100644
--- a/salt/modules/virtualenv_mod.py
+++ b/salt/modules/virtualenv_mod.py
@@ -274,7 +274,7 @@ def create(path,
return ret
-def _install_script(source, cwd, python, runas, ret):
+def _install_script(source, ... | We're no longer passing `ret`. Remove it from args. | py |
diff --git a/graph.py b/graph.py
index <HASH>..<HASH> 100755
--- a/graph.py
+++ b/graph.py
@@ -86,7 +86,6 @@ class GraphData:
self.cur_freq = 0
self.perf_lost = 0
self.max_perf_lost = 0
-
self.samples_taken = 0
self.core_num = psutil.cpu_count()
@@ -109,6 +108,18 @@ class ... | Fix for #1: Reset button does nothing + Reset button now resets graphs and accumulated data | py |
diff --git a/ariba/summary.py b/ariba/summary.py
index <HASH>..<HASH> 100644
--- a/ariba/summary.py
+++ b/ariba/summary.py
@@ -175,6 +175,7 @@ class Summary:
def _write_tsv(self):
f = pyfastaq.utils.open_file_write(self.outfile)
+ print('#', end='', file=f)
for row in self.rows_out:
... | Add hash to first line of output | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -12,5 +12,5 @@ setup(
author_email='davidgasquez@buffer.com',
url='https://github.com/bufferapp/kiner',
keywords=['kinesis', 'producer', 'aws'],
- install_requires=['boto3']
+ install_requires=['boto3', 'f... | Add future package to ensure Python2 compatibility | py |
diff --git a/haproxy/main.py b/haproxy/main.py
index <HASH>..<HASH> 100644
--- a/haproxy/main.py
+++ b/haproxy/main.py
@@ -107,7 +107,7 @@ def parse_arguments(args):
data['filters'] = _parse_arg_filters(args.filter)
if args.log is not None:
- _parse_arg_logfile(args.log)
+ _validate_arg_lo... | Rename method and usages It does not manipulate the input, it only validates it. | py |
diff --git a/uni_form/templatetags/uni_form_tags.py b/uni_form/templatetags/uni_form_tags.py
index <HASH>..<HASH> 100644
--- a/uni_form/templatetags/uni_form_tags.py
+++ b/uni_form/templatetags/uni_form_tags.py
@@ -33,14 +33,12 @@ else:
###################################################
@register.filter
def as_uni_... | Moving `as_uni_formset` code to a smarter `as_uni_form` filter that can handle both: forms & formsets. | py |
diff --git a/tests/unit/states/boto_elb_test.py b/tests/unit/states/boto_elb_test.py
index <HASH>..<HASH> 100644
--- a/tests/unit/states/boto_elb_test.py
+++ b/tests/unit/states/boto_elb_test.py
@@ -97,21 +97,13 @@ class BotoElbTestCase(TestCase):
self.assertDictEqual(boto_elb.present
... | Remove cnames_present test | py |
diff --git a/chess/__init__.py b/chess/__init__.py
index <HASH>..<HASH> 100644
--- a/chess/__init__.py
+++ b/chess/__init__.py
@@ -2197,7 +2197,7 @@ class Board(BaseBoard):
self.ep_square = move.from_square + 8
elif diff == -16 and rank_index(move.from_square) == 6:
self.e... | ep_square was not consistently None instead of 0 | py |
diff --git a/sphinx_git/__init__.py b/sphinx_git/__init__.py
index <HASH>..<HASH> 100644
--- a/sphinx_git/__init__.py
+++ b/sphinx_git/__init__.py
@@ -184,14 +184,13 @@ class GitChangelog(GitDirectiveBase):
if not self.options.get('hide_date'):
item += [nodes.inline(text=" at "),
... | Merge two if statements to reduce indentation level | py |
diff --git a/gffutils/iterators.py b/gffutils/iterators.py
index <HASH>..<HASH> 100644
--- a/gffutils/iterators.py
+++ b/gffutils/iterators.py
@@ -65,7 +65,7 @@ class BaseIterator(object):
return None
def _directive_handler(self, directive):
- self.directives.append(directive)
+ self.d... | remove leading "##" from directives | py |
diff --git a/zebra/forms.py b/zebra/forms.py
index <HASH>..<HASH> 100644
--- a/zebra/forms.py
+++ b/zebra/forms.py
@@ -20,7 +20,7 @@ class CardForm(MonospaceForm):
class StripePaymentForm(CardForm):
def __init__(self, *args, **kwargs):
super(StripePaymentForm, self).__init__(*args, **kwargs)
- sel... | Stripe docs use CVC; changed end-user label. Internals could be renamed also. | py |
diff --git a/skyfield/iokit.py b/skyfield/iokit.py
index <HASH>..<HASH> 100644
--- a/skyfield/iokit.py
+++ b/skyfield/iokit.py
@@ -38,6 +38,8 @@ try:
except ImportError:
create_default_context = None
+_skip_certificate_support = (sys.version_info < (2, 7))
+
try:
from urllib.parse import urlparse
fro... | Fix download call for Python <I> | py |
diff --git a/loguru/_string_parsers.py b/loguru/_string_parsers.py
index <HASH>..<HASH> 100644
--- a/loguru/_string_parsers.py
+++ b/loguru/_string_parsers.py
@@ -32,12 +32,12 @@ def parse_duration(duration):
units = [
("y|years?", 31536000),
- ("mo|months?", 2628000),
+ ("months?", 262800... | Use more standard abbr and reduce ambiguities in rotation time units | py |
diff --git a/gpiozero/spi.py b/gpiozero/spi.py
index <HASH>..<HASH> 100644
--- a/gpiozero/spi.py
+++ b/gpiozero/spi.py
@@ -408,8 +408,8 @@ def SPI(**spi_args):
else:
try:
hardware_spi_args = {
- port: 0,
- device: {8: 0, 7: 1}[spi_args['select... | Add quotes to dict keys This is a bug introduced in <I>. Currently, hardware SPI is not possible because the NameError is caught on <I> and incorrectly dealt with. The plan is to do a point release <I> to address this. | py |
diff --git a/examples/fc_networks.py b/examples/fc_networks.py
index <HASH>..<HASH> 100644
--- a/examples/fc_networks.py
+++ b/examples/fc_networks.py
@@ -27,10 +27,10 @@ from hpOneView.exceptions import HPOneViewException
from config_loader import try_load_from_file
config = {
- "ip": "10.30.5.113",
+ "ip": ... | Reverting back changes which are done locally | py |
diff --git a/tests/test_money.py b/tests/test_money.py
index <HASH>..<HASH> 100644
--- a/tests/test_money.py
+++ b/tests/test_money.py
@@ -63,6 +63,11 @@ def test_arithmetic():
assert pi + e == 5.92
assert pi - e == 0.36
+ assert -pi == -3.14
+ assert +pi == 3.14
+ assert abs(pi) == 3.14
+ asser... | Add arithmetic tests for unary operators | py |
diff --git a/panoramix/viz.py b/panoramix/viz.py
index <HASH>..<HASH> 100644
--- a/panoramix/viz.py
+++ b/panoramix/viz.py
@@ -543,6 +543,12 @@ class DistributionPieViz(NVD3Viz):
class DistributionBarViz(DistributionPieViz):
viz_type = "dist_bar"
verbose_name = "Distribution - Bar Chart"
+ form_fields = [... | Specifying the fields for DistributionBarViz as it was showing donut | py |
diff --git a/dusty/systems/known_hosts/__init__.py b/dusty/systems/known_hosts/__init__.py
index <HASH>..<HASH> 100644
--- a/dusty/systems/known_hosts/__init__.py
+++ b/dusty/systems/known_hosts/__init__.py
@@ -11,6 +11,8 @@ def _get_known_hosts_path():
def ensure_known_hosts(hosts):
known_hosts_path = _get_kno... | Create required known_hosts file if it does not exists | py |
diff --git a/pdml2flow/pdml2flow.py b/pdml2flow/pdml2flow.py
index <HASH>..<HASH> 100755
--- a/pdml2flow/pdml2flow.py
+++ b/pdml2flow/pdml2flow.py
@@ -100,6 +100,8 @@ def merge(a, b, path=None):
a[key] = [a[key]] + b[key]
elif type(a[key]) is not list and type(b[key]) is not list:
... | handling of parser exceptions added, main fixed | py |
diff --git a/formwizard/contrib/forms.py b/formwizard/contrib/forms.py
index <HASH>..<HASH> 100644
--- a/formwizard/contrib/forms.py
+++ b/formwizard/contrib/forms.py
@@ -46,6 +46,10 @@ class NamedUrlSessionFormWizard(SessionFormWizard):
self.storage.set_current_step(next_step)
return HttpResponseRedi... | revalidation should redirect instead of rendering the form | py |
diff --git a/pyArango/collection.py b/pyArango/collection.py
index <HASH>..<HASH> 100644
--- a/pyArango/collection.py
+++ b/pyArango/collection.py
@@ -149,7 +149,9 @@ class Collection_metaclass(type) :
try :
return cls.collectionClasses[name]
except KeyError :
- raise KeyError(... | Import error reporting when misusing db.CreateCollection() | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -57,7 +57,7 @@ setup(
keywords='django, app, reusable, finance, forex, foreign exchange, valuehorizon',
author='Quincy Alexander',
author_email='qalexander@valuehorizon.com',
- url="https://https://github.com... | Fix typo of url in setup.py | py |
diff --git a/src/mistclient/model.py b/src/mistclient/model.py
index <HASH>..<HASH> 100644
--- a/src/mistclient/model.py
+++ b/src/mistclient/model.py
@@ -235,7 +235,7 @@ class Cloud(object):
ips=[], networks=[], location_name="", async=False,
docker_command="", quantity=... | check if key is string and add provider input in the payload | py |
diff --git a/openquake/commonlib/readinput.py b/openquake/commonlib/readinput.py
index <HASH>..<HASH> 100644
--- a/openquake/commonlib/readinput.py
+++ b/openquake/commonlib/readinput.py
@@ -633,7 +633,9 @@ def get_sitecol_assetcol(oqparam, haz_sitecol=None):
haz_sitecol = site.SiteCollection.from_points(
... | Cleanup [skip CI] | py |
diff --git a/pyswagger/scanner/v2_0/patch_obj.py b/pyswagger/scanner/v2_0/patch_obj.py
index <HASH>..<HASH> 100644
--- a/pyswagger/scanner/v2_0/patch_obj.py
+++ b/pyswagger/scanner/v2_0/patch_obj.py
@@ -44,7 +44,7 @@ class PatchObject(object):
setattr(obj, '_prim_factory', app.prim_factory)
# inheri... | bad practice to commit code without running UT locally | py |
diff --git a/openquake/commonlib/oqvalidation.py b/openquake/commonlib/oqvalidation.py
index <HASH>..<HASH> 100644
--- a/openquake/commonlib/oqvalidation.py
+++ b/openquake/commonlib/oqvalidation.py
@@ -150,7 +150,6 @@ class OqParam(valid.ParamSet):
return self._risk_files
except AttributeError:
... | Removed comment Former-commit-id: b<I>ea2bee<I>e<I>a8a1a<I>d1dc<I>e | py |
diff --git a/pebble/process.py b/pebble/process.py
index <HASH>..<HASH> 100644
--- a/pebble/process.py
+++ b/pebble/process.py
@@ -227,7 +227,7 @@ class TaskScheduler(Thread):
while self.state != STOPPED:
workers = [w for w in self.pool[:] if not w.closed]
available = self.free_worker... | if no task are available wait <I> seconds | py |
diff --git a/salt/states/file.py b/salt/states/file.py
index <HASH>..<HASH> 100644
--- a/salt/states/file.py
+++ b/salt/states/file.py
@@ -1123,11 +1123,11 @@ def recurse(name,
keep = set()
vdir = set()
+ srcpath = source[7:]
for fn_ in __salt__['cp.list_master'](env):
if not fn_.strip():
... | * fix bug: file.recurse state shoud treat source as dir * 2 cents optimization: evaluate srcpath one time | py |
diff --git a/openquake/calculators/event_based_risk.py b/openquake/calculators/event_based_risk.py
index <HASH>..<HASH> 100644
--- a/openquake/calculators/event_based_risk.py
+++ b/openquake/calculators/event_based_risk.py
@@ -397,7 +397,7 @@ class EventBasedRiskCalculator(base.RiskCalculator):
group = sel... | Fixed bug in build_specific_stats | py |
diff --git a/py/selenium/webdriver/support/expected_conditions.py b/py/selenium/webdriver/support/expected_conditions.py
index <HASH>..<HASH> 100644
--- a/py/selenium/webdriver/support/expected_conditions.py
+++ b/py/selenium/webdriver/support/expected_conditions.py
@@ -113,7 +113,6 @@ class text_to_be_present_in_eleme... | LukeIS: removing print statement accidentally left in r<I> | py |
diff --git a/astromodels/tests/test_load_xspec_models.py b/astromodels/tests/test_load_xspec_models.py
index <HASH>..<HASH> 100644
--- a/astromodels/tests/test_load_xspec_models.py
+++ b/astromodels/tests/test_load_xspec_models.py
@@ -1,4 +1,5 @@
import pytest
+import astropy.units as u
try:
@@ -23,4 +24,7 @@ ski... | Making the test a little more meaningful | py |
diff --git a/dplython/later.py b/dplython/later.py
index <HASH>..<HASH> 100644
--- a/dplython/later.py
+++ b/dplython/later.py
@@ -42,8 +42,6 @@ class Operator(object):
return func(*args)
def format_exp(self, exp):
- print exp.precedence
- print self.precedence
if type(exp) == Later and exp.step.pr... | fixed for python 3 | py |
diff --git a/neo4jrestclient/tests.py b/neo4jrestclient/tests.py
index <HASH>..<HASH> 100644
--- a/neo4jrestclient/tests.py
+++ b/neo4jrestclient/tests.py
@@ -6,10 +6,9 @@ try:
except:
import pickle
try:
- reload
-except NameError:
- # Python 3
from imp import reload
+except ImportError:
+ reload
... | Skip some test that depend on newer versions of other dependencies | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -9,6 +9,14 @@ Setup the Keyring Lib for Python.
import sys
import codecs
+try:
+ import setuptools
+ setup_mod = setuptools
+ "where to find setup()"
+except ImportError:
+ import distutils.core
+ setup_mod ... | Moved imports to the beginning of the module | py |
diff --git a/xclim/indices/run_length.py b/xclim/indices/run_length.py
index <HASH>..<HASH> 100644
--- a/xclim/indices/run_length.py
+++ b/xclim/indices/run_length.py
@@ -37,7 +37,7 @@ def use_ufunc(
Parameters
----------
ufunc_1dim: {'from_context', 'auto', True, False}
- da : .DataArray
+ da : xr... | Add again reference to xr that I mistakenly deleted. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -16,5 +16,5 @@ structures, and refer to fields within a structure using a 'selector'.
packages=find_packages(),
requires=['richenum (>=1.0.0)'],
test_suite="run_tests",
- version='0.4.4',
+ version='0.4.5'... | Bump setup.py version Not changing the docs version, because the docs didn't change. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -36,6 +36,6 @@ setup(
extras_require={
'prov': ['tinydb'],
'xenon': ['pyxenon'],
- 'test': ['nose', 'coverage', 'pyflakes', 'pep8']
+ 'test': ['nose', 'coverage', 'pyflakes', 'pep8', 'docke... | Added docker-py as testing dependency | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.