diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/openquake/server/tests/tests.py b/openquake/server/tests/tests.py
index <HASH>..<HASH> 100644
--- a/openquake/server/tests/tests.py
+++ b/openquake/server/tests/tests.py
@@ -110,6 +110,11 @@ class EngineServerTestCase(unittest.TestCase):
def tearDownClass(cls):
cls.wait()
+ def setUp(sel... | Skipped again Python 2 tests [skip hazardlib] | py |
diff --git a/pymatgen/core/structure.py b/pymatgen/core/structure.py
index <HASH>..<HASH> 100644
--- a/pymatgen/core/structure.py
+++ b/pymatgen/core/structure.py
@@ -1290,6 +1290,9 @@ class IStructure(SiteCollection, MSONable):
filtered_labels.append(labels[ind])
return filtered_labels
... | return [[]] instead of [] when no neighbors | py |
diff --git a/LiSE/core.py b/LiSE/core.py
index <HASH>..<HASH> 100644
--- a/LiSE/core.py
+++ b/LiSE/core.py
@@ -950,6 +950,7 @@ class Engine(object):
"sense TEXT NOT NULL, "
"branch TEXT NOT NULL DEFAULT 'master', "
"tick INTEGER NOT NULL DEFAULT 0, "
+ "function TEXT NO... | schema change to support changing sense function on particular character | py |
diff --git a/salt/states/user.py b/salt/states/user.py
index <HASH>..<HASH> 100644
--- a/salt/states/user.py
+++ b/salt/states/user.py
@@ -34,7 +34,7 @@ import salt.utils
log = logging.getLogger(__name__)
-def _group_changes(cur, wanted, remove=True):
+def _group_changes(cur, wanted, remove=False):
'''
D... | Change default behavior of _change_groups. As discussed in #<I> | py |
diff --git a/ryu/lib/mac.py b/ryu/lib/mac.py
index <HASH>..<HASH> 100644
--- a/ryu/lib/mac.py
+++ b/ryu/lib/mac.py
@@ -16,8 +16,6 @@
from ryu.lib import addrconv
-import itertools
-
# string representation
HADDR_PATTERN = r'([0-9a-f]{2}:){5}[0-9a-f]{2}'
@@ -55,4 +53,4 @@ def haddr_to_bin(string):
def haddr_... | 'itertools.izip()' has been deprecated in Python 3 | py |
diff --git a/spatialist/tests/test_spatial.py b/spatialist/tests/test_spatial.py
index <HASH>..<HASH> 100644
--- a/spatialist/tests/test_spatial.py
+++ b/spatialist/tests/test_spatial.py
@@ -121,7 +121,7 @@ def test_Raster(tmpdir, testdata):
ras.load()
mat = ras.matrix()
assert isinstance(mat... | [test_spatial] adjusted tests to new param name of Raster.assign | py |
diff --git a/examples/consumer.py b/examples/consumer.py
index <HASH>..<HASH> 100644
--- a/examples/consumer.py
+++ b/examples/consumer.py
@@ -293,7 +293,7 @@ class OpenIDRequestHandler(BaseHTTPRequestHandler):
odd = ' class="odd"'
for k, v in sreg_list:
- field_name = sreg.sr... | [project @ Fix sreg display (to match sreg api change)] | py |
diff --git a/utils.py b/utils.py
index <HASH>..<HASH> 100644
--- a/utils.py
+++ b/utils.py
@@ -5,13 +5,20 @@
from __future__ import generators
import operator, math, random, copy, sys, os.path, bisect, re
+assert (2,5) <= sys.version_info < (3,), """\
+This code is meant for Python 2.5 through 2.7.
+You might find ... | Added Python <I>-7 version check. | py |
diff --git a/wallace/command_line.py b/wallace/command_line.py
index <HASH>..<HASH> 100755
--- a/wallace/command_line.py
+++ b/wallace/command_line.py
@@ -423,4 +423,13 @@ def verify():
print "✗ experiment.py is MISSING"
is_passing = False
+ # Make sure there's a README
+ is_txt_readme = os.pa... | Verify presence of a README in Wallace apps | py |
diff --git a/lib/access_control_engine.py b/lib/access_control_engine.py
index <HASH>..<HASH> 100644
--- a/lib/access_control_engine.py
+++ b/lib/access_control_engine.py
@@ -94,8 +94,8 @@ def acc_authorize_action(id_user, name_action, verbose=0, **arguments):
if not res2:
raise Exception
... | Fixed error reporting in case of not-yet-activated accounts, caused by commit <I>. BTW, the whole code should be prettified and tested. | py |
diff --git a/mutagen/wave.py b/mutagen/wave.py
index <HASH>..<HASH> 100644
--- a/mutagen/wave.py
+++ b/mutagen/wave.py
@@ -168,8 +168,8 @@ class WAVE(FileType):
def score(filename, fileobj, header):
filename = filename.lower()
- return (header.startswith(b"RIFF") * 2 + endswith(filename, b".wav")... | wave: consider RIFF type WAVE for file type score | py |
diff --git a/xclim/indices/_conversion.py b/xclim/indices/_conversion.py
index <HASH>..<HASH> 100644
--- a/xclim/indices/_conversion.py
+++ b/xclim/indices/_conversion.py
@@ -1191,9 +1191,9 @@ def universal_thermal_climate_index(
tr: xr.DataArray = None,
) -> xr.DataArray:
"""
- Mean Universal Thermal Cli... | Update xclim/indices/_conversion.py | py |
diff --git a/django_object_view_tracking/models.py b/django_object_view_tracking/models.py
index <HASH>..<HASH> 100644
--- a/django_object_view_tracking/models.py
+++ b/django_object_view_tracking/models.py
@@ -38,9 +38,8 @@ class ObjectTracker(object):
# The last date that we say "everything before this has b... | reworked viewed logic again | py |
diff --git a/test_twarc2.py b/test_twarc2.py
index <HASH>..<HASH> 100644
--- a/test_twarc2.py
+++ b/test_twarc2.py
@@ -8,16 +8,13 @@ import threading
dotenv.load_dotenv()
logging.basicConfig(filename="test.log", level=logging.INFO)
-T = None
BEARER_TOKEN = os.environ.get("BEARER_TOKEN")
+T = twarc.Twarc2(bearer_... | Move client constructor to the top level This allows testing of individual functions using the pytest name matching functionality, and better decouples the tests. For example this will run any test containing the string 'recent_search': pytest -k recent_search | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -32,7 +32,7 @@ setup(
},
license='MIT',
package_dir={'axes': 'axes'},
- python_requires='~=3.5',
+ python_requires='~=3.6',
install_requires=[
'django',
'django-appconf>=1.0.3', | Use Python <I> version marker in setup.py | py |
diff --git a/great_expectations/expectations/metrics/map_metric_provider.py b/great_expectations/expectations/metrics/map_metric_provider.py
index <HASH>..<HASH> 100644
--- a/great_expectations/expectations/metrics/map_metric_provider.py
+++ b/great_expectations/expectations/metrics/map_metric_provider.py
@@ -2052,7 +2... | Use engine.dialect.name instead of dialect.name (#<I>) | py |
diff --git a/multiqc/plots/bargraph.py b/multiqc/plots/bargraph.py
index <HASH>..<HASH> 100644
--- a/multiqc/plots/bargraph.py
+++ b/multiqc/plots/bargraph.py
@@ -79,9 +79,11 @@ def plot (data, cats=None, pconfig={}):
sample_dcount = dict()
for c in cats[idx].keys():
thisdata = list()
+ ... | Handle cases where all cats are missing | py |
diff --git a/docs/apigen.py b/docs/apigen.py
index <HASH>..<HASH> 100644
--- a/docs/apigen.py
+++ b/docs/apigen.py
@@ -21,12 +21,17 @@ import shutil
import sys
from fnmatch import fnmatch
from os import path
+from typing import Dict
from sphinx import __display_version__
+from sphinx.application import Sphinx
fr... | apigen.py: Import types used in type hints that pyflakes>=<I> now checks | py |
diff --git a/insights/client/utilities.py b/insights/client/utilities.py
index <HASH>..<HASH> 100644
--- a/insights/client/utilities.py
+++ b/insights/client/utilities.py
@@ -95,6 +95,8 @@ def write_to_disk(filename, delete=False, content=get_time()):
"""
Write filename out to disk
"""
+ if not os.pat... | check directory before writing a file (#<I>) | py |
diff --git a/bloop/stream/coordinator.py b/bloop/stream/coordinator.py
index <HASH>..<HASH> 100644
--- a/bloop/stream/coordinator.py
+++ b/bloop/stream/coordinator.py
@@ -1,5 +1,5 @@
import arrow
-from typing import Dict, List, Optional, Any, Mapping
+from typing import Dict, List, Optional, Any, Mapping # noqa
fr... | typing.List only used in comment annotation, flake8 thinks it's unused | py |
diff --git a/python/dllib/src/test/dev/run-tests.py b/python/dllib/src/test/dev/run-tests.py
index <HASH>..<HASH> 100755
--- a/python/dllib/src/test/dev/run-tests.py
+++ b/python/dllib/src/test/dev/run-tests.py
@@ -136,7 +136,7 @@ def run_individual_python_test(test_name, python_exec):
def get_default_python_executa... | Enable python<I> testing (#<I>) | py |
diff --git a/aliyun/log/util.py b/aliyun/log/util.py
index <HASH>..<HASH> 100755
--- a/aliyun/log/util.py
+++ b/aliyun/log/util.py
@@ -203,21 +203,21 @@ class UTC(tzinfo):
utc = UTC()
-def parse_timestamp(tm, fmts=("%Y-%m-%d %H:%M:%S", "%Y-%m-%d %H:%M:%S %Z")):
+def parse_timestamp(tm):
if isinstance(tm,... | use parser by default to keep py2/py3 consistent. | py |
diff --git a/src/edeposit/amqp/harvester/structures.py b/src/edeposit/amqp/harvester/structures.py
index <HASH>..<HASH> 100755
--- a/src/edeposit/amqp/harvester/structures.py
+++ b/src/edeposit/amqp/harvester/structures.py
@@ -108,6 +108,9 @@ class Publication(object):
return isbn
+ if self.opti... | #5: Added EAN to _get_hash() | py |
diff --git a/espefuse.py b/espefuse.py
index <HASH>..<HASH> 100755
--- a/espefuse.py
+++ b/espefuse.py
@@ -22,6 +22,7 @@ import argparse
import sys
import os
import struct
+import time
# Table of efuse values - (category, block, word in block, mask, write disable bit, read disable bit, register name, type, descri... | espefuse: Calculate efuse timeout in time units rather than number of retries | py |
diff --git a/src/service.py b/src/service.py
index <HASH>..<HASH> 100644
--- a/src/service.py
+++ b/src/service.py
@@ -375,7 +375,7 @@ class Service(SchedulingItem):
#Raise a log entry with a Notification alert like
#SERVICE NOTIFICATION: superadmin;server;Load;OK;notify-by-rss;no output
def raise_notifi... | * typo found. added a missing _ to __class__ | py |
diff --git a/examples/plotting/file/box_annotation.py b/examples/plotting/file/box_annotation.py
index <HASH>..<HASH> 100644
--- a/examples/plotting/file/box_annotation.py
+++ b/examples/plotting/file/box_annotation.py
@@ -5,7 +5,7 @@ from bokeh.sampledata.glucose import data
TOOLS = "pan,wheel_zoom,box_zoom,reset,sav... | REF: Use .loc instead of .ix in box_annotation example (#<I>) | py |
diff --git a/pylint/checkers/utils.py b/pylint/checkers/utils.py
index <HASH>..<HASH> 100644
--- a/pylint/checkers/utils.py
+++ b/pylint/checkers/utils.py
@@ -15,6 +15,7 @@ import six
from six.moves import map, builtins # pylint: disable=redefined-builtin
import astroid
+from astroid import bases as _bases
from as... | Check proxies when verifying if an object supports a protocol This patch adds support for understanding proxies of instances when checking if an object, the proxy in question, supports a protocol or not. The problem was with the isinstance call, since the proxy we have does not forward the __instancecheck__ to its und... | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -42,7 +42,7 @@ tests_require = [
'pytest-cache>=1.0',
'pytest-cov>=1.8.0',
'pytest-pep8>=1.0.6',
- 'pytest>=2.8.0',
+ 'pytest>=3.6.0', # due to pytest-cov requirement
]
extras_require = { | setup: fix pytest version to be compatible with pytest-cov | py |
diff --git a/openquake/signalling.py b/openquake/signalling.py
index <HASH>..<HASH> 100644
--- a/openquake/signalling.py
+++ b/openquake/signalling.py
@@ -42,7 +42,8 @@ def generate_routing_key(job_id, type_):
:return: the routing key
:rtype: string
"""
- assert type_ in ('*', 'failed', 'succeeded', '... | Completed the list of logging levels Former-commit-id: <I>b9ed9c<I>f<I>c<I>a1fc7fad<I>a8ff<I> | py |
diff --git a/benchexec/tools/jdart.py b/benchexec/tools/jdart.py
index <HASH>..<HASH> 100644
--- a/benchexec/tools/jdart.py
+++ b/benchexec/tools/jdart.py
@@ -42,6 +42,8 @@ class Tool(benchexec.tools.template.BaseTool):
"jpf-jdart.jar",
"RunJPF.jar",
"version.txt",
+ "jdart.sh",
+ ... | Update the jdart tool integration module to include all shell scripts | py |
diff --git a/Lib/ufo2ft/kernFeatureWriter.py b/Lib/ufo2ft/kernFeatureWriter.py
index <HASH>..<HASH> 100644
--- a/Lib/ufo2ft/kernFeatureWriter.py
+++ b/Lib/ufo2ft/kernFeatureWriter.py
@@ -135,6 +135,7 @@ class KernFeatureWriter(object):
if leftIsClass:
self.leftUfoClasses[left] = self.group... | kernFeatureWriter: fix issue when collecting right kerning classes from UFO groups it was skipped when both 'leftIsClass' and 'rightIsClass' are true | py |
diff --git a/pandas/util/testing.py b/pandas/util/testing.py
index <HASH>..<HASH> 100644
--- a/pandas/util/testing.py
+++ b/pandas/util/testing.py
@@ -354,6 +354,10 @@ def ensure_clean(filename=None, return_filelike=False):
try:
fd, filename = tempfile.mkstemp(suffix=filename)
+ except Un... | TST: ensure_clean skips test when fs doesn't support unicode (sparc) | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -14,7 +14,7 @@ def get_version():
Read version from __init__.py
"""
version_regex = re.compile(
- '__version__\\s*=\\s*(?P<q>[\'"])(?P<version>\\d+(\\.\\d+)*)(?P=q)'
+ '__version__\\s*=\\s*(?P<q>[\... | Change version regex to allow for alpha versions (#<I>) | py |
diff --git a/sortinghat/cmd/export.py b/sortinghat/cmd/export.py
index <HASH>..<HASH> 100644
--- a/sortinghat/cmd/export.py
+++ b/sortinghat/cmd/export.py
@@ -84,17 +84,17 @@ class Export(Command):
"""
params = self.parser.parse_args(args)
- if params.identities:
- code = self.expo... | [cmd:export] Fix not closed output file error | py |
diff --git a/tests/util.py b/tests/util.py
index <HASH>..<HASH> 100644
--- a/tests/util.py
+++ b/tests/util.py
@@ -132,6 +132,6 @@ def run_scenario(application=None, feature=None, scenario=None, **opts):
proc = subprocess.Popen(
args, stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
text, _ = proc.c... | Fix parsing non-ASCII data from tests | py |
diff --git a/polyaxon/polyaxon/config_settings/core.py b/polyaxon/polyaxon/config_settings/core.py
index <HASH>..<HASH> 100644
--- a/polyaxon/polyaxon/config_settings/core.py
+++ b/polyaxon/polyaxon/config_settings/core.py
@@ -1,3 +1,5 @@
+from corsheaders.defaults import default_headers
+
from polyaxon.utils import R... | Add cors allow headers and origin whitelist | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -31,7 +31,6 @@ tests_require = [
"flake8",
"yanc",
"remotecv",
- "hiredis",
"pyssim",
"celery",
"cairosvg", | Remove unused hiredis dependency No usage of that library found anywhere in the code | py |
diff --git a/forms_builder/forms/tests.py b/forms_builder/forms/tests.py
index <HASH>..<HASH> 100644
--- a/forms_builder/forms/tests.py
+++ b/forms_builder/forms/tests.py
@@ -126,6 +126,14 @@ class Tests(TestCase):
except IntegrityError:
self.fail("Slugs were not auto-unique")
+ def test_fiel... | Add test ensuring validated slug length is under the field length | py |
diff --git a/suds/bindings/document.py b/suds/bindings/document.py
index <HASH>..<HASH> 100644
--- a/suds/bindings/document.py
+++ b/suds/bindings/document.py
@@ -109,6 +109,6 @@ class Document(Binding):
result = self.schema.find(qref)
if result is None:
raise TypeNotFound(ref... | returned_type() should return the (unresolved) Element | py |
diff --git a/tests/nosetests/test_fti/test_fti.py b/tests/nosetests/test_fti/test_fti.py
index <HASH>..<HASH> 100644
--- a/tests/nosetests/test_fti/test_fti.py
+++ b/tests/nosetests/test_fti/test_fti.py
@@ -34,9 +34,8 @@ def test_binary(plot=False):
b.plot()
plt.legend()
plt.show()
- asser... | tightened tolerance on test_fti now that its passing | py |
diff --git a/sievelib/commands.py b/sievelib/commands.py
index <HASH>..<HASH> 100644
--- a/sievelib/commands.py
+++ b/sievelib/commands.py
@@ -376,13 +376,13 @@ class Command(object):
break
if atype in curarg["type"]:
- ext = curarg.get("extension")
- condit... | Check valid value before checking if the extension is loaded Avoid giving an error that extension copy is not loaded when fileinto :create is specified. The fileinto command takes two optional tag arguments that require distinct extensions to be loaded: :copy requires the copy extension and :create requires the mailb... | py |
diff --git a/fints/segments/message.py b/fints/segments/message.py
index <HASH>..<HASH> 100644
--- a/fints/segments/message.py
+++ b/fints/segments/message.py
@@ -73,7 +73,7 @@ class HNVSK(FinTS3SegmentOLD):
':'.join(['PIN', str(profile_version)]),
998,
self.SECURITY_SUPPLIER_ROLE... | Add missing escaping (systemid sometimes has a +) | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -39,7 +39,6 @@ setup(
'scipy',
'pandas',
'scikit-learn',
- 'pyspark',
'pyarrow'
],
extras_require={ | Remove install_requires that are not used by bat These packages are often used with bat and some of them were used in examples, but the requirements list within setup.py should be limited only to packages specifically required by the bat package itself. Fixes #<I> | py |
diff --git a/angr/analyses/complete_calling_conventions.py b/angr/analyses/complete_calling_conventions.py
index <HASH>..<HASH> 100644
--- a/angr/analyses/complete_calling_conventions.py
+++ b/angr/analyses/complete_calling_conventions.py
@@ -202,7 +202,11 @@ class CompleteCallingConventionsAnalysis(Analysis):
... | CCA: Catch exceptions in workers. | py |
diff --git a/tests/test_wsaa_crypto.py b/tests/test_wsaa_crypto.py
index <HASH>..<HASH> 100644
--- a/tests/test_wsaa_crypto.py
+++ b/tests/test_wsaa_crypto.py
@@ -1,5 +1,7 @@
import base64, subprocess
+from past.builtins import basestring
+
from pyafipws.wsaa import WSAA
@@ -9,7 +11,7 @@ def test_wsfev1_create_... | WSAA: fix TRA test expecting unicode in python2 | py |
diff --git a/octodns/provider/cloudflare.py b/octodns/provider/cloudflare.py
index <HASH>..<HASH> 100644
--- a/octodns/provider/cloudflare.py
+++ b/octodns/provider/cloudflare.py
@@ -585,7 +585,7 @@ class CloudflareProvider(BaseProvider):
changed_records = {c.record for c in changes}
for desired_rec... | Use dict to speed up record search This dict is created earlier, presumably to speed up this exact lookup, but it was using the list form instead, requiring a linear scan for each item. | py |
diff --git a/pandas/tests/frame/indexing/test_indexing.py b/pandas/tests/frame/indexing/test_indexing.py
index <HASH>..<HASH> 100644
--- a/pandas/tests/frame/indexing/test_indexing.py
+++ b/pandas/tests/frame/indexing/test_indexing.py
@@ -2624,6 +2624,17 @@ class TestDataFrameIndexing:
result = df.loc[IndexTyp... | TST: add test for indexing with single/double tuples (#<I>) | py |
diff --git a/ella/core/cache/invalidate.py b/ella/core/cache/invalidate.py
index <HASH>..<HASH> 100644
--- a/ella/core/cache/invalidate.py
+++ b/ella/core/cache/invalidate.py
@@ -75,7 +75,7 @@ if ACTIVE_MQ_HOST:
# start listening for any model
# register the proper propagation function for intercept... | catch both pre_save and post_save signals for cache works for me now. git-svn-id: <URL> | py |
diff --git a/example/drone_delivery/drone_delivery.py b/example/drone_delivery/drone_delivery.py
index <HASH>..<HASH> 100644
--- a/example/drone_delivery/drone_delivery.py
+++ b/example/drone_delivery/drone_delivery.py
@@ -41,7 +41,6 @@ class Drone(object):
self._log("Waiting for GPS Lock")
def run(self... | if armed gps signal is lost | py |
diff --git a/safe_qgis/test_impact_functions_doc.py b/safe_qgis/test_impact_functions_doc.py
index <HASH>..<HASH> 100644
--- a/safe_qgis/test_impact_functions_doc.py
+++ b/safe_qgis/test_impact_functions_doc.py
@@ -98,7 +98,7 @@ class ImpactFunctionsDocTest(unittest.TestCase):
if myDatatype == 'sigab':
... | temporarly disabling 2 tests to run on jenkins | py |
diff --git a/dcard/cli.py b/dcard/cli.py
index <HASH>..<HASH> 100644
--- a/dcard/cli.py
+++ b/dcard/cli.py
@@ -49,6 +49,6 @@ def download(args):
print('成功下載 %d items!' % len(resources) if all(status) \
else '出了點錯下載不完全喔')
- print('Finish in {:.5f} sec(s).'.format(time.time() - start_time))
+ p... | hotfix in cli for py<I> | py |
diff --git a/tacl/catalogue.py b/tacl/catalogue.py
index <HASH>..<HASH> 100644
--- a/tacl/catalogue.py
+++ b/tacl/catalogue.py
@@ -49,4 +49,6 @@ class Catalogue (dict):
"""
with open(path, 'wb') as fh:
writer = csv.writer(fh, delimiter=' ')
- writer.writerows(self.items())
+ ... | Added sorting of catalogue entries when creating a new catalogue. | py |
diff --git a/master/buildbot/schedulers/filter.py b/master/buildbot/schedulers/filter.py
index <HASH>..<HASH> 100644
--- a/master/buildbot/schedulers/filter.py
+++ b/master/buildbot/schedulers/filter.py
@@ -56,3 +56,17 @@ class ChangeFilter(ComparableMixin):
if filt_fn is not None and not filt_fn(chg_val):... | change filter: have a repr() | py |
diff --git a/drf_generators/management/commands/generate.py b/drf_generators/management/commands/generate.py
index <HASH>..<HASH> 100644
--- a/drf_generators/management/commands/generate.py
+++ b/drf_generators/management/commands/generate.py
@@ -58,7 +58,7 @@ class Command(AppCommand):
generator = APIView... | E<I> is None, not == None | py |
diff --git a/pylivetrader/backend/alpaca.py b/pylivetrader/backend/alpaca.py
index <HASH>..<HASH> 100644
--- a/pylivetrader/backend/alpaca.py
+++ b/pylivetrader/backend/alpaca.py
@@ -432,8 +432,8 @@ class Backend(BaseBackend):
symbols = [assets.symbol]
else:
symbols = [asset.symbol fo... | Simplify the if statement it was a complicated condition with a more silmplified and readable alternative | py |
diff --git a/will/scripts/generate_will_project.py b/will/scripts/generate_will_project.py
index <HASH>..<HASH> 100644
--- a/will/scripts/generate_will_project.py
+++ b/will/scripts/generate_will_project.py
@@ -257,11 +257,11 @@ PLUGIN_BLACKLIST = [
if not os.path.exists(readme_path):
with open(readme_pat... | Bugfix in the generated README.md format Change auto generated README.md file content from "This is our bot, a [<URL> bot." to "This is our bot, a [will](<URL>) bot." | py |
diff --git a/tests/pytests/functional/modules/test_pkg.py b/tests/pytests/functional/modules/test_pkg.py
index <HASH>..<HASH> 100644
--- a/tests/pytests/functional/modules/test_pkg.py
+++ b/tests/pytests/functional/modules/test_pkg.py
@@ -534,4 +534,3 @@ def test_list_repos_duplicate_entries(grains, modules):
... | Updated leaving clean yum.conf in destructive tests | py |
diff --git a/telethon/errors/rpcbaseerrors.py b/telethon/errors/rpcbaseerrors.py
index <HASH>..<HASH> 100644
--- a/telethon/errors/rpcbaseerrors.py
+++ b/telethon/errors/rpcbaseerrors.py
@@ -7,6 +7,7 @@ class RPCError(Exception):
super().__init__('RPCError {}: {}{}'.format(
code or self.code, mess... | Fix errors found by new tests (#<I>) | py |
diff --git a/artist/__init__.py b/artist/__init__.py
index <HASH>..<HASH> 100644
--- a/artist/__init__.py
+++ b/artist/__init__.py
@@ -57,9 +57,9 @@ The following modules are included:
based on the name of the function creating the plot.
"""
-from plot import Plot, PolarPlot
-from multi_plot import MultiPlot
-f... | fixing relative imports The only acceptable syntax for relative imports is from .[module] import name. All import forms not starting with . are interpreted as absolute imports. (PEP <I>) | py |
diff --git a/taxtastic/refpkg.py b/taxtastic/refpkg.py
index <HASH>..<HASH> 100644
--- a/taxtastic/refpkg.py
+++ b/taxtastic/refpkg.py
@@ -155,6 +155,7 @@ class Refpkg(object):
os.mkdir(path)
with open(os.path.join(path, self._manifest_name), 'w') as h:
json.dump(m... | Trailing newline in JSON output For reading from R | py |
diff --git a/openquake/calculators/views.py b/openquake/calculators/views.py
index <HASH>..<HASH> 100644
--- a/openquake/calculators/views.py
+++ b/openquake/calculators/views.py
@@ -304,7 +304,7 @@ def view_job_info(token, dstore):
task_sent.refresh()
task_sent = dict(task_sent[()])
for task, array in g... | Fixed view_job_info [skip CI] | py |
diff --git a/pliers/converters/misc.py b/pliers/converters/misc.py
index <HASH>..<HASH> 100644
--- a/pliers/converters/misc.py
+++ b/pliers/converters/misc.py
@@ -15,11 +15,11 @@ class ExtractorResultToSeriesConverter(Converter):
df = result.to_df(timing=False, metadata=False, object_id=False)
n_rows ... | ensure context attributes are set to None if unavailable | py |
diff --git a/argcomplete/completers.py b/argcomplete/completers.py
index <HASH>..<HASH> 100644
--- a/argcomplete/completers.py
+++ b/argcomplete/completers.py
@@ -85,7 +85,7 @@ class _FilteredFilesCompleter(object):
A predicate accepts as its only argument a candidate path and either
accepts it or re... | Removed assertion at _FilteredFilesCompleter | py |
diff --git a/pybry/constants.py b/pybry/constants.py
index <HASH>..<HASH> 100644
--- a/pybry/constants.py
+++ b/pybry/constants.py
@@ -17,3 +17,6 @@ DTYPE_MAPPING = {'list': list,
# LBRYCRD documentation doesn't exist at least that I could find
# LBRYCRD_API_RAW_JSON_URL = ""
+
+
+LBRYD_FPATH = "pybry/lbryd_api_tes... | Adds path to the LBRYD api file | py |
diff --git a/session_security/tests/base.py b/session_security/tests/base.py
index <HASH>..<HASH> 100644
--- a/session_security/tests/base.py
+++ b/session_security/tests/base.py
@@ -1,7 +1,12 @@
import time
from django.contrib.auth.models import User
-from django.test import LiveServerTestCase
+
+try:
+ from dj... | Support django <I> in tests | py |
diff --git a/doctr/__main__.py b/doctr/__main__.py
index <HASH>..<HASH> 100644
--- a/doctr/__main__.py
+++ b/doctr/__main__.py
@@ -130,7 +130,7 @@ def configure(args, parser):
"doctr configure --force to run anyway.")
build_repo = input("What repo do you want to build the docs for (org/reponame, lik... | Add missing trailing space from input() call | py |
diff --git a/transit/handler.py b/transit/handler.py
index <HASH>..<HASH> 100644
--- a/transit/handler.py
+++ b/transit/handler.py
@@ -161,14 +161,8 @@ class DateTimeHandler(object):
class VerboseDateTimeHandler(DateTimeHandler):
@staticmethod
- def tag(_):
- return "t"
- @staticmethod
def rep... | removed unecessary method defs from verbose handler after inheritance change. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -7,7 +7,7 @@ use_setuptools()
from setuptools import setup, find_packages
setup(name = "svg-chart",
- version = "1.1",
+ version = "1.2",
description = "Python SVG Charting Library",
author = "Jason R. Coombs",
... | bumped to version <I> | py |
diff --git a/ansible/module_utils/hashivault.py b/ansible/module_utils/hashivault.py
index <HASH>..<HASH> 100644
--- a/ansible/module_utils/hashivault.py
+++ b/ansible/module_utils/hashivault.py
@@ -170,19 +170,22 @@ def hashivault_read(params):
try:
data = response.get('data', {})
... | Support metadata for v1 reads | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -4,7 +4,7 @@
Sentry-Python - Sentry SDK for Python
=====================================
-**Sentry-Python is an experimental SDK for Sentry.** Check out `GitHub
+**Sentry-Python is an SDK for Sentry.** Check out `GitHub
<... | Remove experimental disclaimer from PyPI (#<I>) * Remove experimental disclaimer from PyPI * Update setup.py | py |
diff --git a/skitai/server/Skitai.py b/skitai/server/Skitai.py
index <HASH>..<HASH> 100644
--- a/skitai/server/Skitai.py
+++ b/skitai/server/Skitai.py
@@ -255,6 +255,7 @@ class Loader:
return None # worker process
def close (self):
+ print ('11111111', self.wasc.httpserver.worker_ident)
for attr, obj in li... | handle KeyboardInterrupt on posix | py |
diff --git a/responses/__init__.py b/responses/__init__.py
index <HASH>..<HASH> 100644
--- a/responses/__init__.py
+++ b/responses/__init__.py
@@ -812,11 +812,6 @@ class RequestsMock(object):
response = resp_callback(response) if resp_callback else response
raise
- stream = kw... | Remove unnecessary code in in _on_request We don't need to access `response.content` anymore to load the response body stream. | py |
diff --git a/holoviews/plotting/raster.py b/holoviews/plotting/raster.py
index <HASH>..<HASH> 100644
--- a/holoviews/plotting/raster.py
+++ b/holoviews/plotting/raster.py
@@ -278,10 +278,10 @@ class RasterGridPlot(GridPlot, OverlayPlot):
def update_frame(self, key, ranges=None):
- grid_values = self.lay... | RasterGridPlot fixes for Layouts with different dimensions | py |
diff --git a/custodian/vasp/handlers.py b/custodian/vasp/handlers.py
index <HASH>..<HASH> 100644
--- a/custodian/vasp/handlers.py
+++ b/custodian/vasp/handlers.py
@@ -457,9 +457,12 @@ class NonConvergingErrorHandler(ErrorHandler, MSONable):
@classmethod
def from_dict(cls, d):
- return cls(output_file... | Added backward compatibility in NonConvergingHandler | py |
diff --git a/ipware/apps.py b/ipware/apps.py
index <HASH>..<HASH> 100644
--- a/ipware/apps.py
+++ b/ipware/apps.py
@@ -1,5 +1,5 @@
from django.apps import AppConfig
-from django.utils.translation import ugettext_lazy as _
+from django.utils.translation import gettext_lazy as _
class IPwareConfig(AppConfig): | Fix for Django <I> (#<I>) | py |
diff --git a/bit/network/services.py b/bit/network/services.py
index <HASH>..<HASH> 100644
--- a/bit/network/services.py
+++ b/bit/network/services.py
@@ -973,11 +973,11 @@ class NetworkAPI:
BlockchainAPI.get_transaction_by_id,
]
GET_UNSPENT_MAIN = [
+ BlockstreamAPI.get_unspent,
Bloc... | Downgrade BitCoreAPI in GET_UNSPENT_MAIN and GET_UNSPENT_TEST (#<I>) | py |
diff --git a/phoebe/parameters/parameters.py b/phoebe/parameters/parameters.py
index <HASH>..<HASH> 100644
--- a/phoebe/parameters/parameters.py
+++ b/phoebe/parameters/parameters.py
@@ -3833,7 +3833,13 @@ class FloatParameter(Parameter):
self.set_value(kwargs.get('value', ''), unit)
- self._dict_fi... | hide timederiv unless in developer mode closes #<I> | py |
diff --git a/pdb.py b/pdb.py
index <HASH>..<HASH> 100644
--- a/pdb.py
+++ b/pdb.py
@@ -371,6 +371,13 @@ class Pdb(pdb.Pdb, ConfigurableClass):
self.history.append(line)
return pdb.Pdb.default(self, line)
+ def do_help(self, arg):
+ try:
+ return pdb.Pdb.do_help(self, arg)
+ ... | Catch AttributeError and print "No help" message because some functions in Python 3 have no doc string | py |
diff --git a/autopython/cpython.py b/autopython/cpython.py
index <HASH>..<HASH> 100644
--- a/autopython/cpython.py
+++ b/autopython/cpython.py
@@ -130,6 +130,18 @@ class PresenterShell(object):
color_scheme=self._color_scheme, locals=ns)
else:
self._interpreter = Prese... | Add readline support (with autocomplete) for CPython interactive prompt | py |
diff --git a/gnupg/_parsers.py b/gnupg/_parsers.py
index <HASH>..<HASH> 100644
--- a/gnupg/_parsers.py
+++ b/gnupg/_parsers.py
@@ -1541,7 +1541,7 @@ class ListPackets(object):
if not self.key:
self.key = key
self.encrypted_to.append(key)
- elif key == ('NEED_PASSPHRASE'... | Fix need_passphrase bug in ListPackets | py |
diff --git a/indra/assemblers/html/assembler.py b/indra/assemblers/html/assembler.py
index <HASH>..<HASH> 100644
--- a/indra/assemblers/html/assembler.py
+++ b/indra/assemblers/html/assembler.py
@@ -630,6 +630,7 @@ def _format_evidence_text(stmt, curation_dict=None, correct_tags=None):
[cur for cur in cura... | Use helper to get source url | py |
diff --git a/bcbio/variation/prioritize.py b/bcbio/variation/prioritize.py
index <HASH>..<HASH> 100644
--- a/bcbio/variation/prioritize.py
+++ b/bcbio/variation/prioritize.py
@@ -68,7 +68,7 @@ def _prep_priority_filter(gemini_db, data):
"""
from gemini import GeminiQuery
out_file = "%s-priority.tsv" % ut... | tumor-only: check for bgzip filter CSV on re-runs Avoid slow down when re-running projects with tumor-only prioritization since bgzip file produced after generating initial CSV. | py |
diff --git a/salt/modules/pip.py b/salt/modules/pip.py
index <HASH>..<HASH> 100644
--- a/salt/modules/pip.py
+++ b/salt/modules/pip.py
@@ -98,7 +98,8 @@ def _get_user(user, runas):
salt.utils.warn_until(
'Lithium',
'The \'runas\' argument to pip.install is deprecated, and will be '
- ... | BUG: Set warning on deprecated runas option to occur at the right stack level | py |
diff --git a/insights/specs/default.py b/insights/specs/default.py
index <HASH>..<HASH> 100644
--- a/insights/specs/default.py
+++ b/insights/specs/default.py
@@ -348,6 +348,8 @@ class DefaultSpecs(Specs):
# https://access.redhat.com/solutions/21680
return list(ps_httpds)
+ httpd_pid = simple_com... | Add spec "httpd limits" back (#<I>) | py |
diff --git a/sovrin_common/identity.py b/sovrin_common/identity.py
index <HASH>..<HASH> 100644
--- a/sovrin_common/identity.py
+++ b/sovrin_common/identity.py
@@ -53,6 +53,11 @@ class Identity(GeneratesRequest):
def verkey(self):
return self.identity.verkey
+ @verkey.setter
+ def verkey(self, new_... | fixed setting a verkey in the Identity Object (#<I>) | py |
diff --git a/salt/modules/napalm_netacl.py b/salt/modules/napalm_netacl.py
index <HASH>..<HASH> 100644
--- a/salt/modules/napalm_netacl.py
+++ b/salt/modules/napalm_netacl.py
@@ -26,7 +26,7 @@ it requires NAPALM_ library to be installed: ``pip install napalm``.
Please check Installation_ for complete details.
.. _... | Correct link to napalm installation. Resolves #<I> | py |
diff --git a/pelix/shell/core.py b/pelix/shell/core.py
index <HASH>..<HASH> 100644
--- a/pelix/shell/core.py
+++ b/pelix/shell/core.py
@@ -507,9 +507,9 @@ class ShellService(parser.Shell):
try:
max_depth = int(max_depth)
if max_depth < 1:
- max_depth = sys.maxint
+ ... | "thread(s)" shell commands works with Python 3 sys.maxint has been removed in Python 3 | py |
diff --git a/pymatgen/analysis/wulff.py b/pymatgen/analysis/wulff.py
index <HASH>..<HASH> 100644
--- a/pymatgen/analysis/wulff.py
+++ b/pymatgen/analysis/wulff.py
@@ -588,7 +588,7 @@ class WulffShape:
x_pts, y_pts, z_pts = all_xyz[0], all_xyz[1], all_xyz[2]
index_list = [int(i) for i in np.lin... | Bug fix for plotly plotting of Wulff shapes | py |
diff --git a/charmhelpers/core/hookenv.py b/charmhelpers/core/hookenv.py
index <HASH>..<HASH> 100644
--- a/charmhelpers/core/hookenv.py
+++ b/charmhelpers/core/hookenv.py
@@ -624,7 +624,7 @@ def unit_private_ip():
@cached
-def storage_get(attribute="", storage_id=""):
+def storage_get(attribute=None, storage_id=No... | Use None for default values in storage helpers For consistency with other helpers. | py |
diff --git a/tests/urls.py b/tests/urls.py
index <HASH>..<HASH> 100644
--- a/tests/urls.py
+++ b/tests/urls.py
@@ -1,4 +1,4 @@
-from django.conf.urls import include, patterns, url
+from django.conf.urls import include, url
from dynamic_rest.routers import DynamicRouter
from tests import viewsets
@@ -20,7 +20,6 @@ r... | remove patterns (deprecated in <I>) | py |
diff --git a/aiofiles/__init__.py b/aiofiles/__init__.py
index <HASH>..<HASH> 100644
--- a/aiofiles/__init__.py
+++ b/aiofiles/__init__.py
@@ -1,6 +1,6 @@
"""Utilities for asyncio-friendly file handling."""
from .threadpool import open
-__version__ = "0.6.0"
+__version__ = "0.7.0dev0"
__all__ = ["open"] | <I> open for business! | py |
diff --git a/salt/beacons/service.py b/salt/beacons/service.py
index <HASH>..<HASH> 100644
--- a/salt/beacons/service.py
+++ b/salt/beacons/service.py
@@ -72,6 +72,16 @@ def beacon(config):
ret_dict = {}
ret_dict[service] = {'running': __salt__['service.status'](service)}
+ # If no options is... | Fixed issue number #<I> - When no parameters are given to a service, the service object is of type None and thus isn't iterable. This is contrary to the documentation which states that there are default values. Default values added as False | py |
diff --git a/xarray/test/test_dask.py b/xarray/test/test_dask.py
index <HASH>..<HASH> 100644
--- a/xarray/test/test_dask.py
+++ b/xarray/test/test_dask.py
@@ -332,5 +332,5 @@ class TestDataArrayAndDataset(DaskTestCase):
# Test array creation from Variable with dask backend.
# This is used e.g. in broa... | Integrate no_dask_resolve with dask_broadcast branches | py |
diff --git a/estnltk/layer/enveloping_span.py b/estnltk/layer/enveloping_span.py
index <HASH>..<HASH> 100644
--- a/estnltk/layer/enveloping_span.py
+++ b/estnltk/layer/enveloping_span.py
@@ -53,7 +53,6 @@ class EnvelopingSpan:
for x in zip(*[[i
if isinstance(i, (list, tuple))
... | removed EnvelopingSpan.layer setter | py |
diff --git a/functional_tests/test_implicitized_intersect.py b/functional_tests/test_implicitized_intersect.py
index <HASH>..<HASH> 100644
--- a/functional_tests/test_implicitized_intersect.py
+++ b/functional_tests/test_implicitized_intersect.py
@@ -92,7 +92,17 @@ def check_no_intersect(nodes1, nodes2):
assert pa... | Adding IDs for `parametrize`-d functional tests. This way, a failure can actually give a human-readable description of what was being tested. Big time H/T to: <URL> | py |
diff --git a/searx/engines/bing.py b/searx/engines/bing.py
index <HASH>..<HASH> 100644
--- a/searx/engines/bing.py
+++ b/searx/engines/bing.py
@@ -52,7 +52,8 @@ def request(query, params):
offset=offset)
params['url'] = base_url + search_path
- params['headers']['User-Agent'] = 'Mozilla/5.0 (X11; Lin... | fix pylint error in bing engine | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -47,10 +47,10 @@ setup(
'gevent>=1.0.2',
'psycogreen>=1.0',
'django-db-geventpool>=1.20.1',
- 'redis>=2.10.5',
+ 'redis~=2.10.6',
'requests>=2.8.1',
'django-redis>=4.3... | Pin versions of redis, asgi-redis and channels packages | py |
diff --git a/alignak/external_command.py b/alignak/external_command.py
index <HASH>..<HASH> 100644
--- a/alignak/external_command.py
+++ b/alignak/external_command.py
@@ -3664,19 +3664,3 @@ class ExternalCommandManager:
realm.fill_potential_satellites_by_type('pollers')
logger.debug("Poller %s added",... | Enh: Pylint - C<I> for constants names in external_command.py | py |
diff --git a/tests/test_parser.py b/tests/test_parser.py
index <HASH>..<HASH> 100644
--- a/tests/test_parser.py
+++ b/tests/test_parser.py
@@ -813,16 +813,15 @@ def _make_parser_test(LEXER, PARSER):
def test_templates(self):
g = _Lark(r"""
- start: number_list "\n" number_d... | Corrected & Simplified test | py |
diff --git a/pykechain/models/widgets/widget_schemas.py b/pykechain/models/widgets/widget_schemas.py
index <HASH>..<HASH> 100644
--- a/pykechain/models/widgets/widget_schemas.py
+++ b/pykechain/models/widgets/widget_schemas.py
@@ -32,7 +32,8 @@ def get_widget_meta_schema(widget_type=WidgetTypes.UNDEFINED):
# }
# ... | working concept of json schemas for attachment widget | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.