diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/pycoin/services/bitcoind.py b/pycoin/services/bitcoind.py
index <HASH>..<HASH> 100644
--- a/pycoin/services/bitcoind.py
+++ b/pycoin/services/bitcoind.py
@@ -1,4 +1,5 @@
from pycoin.serialize import b2h, b2h_rev
+from pycoin.tx import Tx
class BitcoindProvider(object):
@@ -21,6 +22,11 @@ class Bitcoi... | Get tx_for_tx_hash working on bitcoind service. | py |
diff --git a/alerta/views/customers.py b/alerta/views/customers.py
index <HASH>..<HASH> 100644
--- a/alerta/views/customers.py
+++ b/alerta/views/customers.py
@@ -44,7 +44,7 @@ def create_customer():
def get_customer(customer_id):
customer = Customer.find_by_id(customer_id)
- if customer:
+ if Scope.admin... | Filter customer responses for that authed user (#<I>) | py |
diff --git a/tweepy/streaming.py b/tweepy/streaming.py
index <HASH>..<HASH> 100644
--- a/tweepy/streaming.py
+++ b/tweepy/streaming.py
@@ -119,12 +119,15 @@ class Stream(object):
# turn json data into status object
if 'in_reply_to_status_id' in data:
status = parse_status(data, self.api)
- ... | Allow all listener methods to terminate stream by returning false. | py |
diff --git a/test/test_mdf.py b/test/test_mdf.py
index <HASH>..<HASH> 100644
--- a/test/test_mdf.py
+++ b/test/test_mdf.py
@@ -234,8 +234,8 @@ class TestMDF(unittest.TestCase):
self.assertTrue(equal)
- @unittest.skip
- def test_cut_absolute_array(self):
+
+ def _test_cut_absolute_array(sel... | don't use @unittest.skip decorator since it fails the travis CI build on python <I> | py |
diff --git a/tibber/const.py b/tibber/const.py
index <HASH>..<HASH> 100644
--- a/tibber/const.py
+++ b/tibber/const.py
@@ -1,6 +1,6 @@
"""Constants used by pyTibber"""
-__version__ = "0.21.2"
+__version__ = "0.21.3"
RESOLUTION_HOURLY = "HOURLY"
RESOLUTION_DAILY = "DAILY" | <I> (#<I>) | py |
diff --git a/everest/representers/attributes.py b/everest/representers/attributes.py
index <HASH>..<HASH> 100644
--- a/everest/representers/attributes.py
+++ b/everest/representers/attributes.py
@@ -40,13 +40,8 @@ class MappedAttribute(object):
# Process the "ignore" option..
do_ignore = options.get(I... | Took out an overly restrictive test for checking the IGNORE representer options. | py |
diff --git a/dinsort.py b/dinsort.py
index <HASH>..<HASH> 100644
--- a/dinsort.py
+++ b/dinsort.py
@@ -17,6 +17,7 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
+from __future__ import unicode_literals
import unicode... | Remove need to u""-ify strings with Python2.x. By using __future__.unicode_literals, under Python2.x we can write "unicode"-strings (i.e. decoded strings) without preceeding "u". For Python3.x there is no change in behavior. If we drop Python2.x support somewhen in future, we can simply remove the first line and eve... | py |
diff --git a/visio2img/visio2img.py b/visio2img/visio2img.py
index <HASH>..<HASH> 100644
--- a/visio2img/visio2img.py
+++ b/visio2img/visio2img.py
@@ -18,8 +18,6 @@ import sys
from math import log
from optparse import OptionParser
-__all__ = ('export_img')
-
def is_pywin32_available():
""" Tests pywin32 is ... | Drop __all__ definition | py |
diff --git a/python/microcontroller/__init__.py b/python/microcontroller/__init__.py
index <HASH>..<HASH> 100644
--- a/python/microcontroller/__init__.py
+++ b/python/microcontroller/__init__.py
@@ -1,6 +1,6 @@
import agnostic
-if agnostic.platform == "esp8266":
+if agnostic.microcontroller == "esp8266":
from m... | More consistent naming of board,microcontroller,implementation | py |
diff --git a/tests/checker/test_ftp.py b/tests/checker/test_ftp.py
index <HASH>..<HASH> 100644
--- a/tests/checker/test_ftp.py
+++ b/tests/checker/test_ftp.py
@@ -93,10 +93,12 @@ class TestFtp (FtpServerTest):
self.direct(url, resultlines)
# ftp three slashes
url = u"ftp:///%s:%d/... | Fix FTP test result with three leading slashes before hostname. | py |
diff --git a/pyblish_houdini/plugins/select_current_file.py b/pyblish_houdini/plugins/select_current_file.py
index <HASH>..<HASH> 100644
--- a/pyblish_houdini/plugins/select_current_file.py
+++ b/pyblish_houdini/plugins/select_current_file.py
@@ -14,7 +14,7 @@ class SelectCurrentFile(pyblish.api.Selector):
hosts =... | Updating plug-ins to <I> | py |
diff --git a/salt/states/elasticsearch.py b/salt/states/elasticsearch.py
index <HASH>..<HASH> 100644
--- a/salt/states/elasticsearch.py
+++ b/salt/states/elasticsearch.py
@@ -348,7 +348,7 @@ def pipeline_present(name, definition):
.. code-block:: yaml
test_pipeline:
- elasticsearch_pipeline.pre... | Fix pipeline_present doc Fix underscore position in example. | py |
diff --git a/pyxmpp/stream.py b/pyxmpp/stream.py
index <HASH>..<HASH> 100644
--- a/pyxmpp/stream.py
+++ b/pyxmpp/stream.py
@@ -563,8 +563,6 @@ class Stream(sasl.PasswordManager,xmlextra.StreamHandler):
except (FatalStreamError,KeyboardInterrupt,SystemExit),e:
self.close()
raise
- ... | - don't catch and dump StreamError exceptions | py |
diff --git a/base58/__main__.py b/base58/__main__.py
index <HASH>..<HASH> 100644
--- a/base58/__main__.py
+++ b/base58/__main__.py
@@ -1,8 +1,16 @@
import argparse
import sys
+from typing import Callable, Dict, Tuple
from base58 import b58decode, b58decode_check, b58encode, b58encode_check
+_fmap: Dict[Tuple[boo... | explicitly declare the type of fmap | py |
diff --git a/src/pikepdf/models/metadata.py b/src/pikepdf/models/metadata.py
index <HASH>..<HASH> 100644
--- a/src/pikepdf/models/metadata.py
+++ b/src/pikepdf/models/metadata.py
@@ -133,6 +133,9 @@ class AuthorConverter:
if sys.version_info < (3, 7):
def fromisoformat(datestr):
import re
+ # strp... | metadata: help out Python <I> some more | py |
diff --git a/hydpy/core/testtools.py b/hydpy/core/testtools.py
index <HASH>..<HASH> 100644
--- a/hydpy/core/testtools.py
+++ b/hydpy/core/testtools.py
@@ -670,13 +670,14 @@ datetime of the Python standard library for for further information.
def reset_inits(self):
"""Set all initial conditions of all mo... | Disable option `trimvalues` when calling an object of class `IntegrationTest` of module `testtools`. This prevents complications when one of the new conditions is in conflict with one of the old conditions (which will be changed later, anyhow). | py |
diff --git a/asyncio_xmpp/ssl_transport.py b/asyncio_xmpp/ssl_transport.py
index <HASH>..<HASH> 100644
--- a/asyncio_xmpp/ssl_transport.py
+++ b/asyncio_xmpp/ssl_transport.py
@@ -625,9 +625,9 @@ def create_starttls_connection(
"""
if host is not None and port is not None:
- host_addrs = list((yield f... | Don’t collect addrinfo into list | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -49,6 +49,11 @@ if 'publish' in sys.argv:
except ImportError:
print("wheel required. Run `pip install wheel`.")
sys.exit(1)
+ try:
+ __import__('twine')
+ except ImportError:
+ print(... | test for twine before trying to publish to PyPi | py |
diff --git a/mave/core.py b/mave/core.py
index <HASH>..<HASH> 100644
--- a/mave/core.py
+++ b/mave/core.py
@@ -536,7 +536,9 @@ class MnV(object):
dts=self.p.dts_post,
feature_names=self.p.feature_names)
self.m_pre = ModelAggregator(dataset=sel... | closes #<I>, randomly selects folds | py |
diff --git a/termdown.py b/termdown.py
index <HASH>..<HASH> 100755
--- a/termdown.py
+++ b/termdown.py
@@ -245,8 +245,11 @@ def print_version(ctx, param, value):
def verify_outfile(ctx, param, value):
- if value and os.path.exists(value):
- raise click.BadParameter("File already exists: {}".format(value)... | Ensure the outfile directory is writable | py |
diff --git a/sacad/recurse.py b/sacad/recurse.py
index <HASH>..<HASH> 100755
--- a/sacad/recurse.py
+++ b/sacad/recurse.py
@@ -125,7 +125,7 @@ def get_covers(work, args):
path, artist, album = futures[future]
try:
status = future.result()
- except:
+ except Exception:
stats["er... | Don't catch KeyboardInterrupt | py |
diff --git a/pymongo/mongo_client.py b/pymongo/mongo_client.py
index <HASH>..<HASH> 100644
--- a/pymongo/mongo_client.py
+++ b/pymongo/mongo_client.py
@@ -338,7 +338,9 @@ class MongoClient(common.BaseObject):
if event_class:
self.__event_class = event_class
else:
- event_class ... | Avoid ref cycle in MongoClient. | py |
diff --git a/src/streamlink_cli/main.py b/src/streamlink_cli/main.py
index <HASH>..<HASH> 100644
--- a/src/streamlink_cli/main.py
+++ b/src/streamlink_cli/main.py
@@ -25,6 +25,10 @@ from .output import FileOutput, PlayerOutput
from .utils import NamedPipe, HTTPServer, ignored, progress, stream_to_url
ACCEPTABLE_ERR... | Ignore WinError <I> / WSAECONNABORTED A nice solution for this error was found in gevent/gevent#<I> Fixed streamlink/streamlink#<I> Fixed streamlink/streamlink#<I> Fixed streamlink/streamlink#<I> Maybe this will help streamlink/streamlink-twitch-gui#<I> | py |
diff --git a/tests/test_binary_ops.py b/tests/test_binary_ops.py
index <HASH>..<HASH> 100644
--- a/tests/test_binary_ops.py
+++ b/tests/test_binary_ops.py
@@ -1,5 +1,6 @@
from __future__ import absolute_import
from __future__ import print_function
+import warnings
import autograd.numpy as np
import autograd.numpy.r... | catch the 'output is independent of input' warning printed during tests | py |
diff --git a/tango/device_proxy.py b/tango/device_proxy.py
index <HASH>..<HASH> 100644
--- a/tango/device_proxy.py
+++ b/tango/device_proxy.py
@@ -228,7 +228,7 @@ def __DeviceProxy__getattr(self, name):
# trait_names is a feature of IPython. Hopefully they will solve
# ticket http://ipython.scipy.org/ipython/... | Don't refresh the cache on DeviceProxy._something attribute access | py |
diff --git a/torchvision/datasets/mnist.py b/torchvision/datasets/mnist.py
index <HASH>..<HASH> 100644
--- a/torchvision/datasets/mnist.py
+++ b/torchvision/datasets/mnist.py
@@ -7,6 +7,8 @@ import numpy as np
import torch
import codecs
import string
+import gzip
+import lzma
from typing import Any, Callable, Dict,... | use more precise return type for gzip.open() (#<I>) | py |
diff --git a/pychromecast/controllers/media.py b/pychromecast/controllers/media.py
index <HASH>..<HASH> 100644
--- a/pychromecast/controllers/media.py
+++ b/pychromecast/controllers/media.py
@@ -103,7 +103,7 @@ class MediaController(BaseController):
""" Processes a STATUS message. """
if 'status' in d... | MediaStatus would crash if media=None | py |
diff --git a/shapefile.py b/shapefile.py
index <HASH>..<HASH> 100644
--- a/shapefile.py
+++ b/shapefile.py
@@ -985,6 +985,10 @@ class Writer(object):
if self.shapeType != 31 and s.shapeType != NULL and s.shapeType != self.shapeType:
raise Exception("The shape's type (%s) must match the type of th... | fixed whole file bbox calculation for POINT type features | py |
diff --git a/src/wormhole/test/test_server.py b/src/wormhole/test/test_server.py
index <HASH>..<HASH> 100644
--- a/src/wormhole/test/test_server.py
+++ b/src/wormhole/test/test_server.py
@@ -220,7 +220,8 @@ class API(ServerBase, unittest.TestCase):
for d in one:
self.failUnlessIn(d, two)
- de... | test_server: rename some functions | py |
diff --git a/openfisca_core/simulation_builder.py b/openfisca_core/simulation_builder.py
index <HASH>..<HASH> 100644
--- a/openfisca_core/simulation_builder.py
+++ b/openfisca_core/simulation_builder.py
@@ -192,7 +192,8 @@ class SimulationBuilder(object):
def join_with_persons(self, group_instance, persons_group_a... | Build members_roles with np.select | py |
diff --git a/src/binwalk/modules/extractor.py b/src/binwalk/modules/extractor.py
index <HASH>..<HASH> 100644
--- a/src/binwalk/modules/extractor.py
+++ b/src/binwalk/modules/extractor.py
@@ -588,7 +588,7 @@ class Extractor(Module):
# Extract into subdirectories named by the offset
if self.extr... | Use same hex format for subdirectories as used in the text output. | py |
diff --git a/Lib/mutatorMath/objects/mutator.py b/Lib/mutatorMath/objects/mutator.py
index <HASH>..<HASH> 100644
--- a/Lib/mutatorMath/objects/mutator.py
+++ b/Lib/mutatorMath/objects/mutator.py
@@ -4,6 +4,7 @@ from mutatorMath.objects.error import MutatorError
from mutatorMath.objects.location import Location, sortLo... | Fixes LettError/MutatorMath#<I>: TypeError raised in `Mutator.getFactors()` under Python 3 The fix now supports both Python 2 and 3 with the same behavior as before. | py |
diff --git a/monero/transaction.py b/monero/transaction.py
index <HASH>..<HASH> 100644
--- a/monero/transaction.py
+++ b/monero/transaction.py
@@ -51,7 +51,7 @@ class OutgoingPayment(Payment):
def __init__(self, **kwargs):
self.destinations = kwargs.pop('destinations', self.destinations)
- super(... | Fix for python 2.x compatibility issue. | py |
diff --git a/datadog_checks_dev/datadog_checks/dev/tooling/manifest_validator/v2/migration.py b/datadog_checks_dev/datadog_checks/dev/tooling/manifest_validator/v2/migration.py
index <HASH>..<HASH> 100644
--- a/datadog_checks_dev/datadog_checks/dev/tooling/manifest_validator/v2/migration.py
+++ b/datadog_checks_dev/dat... | Make sure process_signatures gets migrated during V2 migrations (#<I>) | py |
diff --git a/tests/gitlab_test.py b/tests/gitlab_test.py
index <HASH>..<HASH> 100644
--- a/tests/gitlab_test.py
+++ b/tests/gitlab_test.py
@@ -30,7 +30,7 @@ class UsersTest(unittest.TestCase):
# get X pages
assert isinstance(git.getusers(page=2), list) # compatible with 2.6
assert isinstance... | fixed again for python <I> | py |
diff --git a/sphinxprettysearchresults/__init__.py b/sphinxprettysearchresults/__init__.py
index <HASH>..<HASH> 100644
--- a/sphinxprettysearchresults/__init__.py
+++ b/sphinxprettysearchresults/__init__.py
@@ -27,8 +27,15 @@ def remove_markup():
def clean_txts(language, srcdir, outdir):
+ if isinstance(outdir,... | change sources build path, add utf8 encoding for outdir #1 | py |
diff --git a/pygccxml/declarations/scopedef.py b/pygccxml/declarations/scopedef.py
index <HASH>..<HASH> 100644
--- a/pygccxml/declarations/scopedef.py
+++ b/pygccxml/declarations/scopedef.py
@@ -246,7 +246,6 @@ class scopedef_t(declaration.declaration_t):
"""implementation details"""
types = []
... | Remove unused code path The set is never updated, so that the continue can never be called in the loop. There seem to be no purpose for this code path, it is probably some legacy code that did not get cleaned up. | py |
diff --git a/test/test_persistence.py b/test/test_persistence.py
index <HASH>..<HASH> 100644
--- a/test/test_persistence.py
+++ b/test/test_persistence.py
@@ -1,3 +1,4 @@
+import os
import unittest
from datetime import datetime
@@ -9,11 +10,19 @@ from sample_data import TEST_DATA
class DatabaseTestCase(unittest.Te... | Test case when `url` comes as env variable. | py |
diff --git a/holoviews/operation/rgb.py b/holoviews/operation/rgb.py
index <HASH>..<HASH> 100644
--- a/holoviews/operation/rgb.py
+++ b/holoviews/operation/rgb.py
@@ -152,6 +152,12 @@ class colormap(ElementOperation):
def _process(self, matrix, key=None):
import matplotlib
+ normfn = raster_norma... | Added normalization to colormap operation | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -11,7 +11,7 @@ with open('README') as f:
setup(
name='Flask-Table',
packages=['flask_table'],
- version='0.3.0',
+ version='0.3.1',
author='Andrew Plummer',
author_email='plummer574@gmail.com',
... | Bump to version <I> | py |
diff --git a/rlp.py b/rlp.py
index <HASH>..<HASH> 100644
--- a/rlp.py
+++ b/rlp.py
@@ -44,10 +44,13 @@ def __decode(s, pos=0):
else:
b = fchar - 247
b2 = from_binary(s[pos + 1:pos + 1 + b])
- o, pos = [], pos + 1 + b
- for i in range(b):
+ o = []
+ pos += 1 + b
+ ... | fix decoding of long list this makes rlp.decode(rlp.encode(map(str, range(<I>)))) work. rlp stores the length of the encoded data, not the number of items in the list. | py |
diff --git a/phypno/attr/chan.py b/phypno/attr/chan.py
index <HASH>..<HASH> 100644
--- a/phypno/attr/chan.py
+++ b/phypno/attr/chan.py
@@ -279,10 +279,12 @@ class Channels():
Notes
-----
- TODO
+ Simplest implementation. We should at least use project onto a 2D plane
"""
- ... | make n_chan a property, and return a simple xy, we should make it better though | py |
diff --git a/bio/fragments/generate_fragments.py b/bio/fragments/generate_fragments.py
index <HASH>..<HASH> 100755
--- a/bio/fragments/generate_fragments.py
+++ b/bio/fragments/generate_fragments.py
@@ -484,6 +484,9 @@ def setup_jobs(outpath, options, input_files):
segment_mapping_file = os.path.join(outpath, ... | Fragments. Starting work on folding post-processing into the pipeline. | py |
diff --git a/polysquare_setuptools_lint/__init__.py b/polysquare_setuptools_lint/__init__.py
index <HASH>..<HASH> 100644
--- a/polysquare_setuptools_lint/__init__.py
+++ b/polysquare_setuptools_lint/__init__.py
@@ -200,14 +200,14 @@ def _run_prospector_on(filenames,
"""
from prospector.run import Prospector, ... | lint: Don't use len() as condition | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -40,7 +40,7 @@ setup_params = dict(
"beautifulsoup4",
#for viewer
"jinja2",
- "cherrypy",
+ "cherrypy>=3.2.3dev-20121007,<3.3dev",
"jaraco.compat>=1.0.3",
] + py26reqs,
description="IRC bot - full featured, y... | Require latest development version of CherryPy for fix for CherryPy #<I> | py |
diff --git a/django_activeurl/utils.py b/django_activeurl/utils.py
index <HASH>..<HASH> 100644
--- a/django_activeurl/utils.py
+++ b/django_activeurl/utils.py
@@ -118,10 +118,11 @@ def check_active(url, element, **kwargs):
# cut off get params (?key=var&etc=var2)
if ignore_params:
href = ... | Removed the use of unused variable. | py |
diff --git a/bokeh/server/server.py b/bokeh/server/server.py
index <HASH>..<HASH> 100644
--- a/bokeh/server/server.py
+++ b/bokeh/server/server.py
@@ -112,16 +112,14 @@ class Server(object):
documentation in the standard lib for more details).
new (str, optional) : window or tab (default... | Comments/docs cleanups to Server.show, suggested by Bryan | py |
diff --git a/autofixture/base.py b/autofixture/base.py
index <HASH>..<HASH> 100644
--- a/autofixture/base.py
+++ b/autofixture/base.py
@@ -107,6 +107,7 @@ class AutoFixtureBase(object):
(fields.IntegerField, generators.IntegerGenerator),
(fields.FloatField, generators.FloatGenerator),
(fields... | Added support for GenericIPAddressField | py |
diff --git a/python_modules/dagster/dagster/cli/api.py b/python_modules/dagster/dagster/cli/api.py
index <HASH>..<HASH> 100644
--- a/python_modules/dagster/dagster/cli/api.py
+++ b/python_modules/dagster/dagster/cli/api.py
@@ -18,8 +18,8 @@ from dagster.core.definitions.reconstructable import ReconstructablePipeline
f... | learn to isort after manually resolving merge conflicts Test Plan: isort Reviewers: alangenfeld Differential Revision: <URL> | py |
diff --git a/tornado/test/process_test.py b/tornado/test/process_test.py
index <HASH>..<HASH> 100644
--- a/tornado/test/process_test.py
+++ b/tornado/test/process_test.py
@@ -96,3 +96,6 @@ class ProcessTest(LogTrapTestCase):
os._exit(0)
+if os.name != 'posix':
+ # All sorts of unixisms h... | Disable this test on non-unix platforms | py |
diff --git a/spyder/config/main.py b/spyder/config/main.py
index <HASH>..<HASH> 100755
--- a/spyder/config/main.py
+++ b/spyder/config/main.py
@@ -390,8 +390,8 @@ DEFAULTS = [
'editor/next line': "Meta+N",
'editor/previous char': "Meta+B",
'editor/next char': "Meta+F",
- ... | Change the default for the Next/Prev word sc Next word: Meta+Right -> Ctrl+Right Prev word: Meta+Left -> Ctrl+Left | py |
diff --git a/coursera/test/test_workflow.py b/coursera/test/test_workflow.py
index <HASH>..<HASH> 100644
--- a/coursera/test/test_workflow.py
+++ b/coursera/test/test_workflow.py
@@ -1,3 +1,4 @@
+from os.path import normpath
import pytest
import requests
from requests.exceptions import RequestException
@@ -107,7 +10... | Use normpath in tests to fix tests on Windows | py |
diff --git a/pysc2/bin/agent_remote.py b/pysc2/bin/agent_remote.py
index <HASH>..<HASH> 100644
--- a/pysc2/bin/agent_remote.py
+++ b/pysc2/bin/agent_remote.py
@@ -104,6 +104,10 @@ flags.DEFINE_string("map", None, "Name of a map to use to play.")
flags.DEFINE_bool("human", False, "Whether to host a game as a human.")... | Allow the timeout for the agent to connect in agent_remote to be specified as a flag. PiperOrigin-RevId: <I> | py |
diff --git a/tests/check_python_env.py b/tests/check_python_env.py
index <HASH>..<HASH> 100644
--- a/tests/check_python_env.py
+++ b/tests/check_python_env.py
@@ -57,7 +57,7 @@ def get_import_list(root_folder):
print("ROOT FOLDER = " + root_folder)
# py_files = cl.clsCollectFiles(os.path.join(os.path.dirname(r... | exclude venv from check python environment | py |
diff --git a/src/ocrpage.py b/src/ocrpage.py
index <HASH>..<HASH> 100755
--- a/src/ocrpage.py
+++ b/src/ocrpage.py
@@ -308,12 +308,20 @@ def convert_to_png(input_file, output_file):
def unpack_with_ghostscript(
input_file,
output_file):
+ device = 'png16m' # 24-bit
+ if all(image['comp'] == 1 ... | Use the appropriate PNG rendered given the types of image present | py |
diff --git a/arthur/scheduler.py b/arthur/scheduler.py
index <HASH>..<HASH> 100644
--- a/arthur/scheduler.py
+++ b/arthur/scheduler.py
@@ -182,13 +182,15 @@ class _TaskScheduler(threading.Thread):
connection=self.conn,
is_asyn... | [scheduler] Save job_number in the meta field of the job enqueued This commits adds the funcionality of saving the job_number identifier in the metadata of the job in order to avoid future errors when retrieving them using CherryPy and the Job class from RQ. | py |
diff --git a/src/vivarium/framework/population.py b/src/vivarium/framework/population.py
index <HASH>..<HASH> 100644
--- a/src/vivarium/framework/population.py
+++ b/src/vivarium/framework/population.py
@@ -115,10 +115,10 @@ class PopulationView:
----------
pop
The data which should be co... | require pop view update columns to be subset of view columns; breaks pop test in vph | py |
diff --git a/satpy/tests/reader_tests/test_ahi_hsd.py b/satpy/tests/reader_tests/test_ahi_hsd.py
index <HASH>..<HASH> 100644
--- a/satpy/tests/reader_tests/test_ahi_hsd.py
+++ b/satpy/tests/reader_tests/test_ahi_hsd.py
@@ -236,11 +236,11 @@ class TestAHIHSDFileHandler(unittest.TestCase):
ref_mask = np.logi... | Missed a tab, which caused test to fail | py |
diff --git a/nes_env.py b/nes_env.py
index <HASH>..<HASH> 100644
--- a/nes_env.py
+++ b/nes_env.py
@@ -13,7 +13,7 @@ class NesENV(object):
"""Create a new LaiNES environment."""
self.obj = lib.Foo_new()
- def bar(self, path: str):
+ def bar(self, path):
lib.Foo_bar(self.obj, c_wchar_p... | remove type hint to support python2 | py |
diff --git a/SimpleSuden_format_conversion.py b/SimpleSuden_format_conversion.py
index <HASH>..<HASH> 100755
--- a/SimpleSuden_format_conversion.py
+++ b/SimpleSuden_format_conversion.py
@@ -15,13 +15,13 @@ if __name__ == '__main__':
rxn_table.readline() # Skip header
for row in csv.reader(rxn_table, de... | Fixed reversibility of SimpleSuden rxns | py |
diff --git a/flow.py b/flow.py
index <HASH>..<HASH> 100644
--- a/flow.py
+++ b/flow.py
@@ -119,6 +119,10 @@ class Fragment:
the beginning of the input stream """
return self.end
+ def getLineRange( self ):
+ " Provides line range for the fragment "
+ return [ self.beginLine, sel... | Auxiliary method added to the Fragment class | py |
diff --git a/lib/ansiblelint/rules/MissingFilePermissionsRule.py b/lib/ansiblelint/rules/MissingFilePermissionsRule.py
index <HASH>..<HASH> 100644
--- a/lib/ansiblelint/rules/MissingFilePermissionsRule.py
+++ b/lib/ansiblelint/rules/MissingFilePermissionsRule.py
@@ -48,7 +48,7 @@ class MissingFilePermissionsRule(Ansibl... | Avoid <I> rule with unarchive module (#<I>) As archives can also contain permissions (like tar ones), we should avoid triggering <I> rule when unarchive module is used. Fixes: #<I> | py |
diff --git a/alphatwirl/progressbar/ProgressBar.py b/alphatwirl/progressbar/ProgressBar.py
index <HASH>..<HASH> 100755
--- a/alphatwirl/progressbar/ProgressBar.py
+++ b/alphatwirl/progressbar/ProgressBar.py
@@ -35,13 +35,16 @@ class ProgressBar(object):
self.last = [ ]
def _create_lines(self):
+ ... | avoid deleting keys from dict during iteration | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -247,7 +247,7 @@ setup(
os.path.join('bin','ligolw_dq_active'),
os.path.join('bin','ligolw_dq_active_cats'),
os.path.join('bin','ligolw_dq_grapher'),
- os.path.join('bin','ldbdd'),
+ os.path.join('bin',... | modifications to glue/setup.py for single stage ihope | py |
diff --git a/test/full_test.py b/test/full_test.py
index <HASH>..<HASH> 100755
--- a/test/full_test.py
+++ b/test/full_test.py
@@ -314,7 +314,20 @@ def run_all_tests(mode, checker, protocol, cores, slices):
"serve-flags" : "--heartbeat-timeout 4",
"failover" : True},
... | ... and one more test with a heartbeat timeout of 1 for non-Valgrind tests. | py |
diff --git a/src/_pytest/config/__init__.py b/src/_pytest/config/__init__.py
index <HASH>..<HASH> 100644
--- a/src/_pytest/config/__init__.py
+++ b/src/_pytest/config/__init__.py
@@ -894,7 +894,6 @@ class Config(object):
assert type is None
return value
- @functools.lru_cache(maxsize=None... | functools.lru_cache does not exist on Python 2, apply for Python 3 only | py |
diff --git a/spyder/utils/tests/test_vcs.py b/spyder/utils/tests/test_vcs.py
index <HASH>..<HASH> 100644
--- a/spyder/utils/tests/test_vcs.py
+++ b/spyder/utils/tests/test_vcs.py
@@ -74,11 +74,7 @@ def test_get_git_refs():
branch_tags, branch, files_modified = get_git_refs(__file__)
assert bool(branch) # Thi... | Testing: Make test_get_git_refs work when merging against 4.x | py |
diff --git a/creamas/core/environment.py b/creamas/core/environment.py
index <HASH>..<HASH> 100644
--- a/creamas/core/environment.py
+++ b/creamas/core/environment.py
@@ -121,7 +121,7 @@ class Environment(Container):
base_url, agent_number = addr.rsplit('/', 1)
base_url += "/"
if base_url != ... | Enhanced error messages in environment.py | py |
diff --git a/docs/conf.py b/docs/conf.py
index <HASH>..<HASH> 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -19,6 +19,7 @@
import sys
import inspect
import os.path
+import re
from matplotlib import use
use('agg')
@@ -153,6 +154,16 @@ numpydoc_show_class_members = False
# auto-insert plot directive in examples... | docs: added support for auto-plotting requires numpydoc >= <I> | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -37,7 +37,7 @@ def copy_update(dir1,dir2):
def configure_cfitsio():
os.chdir(cfitsio_build_dir)
- ret=os.system('sh ./configure')
+ ret=os.system('sh ./configure --with-bzip2')
if ret != 0:
raise Va... | add --enable-bzip2 to cfitsio configure line; assumes bzlib.h is found in default place | py |
diff --git a/sos/plugins/scsi.py b/sos/plugins/scsi.py
index <HASH>..<HASH> 100644
--- a/sos/plugins/scsi.py
+++ b/sos/plugins/scsi.py
@@ -29,10 +29,8 @@ class Scsi(Plugin, RedHatPlugin, UbuntuPlugin, DebianPlugin):
"/sys/class/scsi_generic"
])
- self.add_cmd_output([
- "lsscsi... | [scsi] call lsscsi with "-i" option To get the WWID sd device combination in a single command. Resolves: #<I> | py |
diff --git a/openquake/output/hazard.py b/openquake/output/hazard.py
index <HASH>..<HASH> 100644
--- a/openquake/output/hazard.py
+++ b/openquake/output/hazard.py
@@ -762,10 +762,21 @@ class HazardCurveDBWriter(writer.DBWriter):
class GMFDBReader(object):
+ """
+ Read ground motion field data from the databa... | Added some documentation for GMFDBReader/GMFDBWriter. Former-commit-id: <I>b<I>f<I>d1d8e5bde<I>a | py |
diff --git a/crispy_forms/utils.py b/crispy_forms/utils.py
index <HASH>..<HASH> 100644
--- a/crispy_forms/utils.py
+++ b/crispy_forms/utils.py
@@ -107,7 +107,7 @@ def render_field( # noqa: C901
logging.warning("A field should only be rendered once: %s" % field, exc_info=sys.exc_info())
... | Made `render_field()` return `SafeString` when field_instance is None. (#<I>) Follow up to <I>c<I>c7ed3c<I>de<I>c0cafb<I>a<I>c6c3. | py |
diff --git a/src/dolo/misc/interactive.py b/src/dolo/misc/interactive.py
index <HASH>..<HASH> 100644
--- a/src/dolo/misc/interactive.py
+++ b/src/dolo/misc/interactive.py
@@ -364,10 +364,9 @@ def parse_dynare_text(txt,add_model=True,full_output=False,names_dict = {}):
def dynare_import(filename,names_dict={},full_ou... | Import script fixed for incorrect filenames. | py |
diff --git a/pandas/core/dtypes/common.py b/pandas/core/dtypes/common.py
index <HASH>..<HASH> 100644
--- a/pandas/core/dtypes/common.py
+++ b/pandas/core/dtypes/common.py
@@ -2016,7 +2016,9 @@ def pandas_dtype(dtype):
# also catch some valid dtypes such as object, np.object_ and 'object'
# which we safeguard ... | Fix zillion deprecation warnings in core.dtypes.common (#<I>) | py |
diff --git a/rightscale/rightscale.py b/rightscale/rightscale.py
index <HASH>..<HASH> 100644
--- a/rightscale/rightscale.py
+++ b/rightscale/rightscale.py
@@ -16,6 +16,20 @@ ROOT_RES_PATH = DEFAULT_API_PREPATH + 'sessions'
# addressed, it's another piece of magic:
ACCOUNT_INFO_RES_PATH = DEFAULT_API_PREPATH + 'sessio... | Make RightScale class use the REST hints. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -46,8 +46,8 @@ setup(
include_package_data=True,
install_requires=[
"attrdict>=2.0.0,<3",
- "eth-keyfile>=0.4.0,<1.0.0",
- "eth-keys>=0.1.0b4,<0.2.0",
+ "eth-keyfile>=0.5.0,<0.6.0",
+ ... | upgrade eth-keys, eth-keyfile for latest eth-utils | py |
diff --git a/lib/crypto/library/cryptor.py b/lib/crypto/library/cryptor.py
index <HASH>..<HASH> 100644
--- a/lib/crypto/library/cryptor.py
+++ b/lib/crypto/library/cryptor.py
@@ -59,8 +59,11 @@ class Cryptor(object):
if checksum: # add a SHA256 hash digest of the encrypted file - requested by user --ha... | added confirmation of appropriate hash digest length before reporting to user | py |
diff --git a/perceval/backends/core/github.py b/perceval/backends/core/github.py
index <HASH>..<HASH> 100644
--- a/perceval/backends/core/github.py
+++ b/perceval/backends/core/github.py
@@ -95,7 +95,7 @@ class GitHub(Backend):
:param sleep_time: time to sleep in case
of connection problems
"""
- ... | [github] Replace logging with logger call This code replaces the logging call with the equivalent of logger when getting the info for a given GitHub user. This change is needed since in ELK, the log message appears as root and not part of perceval. Backend version is set to <I> | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -1,4 +1,4 @@
-__version__ = '1.3.3'
+__version__ = '1.3.4'
import os
import sys
@@ -36,6 +36,7 @@ setup(
'Intended Audience :: Developers',
'Programming Language :: Python',
'Programming Language... | Python3 support declared in classifiers | py |
diff --git a/examples/tagtool.py b/examples/tagtool.py
index <HASH>..<HASH> 100755
--- a/examples/tagtool.py
+++ b/examples/tagtool.py
@@ -201,7 +201,7 @@ def add_emulate_parser(parser):
type=argparse.FileType('wb'),
help="preserve tag memory when released")
parser.add_argument(
- ... | Ensure files are consumed in binary mode. | py |
diff --git a/oscrypto/_win/tls.py b/oscrypto/_win/tls.py
index <HASH>..<HASH> 100644
--- a/oscrypto/_win/tls.py
+++ b/oscrypto/_win/tls.py
@@ -75,14 +75,14 @@ class TLSSession(object):
self._manual_validation = manual_validation
if protocol is None:
- protocol = {'TLS 1.0', 'TLS 1.1', 'TL... | Fix TLS compatibility with Python <I> on Windows | py |
diff --git a/spacy/about.py b/spacy/about.py
index <HASH>..<HASH> 100644
--- a/spacy/about.py
+++ b/spacy/about.py
@@ -1,6 +1,6 @@
# fmt: off
__title__ = "spacy-nightly"
-__version__ = "3.0.0a29"
+__version__ = "3.0.0a30"
__release__ = True
__download_url__ = "https://github.com/explosion/spacy-models/releases/down... | Set version to <I>a<I> | py |
diff --git a/examples/src/main/python/sort.py b/examples/src/main/python/sort.py
index <HASH>..<HASH> 100755
--- a/examples/src/main/python/sort.py
+++ b/examples/src/main/python/sort.py
@@ -30,7 +30,7 @@ if __name__ == "__main__":
lines = sc.textFile(sys.argv[1], 1)
sortedCount = lines.flatMap(lambda x: x.sp... | removed lambda from sortByKey() According to the documentation the sortByKey method does not take a lambda as an argument, thus the example is flawed. Removed the argument completely as this will default to ascending sort. | py |
diff --git a/tests/integration/pillar/test_pillar_include.py b/tests/integration/pillar/test_pillar_include.py
index <HASH>..<HASH> 100644
--- a/tests/integration/pillar/test_pillar_include.py
+++ b/tests/integration/pillar/test_pillar_include.py
@@ -1,4 +1,9 @@
+# -*- coding: utf-8 -*-
+'''
+Pillar include tests
+'''
... | Use file encoding and add docstring | py |
diff --git a/mackup/application.py b/mackup/application.py
index <HASH>..<HASH> 100644
--- a/mackup/application.py
+++ b/mackup/application.py
@@ -148,6 +148,7 @@ class ApplicationProfile(object):
file_or_dir_exists = (os.path.isfile(mackup_filepath)
or os.path.isdir(mack... | Don't fail if the file is not in the mackup home | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -35,7 +35,7 @@ setup(
],
extras_require={
'msgpack': 'msgpack-python >= 0.4.6',
- 'cbor': 'cbor2 ~= 1.0'
+ 'cbor': 'cbor2 ~= 2.0'
},
entry_points={
'asphalt.components': [ | Upgraded cbor2 dependency to v2.x | py |
diff --git a/setuptools/tests/test_msvc9compiler.py b/setuptools/tests/test_msvc9compiler.py
index <HASH>..<HASH> 100644
--- a/setuptools/tests/test_msvc9compiler.py
+++ b/setuptools/tests/test_msvc9compiler.py
@@ -12,8 +12,6 @@ import tempfile
import unittest
import distutils.errors
-import distutils.msvc9compiler... | Skip tests if msvc9compiler isn't available. | py |
diff --git a/salt/cloud/clouds/nova.py b/salt/cloud/clouds/nova.py
index <HASH>..<HASH> 100644
--- a/salt/cloud/clouds/nova.py
+++ b/salt/cloud/clouds/nova.py
@@ -775,7 +775,7 @@ def list_nodes_full(call=None, **kwargs):
for server in server_list.keys():
ret[server] = conn.server_show_libcloud(
... | list_nodes_full should be returning dicts | py |
diff --git a/testbed.py b/testbed.py
index <HASH>..<HASH> 100755
--- a/testbed.py
+++ b/testbed.py
@@ -297,3 +297,20 @@ def main():
if __name__ == '__main__':
main()
+
+
+def Matching(Y_c, Y_t, X_c, X_t): # matching with replacement
+
+ N_c = len(X_c)
+ if len(X_t.shape) == 1: # check if input is 1D-array
+ N_t... | added estimator that does matching with replacement, no doc | py |
diff --git a/salt/modules/mysql.py b/salt/modules/mysql.py
index <HASH>..<HASH> 100644
--- a/salt/modules/mysql.py
+++ b/salt/modules/mysql.py
@@ -1718,7 +1718,7 @@ def grant_exists(grant,
if grant_tokens['user'] == target_tokens['user'] and \
grant_tokens['database'] == target_tokens[... | Update mysql.py If a user both have select, update privilege,when check one privilege will return False | py |
diff --git a/ndio/ndresource/boss/tests/test_coord_frame.py b/ndio/ndresource/boss/tests/test_coord_frame.py
index <HASH>..<HASH> 100644
--- a/ndio/ndresource/boss/tests/test_coord_frame.py
+++ b/ndio/ndresource/boss/tests/test_coord_frame.py
@@ -24,10 +24,10 @@ class TestCoordFrameResource(unittest.TestCase):
d... | Updated coord frame unit tests. | py |
diff --git a/salt/modules/boto_apigateway.py b/salt/modules/boto_apigateway.py
index <HASH>..<HASH> 100644
--- a/salt/modules/boto_apigateway.py
+++ b/salt/modules/boto_apigateway.py
@@ -1584,6 +1584,8 @@ def update_usage_plan(plan_id, throttle=None, quota=None, region=None, key=None,
except ClientError as e:
... | fixed bug in update_usage_plan | py |
diff --git a/plenum/server/replica.py b/plenum/server/replica.py
index <HASH>..<HASH> 100644
--- a/plenum/server/replica.py
+++ b/plenum/server/replica.py
@@ -860,16 +860,16 @@ class Replica(HasActionQueue, MessageProcessor, HookManager):
def _process_valid_preprepare(self, pre_prepare, sender):
# TODO:... | Fix none finalised reqs in case of not participating (#<I>) * Fix none finalised reqs in case of not participating | py |
diff --git a/tests/test_cwl.py b/tests/test_cwl.py
index <HASH>..<HASH> 100644
--- a/tests/test_cwl.py
+++ b/tests/test_cwl.py
@@ -12,7 +12,14 @@ class CWLTest(unittest.TestCase):
"""
@attr(speed=1)
@attr(cwl=True)
- def test_1_cwl_nocontainer(self):
+ def test_1_cwl_docker(self):
+ cl = ["c... | Run with docker on TravisCI. Thanks @guillermo-carrasco | py |
diff --git a/command/bdist_sdux.py b/command/bdist_sdux.py
index <HASH>..<HASH> 100644
--- a/command/bdist_sdux.py
+++ b/command/bdist_sdux.py
@@ -1,7 +1,8 @@
"""distutils.command.bdist_pkgtool
Implements the Distutils 'bdist_sdux' command to create HP-UX
-swinstall depot"""
+swinstall depot.
+"""
# Mark Alexan... | Replace bogus bare variables with attribute access. | py |
diff --git a/rope/base/project.py b/rope/base/project.py
index <HASH>..<HASH> 100644
--- a/rope/base/project.py
+++ b/rope/base/project.py
@@ -422,7 +422,7 @@ def _realpath(path):
"""
# there is a bug in cygwin for os.path.abspath() for abs paths
if sys.platform == 'cygwin':
- if path.startswith('... | project: fix _realpath() on cygwin Reported by: Darren Syzling <<EMAIL>> | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -60,7 +60,7 @@ classifiers = [
"Framework :: Django",
]
-long_desc = open(root_dir if root_dir else '.'+'/README').read()
+long_desc = open((root_dir if root_dir else '.')+'/README').read()
setup(
name='django-... | fixed path bug in setup.py | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -1,7 +1,15 @@
from setuptools import setup
+from sys import version_info, stderr, exit
+extra = {}
+if version_info >= (3,):
+ stderr.write('Python3 is not yet supported.\n')
+ exit(1)
+ #extra['use_2to3'] = Tr... | Getting ready for Python3 support. | py |
diff --git a/pymacaron_core/swagger/server.py b/pymacaron_core/swagger/server.py
index <HASH>..<HASH> 100644
--- a/pymacaron_core/swagger/server.py
+++ b/pymacaron_core/swagger/server.py
@@ -1,6 +1,7 @@
import jsonschema
import logging
import uuid
+import os
from functools import wraps
from werkzeug.exceptions imp... | Introduced PYM_DEBUG to log request headers and body | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.