diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/pyes/es.py b/pyes/es.py
index <HASH>..<HASH> 100644
--- a/pyes/es.py
+++ b/pyes/es.py
@@ -1216,7 +1216,7 @@ class ES(object):
Execute a "more like this" search query against one or more fields and get back search hits.
"""
path = make_path(index, doc_type, id, '_mlt')
- qu... | * fields => mlt_fields for mlt | py |
diff --git a/keanu-python/tests/test_proposal_distributions.py b/keanu-python/tests/test_proposal_distributions.py
index <HASH>..<HASH> 100644
--- a/keanu-python/tests/test_proposal_distributions.py
+++ b/keanu-python/tests/test_proposal_distributions.py
@@ -59,6 +59,12 @@ def test_it_throws_if_you_specify_multivariate... | add an extra test for empty list of latents and sigma | py |
diff --git a/astrobase/cpserver/checkplotserver_handlers.py b/astrobase/cpserver/checkplotserver_handlers.py
index <HASH>..<HASH> 100644
--- a/astrobase/cpserver/checkplotserver_handlers.py
+++ b/astrobase/cpserver/checkplotserver_handlers.py
@@ -3280,7 +3280,7 @@ class StandaloneHandler(tornado.web.RequestHandler):
... | cpserver: StandAloneHandler should censor backend checkplot file path | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -41,7 +41,7 @@ setup(name = "shoebot",
url = "http://shoebot.net",
packages = ["shoebot", "shoebot.core", "shoebot.data", "shoebot.gui"],
data_files = datafiles,
- scripts = ['sbot', 'sbot.cmd'] if os.name in... | Remove os2 option - python to be discontinued there | py |
diff --git a/openquake/engine/tools/make_html_report.py b/openquake/engine/tools/make_html_report.py
index <HASH>..<HASH> 100644
--- a/openquake/engine/tools/make_html_report.py
+++ b/openquake/engine/tools/make_html_report.py
@@ -152,7 +152,7 @@ WHERE a.lt_model_id=b.id AND b.hazard_calculation_id=%s GROUP BY b.id) AS... | Change the model summary ordering in the HTML report | py |
diff --git a/huey/api.py b/huey/api.py
index <HASH>..<HASH> 100644
--- a/huey/api.py
+++ b/huey/api.py
@@ -241,7 +241,7 @@ class Huey(object):
'error': error}
if error:
metadata['traceback'] = traceback.format_exc()
- if include_data:
+ if include_data and not isinstance... | Fix error logging so it does not fail when attempting to log the data associated with a periodic task (which has no data). | py |
diff --git a/holoviews/core/element.py b/holoviews/core/element.py
index <HASH>..<HASH> 100644
--- a/holoviews/core/element.py
+++ b/holoviews/core/element.py
@@ -110,10 +110,16 @@ class Element(ViewableElement, Composable, Overlayable):
if not keys: keys = [()]
values = zip(*[self.dimension_values(di... | Fix for Element.table method Now allows overriding dimensions and no longer passes default group. | py |
diff --git a/tests/test_utils.py b/tests/test_utils.py
index <HASH>..<HASH> 100644
--- a/tests/test_utils.py
+++ b/tests/test_utils.py
@@ -2,12 +2,19 @@
Test conversion utilities
"""
import numpy as np
+import descent
from descent.utils import destruct, restruct, lrucache, check_grad
from io import StringIO
from ... | Adds test for __all__ membership | py |
diff --git a/aiogram/contrib/middlewares/i18n.py b/aiogram/contrib/middlewares/i18n.py
index <HASH>..<HASH> 100644
--- a/aiogram/contrib/middlewares/i18n.py
+++ b/aiogram/contrib/middlewares/i18n.py
@@ -57,6 +57,8 @@ class I18nMiddleware(BaseMiddleware):
if os.path.exists(mo_path):
with op... | Raise error when locale is not compiled. | py |
diff --git a/quotequail/__init__.py b/quotequail/__init__.py
index <HASH>..<HASH> 100644
--- a/quotequail/__init__.py
+++ b/quotequail/__init__.py
@@ -14,8 +14,8 @@ def quote(text):
lines = text.split('\n')
regexes = [
- '^On .* wrote:$', # apple mail/gmail reply
- '^Am .* schrieb .*:$', # Ger... | don't assume there's a space before 'wrote'. | py |
diff --git a/examples/metadata.py b/examples/metadata.py
index <HASH>..<HASH> 100644
--- a/examples/metadata.py
+++ b/examples/metadata.py
@@ -2,7 +2,7 @@ import logging
logging.basicConfig(level=logging.DEBUG)
from plex import Plex
-from plex.ext.metadata import Matcher, Metadata
+from plex.ext.metadata import... | Updated [examples/metadata.py] | py |
diff --git a/angr/storage/memory_mixins/bvv_conversion_mixin.py b/angr/storage/memory_mixins/bvv_conversion_mixin.py
index <HASH>..<HASH> 100644
--- a/angr/storage/memory_mixins/bvv_conversion_mixin.py
+++ b/angr/storage/memory_mixins/bvv_conversion_mixin.py
@@ -50,7 +50,8 @@ class DataNormalizationMixin(MemoryMixin):
... | Support storing with int and None as size. | py |
diff --git a/odl/solvers/nonsmooth/forward_backward.py b/odl/solvers/nonsmooth/forward_backward.py
index <HASH>..<HASH> 100644
--- a/odl/solvers/nonsmooth/forward_backward.py
+++ b/odl/solvers/nonsmooth/forward_backward.py
@@ -1,4 +1,4 @@
-# Copyright 2014-2017 The ODL contributors
+# Copyright 2014-2018 The ODL contri... | Bump copyright year of forward_backward.py to <I>. | py |
diff --git a/steemtools/base.py b/steemtools/base.py
index <HASH>..<HASH> 100644
--- a/steemtools/base.py
+++ b/steemtools/base.py
@@ -1,7 +1,9 @@
import datetime
+import json
import math
import time
from collections import namedtuple
+from contextlib import suppress
import dateutil
import numpy as np
@@ -294,6... | added metadata helper to Post (Post.meta) | py |
diff --git a/nessclient/client.py b/nessclient/client.py
index <HASH>..<HASH> 100644
--- a/nessclient/client.py
+++ b/nessclient/client.py
@@ -115,8 +115,13 @@ class Client:
_LOGGER.debug("Decoding data: '%s'", decoded_data)
if len(decoded_data) > 0:
- pkt = Packet... | Catch exception and continue to listen (#<I>) | 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
@@ -161,11 +161,13 @@ def create(path,
)
else:
cmd.append('--distribute')
- if not os.a... | Only check for the execution bits if a value was actually passed. | py |
diff --git a/reliure/pipeline.py b/reliure/pipeline.py
index <HASH>..<HASH> 100644
--- a/reliure/pipeline.py
+++ b/reliure/pipeline.py
@@ -75,7 +75,7 @@ class Composable(object):
self.name = self.__class__.__name__
else:
self.name = name
- self._logger = logging.getLogger("reli... | Use component name as logging name. Class name was used before. Note that class name is used as default component name. | py |
diff --git a/validator/sawtooth_validator/concurrent/atomic.py b/validator/sawtooth_validator/concurrent/atomic.py
index <HASH>..<HASH> 100644
--- a/validator/sawtooth_validator/concurrent/atomic.py
+++ b/validator/sawtooth_validator/concurrent/atomic.py
@@ -66,6 +66,10 @@ class ConcurrentSet:
with self._lock:... | Add __len__ to ConcurrentSet Adds a __len__ method to the ConcurrentSet Python object in the validator. | py |
diff --git a/src/OpenSSL/crypto.py b/src/OpenSSL/crypto.py
index <HASH>..<HASH> 100644
--- a/src/OpenSSL/crypto.py
+++ b/src/OpenSSL/crypto.py
@@ -1128,7 +1128,8 @@ class X509(object):
def set_version(self, version):
"""
- Set the version number of the certificate.
+ Set the version number... | Add note on zero-based certificate version value (#<I>) | py |
diff --git a/frasco/api/auth.py b/frasco/api/auth.py
index <HASH>..<HASH> 100644
--- a/frasco/api/auth.py
+++ b/frasco/api/auth.py
@@ -63,7 +63,7 @@ def create_api_key(user=None, expires_at=None):
seconds=state.options['default_key_duration'])
key = state.Model()
key.user = get_current_user(user)... | Fix: API key generation was not calling uuid.uuid4() properly | py |
diff --git a/d1_client_cli/src/setup.py b/d1_client_cli/src/setup.py
index <HASH>..<HASH> 100755
--- a/d1_client_cli/src/setup.py
+++ b/d1_client_cli/src/setup.py
@@ -25,12 +25,19 @@ setup(
install_requires=[
'DataONE_Common >= 1.0.0c4',
'DataONE_ClientLib >= 1.0.0c4',
- 'foresite >= 1.2',
- 'pyxb >=... | Moving PyXB and Foresite requirements down to dependency_links since they are not available in PyPI. Adding entry point so the dataone module will be available as a binary. | py |
diff --git a/yfinance/base.py b/yfinance/base.py
index <HASH>..<HASH> 100644
--- a/yfinance/base.py
+++ b/yfinance/base.py
@@ -386,13 +386,19 @@ class TickerBase():
except Exception:
pass
- # For ETFs, provide this valuable data: the top holdings of the ETF
- if data.get('topHoldin... | try + except still required - topHoldings, summaryDetail Reason is that a failure would be harmful without a graceful try+except | py |
diff --git a/tests/test_init.py b/tests/test_init.py
index <HASH>..<HASH> 100644
--- a/tests/test_init.py
+++ b/tests/test_init.py
@@ -126,6 +126,9 @@ class InitTests(unittest.TestCase):
else:
modname = '%s.%s' % (module.__name__, modname)
+ if sys.version_info < (3,) and sys.... | Handle test environments on Windows with Python 2.x using git autocrlf | py |
diff --git a/future/__init__.py b/future/__init__.py
index <HASH>..<HASH> 100644
--- a/future/__init__.py
+++ b/future/__init__.py
@@ -104,6 +104,14 @@ See the docstrings for each of these modules for more info::
- future.str_as_unicode
+Automatic conversion
+--------------------
+An experimental script called ``f... | Add brief paragraph about futurize.py to package docstring so PyPI sees it | py |
diff --git a/montblanc/impl/biro/v3/BiroSolver.py b/montblanc/impl/biro/v3/BiroSolver.py
index <HASH>..<HASH> 100644
--- a/montblanc/impl/biro/v3/BiroSolver.py
+++ b/montblanc/impl/biro/v3/BiroSolver.py
@@ -72,17 +72,17 @@ class BiroSolver(BaseSolver):
npsrc=npsrc, ngsrc=ngsrc, nssrc=nssrc, dtype=dtype, pi... | Rename b_sum member to rime_b_sum. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -6,7 +6,7 @@ required = [
setup(
name='buildapi_client',
- version='0.6.2',
+ version='0.6.3.dev0',
packages=find_packages(),
install_requires=required + ['pytest-runner'], | Back to development: <I> | py |
diff --git a/spacy/tests/serialize/test_serialize_tokenizer.py b/spacy/tests/serialize/test_serialize_tokenizer.py
index <HASH>..<HASH> 100644
--- a/spacy/tests/serialize/test_serialize_tokenizer.py
+++ b/spacy/tests/serialize/test_serialize_tokenizer.py
@@ -2,6 +2,7 @@
from __future__ import unicode_literals
from ... | Add test for custom tokenizer serialization (resolves #<I>) | py |
diff --git a/renku/service/entrypoint.py b/renku/service/entrypoint.py
index <HASH>..<HASH> 100644
--- a/renku/service/entrypoint.py
+++ b/renku/service/entrypoint.py
@@ -56,6 +56,7 @@ from renku.service.views.datasets import (
import_dataset_view,
list_dataset_files_view,
list_datasets_view,
+ remove... | fix(service): add datasets.remove to swagger docs (#<I>) | py |
diff --git a/bulbs/content/serializers.py b/bulbs/content/serializers.py
index <HASH>..<HASH> 100644
--- a/bulbs/content/serializers.py
+++ b/bulbs/content/serializers.py
@@ -9,6 +9,10 @@ class TagSerializer(serializers.ModelSerializer):
class ContentSerializer(serializers.ModelSerializer):
+ url = serializers.... | Added url field to Content serializer | py |
diff --git a/qualysapi/connector.py b/qualysapi/connector.py
index <HASH>..<HASH> 100644
--- a/qualysapi/connector.py
+++ b/qualysapi/connector.py
@@ -19,7 +19,6 @@ import qualysapi.api_actions
import qualysapi.api_actions as api_actions
# Setup module level logging.
-logging.basicConfig()
logger = logging.getLogg... | Remove logging.BasicConfig from connector.py | py |
diff --git a/ginga/gtk3w/Widgets.py b/ginga/gtk3w/Widgets.py
index <HASH>..<HASH> 100644
--- a/ginga/gtk3w/Widgets.py
+++ b/ginga/gtk3w/Widgets.py
@@ -28,8 +28,11 @@ try:
from gi.repository import WebKit2 as WebKit # noqa
has_webkit = True
except Exception:
- gi.require_version('WebKit', '3.0')
- from... | Allow failure to import Gtk WebKit This fixes an issue where failure to import Gtk webkit causes failure to import ginga.gtk3w.Widgets. This fix makes it so that it simply marks the failure internally. This matches the behavior for the Qt toolkit. | py |
diff --git a/pypot/vrep/__init__.py b/pypot/vrep/__init__.py
index <HASH>..<HASH> 100644
--- a/pypot/vrep/__init__.py
+++ b/pypot/vrep/__init__.py
@@ -38,7 +38,7 @@ class vrep_time():
sys_time.sleep(0.01)
-def from_vrep(config, vrep_host, vrep_port, vrep_scene,
+def from_vrep(config, vrep_host, vrep_po... | From v-rep without any scene. | py |
diff --git a/salt/engines/napalm_syslog.py b/salt/engines/napalm_syslog.py
index <HASH>..<HASH> 100644
--- a/salt/engines/napalm_syslog.py
+++ b/salt/engines/napalm_syslog.py
@@ -110,7 +110,12 @@ import json
import logging
# Import third party libraries
-import zmq
+try:
+ import zmq
+ HAS_ZMQ = True
+except ... | Check if zmq installed as well | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -167,7 +167,7 @@ PACKAGE_DIRECTORIES = {
}
INSTALL_REQUIRES = (
- 'six>=1.10',
+ 'six>=1.5.2',
'enum34>=1.0.4',
'futures>=2.2.0',
# TODO(atash): eventually split the grpcio package into a metapackage
@... | Lowered six dependency version to <I> | py |
diff --git a/pipenv/cli.py b/pipenv/cli.py
index <HASH>..<HASH> 100644
--- a/pipenv/cli.py
+++ b/pipenv/cli.py
@@ -464,7 +464,7 @@ def ensure_python(three=None, python=None):
'2.7': '2.7.14',
# '3.1': '3.1.5',
# '3.2': '3.2.6',
- '3.3': '... | Update Python <I> and <I> versions * <I> was released on <I>-<I>-<I> * <I> was released on <I>-<I>-<I> | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -40,9 +40,9 @@ def get_version(package):
if sys.argv[-1] == 'publish':
os.system("python setup.py sdist upload")
args = {'version': get_version(package)}
- print "You probably want to also tag the version now:"
-... | updating setup.py to be compatible with py 3 | py |
diff --git a/glue/LSCsegFindServer.py b/glue/LSCsegFindServer.py
index <HASH>..<HASH> 100644
--- a/glue/LSCsegFindServer.py
+++ b/glue/LSCsegFindServer.py
@@ -234,7 +234,7 @@ class ServerHandler(SocketServer.BaseRequestHandler):
result = ""
for x in res:
if len(x) == 1:
- result += x.str... | don't strip a tuple | py |
diff --git a/tests/test_asteval.py b/tests/test_asteval.py
index <HASH>..<HASH> 100644
--- a/tests/test_asteval.py
+++ b/tests/test_asteval.py
@@ -408,6 +408,11 @@ class TestEval(TestCase):
self.interp('nx = 1')
self.interp('nx1 = 1')
+ if PY3:
+ # use \u escape b/c python 2 compla... | Add test of unicode names in Python 3 | py |
diff --git a/gevent_inotifyx/__init__.py b/gevent_inotifyx/__init__.py
index <HASH>..<HASH> 100644
--- a/gevent_inotifyx/__init__.py
+++ b/gevent_inotifyx/__init__.py
@@ -32,7 +32,7 @@ from gevent.select import select
_EVENT_FMT = 'iIII'
_EVENT_SIZE = struct.calcsize(_EVENT_FMT)
-_BUF_LEN = 1024 * (_EVENT_SIZE + 16... | Use BUF_LEN from inotifyx | py |
diff --git a/thumbnails/engines/pillow.py b/thumbnails/engines/pillow.py
index <HASH>..<HASH> 100644
--- a/thumbnails/engines/pillow.py
+++ b/thumbnails/engines/pillow.py
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
-from PIL import Image
+from PIL import Image, ImageFile
from thumbnails.compat import BytesIO
@@ -15,6... | Set higher maxblock in PillowEngine.engine_raw_data | py |
diff --git a/timepiece/contracts/views.py b/timepiece/contracts/views.py
index <HASH>..<HASH> 100644
--- a/timepiece/contracts/views.py
+++ b/timepiece/contracts/views.py
@@ -190,6 +190,10 @@ class ListInvoices(SearchListView):
'comments__icontains', 'number__icontains']
template_name = 'timepiece/inv... | Order previous invoices by end date descending and id descending | py |
diff --git a/tests/test_comics.py b/tests/test_comics.py
index <HASH>..<HASH> 100644
--- a/tests/test_comics.py
+++ b/tests/test_comics.py
@@ -97,10 +97,6 @@ def generate_comic_testers():
scrapers = scraper.get_scrapers()
for scraperclass in scrapers:
name = 'Test'+scraperclass.__name__
- ... | Reenable DrunkDuck tests. | py |
diff --git a/traces/timeseries.py b/traces/timeseries.py
index <HASH>..<HASH> 100644
--- a/traces/timeseries.py
+++ b/traces/timeseries.py
@@ -644,10 +644,10 @@ class TimeSeries(object):
in the list at time t.
"""
-
- if len(timeseries_list) == 0:
- raise ValueError(
- ... | merge with empty list now is empty iterator instead of error | py |
diff --git a/sporco/linalg.py b/sporco/linalg.py
index <HASH>..<HASH> 100644
--- a/sporco/linalg.py
+++ b/sporco/linalg.py
@@ -55,6 +55,30 @@ def complex_dtype(dtype):
+def pyfftw_byte_aligned(array, dtype=None, n=None):
+ """
+ Construct a byte-aligned array for efficient use by :mod:`pyfftw`.
+ This fu... | Added pyfftw_byte_aligned function | py |
diff --git a/bindings/py/setup.py b/bindings/py/setup.py
index <HASH>..<HASH> 100644
--- a/bindings/py/setup.py
+++ b/bindings/py/setup.py
@@ -565,7 +565,7 @@ if __name__ == "__main__":
classifiers=[
"Programming Language :: Python",
"Programming Language :: Python :: 2",
- "License :: O... | Updated to correct pypi license string. | py |
diff --git a/optimal/optimize.py b/optimal/optimize.py
index <HASH>..<HASH> 100644
--- a/optimal/optimize.py
+++ b/optimal/optimize.py
@@ -454,7 +454,7 @@ def _print_fitnesses(iteration, fitnesses, best_solution, frequency=1):
def _parse_parameter_locks(optimizer, meta_parameters, parameter_locks):
- """Syncron... | Fix hyperparameter optimization not including max for int type | py |
diff --git a/sgqlc/types/__init__.py b/sgqlc/types/__init__.py
index <HASH>..<HASH> 100644
--- a/sgqlc/types/__init__.py
+++ b/sgqlc/types/__init__.py
@@ -1897,7 +1897,7 @@ class Arg(BaseItem):
super(Arg, self).__init__(typ, graphql_name)
self.default = default
if default is not None and not ... | types: fix default value type checking. `assert Boolean(false)` raise assertion as returns false, we don't want that, just evaluate the `typ(default)`, without checking its value (it should throw exceptions on its own) | py |
diff --git a/python_terraform/__init__.py b/python_terraform/__init__.py
index <HASH>..<HASH> 100644
--- a/python_terraform/__init__.py
+++ b/python_terraform/__init__.py
@@ -288,6 +288,9 @@ class Terraform(object):
if capture_output is True:
stderr = subprocess.PIPE
stdout = subproce... | Fix for subprocess call for Robot Framework execution This change modifies behavior of capture_output flag to work with robot framework. When set to given parameter it'll set stderr and stdout to None for subprocess command call. This fixes problem with error: "UnsupportedOperation: fileno" | py |
diff --git a/openquake/engine/input/source.py b/openquake/engine/input/source.py
index <HASH>..<HASH> 100644
--- a/openquake/engine/input/source.py
+++ b/openquake/engine/input/source.py
@@ -370,10 +370,6 @@ class SourceDBWriter(object):
`hzrdi.parsed_source` table in the database.
The source object data wi... | input/source: SourceDBWriter no longer computes the rupture enclosing polygon of each source. This has never been used and we do not inticipate that it will be needed. | py |
diff --git a/sentry_sdk/integrations/_wsgi.py b/sentry_sdk/integrations/_wsgi.py
index <HASH>..<HASH> 100644
--- a/sentry_sdk/integrations/_wsgi.py
+++ b/sentry_sdk/integrations/_wsgi.py
@@ -185,6 +185,8 @@ class _ScopePoppingResponse(object):
def __next__(self):
try:
return next(self._respon... | fix: don't consider StopIteration an error | py |
diff --git a/salt/modules/rest_service.py b/salt/modules/rest_service.py
index <HASH>..<HASH> 100644
--- a/salt/modules/rest_service.py
+++ b/salt/modules/rest_service.py
@@ -11,7 +11,7 @@ __proxyenabled__ = ['rest_sample']
log = logging.getLogger(__name__)
__func_alias__ = {
- 'reload_': 'reload'
+ 'list_': ... | func_alias should be list_ and should have a corresponding list_ fn. | py |
diff --git a/tests/unit/utils/vt_test.py b/tests/unit/utils/vt_test.py
index <HASH>..<HASH> 100644
--- a/tests/unit/utils/vt_test.py
+++ b/tests/unit/utils/vt_test.py
@@ -169,7 +169,7 @@ class VTTestCase(TestCase):
term.close(terminate=True, kill=True)
expected_data = 'Alive!\nAlive!\n'
- ... | Increasing sleep to see if it fixes vt test | py |
diff --git a/bcbio/pipeline/alignment.py b/bcbio/pipeline/alignment.py
index <HASH>..<HASH> 100644
--- a/bcbio/pipeline/alignment.py
+++ b/bcbio/pipeline/alignment.py
@@ -49,7 +49,7 @@ def sam_to_sort_bam(sam_file, ref_file, fastq1, fastq2, sample_name,
picard.run_fn("picard_index_ref", ref_file)
out_fastq_ba... | Allow specification of fastq qualities in configuration using Picard conventions | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -24,7 +24,7 @@ from setuptools import (
here = os.path.dirname(__file__)
requires = [
- 'cryptography == 1.7.2',
+ 'cryptography >= 1.7.2, < 2.*',
]
try: | make the cryptography module requirement >= <I> (#6) to prevent build-errors on newer openssl-version | py |
diff --git a/odinweb/_compat.py b/odinweb/_compat.py
index <HASH>..<HASH> 100644
--- a/odinweb/_compat.py
+++ b/odinweb/_compat.py
@@ -8,8 +8,6 @@ Like odin this library will support Python 2.7 through to version 2.0.
From this point onwards Python 3.5+ will be required.
"""
-from __future__ import unicode_literals... | Remove unicode literals to fix with_metaclass method | py |
diff --git a/pre_commit/languages/ruby.py b/pre_commit/languages/ruby.py
index <HASH>..<HASH> 100644
--- a/pre_commit/languages/ruby.py
+++ b/pre_commit/languages/ruby.py
@@ -118,7 +118,7 @@ def install_environment(
)
helpers.run_setup_cmd(
prefix,
- ('gem', 'in... | Switch from deprecated docs-off args to --no-document | py |
diff --git a/byteplay3.py b/byteplay3.py
index <HASH>..<HASH> 100644
--- a/byteplay3.py
+++ b/byteplay3.py
@@ -523,6 +523,7 @@ class _se_facts:
ROT_THREE = 3,3
ROT_FOUR = 4,4
DUP_TOP = 1,2
+ DUP_TOP_TWO = 2,4
UNARY_POSITIVE = UNARY_NEGATIVE = UNARY_NOT = UNARY_CONVERT = \
UNARY_INVE... | Aghh put back DUP_TOP_TWO it is ADDED in Py3 | py |
diff --git a/bdata/bdata.py b/bdata/bdata.py
index <HASH>..<HASH> 100644
--- a/bdata/bdata.py
+++ b/bdata/bdata.py
@@ -1782,10 +1782,10 @@ class bdata(mdata):
out['p'] = self._rebin(ah[0], rebin)
out['n'] = self._rebin(ah[1], rebin)
- if self.area == 'B... | Fixed returning counter counts in all asym modes | py |
diff --git a/axiom/_version.py b/axiom/_version.py
index <HASH>..<HASH> 100644
--- a/axiom/_version.py
+++ b/axiom/_version.py
@@ -1,3 +1 @@
-
-# Do not change the triple-quote/strip: setup.py relies on it!
__version__ = "0.6.0" | setup.py doesn't actually rely on the strip or triple-quoting anymore | py |
diff --git a/dsdev_utils/helpers.py b/dsdev_utils/helpers.py
index <HASH>..<HASH> 100644
--- a/dsdev_utils/helpers.py
+++ b/dsdev_utils/helpers.py
@@ -137,7 +137,7 @@ class Version(object):
v_re = re.compile('(?P<major>\d+)\.(?P<minor>\d+)\.?(?P'
'<patch>\d+)?-?(?P<release>[a,b,e,h,l'
- ... | Modified regex to properly handle both release and releaseversion. | py |
diff --git a/datatableview/datatables.py b/datatableview/datatables.py
index <HASH>..<HASH> 100644
--- a/datatableview/datatables.py
+++ b/datatableview/datatables.py
@@ -333,8 +333,8 @@ class Datatable(six.with_metaclass(DatatableMetaclass)):
ordering.append('%s%s' % (sort_modifier, column.name))
- ... | Return default ordering if invalid Running to completion now means that sorting was requested, but if no valid sorts were identified, we will return the default. | py |
diff --git a/qiskit/simulators/_localsimulator.py b/qiskit/simulators/_localsimulator.py
index <HASH>..<HASH> 100644
--- a/qiskit/simulators/_localsimulator.py
+++ b/qiskit/simulators/_localsimulator.py
@@ -100,7 +100,8 @@ def local_backends():
try:
sim = backend(job)
except FileNotFoundE... | keep silent about missing local simulator executables (#<I>) This would occur during instantiation of any quantum program when qasm_simulator wasn't in path. | py |
diff --git a/oct2py/_matread.py b/oct2py/_matread.py
index <HASH>..<HASH> 100644
--- a/oct2py/_matread.py
+++ b/oct2py/_matread.py
@@ -83,7 +83,7 @@ class MatRead(object):
'''Extract the data from the incoming value
'''
# check for objects
- if "'|O" in str(val.dtype):
+ if ... | Adjust for Scipy ><I> change to dtype str | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -24,5 +24,6 @@ setup(
'Programming Language :: Python',
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
'Topic :: Software Development :: Libraries :: Python Modules'
- ]
+ ],
+ test_sui... | Adding test runner to setup.py | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -33,6 +33,7 @@ setup(
'Programming Language :: Python :: 3.2',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
- 'Programming Language :: Python :: 3.5'
+ ... | Included py<I> | py |
diff --git a/glue/ldbd.py b/glue/ldbd.py
index <HASH>..<HASH> 100644
--- a/glue/ldbd.py
+++ b/glue/ldbd.py
@@ -438,7 +438,10 @@ class LIGOMetadata:
rowcount = self.curs.rowcount
except DB2.Error, e:
self.curs.execute('rollback')
- raise LIGOLwDBError, e[2]
+ msg = e[2]
... | print the offending xml file if an insert fails | py |
diff --git a/azure-keyvault/azure/keyvault/custom/key_vault_authentication.py b/azure-keyvault/azure/keyvault/custom/key_vault_authentication.py
index <HASH>..<HASH> 100644
--- a/azure-keyvault/azure/keyvault/custom/key_vault_authentication.py
+++ b/azure-keyvault/azure/keyvault/custom/key_vault_authentication.py
@@ -2... | updating KeyVaultAuthentication to support reused sessions | py |
diff --git a/sos/jupyter/kernel.py b/sos/jupyter/kernel.py
index <HASH>..<HASH> 100644
--- a/sos/jupyter/kernel.py
+++ b/sos/jupyter/kernel.py
@@ -293,7 +293,8 @@ class SoS_Kernel(IPythonKernel):
if name != plugin.kernel_name:
self._supported_languages[plugin.kernel_name] = plugin
... | Do not produce error message when a kernel cannot be loaded (due to e.g. missing feather package) | py |
diff --git a/LiSE/proxy.py b/LiSE/proxy.py
index <HASH>..<HASH> 100644
--- a/LiSE/proxy.py
+++ b/LiSE/proxy.py
@@ -414,6 +414,10 @@ class EngineHandle(object):
self._real.character[charn].stat.unlisten(a)
self._real.time_unlisten(b)
+ def listen_to_nodes(self, pairs):
+ for (char, noden) i... | EngineHandle methods for nodes listening This way you can batch several listen commands. | py |
diff --git a/src/_pytest/debugging.py b/src/_pytest/debugging.py
index <HASH>..<HASH> 100644
--- a/src/_pytest/debugging.py
+++ b/src/_pytest/debugging.py
@@ -127,7 +127,9 @@ def _test_pytest_function(pyfuncitem):
testfunction = pyfuncitem.obj
pyfuncitem.obj = pdb.runcall
if pyfuncitem._isyieldedfunction... | Fix python 2 issues | py |
diff --git a/fault/verilator_target.py b/fault/verilator_target.py
index <HASH>..<HASH> 100644
--- a/fault/verilator_target.py
+++ b/fault/verilator_target.py
@@ -19,6 +19,10 @@ import platform
import os
+# max_bits = 64 if platform.architecture()[0] == "64bit" else 32
+max_bits = 32
+
+
src_tpl = """\
{includes... | only create max_bits once at the top level | py |
diff --git a/ufork/test.py b/ufork/test.py
index <HASH>..<HASH> 100644
--- a/ufork/test.py
+++ b/ufork/test.py
@@ -192,6 +192,13 @@ def test_stdout_handler():
print str(i) * 100
time.sleep(11)
+def test_stdout_flood():
+ def stdout_flood():
+ while 1:
+ print 'a' * 10000000
+ arb = ... | added stdout flood test; unable to reproduce crash with <I>MB chunks written as quickly as possible from 2 workers | py |
diff --git a/tests/common.py b/tests/common.py
index <HASH>..<HASH> 100644
--- a/tests/common.py
+++ b/tests/common.py
@@ -65,5 +65,5 @@ class TrezorBootloaderTest(unittest.TestCase):
def tearDown(self):
self.client.close()
- time.sleep(5)
+ time.sleep(10)
config.enumerate_hid() | increased delay for renumeration after boot | py |
diff --git a/cheroot/server.py b/cheroot/server.py
index <HASH>..<HASH> 100644
--- a/cheroot/server.py
+++ b/cheroot/server.py
@@ -788,12 +788,12 @@ class HTTPRequest:
)
return False
rp = req_protocol[5:].split(b'.', 1)
- rp = tuple(map(int, rp)) # Minor.Major ... | Move integer conversion after the dot check | py |
diff --git a/large_output_test.py b/large_output_test.py
index <HASH>..<HASH> 100644
--- a/large_output_test.py
+++ b/large_output_test.py
@@ -9,15 +9,15 @@ new_file = '/vagrant/results/large_output_{0}.txt'.format(platform.python_versio
with open(new_file, 'wb') as _file:
- _file.writelines("GETSENTENCE()\n".e... | Added .encode('utf-8') when writing out to a file. | py |
diff --git a/salt/returners/mongo_future_return.py b/salt/returners/mongo_future_return.py
index <HASH>..<HASH> 100644
--- a/salt/returners/mongo_future_return.py
+++ b/salt/returners/mongo_future_return.py
@@ -199,6 +199,7 @@ def returner(ret):
else:
mdb.saltReturns.insert(sdata.copy())
+
def _safe_co... | dang, thought I already got that. Apparently only got the bottom one. This should do it. | py |
diff --git a/sniplates/templatetags/sniplates.py b/sniplates/templatetags/sniplates.py
index <HASH>..<HASH> 100644
--- a/sniplates/templatetags/sniplates.py
+++ b/sniplates/templatetags/sniplates.py
@@ -211,6 +211,8 @@ def form_field(context, field, widget=None, **kwargs):
field_data = {
'form_field': fie... | Add widget_type and field_type to exploded field values Add 'display' when exploding a field with a choices list | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -1,6 +1,6 @@
from setuptools import setup, find_packages
-version = '1.0.0'
+version = '1.1.0'
setup(
name='django-crispy-forms', | Bumping django-crispy-forms version to <I> | py |
diff --git a/src/transformers/models/gpt_neo/configuration_gpt_neo.py b/src/transformers/models/gpt_neo/configuration_gpt_neo.py
index <HASH>..<HASH> 100644
--- a/src/transformers/models/gpt_neo/configuration_gpt_neo.py
+++ b/src/transformers/models/gpt_neo/configuration_gpt_neo.py
@@ -96,6 +96,7 @@ class GPTNeoConfig(... | Ignore past_key_values during GPT-Neo inference (#<I>) | py |
diff --git a/h2o-py/setup.py b/h2o-py/setup.py
index <HASH>..<HASH> 100644
--- a/h2o-py/setup.py
+++ b/h2o-py/setup.py
@@ -13,7 +13,7 @@ with open(os.path.join(here, 'DESCRIPTION.rst'), encoding='utf-8') as f:
version = "0.0.local"
# Get the version from the relevant file
-with open(os.path.join(here, 'h2o/version.... | PUBDEV-<I> - ensure proper OS based slash | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -3,8 +3,12 @@ from setuptools import setup
setup(
name='weewx-orm',
- packages=['weewx_orm'],
+ author='francium',
+ description='A library for interfacing with the Weewx database layer.'
+ url='https://git... | misc: Update setup.py for destribution | py |
diff --git a/chartkick/__init__.py b/chartkick/__init__.py
index <HASH>..<HASH> 100644
--- a/chartkick/__init__.py
+++ b/chartkick/__init__.py
@@ -1,7 +1,7 @@
from __future__ import absolute_import
import os
-VERSION = (0, 4, 1)
+VERSION = (0, 4, 2)
__version__ = '.'.join(map(str, VERSION)) | Bump up version to <I> | py |
diff --git a/pymatgen/io/vasp/sets.py b/pymatgen/io/vasp/sets.py
index <HASH>..<HASH> 100644
--- a/pymatgen/io/vasp/sets.py
+++ b/pymatgen/io/vasp/sets.py
@@ -364,7 +364,7 @@ class DictSet(VaspInputSet):
incar['NUPDOWN'] = nupdown
if self.structure._charge:
- incar["NELECT"] = self.ne... | force nelect to be automatic with charge | py |
diff --git a/anyconfig/processors.py b/anyconfig/processors.py
index <HASH>..<HASH> 100644
--- a/anyconfig/processors.py
+++ b/anyconfig/processors.py
@@ -149,13 +149,14 @@ def find_by_maybe_file(obj, prs):
return processor()
-def find(obj, prs, forced_type=None):
+def find(obj, prs, forced_type=None, cls=anyc... | enhancement: add 'cls' argument to .processors.find add 'cls' argument to anyconfig.processors.find to allow comparison of other class object in anyconfig.processors.find_by_type maybe called later from it. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -12,7 +12,8 @@ if sys.argv[-1] == 'setup.py':
if sys.argv[-1] == 'publish':
- os.system("python setup.py sdist bdist_wheel -s upload")
+ import os
+ os.system("python setup.py sdist bdist_wheel upload -s")
a... | Added missing import in ``setup.py publish`` command | py |
diff --git a/cachalot/monkey_patch.py b/cachalot/monkey_patch.py
index <HASH>..<HASH> 100644
--- a/cachalot/monkey_patch.py
+++ b/cachalot/monkey_patch.py
@@ -240,13 +240,15 @@ def _patch_atomic():
def patch_exit(original):
@wraps(original)
def inner(self, exc_type, exc_value, traceback):
+ ... | Commits an atomic cache after a SQL commit (not before). | py |
diff --git a/pyspectral/tests/__init__.py b/pyspectral/tests/__init__.py
index <HASH>..<HASH> 100644
--- a/pyspectral/tests/__init__.py
+++ b/pyspectral/tests/__init__.py
@@ -37,6 +37,7 @@ import doctest
import os
TRAVIS = os.environ.get("TRAVIS", False)
+
def suite():
"""The global test suite.
""" | Test trigger pre-commit hooks | py |
diff --git a/neo/SmartContract/StateReader.py b/neo/SmartContract/StateReader.py
index <HASH>..<HASH> 100644
--- a/neo/SmartContract/StateReader.py
+++ b/neo/SmartContract/StateReader.py
@@ -440,8 +440,8 @@ class StateReader(InteropService):
def Block_GetTransaction(self, engine):
- block = engine.Evalu... | fix Pop() order in Block_GetTransaction and Account_GetBalance | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -36,7 +36,7 @@ for path, dirs, files in os.walk('eulcommon'):
package_data[package].extend(targetfiles)
test_requirements = [
- 'mock'
+ 'mock',
'ply',
'pytest',
'pytest-cov' | Fix test requirements list in setup.py | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -1,9 +1,9 @@
# -*- coding: UTF-8 -*-
from distutils.core import setup
from setuptools import find_packages
+import time
-
-_version = "0.1"
+_version = "0.2.dev%s" % int(time.time())
_packages = find_packages(exclude=["*... | Bumping version to <I> for develop branch | py |
diff --git a/multiqc/modules/vcftools/tstv_by_qual.py b/multiqc/modules/vcftools/tstv_by_qual.py
index <HASH>..<HASH> 100644
--- a/multiqc/modules/vcftools/tstv_by_qual.py
+++ b/multiqc/modules/vcftools/tstv_by_qual.py
@@ -18,7 +18,7 @@ class TsTvByQualMixin():
self.vcftools_tstv_by_qual = dict()
for ... | Added new function tstv_by_qual to vcftools module. | py |
diff --git a/nodeconductor/structure/views.py b/nodeconductor/structure/views.py
index <HASH>..<HASH> 100644
--- a/nodeconductor/structure/views.py
+++ b/nodeconductor/structure/views.py
@@ -43,6 +43,10 @@ class UserViewSet(core_viewsets.ModelViewSet):
serializer_class = serializers.UserSerializer
permission_... | Add a support for getting data of the current user - NC-<I> - Rewrite a call to /users/current to user's uuid | py |
diff --git a/expfactory/validator/experiments.py b/expfactory/validator/experiments.py
index <HASH>..<HASH> 100644
--- a/expfactory/validator/experiments.py
+++ b/expfactory/validator/experiments.py
@@ -44,12 +44,7 @@ class ExperimentValidator:
bot.level = 0
def validate_url(self, url):
- if ... | modified: expfactory/validator/experiments.py | py |
diff --git a/_pytest/assertion/rewrite.py b/_pytest/assertion/rewrite.py
index <HASH>..<HASH> 100644
--- a/_pytest/assertion/rewrite.py
+++ b/_pytest/assertion/rewrite.py
@@ -18,9 +18,15 @@ from _pytest.assertion import util
if hasattr(imp, "get_tag"):
PYTEST_TAG = imp.get_tag() + "-PYTEST"
else:
+ if hasattr... | customize pyc tag based on implementation | py |
diff --git a/test/core/test_comparison.py b/test/core/test_comparison.py
index <HASH>..<HASH> 100644
--- a/test/core/test_comparison.py
+++ b/test/core/test_comparison.py
@@ -68,8 +68,9 @@ class TestComparisonTest(TestCase):
def test_test_runs(self):
comp = compare(self.build1, self.build2)
- env... | core: make test independent of any implicit ordering This should fix the tests on PostgreSQL | py |
diff --git a/pymbar/utils_for_testing.py b/pymbar/utils_for_testing.py
index <HASH>..<HASH> 100644
--- a/pymbar/utils_for_testing.py
+++ b/pymbar/utils_for_testing.py
@@ -60,6 +60,7 @@ __all__ = [
# functions
##############################################################################
+
def oscillators(n_states,... | One more lint issue. | py |
diff --git a/aiohttp/client.py b/aiohttp/client.py
index <HASH>..<HASH> 100644
--- a/aiohttp/client.py
+++ b/aiohttp/client.py
@@ -399,10 +399,7 @@ class ClientSession:
if timeout is sentinel:
real_timeout = self._timeout # type: ClientTimeout
else:
- if not isinstance(timeout... | Drop dead code, float timeout support was removed | py |
diff --git a/discord/opus.py b/discord/opus.py
index <HASH>..<HASH> 100644
--- a/discord/opus.py
+++ b/discord/opus.py
@@ -217,7 +217,8 @@ def _load_default() -> bool:
_filename = os.path.join(_basedir, 'bin', f'libopus-0.{_target}.dll')
_lib = libopus_loader(_filename)
else:
- ... | Ignore type error already handled by exception handling | py |
diff --git a/src/foremast/consts.py b/src/foremast/consts.py
index <HASH>..<HASH> 100644
--- a/src/foremast/consts.py
+++ b/src/foremast/consts.py
@@ -210,7 +210,7 @@ ASG_WHITELIST = set(validate_key_values(config, 'whitelists', 'asg_whitelist', d
APP_FORMATS = extract_formats(config)
GATE_CLIENT_CERT = expandvars(ex... | style: Rename spinnaker_links due to redundancy | py |
diff --git a/Imports/fits_image.py b/Imports/fits_image.py
index <HASH>..<HASH> 100644
--- a/Imports/fits_image.py
+++ b/Imports/fits_image.py
@@ -38,7 +38,12 @@ class FitsImage():
self.bscale=1
self.filename = filename
- self.wcs = pywcs.WCS(self.hdu.header, naxis=2)
+ ... | fixed the second occurence of the miriad bug | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.