diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
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
@@ -468,8 +468,12 @@ def request_instance(vm_=None, call=None):
if files:
kwargs['files'] = {}
for src_path in files:
- with sa... | pass file contents for files: in nova We just read in the contents if it is a file, otherwise use the string or yaml multiline string in this object | py |
diff --git a/visidata/pivot.py b/visidata/pivot.py
index <HASH>..<HASH> 100644
--- a/visidata/pivot.py
+++ b/visidata/pivot.py
@@ -181,7 +181,7 @@ class PivotSheet(Sheet):
if width == 0:
# only one value (and maybe errors)
numericBins = [(minval, maxval)]
- elif... | [numeric binning] perform degenerate binning when nbins greater than number of values | py |
diff --git a/flask_appbuilder/api/__init__.py b/flask_appbuilder/api/__init__.py
index <HASH>..<HASH> 100644
--- a/flask_appbuilder/api/__init__.py
+++ b/flask_appbuilder/api/__init__.py
@@ -314,6 +314,17 @@ class BaseApi(object):
}
},
},
+ "403": {
+ "descriptio... | [api] New, http <I> forbidden on default responses (#<I>) | py |
diff --git a/blinkpy.py b/blinkpy.py
index <HASH>..<HASH> 100644
--- a/blinkpy.py
+++ b/blinkpy.py
@@ -47,7 +47,7 @@ def _request(blink, url='http://google.com', data=None, headers=None,
(response.json()['code'], response.json()['message']))
else:
headers = _attempt_reauthorizatio... | Update the changes made to _request method Forgot to include 'return' | py |
diff --git a/tests/test_build_ext.py b/tests/test_build_ext.py
index <HASH>..<HASH> 100644
--- a/tests/test_build_ext.py
+++ b/tests/test_build_ext.py
@@ -444,8 +444,16 @@ class BuildExtTestCase(TempdirManager,
# get the deployment target that the interpreter was built with
target = sysconfig.get_co... | Issue #<I>: Anticipated fixes to 3.x and <I> for OS X <I> Yosemite. | py |
diff --git a/molecule/provisioner/ansible/plugins/filters/molecule_core.py b/molecule/provisioner/ansible/plugins/filters/molecule_core.py
index <HASH>..<HASH> 100644
--- a/molecule/provisioner/ansible/plugins/filters/molecule_core.py
+++ b/molecule/provisioner/ansible/plugins/filters/molecule_core.py
@@ -68,6 +68,8 @@... | Avoid payloads which do not have correct keys (#<I>) Patch for ba<I>aaf<I>cbc2e<I>f1aafee3e<I>f<I>f. | py |
diff --git a/fluo/__init__.py b/fluo/__init__.py
index <HASH>..<HASH> 100644
--- a/fluo/__init__.py
+++ b/fluo/__init__.py
@@ -21,7 +21,7 @@
from .utils.version import get_version
-VERSION = (0, 4, 0, "alpha", 1)
+VERSION = (0, 4, 0, "alpha", 2)
__version__ = get_version(VERSION)
__author__ = "Raffaele Salma... | update version to <I>a2 | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -71,7 +71,7 @@ setup(
keywords='crypto pki tls ssl x509 certificate encrypt decrypt sign verify rsa dsa ec dh',
- install_requires=['asn1crypto>=0.21.0'],
+ install_requires=['asn1crypto>=0.20.0'],
packages... | Reduce asn1crypto version spec for CI to complete | py |
diff --git a/soco/core.py b/soco/core.py
index <HASH>..<HASH> 100755
--- a/soco/core.py
+++ b/soco/core.py
@@ -265,8 +265,10 @@ class SoCo(_SocoSingletonBase):
# better way?
response = requests.get(self.device_description_url).text
tree = XML.fromstring(response.encode('utf-8'))
- self... | Remove 'uid:' from beginning of uid in some cases | py |
diff --git a/bika/lims/browser/analysisrequest.py b/bika/lims/browser/analysisrequest.py
index <HASH>..<HASH> 100644
--- a/bika/lims/browser/analysisrequest.py
+++ b/bika/lims/browser/analysisrequest.py
@@ -1270,7 +1270,7 @@ def analysisrequest_add_submit(context, request):
**dict(values)
... | Fixed conflict in setAnalyses in browser/analysisrequests.py | py |
diff --git a/yaka/core/subjects.py b/yaka/core/subjects.py
index <HASH>..<HASH> 100644
--- a/yaka/core/subjects.py
+++ b/yaka/core/subjects.py
@@ -172,7 +172,9 @@ class User(Principal, UserMixin, Entity):
@property
def name(self):
- return (self.first_name or "Unknown") + " " + (self.last_name or "Unknown")
... | user name: return 'Unknown' only if first_name and last_name are both empty | py |
diff --git a/tests/unit_project/run_tests.py b/tests/unit_project/run_tests.py
index <HASH>..<HASH> 100755
--- a/tests/unit_project/run_tests.py
+++ b/tests/unit_project/run_tests.py
@@ -32,7 +32,7 @@ sys.argv.insert(1, '--with-django')
import nose
-nose.run(
+nose.run_exit(
defaultTest=dirname(__file__),
) | Tests will fail in buildbot now | py |
diff --git a/salt/runner.py b/salt/runner.py
index <HASH>..<HASH> 100644
--- a/salt/runner.py
+++ b/salt/runner.py
@@ -153,7 +153,7 @@ class RunnerClient(mixins.SyncClientMixin, mixins.AsyncClientMixin, object):
# - the progress event system with the correct jid
# - Provide JID if the runner wants to ... | change runner event instansiation to use factory func | py |
diff --git a/wrapper/xgboost.py b/wrapper/xgboost.py
index <HASH>..<HASH> 100644
--- a/wrapper/xgboost.py
+++ b/wrapper/xgboost.py
@@ -657,7 +657,7 @@ def train(params, dtrain, num_boost_round=10, evals=(), obj=None, feval=None,
maximize_score = False
if 'eval_metric' in params:
maximize_... | Fix early stopping in python wrapper | py |
diff --git a/instabot/bot/bot_support.py b/instabot/bot/bot_support.py
index <HASH>..<HASH> 100644
--- a/instabot/bot/bot_support.py
+++ b/instabot/bot/bot_support.py
@@ -7,20 +7,21 @@ import os
import codecs
-def check_if_file_exists(file_path):
+def check_if_file_exists(file_path, quiet=False):
if not os.pa... | Removed message "Can't find file" when bot is initializing and searching whitelists | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -19,7 +19,6 @@ setup( name = 'pydot',
url = 'http://code.google.com/p/pydot/',
license = 'MIT',
keywords = 'graphviz dot graphs visualization',
- platforms = ['any'],
classifiers = ['Development Status :... | REL: rm platform arg to `setup` because not restrictive | py |
diff --git a/flink-python/pyflink/table/tests/test_environment_completeness.py b/flink-python/pyflink/table/tests/test_environment_completeness.py
index <HASH>..<HASH> 100644
--- a/flink-python/pyflink/table/tests/test_environment_completeness.py
+++ b/flink-python/pyflink/table/tests/test_environment_completeness.py
@... | [hotfix][python] Clean up test_environment_completeness by removing the legacy excluded methods which are already supported | py |
diff --git a/holoviews/core/ndmapping.py b/holoviews/core/ndmapping.py
index <HASH>..<HASH> 100644
--- a/holoviews/core/ndmapping.py
+++ b/holoviews/core/ndmapping.py
@@ -13,7 +13,7 @@ import param
from . import traversal
from .dimension import OrderedDict, Dimension, Dimensioned, ViewableElement
-from .util import... | NdMapping now uses process_ellipses in __getitem__ | py |
diff --git a/dynash/dynash.py b/dynash/dynash.py
index <HASH>..<HASH> 100755
--- a/dynash/dynash.py
+++ b/dynash/dynash.py
@@ -593,7 +593,7 @@ class DynamoDBShell(Cmd):
elif args[0].startswith('-'):
arg = args.pop(0)
- if arg == '-c':
+ if arg == '-c' or arg... | - fixed -c in query command - added --count (same as -c) | py |
diff --git a/coursera/downloaders.py b/coursera/downloaders.py
index <HASH>..<HASH> 100644
--- a/coursera/downloaders.py
+++ b/coursera/downloaders.py
@@ -322,9 +322,10 @@ class NativeDownloader(Downloader):
else:
logging.info('Downloading %s -> %s', url, filename)
+ max_attempts = 3
... | Decrease number of download retries in NativeDownloader from 5 to 3 | py |
diff --git a/sox/transform.py b/sox/transform.py
index <HASH>..<HASH> 100644
--- a/sox/transform.py
+++ b/sox/transform.py
@@ -1858,6 +1858,9 @@ class Transformer(object):
def noiseprof(self, profile_path):
'''Calculate a profile of the audio for use in noise reduction.
+ Running this command doe... | noiseprof now only saves a file | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -48,7 +48,7 @@ setup(
packages = find_packages(exclude=['cobra.oven', 'cobra.oven*']),
#scripts = [''],
#put in numpy, scipy, libsbml, and pyglpk
- setup_requires = ['cython'],
+ setup_requires = [],
... | setup.py does not require cython cobrapy will install fine without cython present, it just won't build the cglpk solver. Therefore, setup does not *require* cython | py |
diff --git a/peri/comp/objs.py b/peri/comp/objs.py
index <HASH>..<HASH> 100644
--- a/peri/comp/objs.py
+++ b/peri/comp/objs.py
@@ -226,6 +226,8 @@ class PlatonicSpheresCollection(Component):
"""
if isinstance(rad, (float, int)):
rad = rad*np.ones(pos.shape[0])
+ if rad.size != pos.... | PlatonicSpheresCollection: Raising error if pos, rad have different N particles. | py |
diff --git a/rest_framework_swagger/renderers.py b/rest_framework_swagger/renderers.py
index <HASH>..<HASH> 100644
--- a/rest_framework_swagger/renderers.py
+++ b/rest_framework_swagger/renderers.py
@@ -2,6 +2,7 @@ from coreapi.compat import force_bytes
from django.shortcuts import render, resolve_url
from openapi_co... | Do not try to render failed responses There might be a <I> response because of a missing version header. Not sure if this is the right approach here, but this resulted in a "<I> …" message in SwaggerUI instead of a error-<I> html dump. Related: <URL> | py |
diff --git a/spor/cli.py b/spor/cli.py
index <HASH>..<HASH> 100644
--- a/spor/cli.py
+++ b/spor/cli.py
@@ -73,8 +73,11 @@ def add_handler(args):
else:
text = sys.stdin.read()
- # TODO: More graceful handling of json parsing errors
- metadata = json.loads(text)
+ try:
+ metadata = json.lo... | better error handling when invalid JSON is provided. | py |
diff --git a/pdfconduit/flatten.py b/pdfconduit/flatten.py
index <HASH>..<HASH> 100644
--- a/pdfconduit/flatten.py
+++ b/pdfconduit/flatten.py
@@ -160,7 +160,10 @@ class IMGtoPDF:
m = str(Merge(self.pdf_pages, output_name=output_name, output_dir=self.output_dir))
if remove_temps:
if os.pa... | Added try and except blocks to temp removal | py |
diff --git a/src/kba/pipeline/_task_queues.py b/src/kba/pipeline/_task_queues.py
index <HASH>..<HASH> 100644
--- a/src/kba/pipeline/_task_queues.py
+++ b/src/kba/pipeline/_task_queues.py
@@ -291,6 +291,7 @@ class ZookeeperTaskQueue(object):
self.data['epoch_ticks'] = st.epoch_ticks
self.data['... | adding crucial state clearing to _return_task for graceful shutdown | py |
diff --git a/cumulusci/cli/cli.py b/cumulusci/cli/cli.py
index <HASH>..<HASH> 100644
--- a/cumulusci/cli/cli.py
+++ b/cumulusci/cli/cli.py
@@ -315,7 +315,7 @@ class ConnectServiceCommand(click.MultiCommand):
@click.pass_context
def callback(ctx,project=False,*args, **kwargs):
check_keycha... | only filter None values, not 0 or empty string... | py |
diff --git a/src/cr/cube/crunch_cube.py b/src/cr/cube/crunch_cube.py
index <HASH>..<HASH> 100644
--- a/src/cr/cube/crunch_cube.py
+++ b/src/cr/cube/crunch_cube.py
@@ -290,7 +290,7 @@ class CrunchCube(object):
get_non_selected)
res = np.array(values).reshape(shap... | Remove obsolete _fix_shape after refactor | py |
diff --git a/kappa/policy.py b/kappa/policy.py
index <HASH>..<HASH> 100644
--- a/kappa/policy.py
+++ b/kappa/policy.py
@@ -48,7 +48,7 @@ class Policy(object):
document = {'Version': '2012-10-17'}
statements = []
document['Statement'] = statements
- for resource in self.config['policy']... | Fix retrieval of resources when user is using statements | py |
diff --git a/deploy_stack.py b/deploy_stack.py
index <HASH>..<HASH> 100755
--- a/deploy_stack.py
+++ b/deploy_stack.py
@@ -55,7 +55,7 @@ class Environment:
raise ErroredUnit(entries[0], state)
pending = True
state_listing.append('%s: %s' % (state, ' '.join(entries... | Switch slash to virtical bar for clearer separation. | py |
diff --git a/quilt/push.py b/quilt/push.py
index <HASH>..<HASH> 100644
--- a/quilt/push.py
+++ b/quilt/push.py
@@ -23,7 +23,7 @@ import os.path
from quilt.command import Command
from quilt.db import Db, Series
-from quilt.error import NoPatchesInSeries
+from quilt.error import NoPatchesInSeries, AllPatchesApplied
... | Raise exception when all patches are already applied | py |
diff --git a/telegram_send.py b/telegram_send.py
index <HASH>..<HASH> 100644
--- a/telegram_send.py
+++ b/telegram_send.py
@@ -40,7 +40,7 @@ else: # python 2.7
import ConfigParser as configparser
input = raw_input
-__version__ = "0.16"
+__version__ = "0.17"
__all__ = ["configure", "send"]
gl... | fix setting a configuration file with the --stdin option | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -13,7 +13,7 @@ with open(path.join(here, 'README.rst'), encoding='utf-8') as f:
setup(
name='bibo',
version='0.0.12',
- description='A reference manager with single source of truth: the .bib file. Inspired by bee... | Fix typo in description in setup.py | py |
diff --git a/testapp/testapp/testmain/tests/test_webservices.py b/testapp/testapp/testmain/tests/test_webservices.py
index <HASH>..<HASH> 100644
--- a/testapp/testapp/testmain/tests/test_webservices.py
+++ b/testapp/testapp/testmain/tests/test_webservices.py
@@ -54,6 +54,7 @@ class AfipTestCase(TestCase):
Afip... | Tag AuthTicketTest as `live` | py |
diff --git a/src/pyrocore/util/matching.py b/src/pyrocore/util/matching.py
index <HASH>..<HASH> 100644
--- a/src/pyrocore/util/matching.py
+++ b/src/pyrocore/util/matching.py
@@ -187,7 +187,7 @@ class FieldFilter(Filter):
#down = "=",
# fno = "=",
prio = "d.priority=",
- # ratio = "=",... | queries: added 'ratio' support (#<I>) | py |
diff --git a/build/generateTsDefs.py b/build/generateTsDefs.py
index <HASH>..<HASH> 100755
--- a/build/generateTsDefs.py
+++ b/build/generateTsDefs.py
@@ -102,8 +102,6 @@ def GenerateTsDefs(inputs, output):
f.write(license_header)
f.write(b'\n')
f.write(contents)
- f.write(b'\n')
- f.write(b'export... | fix: Revert "Add missing module export in generated typescript defs" (#<I>) Reverts shaka-project/shaka-player#<I> Closes #<I> | py |
diff --git a/airflow/jobs/scheduler_job.py b/airflow/jobs/scheduler_job.py
index <HASH>..<HASH> 100644
--- a/airflow/jobs/scheduler_job.py
+++ b/airflow/jobs/scheduler_job.py
@@ -185,7 +185,6 @@ class DagFileProcessor(AbstractDagFileProcessor, LoggingMixin):
# The queue will likely get corrupted, so remove the... | [AIRFLOW-<I>] Bug-fix to killing hung file processes (#<I>) PRs #<I> and #<I> and fought a bit over this change, and this is hard (but not impossible) to test so we didn't notice. | py |
diff --git a/vyked/sql.py b/vyked/sql.py
index <HASH>..<HASH> 100644
--- a/vyked/sql.py
+++ b/vyked/sql.py
@@ -110,6 +110,6 @@ def cursor(func):
@wraps(func)
def wrapper(cls, *args, **kwargs):
with (yield from cls.get_cursor()) as c:
- yield from func(cls, c, *args, **kwargs)
+ ... | Fix bug where cursor decorator did not return the result | py |
diff --git a/jaraco/util/__init__.py b/jaraco/util/__init__.py
index <HASH>..<HASH> 100644
--- a/jaraco/util/__init__.py
+++ b/jaraco/util/__init__.py
@@ -454,3 +454,5 @@ class PasswordGenerator(object):
def random_byte_generator():
while True:
yield chr(random.randint(0, 255))
+
+callable = lambda obj: hasatt... | More work toward a Python 3 compatibility | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -4,7 +4,7 @@ setup(
name='sqlalchemy-dst',
description='SQLAlchemy Dictionary Serialization Tools.',
keywords='sqlalchemy python dict serialize tool',
- version='1.0.0',
+ version='1.0.1',
url='https:... | Upload the distributions to PyPi | py |
diff --git a/lib_common/src/d1_common/system_metadata.py b/lib_common/src/d1_common/system_metadata.py
index <HASH>..<HASH> 100644
--- a/lib_common/src/d1_common/system_metadata.py
+++ b/lib_common/src/d1_common/system_metadata.py
@@ -126,7 +126,7 @@ def normalize_in_place(sysmeta_pyxb, reset_timestamps=False):
)
... | Fix inconsistent normalization of sysmeta replica section This was a bug that only affected testing, where tests would sometimes randomly fail because XML doc elements got sorted differently. | py |
diff --git a/cleo/application.py b/cleo/application.py
index <HASH>..<HASH> 100644
--- a/cleo/application.py
+++ b/cleo/application.py
@@ -475,7 +475,7 @@ class Application(object):
function = exc_info[2]
line = exc_info[3]
- output_.writeln(' <info>%s</info> in <quest... | Updates formatting for verbose exceptions. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -47,7 +47,7 @@ setup(
python_requires='>=2.6, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*',
classifiers=[
"Development Status :: 4 - Beta",
- "License :: OSI Approved :: GNU Library or Lesser General Public Li... | Let setup.py use the same license as LICENSE file | py |
diff --git a/fuel/datasets/dogs_vs_cats.py b/fuel/datasets/dogs_vs_cats.py
index <HASH>..<HASH> 100644
--- a/fuel/datasets/dogs_vs_cats.py
+++ b/fuel/datasets/dogs_vs_cats.py
@@ -22,7 +22,7 @@ class DogsVsCats(H5PYDataset):
filename = 'dogs_vs_cats.hdf5'
default_transformers = ((ScaleAndShift, [1 / 255.0, 0... | Changed which_sources to be tuple | py |
diff --git a/heamy/estimator.py b/heamy/estimator.py
index <HASH>..<HASH> 100644
--- a/heamy/estimator.py
+++ b/heamy/estimator.py
@@ -2,7 +2,10 @@
import hashlib
import inspect
import logging
-from inspect import signature
+
+# NOTE:
+# 'getargspec' will be deprecated in future
+from inspect import getargspec
im... | I've left getargspec, but added a note | py |
diff --git a/cirq/circuits/circuit.py b/cirq/circuits/circuit.py
index <HASH>..<HASH> 100644
--- a/cirq/circuits/circuit.py
+++ b/cirq/circuits/circuit.py
@@ -167,7 +167,9 @@ class Circuit:
return self.copy()
def copy(self) -> 'Circuit':
- return Circuit(self._moments, device=self._device)
+ ... | Speeds up circuit copying (#<I>) - Circuit copying currently appends moments one by one to the new circuit. - This causes a lot of qid shape verification and device verification. - This is not needed for direct copying (copy()) and for slices (circuit[2:). - For a depth <I> circuit with <I> qubits, this speeds ci... | py |
diff --git a/hamster/graphics.py b/hamster/graphics.py
index <HASH>..<HASH> 100644
--- a/hamster/graphics.py
+++ b/hamster/graphics.py
@@ -247,7 +247,7 @@ class BasicWindow:
self.window = gtk.Window(gtk.WINDOW_TOPLEVEL)
self.window.set_title("Graphics Module")
- self.window.set_size_reque... | ok, we don't need a window so big for the demo | py |
diff --git a/nianalysis/archive/local.py b/nianalysis/archive/local.py
index <HASH>..<HASH> 100644
--- a/nianalysis/archive/local.py
+++ b/nianalysis/archive/local.py
@@ -369,15 +369,16 @@ class LocalArchive(Archive):
datasets = []
fields = {}
for fname in sorted(fnames):
- ... | fixed bug in local archive where fields lock was being recognised as a file in the archive | py |
diff --git a/neo4jrestclient/client.py b/neo4jrestclient/client.py
index <HASH>..<HASH> 100644
--- a/neo4jrestclient/client.py
+++ b/neo4jrestclient/client.py
@@ -447,8 +447,12 @@ class Base(object):
if isinstance(value, Transaction):
tx = tx or value
value = value.get_value()
- ... | Fixing some issues indexing unicode strings | py |
diff --git a/master/buildbot/process/build.py b/master/buildbot/process/build.py
index <HASH>..<HASH> 100644
--- a/master/buildbot/process/build.py
+++ b/master/buildbot/process/build.py
@@ -376,7 +376,7 @@ class Build(properties.PropertiesMixin):
owners = [r.properties['owner'] for r in self.requests
... | Use 'Build' as property source for owners | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -36,6 +36,7 @@ MOD_NAMES = [
'thinc.linear.features',
'thinc.linear.serialize',
'thinc.linear.sparse',
+ 'thinc.linear.linear',
'thinc.neural.optimizers',
'thinc.neural.ops',
'thinc.extra.eg', | Add linear.pyx to setup.py | py |
diff --git a/pelix/http/basic.py b/pelix/http/basic.py
index <HASH>..<HASH> 100644
--- a/pelix/http/basic.py
+++ b/pelix/http/basic.py
@@ -277,8 +277,7 @@ class _RequestHandler(BaseHTTPRequestHandler, object):
# Get the corresponding servlet
found_servlet = self._service.get_servlet(parsed_path)
... | get_servlet() now returns a (obj, params, prefix) The prefix is the path the servlet is registered for. obj and params are the same as before | py |
diff --git a/charmhelpers/contrib/openstack/utils.py b/charmhelpers/contrib/openstack/utils.py
index <HASH>..<HASH> 100644
--- a/charmhelpers/contrib/openstack/utils.py
+++ b/charmhelpers/contrib/openstack/utils.py
@@ -121,6 +121,7 @@ SWIFT_CODENAMES = OrderedDict([
('2.2.2', 'kilo'),
('2.3.0', 'liberty'),
... | [trivial] Add swift <I> to the range for liberty | py |
diff --git a/furious/__init__.py b/furious/__init__.py
index <HASH>..<HASH> 100644
--- a/furious/__init__.py
+++ b/furious/__init__.py
@@ -30,4 +30,4 @@ def csrf_check(request):
if in_prod and request.environ.get("REMOTE_ADDR") != "0.1.0.2":
logging.error("Detected an attempted XSRF attack. This request did... | RED-<I> - Changing to <I> | py |
diff --git a/release/long_running_tests/workloads/serve_failure.py b/release/long_running_tests/workloads/serve_failure.py
index <HASH>..<HASH> 100644
--- a/release/long_running_tests/workloads/serve_failure.py
+++ b/release/long_running_tests/workloads/serve_failure.py
@@ -56,7 +56,6 @@ class RandomKiller:
class Ra... | Serve failure release test fix (#<I>) This test is currently not tested in CI | py |
diff --git a/benchexec/tablegenerator/__init__.py b/benchexec/tablegenerator/__init__.py
index <HASH>..<HASH> 100644
--- a/benchexec/tablegenerator/__init__.py
+++ b/benchexec/tablegenerator/__init__.py
@@ -1121,7 +1121,7 @@ class StatValue(object):
@classmethod
def from_list(cls, values):
- if any([... | Optimize: don't create list for `any(..)` | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -35,7 +35,6 @@ setuptools.setup(
],
"test": [
"check-manifest",
- "codecov>=1.4.0",
"freezegun",
"pycodestyle",
"pydocstyle", | Remove codecov dependency because it's now a github action | py |
diff --git a/internetarchive/iacli/ia_metadata.py b/internetarchive/iacli/ia_metadata.py
index <HASH>..<HASH> 100755
--- a/internetarchive/iacli/ia_metadata.py
+++ b/internetarchive/iacli/ia_metadata.py
@@ -19,7 +19,10 @@ options:
"""
import sys
-from json import dumps
+try:
+ import ujson as json
+except Import... | Try to use ujson if it's installed. | py |
diff --git a/src/python/cloudfoundry_client/credentials.py b/src/python/cloudfoundry_client/credentials.py
index <HASH>..<HASH> 100644
--- a/src/python/cloudfoundry_client/credentials.py
+++ b/src/python/cloudfoundry_client/credentials.py
@@ -64,6 +64,7 @@ class CredentialsManager(object):
self._refres... | Correction refreshed token not taken into request when refreshed | py |
diff --git a/libargos/repo/detailplugins/prop.py b/libargos/repo/detailplugins/prop.py
index <HASH>..<HASH> 100644
--- a/libargos/repo/detailplugins/prop.py
+++ b/libargos/repo/detailplugins/prop.py
@@ -58,6 +58,9 @@ class PropertiesPane(DetailTablePane):
table.clearContents()
verticalHeader =... | Fixed properties pane when currentRti is None. | py |
diff --git a/ayrton/remote.py b/ayrton/remote.py
index <HASH>..<HASH> 100644
--- a/ayrton/remote.py
+++ b/ayrton/remote.py
@@ -130,8 +130,7 @@ class InteractiveThread (Thread):
for k, v in list (self.pairs.items ()):
for f in (k, v):
if ( isinstance (f, paramiko.Channel) or
- ... | [*] dup() stdin/out/err so we can close them in the IntercativeThread. this also helps handling _in/_out/_err later. | py |
diff --git a/flashpolicies/policies.py b/flashpolicies/policies.py
index <HASH>..<HASH> 100644
--- a/flashpolicies/policies.py
+++ b/flashpolicies/policies.py
@@ -162,10 +162,6 @@ class Policy(object):
``xml.dom.minidom.Document`` representing the corresponding
XML.
- Note that the various el... | Remove scary comment about XML generation. | py |
diff --git a/coconut/parser.py b/coconut/parser.py
index <HASH>..<HASH> 100644
--- a/coconut/parser.py
+++ b/coconut/parser.py
@@ -31,6 +31,8 @@ headers = {
r'''#!/usr/bin/env python
+# Compiled with Coconut version '''+VERSION+' ['+VERSION_NAME+']'+'''
+
# Coconut Header: ----------------------------------------... | Adds version information to compiled files | py |
diff --git a/ELiDE/ELiDE/board/board.py b/ELiDE/ELiDE/board/board.py
index <HASH>..<HASH> 100644
--- a/ELiDE/ELiDE/board/board.py
+++ b/ELiDE/ELiDE/board/board.py
@@ -804,7 +804,7 @@ class Board(RelativeLayout):
# TODO: If only some spots are unpositioned, and they remain
# that way for several frames... | Prevent the Board autolayout from running with no new spots | py |
diff --git a/bcbio/pipeline/main.py b/bcbio/pipeline/main.py
index <HASH>..<HASH> 100644
--- a/bcbio/pipeline/main.py
+++ b/bcbio/pipeline/main.py
@@ -194,8 +194,6 @@ class Variant2Pipeline(AbstractPipeline):
samples = population.prep_db_parallel(samples, run_parallel)
with profile.report(... | Move coverage report inside qcsummary. | py |
diff --git a/pinax/referrals/admin.py b/pinax/referrals/admin.py
index <HASH>..<HASH> 100644
--- a/pinax/referrals/admin.py
+++ b/pinax/referrals/admin.py
@@ -47,6 +47,14 @@ class ReferralResponseAdmin(admin.ModelAdmin):
"ip_address",
]
+ list_select_related = [
+ "referral__user",
+ "u... | ReferralResponseAdmin: add select/prefetch_related speed up admin | py |
diff --git a/python/l20n/format/lol/parser.py b/python/l20n/format/lol/parser.py
index <HASH>..<HASH> 100644
--- a/python/l20n/format/lol/parser.py
+++ b/python/l20n/format/lol/parser.py
@@ -179,17 +179,18 @@ class Parser():
def get_complex_string(self, quote):
- def not_end():
- return not (... | Move the stop condition of the while loop out from an inner funciton; add a comment | py |
diff --git a/oauth_hook/hook.py b/oauth_hook/hook.py
index <HASH>..<HASH> 100644
--- a/oauth_hook/hook.py
+++ b/oauth_hook/hook.py
@@ -133,7 +133,12 @@ class OAuthHook(object):
# must be python <2.5
query = base_url[4]
query = parse_qs(query)
- for k, v in request.params.items(... | Fixing bug, GET serialized url wasn't using data, so GET requests with data were not working | py |
diff --git a/src/django_autofixture/autofixture.py b/src/django_autofixture/autofixture.py
index <HASH>..<HASH> 100644
--- a/src/django_autofixture/autofixture.py
+++ b/src/django_autofixture/autofixture.py
@@ -393,6 +393,9 @@ class AutoFixture(object):
recalc_fields.extend(e.fields)
return re... | Adding post process instance hook in AutoFixture. | py |
diff --git a/tests/test_get_urls.py b/tests/test_get_urls.py
index <HASH>..<HASH> 100644
--- a/tests/test_get_urls.py
+++ b/tests/test_get_urls.py
@@ -3,6 +3,7 @@ import pytest
from ..service_urls import get_urls
def test_url():
+ """ Tests get_urls """
get_urls.url("elasticsearch", "head")
get_urls.ur... | Added docstring for test get urls. | py |
diff --git a/openquake/commonlib/writers.py b/openquake/commonlib/writers.py
index <HASH>..<HASH> 100644
--- a/openquake/commonlib/writers.py
+++ b/openquake/commonlib/writers.py
@@ -220,8 +220,6 @@ def write_csv(dest, data, sep=',', fmt='%.6E', header=None, comment=None):
optional first line starting with a # ... | Removed a warning [skip hazardlib] | py |
diff --git a/IPython/html/widgets/widget.py b/IPython/html/widgets/widget.py
index <HASH>..<HASH> 100644
--- a/IPython/html/widgets/widget.py
+++ b/IPython/html/widgets/widget.py
@@ -472,7 +472,7 @@ class DOMWidget(Widget):
'bolder',
'lighter',
'initial',
- 'inherit', ''] + map(str, ... | python3 does not like adding lists and map results | py |
diff --git a/unit_lookup_table.py b/unit_lookup_table.py
index <HASH>..<HASH> 100644
--- a/unit_lookup_table.py
+++ b/unit_lookup_table.py
@@ -139,6 +139,7 @@ latex_symbol_lut = {
"code_temperature" : "\\rm{code}\/\\rm{temperature}",
"code_metallicity" : "\\rm{code}\/\\rm{metallicity}",
"code_velocity" :... | fixing the pluto-specific field list in the docs --HG-- branch : yt | py |
diff --git a/charmhelpers/core/host.py b/charmhelpers/core/host.py
index <HASH>..<HASH> 100644
--- a/charmhelpers/core/host.py
+++ b/charmhelpers/core/host.py
@@ -162,13 +162,15 @@ def mkdir(path, owner='root', group='root', perms=0o555, force=False):
uid = pwd.getpwnam(owner).pw_uid
gid = grp.getgrnam(group)... | Fix host.mkdir logic to create directory if force specified and if same named file exists, and fix host.mkdir to only chown an existing directory when force is specified. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -8,17 +8,25 @@ import os
import re
import sys
-# TODO: sip is only needed for PyQt4, they should be imported together.
+has_qt4 = True
try:
+ # TODO: sip is only needed for PyQt4, they should be imported together.
+ ... | Update setup.py Fixed setup.py to check for pyside and pyqt4 and only fail if neither can be imported. | py |
diff --git a/triangulizor.py b/triangulizor.py
index <HASH>..<HASH> 100755
--- a/triangulizor.py
+++ b/triangulizor.py
@@ -17,8 +17,11 @@ except ImportError:
import PIL.Image as Image
import PIL.ImageDraw as ImageDraw
except ImportError:
- print >> sys.stderr, 'Could not import Python Imag... | Only exit on bad import if being executed as a script | py |
diff --git a/Test/overall_test.py b/Test/overall_test.py
index <HASH>..<HASH> 100644
--- a/Test/overall_test.py
+++ b/Test/overall_test.py
@@ -1134,6 +1134,7 @@ pycm.ConfusionMatrix(classes: ['1', '2', '3', '4'])
True
>>> cm.imbalance
True
+>>> from pycm.pycm_param import IMBALANCED_RECOMMEND, MULTICLASS_RECOMMEND, ... | fix : minor edit in overall_test.py | 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
@@ -264,13 +264,14 @@ class MeshSymmetryErrorHandler(ErrorHandler):
# if symmetry is off
if v.converged or (not v.incar.get('ISYM',... | modify MeshSymmetryErrorHandler to reflect behavior of other non-monitor handlers. If the vasprun.xml cannot be parsed (The job did not complete successfully) the handler will hit the except, pass, and return False. Otherwise, if the run did not converge, or ISYM=0, the handler will check vasp.out for the error message | py |
diff --git a/subliminal/services/__init__.py b/subliminal/services/__init__.py
index <HASH>..<HASH> 100644
--- a/subliminal/services/__init__.py
+++ b/subliminal/services/__init__.py
@@ -219,14 +219,16 @@ class ServiceBase(object):
# TODO: could check if maybe we already have a text file and
... | Add python <I> compatibility on download_zip_file | py |
diff --git a/python/src/nnabla/utils/converter/tensorflow/exporter.py b/python/src/nnabla/utils/converter/tensorflow/exporter.py
index <HASH>..<HASH> 100644
--- a/python/src/nnabla/utils/converter/tensorflow/exporter.py
+++ b/python/src/nnabla/utils/converter/tensorflow/exporter.py
@@ -106,7 +106,7 @@ class TensorflowL... | Fix failure to convert NNabla to tflite. | py |
diff --git a/django_airavata/apps/api/serializers.py b/django_airavata/apps/api/serializers.py
index <HASH>..<HASH> 100644
--- a/django_airavata/apps/api/serializers.py
+++ b/django_airavata/apps/api/serializers.py
@@ -466,9 +466,12 @@ class DataProductSerializer(
filesize = serializers.SerializerMethodField()
... | AIRAVATA-<I> Return None for download url if data product doesn't exist in user storage | py |
diff --git a/docs/source/conf.py b/docs/source/conf.py
index <HASH>..<HASH> 100755
--- a/docs/source/conf.py
+++ b/docs/source/conf.py
@@ -87,6 +87,8 @@ if os.environ.get("READTHEDOCS", False):
rtd_version = os.environ.get("READTHEDOCS_VERSION", "")
if "." not in rtd_version and rtd_version.lower() != "stable... | Define `rtd_version` for locally build docs (#<I>) Closes #<I> | py |
diff --git a/knxip/ip.py b/knxip/ip.py
index <HASH>..<HASH> 100644
--- a/knxip/ip.py
+++ b/knxip/ip.py
@@ -382,7 +382,7 @@ class KNXIPTunnel():
def disconnect(self):
"""Disconnect an open tunnel connection"""
- if self.channel:
+ if self.connected and self.channel:
logging.deb... | Verify we are connected before trying to send disconnect There are many error routes that disconnect but doesn't clean up channel | py |
diff --git a/test/test_consumer.py b/test/test_consumer.py
index <HASH>..<HASH> 100644
--- a/test/test_consumer.py
+++ b/test/test_consumer.py
@@ -81,6 +81,30 @@ class TestSimpleConsumer(unittest.TestCase):
with self.assertRaises(UnknownTopicOrPartitionError):
consumer.get_messages(20)
+ def ... | (test) Consumer commit() should log errors and return True/False, not raise exceptions | py |
diff --git a/Documentation/conf.py b/Documentation/conf.py
index <HASH>..<HASH> 100644
--- a/Documentation/conf.py
+++ b/Documentation/conf.py
@@ -16,8 +16,9 @@
# add these directories to sys.path here. If the directory is relative to the
# documentation root, use os.path.abspath to make it absolute, like shown here.... | Documentation: use git to set version info This is visible in the PDF rendering. Reference: <URL> | py |
diff --git a/build/setup.py b/build/setup.py
index <HASH>..<HASH> 100644
--- a/build/setup.py
+++ b/build/setup.py
@@ -25,7 +25,7 @@ setup(
author='JAX team',
author_email='jax-dev@google.com',
packages=['jaxlib'],
- install_requires=['numpy>=1.12', 'six', 'protobuf>=3.6.0', 'absl-py'],
+ install_r... | Add scipy as a dependency of jaxlib. Jaxlib depends on LAPACK kernels provided by Scipy. | py |
diff --git a/honcho/environ.py b/honcho/environ.py
index <HASH>..<HASH> 100644
--- a/honcho/environ.py
+++ b/honcho/environ.py
@@ -2,6 +2,7 @@ from collections import defaultdict
from collections import namedtuple
import datetime
import errno
+import shlex
import os
import re
@@ -64,19 +65,20 @@ def parse(conten... | parse .env file with shlex instead of regex. Or any string with quotes will be broken. e.g. `FOO='"foo"'` | py |
diff --git a/javaobj/v2/transformers.py b/javaobj/v2/transformers.py
index <HASH>..<HASH> 100644
--- a/javaobj/v2/transformers.py
+++ b/javaobj/v2/transformers.py
@@ -38,7 +38,6 @@ except ImportError:
# Javaobj
from .api import ObjectTransformer
from .beans import JavaInstance, JavaClassDesc
-from .core import JavaS... | Removed circular dependency between core and transformers | py |
diff --git a/pmxbot/logging.py b/pmxbot/logging.py
index <HASH>..<HASH> 100644
--- a/pmxbot/logging.py
+++ b/pmxbot/logging.py
@@ -259,9 +259,12 @@ class MongoDBLogger(Logger, storage.MongoDBStorage):
patterns = [re.compile('.*' + term + '.*') for term in terms]
query = dict(message = {'$all': patterns})
+ ... | Extract method for generating the search results. | py |
diff --git a/treeherder/model/management/commands/migrate_to_intermediate_jobs.py b/treeherder/model/management/commands/migrate_to_intermediate_jobs.py
index <HASH>..<HASH> 100644
--- a/treeherder/model/management/commands/migrate_to_intermediate_jobs.py
+++ b/treeherder/model/management/commands/migrate_to_intermedia... | Bug <I> - Fixes to the final migration script | py |
diff --git a/src/shellingham/__init__.py b/src/shellingham/__init__.py
index <HASH>..<HASH> 100644
--- a/src/shellingham/__init__.py
+++ b/src/shellingham/__init__.py
@@ -4,7 +4,7 @@ import os
from ._core import ShellDetectionFailure
-__version__ = '1.2.2'
+__version__ = '1.2.2.dev0'
def detect_shell(pid=None... | Prebump to <I>.dev0 | py |
diff --git a/chess/pgn.py b/chess/pgn.py
index <HASH>..<HASH> 100644
--- a/chess/pgn.py
+++ b/chess/pgn.py
@@ -1077,7 +1077,7 @@ def read_game(handle, *, Visitor=GameCreator):
managed_headers = None
# Ignore leading empty lines and comments.
- line = handle.readline()
+ line = handle.readline().lstrip... | Let chess.pgn.read_game() ignore BOM (#<I>) | py |
diff --git a/src/basecampreporting/project.py b/src/basecampreporting/project.py
index <HASH>..<HASH> 100644
--- a/src/basecampreporting/project.py
+++ b/src/basecampreporting/project.py
@@ -5,6 +5,7 @@ from basecampreporting.etree import ET
from basecampreporting.serialization import json, BasecampObjectEncoder
from... | Catching exception when user doesn't exist in the system anymore. | py |
diff --git a/tsfresh/feature_extraction/settings.py b/tsfresh/feature_extraction/settings.py
index <HASH>..<HASH> 100644
--- a/tsfresh/feature_extraction/settings.py
+++ b/tsfresh/feature_extraction/settings.py
@@ -123,7 +123,7 @@ class ComprehensiveFCParameters(dict):
"cwt_coefficients": [{"widths": width... | Increase the extracted ar coefficients to all - which makes more sense. Fixes #<I> (#<I>) | py |
diff --git a/datatableview/helpers.py b/datatableview/helpers.py
index <HASH>..<HASH> 100644
--- a/datatableview/helpers.py
+++ b/datatableview/helpers.py
@@ -139,7 +139,7 @@ def attrgetter(attr, key=None):
-def format_date(format_string, key=None, localize=False):
+def format_date(format_string, localize=False, ... | Reorder default argument position key will likely get removed soon anyway… not sure if there’s a use case anymore, now that default_value reading has improved. | py |
diff --git a/gluish/common.py b/gluish/common.py
index <HASH>..<HASH> 100644
--- a/gluish/common.py
+++ b/gluish/common.py
@@ -145,7 +145,7 @@ class OAIHarvestChunk(CommonTask):
output.write('</collection>\n')
def output(self):
- raise NotImplementedError()
+ return luigi.LocalTarget(p... | allow OAIHarvestChunk to be called directly | py |
diff --git a/GPy/plotting/gpy_plot/plot_util.py b/GPy/plotting/gpy_plot/plot_util.py
index <HASH>..<HASH> 100644
--- a/GPy/plotting/gpy_plot/plot_util.py
+++ b/GPy/plotting/gpy_plot/plot_util.py
@@ -379,5 +379,5 @@ def x_frame2D(X,plot_limits=None,resolution=None):
resolution = resolution or 50
xx, yy = np.... | [plotting util] faster generation of grid | py |
diff --git a/salt/config.py b/salt/config.py
index <HASH>..<HASH> 100644
--- a/salt/config.py
+++ b/salt/config.py
@@ -2386,7 +2386,8 @@ def is_profile_configured(opts, provider, profile_name):
Check if the requested profile contains the minimum required parameters for
a profile.
- Required parameters in... | Update docs for is_profile_configured | py |
diff --git a/yotta/test/test_versions.py b/yotta/test/test_versions.py
index <HASH>..<HASH> 100644
--- a/yotta/test/test_versions.py
+++ b/yotta/test/test_versions.py
@@ -18,9 +18,9 @@ class VersionTestCase(unittest.TestCase):
['0.1.2-alpha', '0.1.2', '1.3.4'],
),
'>=0.1.0,!=0.1.3-rc1,<0.... | prerelease versions are (and should be) matched by >= version | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.