diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/tests/test_multiset.py b/tests/test_multiset.py
index <HASH>..<HASH> 100644
--- a/tests/test_multiset.py
+++ b/tests/test_multiset.py
@@ -974,14 +974,14 @@ def test_can_be_pickled():
assert fms == unpickled
-@pytest.mark.skipif(sys.version_info < (3, 0), reason="Dictionary insertion order is not k... | Fixed failing tests because of non matching Python version | py |
diff --git a/crispy_forms/bootstrap.py b/crispy_forms/bootstrap.py
index <HASH>..<HASH> 100644
--- a/crispy_forms/bootstrap.py
+++ b/crispy_forms/bootstrap.py
@@ -23,8 +23,8 @@ class PrependedAppendedText(Field):
self.input_size = None
css_class = kwargs.get('css_class', '')
- if css_class.fi... | fixing class names for prepended and appended text | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -100,7 +100,7 @@ setup(name='b2handle',
'six',
],
tests_require=test_dependencies,
- python_requires='>=2.6,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,<3.8',
+ python_requires='>=2.6,!=3.0.*,!=3... | added new python version added python <I> | py |
diff --git a/salt/states/win_network.py b/salt/states/win_network.py
index <HASH>..<HASH> 100644
--- a/salt/states/win_network.py
+++ b/salt/states/win_network.py
@@ -187,9 +187,11 @@ def _changes(cur, dns_proto, dns_servers, ip_proto, ip_addrs, gateway):
if ip_proto != cur_ip_proto:
changes['ip_proto'] =... | only set gateway and ip if statically set | 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"
-__version__ = "2.2.2.dev4"
+__version__ = "2.2.2.dev5"
__release__ = True
__download_url__ = "https://github.com/explosion/spacy-models/releases/download... | Set version to <I>.dev5 | py |
diff --git a/tests/tools_test.py b/tests/tools_test.py
index <HASH>..<HASH> 100755
--- a/tests/tools_test.py
+++ b/tests/tools_test.py
@@ -5,7 +5,7 @@ import unittest
from pycoin.serialize import h2b
from pycoin.intbytes import int_to_bytes, bytes_from_ints
from pycoin.tx.script.tools import bin_script, compile, dis... | Fix test with disassembling NOPs. | py |
diff --git a/backtrader/brokers/bbroker.py b/backtrader/brokers/bbroker.py
index <HASH>..<HASH> 100644
--- a/backtrader/brokers/bbroker.py
+++ b/backtrader/brokers/bbroker.py
@@ -694,6 +694,17 @@ class BackBroker(bt.BrokerBase):
if self.p.checksubmit:
self.check_submitted()
+ # Discount a... | Add calculation of credit interest rate. Addresses #<I> | py |
diff --git a/elasticmock/__init__.py b/elasticmock/__init__.py
index <HASH>..<HASH> 100644
--- a/elasticmock/__init__.py
+++ b/elasticmock/__init__.py
@@ -2,6 +2,7 @@
from functools import wraps
+from elasticsearch.client import _normalize_hosts
from mock import patch
from elasticmock.fake_elasticsearch import... | Allow the same 'hosts' settings that Elasticsearch does | py |
diff --git a/game.py b/game.py
index <HASH>..<HASH> 100644
--- a/game.py
+++ b/game.py
@@ -59,13 +59,13 @@ def main():
screen = g.Canvas( size = ( 36, 20 ) )
+ frameCount = g.Sprite(g.shapes.Text('T'), color = g.colors.RED)
+
car = g.Sprite(
Car(),
color = g.colors.WHITE
)
- ... | Put car on top of ground in game.py | py |
diff --git a/packages/vaex-core/vaex/cache.py b/packages/vaex-core/vaex/cache.py
index <HASH>..<HASH> 100644
--- a/packages/vaex-core/vaex/cache.py
+++ b/packages/vaex-core/vaex/cache.py
@@ -388,7 +388,10 @@ def fingerprint(*args, **kwargs):
try:
original = uuid.uuid4
uuid.uuid4 = _ThreadLocalCal... | refactor: give better error message when fingerprint fails | py |
diff --git a/napalm_base/exceptions.py b/napalm_base/exceptions.py
index <HASH>..<HASH> 100644
--- a/napalm_base/exceptions.py
+++ b/napalm_base/exceptions.py
@@ -29,6 +29,21 @@ class ConnectionException(Exception):
pass
+class ConnectAuthError(ConnectionException):
+ '''
+ Unable to connect to the netwo... | Defien more exceptions as per #<I> | py |
diff --git a/pyaxiom/__init__.py b/pyaxiom/__init__.py
index <HASH>..<HASH> 100644
--- a/pyaxiom/__init__.py
+++ b/pyaxiom/__init__.py
@@ -1,4 +1,4 @@
-__version__ = "1.0.0"
+__version__ = "1.0.1-dev"
# Package level logger
import logging | Bump to <I>-dev | py |
diff --git a/test/test_run_audit.py b/test/test_run_audit.py
index <HASH>..<HASH> 100644
--- a/test/test_run_audit.py
+++ b/test/test_run_audit.py
@@ -95,7 +95,12 @@ def test_write_log_file():
run_audit.write_log_file("Brain.Jobs", sample_job)
with open("{}{}.{}.log".format(run_audit.LOG_DIR, "Brain.Targets", run_a... | split a string that relied on undefined behavior | py |
diff --git a/gwpy/segments/flag.py b/gwpy/segments/flag.py
index <HASH>..<HASH> 100644
--- a/gwpy/segments/flag.py
+++ b/gwpy/segments/flag.py
@@ -345,9 +345,9 @@ class DataQualityFlag(object):
@padding.setter
def padding(self, pad):
if pad is None:
- self._padding = (float(0), float(0))
+... | Added check for None entry in pad tuple | py |
diff --git a/tinman/handlers/rabbitmq.py b/tinman/handlers/rabbitmq.py
index <HASH>..<HASH> 100644
--- a/tinman/handlers/rabbitmq.py
+++ b/tinman/handlers/rabbitmq.py
@@ -11,6 +11,7 @@ Example configuration:
password: tornado
"""
+from tornado import gen
import logging
import pika
from pika.adapters impo... | Make sure prepare is async | py |
diff --git a/pymongo/message.py b/pymongo/message.py
index <HASH>..<HASH> 100644
--- a/pymongo/message.py
+++ b/pymongo/message.py
@@ -232,6 +232,20 @@ class _CursorAddress(tuple):
"""The namespace this cursor."""
return self.__namespace
+ def __hash__(self):
+ # Two _CursorAddress instanc... | PYTHON-<I> - Fix an issue with killCursors handling | py |
diff --git a/examples/mnist.py b/examples/mnist.py
index <HASH>..<HASH> 100644
--- a/examples/mnist.py
+++ b/examples/mnist.py
@@ -19,6 +19,8 @@ class ReLuMLP(Network):
self.layers.append(self.Hidden(nr_out=self.width, nr_in=nr_in))
nr_in = self.width
self.layers.append(self.Output(nr... | Set weights in network in mnist example | py |
diff --git a/shop_paypal/payment.py b/shop_paypal/payment.py
index <HASH>..<HASH> 100644
--- a/shop_paypal/payment.py
+++ b/shop_paypal/payment.py
@@ -7,9 +7,9 @@ from decimal import Decimal
from django.conf import settings
from django.conf.urls import url
-from django.urls import NoReverseMatch ,resolve, reverse
... | correction of the alphabetical classification of imports | py |
diff --git a/src/treepoem/data.py b/src/treepoem/data.py
index <HASH>..<HASH> 100644
--- a/src/treepoem/data.py
+++ b/src/treepoem/data.py
@@ -103,6 +103,7 @@ barcode_types = {
"ismn": BarcodeType("ismn", "ISMN"),
"issn": BarcodeType("issn", "ISSN"),
"itf14": BarcodeType("itf14", "ITF-14"),
+ "jabcode... | Add missing data (#<I>) Missed in #<I>. | py |
diff --git a/py/test.py b/py/test.py
index <HASH>..<HASH> 100644
--- a/py/test.py
+++ b/py/test.py
@@ -18,9 +18,13 @@ class Basic(unittest.TestCase):
h2o.tear_down_cloud()
def test_A_Basic(self):
- for n in h2o.nodes:
- c = n.get_cloud()
- self.assertEqual(c['cloud_size'], l... | gather cloud size info from all nodes before checking. dump the whole list on inconsistent cloud size, so we can see everyone's value. | py |
diff --git a/build_libtcod.py b/build_libtcod.py
index <HASH>..<HASH> 100644
--- a/build_libtcod.py
+++ b/build_libtcod.py
@@ -284,6 +284,7 @@ def get_ast():
filename=CFFI_HEADER,
use_cpp=True,
cpp_args=[
+ r"-std=c99",
r"-Idependencies/fake_libc_include",
... | Add C<I> standard flag to cpp command. | py |
diff --git a/pandas/tests/io/parser/test_network.py b/pandas/tests/io/parser/test_network.py
index <HASH>..<HASH> 100644
--- a/pandas/tests/io/parser/test_network.py
+++ b/pandas/tests/io/parser/test_network.py
@@ -46,6 +46,21 @@ def check_compressed_urls(salaries_table, compression, extension, mode, engine):
tm.a... | TST: encoding for URLs in read_csv (#<I>) | py |
diff --git a/odinweb/data_structures.py b/odinweb/data_structures.py
index <HASH>..<HASH> 100644
--- a/odinweb/data_structures.py
+++ b/odinweb/data_structures.py
@@ -321,3 +321,12 @@ class Response(object):
return 'default', response_def
else:
return self.status.value, response_def
+... | Added a default response (a special case of response for providing the Swagger default response) | py |
diff --git a/tests/integration/cqlengine/columns/test_validation.py b/tests/integration/cqlengine/columns/test_validation.py
index <HASH>..<HASH> 100644
--- a/tests/integration/cqlengine/columns/test_validation.py
+++ b/tests/integration/cqlengine/columns/test_validation.py
@@ -33,8 +33,8 @@ from cassandra.cqlengine.mo... | Skipped tests for <I>, <I> and <I> C* versions | py |
diff --git a/python/setup.py b/python/setup.py
index <HASH>..<HASH> 100755
--- a/python/setup.py
+++ b/python/setup.py
@@ -30,5 +30,6 @@ setup(
'Topic :: System :: Filesystems',
'License :: OSI Approved :: Apache Software License',
'Operating System :: OS Independent'
- ]
+ ],
+ zip_... | Set zip_safe = True in setup.py to avoid warning when building | py |
diff --git a/feedjack/models.py b/feedjack/models.py
index <HASH>..<HASH> 100644
--- a/feedjack/models.py
+++ b/feedjack/models.py
@@ -32,7 +32,7 @@ signal_sender_empty = object()
class Link(models.Model):
name = models.CharField(_('name'), max_length=100, unique=True)
- link = models.URLField(_('link'), verify_ex... | Removed verify_exists from URLField for Django <I>+ compatibility. | py |
diff --git a/goose/videos/extractors.py b/goose/videos/extractors.py
index <HASH>..<HASH> 100644
--- a/goose/videos/extractors.py
+++ b/goose/videos/extractors.py
@@ -65,10 +65,10 @@ class VideoExtractor(object):
# and check if src attribute belongs to a video provider
for candidate in candidates:
... | check if video candidate has a src attribute | py |
diff --git a/wsproto/frame_protocol.py b/wsproto/frame_protocol.py
index <HASH>..<HASH> 100644
--- a/wsproto/frame_protocol.py
+++ b/wsproto/frame_protocol.py
@@ -20,7 +20,7 @@ try:
except ImportError:
class XorMaskerSimple:
def __init__(self, masking_key):
- self._maskbytes = itertools.cycle(... | Make sure the masking key is a byte array. | py |
diff --git a/easyquery.py b/easyquery.py
index <HASH>..<HASH> 100644
--- a/easyquery.py
+++ b/easyquery.py
@@ -232,7 +232,7 @@ class Query(object):
return mask_this
- def filter(self, table):
+ def filter(self, table, column_slice=None):
"""
Use the current Query object to create a ... | add option column_slice to filter | py |
diff --git a/install.py b/install.py
index <HASH>..<HASH> 100644
--- a/install.py
+++ b/install.py
@@ -1,4 +1,5 @@
import os
+from os.path import expanduser
import glob
import shutil
from pathlib import Path
@@ -54,7 +55,7 @@ def linux_installation():
path = input("Please choose installation path (Default is /... | Home directory (#<I>) * Input files now can start with ~ correctly. * Simplified code. * Update install.py * Update install.py | py |
diff --git a/dclab/rtdc_dataset/export.py b/dclab/rtdc_dataset/export.py
index <HASH>..<HASH> 100644
--- a/dclab/rtdc_dataset/export.py
+++ b/dclab/rtdc_dataset/export.py
@@ -264,9 +264,21 @@ class Export(object):
hw.store_metadata(meta)
# write each feature individually
for feat ... | fix: regression for non-hdf5 file export and warnings for plugin features | py |
diff --git a/lib/svtplay_dl/service/__init__.py b/lib/svtplay_dl/service/__init__.py
index <HASH>..<HASH> 100644
--- a/lib/svtplay_dl/service/__init__.py
+++ b/lib/svtplay_dl/service/__init__.py
@@ -49,7 +49,9 @@ class OpenGraphThumbMixin(object):
if match is None:
match = re.search(r'<meta conten... | OpenGraphThumbMixin: more matches for this. I saw this variant on dn.se | py |
diff --git a/rope/refactor/patchedast.py b/rope/refactor/patchedast.py
index <HASH>..<HASH> 100644
--- a/rope/refactor/patchedast.py
+++ b/rope/refactor/patchedast.py
@@ -277,6 +277,7 @@ class _PatchingASTWalker:
"Div": "/",
"Mod": "%",
"Pow": "**",
+ "MatMul": "@",
"LShift": ... | Add MatMul operator to patchedast | py |
diff --git a/indra/statements.py b/indra/statements.py
index <HASH>..<HASH> 100644
--- a/indra/statements.py
+++ b/indra/statements.py
@@ -2949,8 +2949,8 @@ class Conversion(Statement):
def matches_key(self):
keys = [type(self)]
keys += [self.subj.matches_key() if self.subj else None]
- ke... | Sort sub-lists in Conversions. | 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
@@ -43,7 +43,7 @@ QUIET_OPTIONS = ("json", "stream_url", "subprocess_cmdline", "quiet")
args = console = streamlink = plugin = stream_fd = output = None
... | logging: rename logger for main back to 'cli' | py |
diff --git a/evm/vm/base.py b/evm/vm/base.py
index <HASH>..<HASH> 100644
--- a/evm/vm/base.py
+++ b/evm/vm/base.py
@@ -456,7 +456,9 @@ class BaseVM(Configurable, metaclass=ABCMeta):
)
execution_context = block_header.create_execution_context(prev_hashes)
- receipts = self.block.get_receip... | Retrieve receipts from block by hash, not self.block | py |
diff --git a/salt/master.py b/salt/master.py
index <HASH>..<HASH> 100644
--- a/salt/master.py
+++ b/salt/master.py
@@ -1317,10 +1317,9 @@ class ClearFuncs(object):
'load': {'ret': False}}
log.info('Authentication request from {id}'.format(**load))
- minions = salt.utils.minions.Ck... | Optimize auth We were traversing the entire minion data cache on every auth unnecessarily. This should speed auths up substantially. | py |
diff --git a/test/test_threads.py b/test/test_threads.py
index <HASH>..<HASH> 100644
--- a/test/test_threads.py
+++ b/test/test_threads.py
@@ -17,7 +17,7 @@
import threading
import traceback
-from test import unittest, client_context, IntegrationTest
+from test import unittest, client_context, IntegrationTest, db_u... | Re-authenticate after logging out from TestThreadsAuth. | py |
diff --git a/zounds/datasets/freesound.py b/zounds/datasets/freesound.py
index <HASH>..<HASH> 100644
--- a/zounds/datasets/freesound.py
+++ b/zounds/datasets/freesound.py
@@ -83,6 +83,7 @@ class FreeSoundSearch(object):
'query': self.query,
'token': self.api_key
... | Actually honor delay between requests for FreeSound.org dataset | py |
diff --git a/pyradigm/multiple.py b/pyradigm/multiple.py
index <HASH>..<HASH> 100644
--- a/pyradigm/multiple.py
+++ b/pyradigm/multiple.py
@@ -59,6 +59,7 @@ class BaseMultiDataset(object):
self._modalities = dict()
self._labels = dict()
+ self.feature_names = dict()
self.num_features... | collecting feat names into MultiDataset as well | py |
diff --git a/test/on_yubikey/framework/__init__.py b/test/on_yubikey/framework/__init__.py
index <HASH>..<HASH> 100644
--- a/test/on_yubikey/framework/__init__.py
+++ b/test/on_yubikey/framework/__init__.py
@@ -239,7 +239,7 @@ def _make_test_suite_decorator(
'''
def decorate(create_test_classes):
def... | Make integration tests skip gracefully in py2 instead of crashing | py |
diff --git a/Lib/fontParts/nonelab/features.py b/Lib/fontParts/nonelab/features.py
index <HASH>..<HASH> 100644
--- a/Lib/fontParts/nonelab/features.py
+++ b/Lib/fontParts/nonelab/features.py
@@ -5,6 +5,8 @@ from fontParts.nonelab.base import RBaseObject
class RFeatures(RBaseObject, BaseFeatures):
+ wrapClass = ... | First bug caught by the test suite! | py |
diff --git a/git/remote.py b/git/remote.py
index <HASH>..<HASH> 100644
--- a/git/remote.py
+++ b/git/remote.py
@@ -513,14 +513,15 @@ class Remote(LazyMixin, Iterable):
def _get_fetch_info_from_stderr(self, proc, progress):
# skip first line as it is some remote info we are not interested in
outpu... | Fix for #<I>. Simply ignores lines that begin with ' =' | py |
diff --git a/src/canari/maltego/transform.py b/src/canari/maltego/transform.py
index <HASH>..<HASH> 100644
--- a/src/canari/maltego/transform.py
+++ b/src/canari/maltego/transform.py
@@ -19,7 +19,19 @@ __all__ = [
def camel_to_title(s):
- return re.sub('([0-9A-Z]+)([A-Z])', r'\1 \2', re.sub('([a-z])([A-Z0-9])',... | Fixed `camel_to_title()` to handle transform class name acronym splitting. | py |
diff --git a/spyderlib/widgets/externalshell/sitecustomize.py b/spyderlib/widgets/externalshell/sitecustomize.py
index <HASH>..<HASH> 100644
--- a/spyderlib/widgets/externalshell/sitecustomize.py
+++ b/spyderlib/widgets/externalshell/sitecustomize.py
@@ -579,7 +579,10 @@ class UserModuleReloader(object):
def __ini... | External Console: Avoid the UMR to reload matplotlib modules - This was causing plot windows to not be closed after further calls to plot | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -11,7 +11,7 @@ except Exception:
pass
from setuptools import setup, find_packages
-VERSION = '1.5.5'
+VERSION = '1.5.6'
setup(name='vlcp',
version=VERSION,
@@ -23,6 +23,6 @@ setup(name='vlcp',
keywords... | fix VLCP 1.x nstruct compatibility | py |
diff --git a/niworkflows/interfaces/segmentation.py b/niworkflows/interfaces/segmentation.py
index <HASH>..<HASH> 100644
--- a/niworkflows/interfaces/segmentation.py
+++ b/niworkflows/interfaces/segmentation.py
@@ -110,7 +110,6 @@ class MELODICRPT(fsl.MELODIC):
input_spec = MELODICInputSpecRPT
output_spec = M... | Update niworkflows/interfaces/segmentation.py [skip ci] | py |
diff --git a/dimod/serialization/utils.py b/dimod/serialization/utils.py
index <HASH>..<HASH> 100644
--- a/dimod/serialization/utils.py
+++ b/dimod/serialization/utils.py
@@ -78,7 +78,16 @@ def deserialize_ndarray(obj):
def serialize_ndarrays(obj, use_bytes=False, bytes_type=bytes):
"""Looks through the object, s... | Add note to serialize_ndarrays docstring | py |
diff --git a/python/ray/worker.py b/python/ray/worker.py
index <HASH>..<HASH> 100644
--- a/python/ray/worker.py
+++ b/python/ray/worker.py
@@ -1194,10 +1194,6 @@ def connect(node,
worker.lock = threading.RLock()
- # Create an object for interfacing with the global state.
- ray.state.state._initialize_glo... | Adjust the state initialization sequence and put it after core worker google logging initialization (#<I>) | py |
diff --git a/ipware/utils.py b/ipware/utils.py
index <HASH>..<HASH> 100644
--- a/ipware/utils.py
+++ b/ipware/utils.py
@@ -8,7 +8,7 @@ def is_valid_ipv4(ip_str):
"""
try:
socket.inet_pton(socket.AF_INET, ip_str)
- except AttributeError:
+ except AttributeError: # pragma: no cover
try:... | skip coverage for legacy python block | py |
diff --git a/wsdiscovery/publishing.py b/wsdiscovery/publishing.py
index <HASH>..<HASH> 100644
--- a/wsdiscovery/publishing.py
+++ b/wsdiscovery/publishing.py
@@ -60,7 +60,7 @@ class Publishing:
self._localServices[self.uuid] = service
self._sendHello(service)
- time.sleep(0.001)
+ tim... | add a longer default delay for publishing cmdline, for it to be useful | py |
diff --git a/examples/python_example.py b/examples/python_example.py
index <HASH>..<HASH> 100644
--- a/examples/python_example.py
+++ b/examples/python_example.py
@@ -9,8 +9,7 @@
# statsd_port = 8125
# Sends statistics to the stats daemon over UDP
-class Statsd(object):
-
+class StatsdClient(object):
def __ini... | Update examples/python_example.py call the client a Client. | py |
diff --git a/telemetry/telemetry/core/backends/chrome/android_browser_finder.py b/telemetry/telemetry/core/backends/chrome/android_browser_finder.py
index <HASH>..<HASH> 100644
--- a/telemetry/telemetry/core/backends/chrome/android_browser_finder.py
+++ b/telemetry/telemetry/core/backends/chrome/android_browser_finder.... | Try to enable root when starting adb, as root is needed for a full coverage. BUG=<I> R=<EMAIL> Review URL: <URL> | py |
diff --git a/vivarium/framework/engine.py b/vivarium/framework/engine.py
index <HASH>..<HASH> 100644
--- a/vivarium/framework/engine.py
+++ b/vivarium/framework/engine.py
@@ -162,7 +162,6 @@ def build_simulation_configuration(parameters: Mapping) -> ConfigTree:
-------
A valid simulation configuration.
"... | Pass a dictionary view on the command line arguments to build simulation configuration | py |
diff --git a/tests.py b/tests.py
index <HASH>..<HASH> 100755
--- a/tests.py
+++ b/tests.py
@@ -162,6 +162,16 @@ class DNSTest(unittest2.TestCase):
expected = '4.3.2.1.in-addr.arpa'
self.assertEqual(pycares.reverse_address(s), expected)
+ def test_channel_timeout(self):
+ def cb(result, err... | Add test for < 1 channel timeouts | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -107,6 +107,7 @@ setup(
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
+ 'Programming Language :: Python :: 3.10',
... | Tested successfully with Python <I> | py |
diff --git a/pyentrp/entropy.py b/pyentrp/entropy.py
index <HASH>..<HASH> 100644
--- a/pyentrp/entropy.py
+++ b/pyentrp/entropy.py
@@ -205,7 +205,7 @@ def permutation_entropy(time_series, order=3, delay=1, normalize=False):
Parameters
----------
- x : list or np.array
+ time_series : list or np.array
... | Replaced x by time_series in doc to be consistent with other functions | py |
diff --git a/merlyn/exercise.py b/merlyn/exercise.py
index <HASH>..<HASH> 100644
--- a/merlyn/exercise.py
+++ b/merlyn/exercise.py
@@ -11,12 +11,12 @@ class Exercise(item.Item):
"""
An exercise.
"""
- identifier = attributes.text(allowNone=False)
+ identifier = attributes.bytes(allowNone=False)
... | Exercise identifiers are bytes | py |
diff --git a/tests/acceptance/mapping/scenarios/wat_at.py b/tests/acceptance/mapping/scenarios/wat_at.py
index <HASH>..<HASH> 100644
--- a/tests/acceptance/mapping/scenarios/wat_at.py
+++ b/tests/acceptance/mapping/scenarios/wat_at.py
@@ -13,7 +13,7 @@ class WatTest(unittest.TestCase):
def test_mapping_wat(self):
... | [ACC-<I>] clean | py |
diff --git a/troposphere/ecs.py b/troposphere/ecs.py
index <HASH>..<HASH> 100644
--- a/troposphere/ecs.py
+++ b/troposphere/ecs.py
@@ -341,6 +341,13 @@ class ContainerDependency(AWSProperty):
}
+class EnvironmentFile(AWSProperty):
+ props = {
+ 'Type': (basestring, False),
+ 'Value': (basestri... | Add EnvironmentFiles to ECS::TaskDefinition from <I>-<I>-<I> changes | py |
diff --git a/_pytest/logging.py b/_pytest/logging.py
index <HASH>..<HASH> 100644
--- a/_pytest/logging.py
+++ b/_pytest/logging.py
@@ -296,6 +296,9 @@ class LoggingPlugin(object):
else:
self.log_file_handler = None
+ # initialized during pytest_runtestloop
+ self.log_cli_handler = ... | Initialize log_cli_handler to None during LoggingPlugin init Some of testdir's functionality bypasses pytest_runtestloop so this attribute needs to be set early | py |
diff --git a/src/fonduer/utils/udf.py b/src/fonduer/utils/udf.py
index <HASH>..<HASH> 100644
--- a/src/fonduer/utils/udf.py
+++ b/src/fonduer/utils/udf.py
@@ -62,9 +62,6 @@ class UDFRunner(object):
if clear:
self.clear(**kwargs)
- # Track the last documents parsed by apply
- self.l... | Run DocPreprocessor._parse_file only once | py |
diff --git a/src/you_get/extractors/universal.py b/src/you_get/extractors/universal.py
index <HASH>..<HASH> 100644
--- a/src/you_get/extractors/universal.py
+++ b/src/you_get/extractors/universal.py
@@ -48,6 +48,8 @@ def universal_download(url, output_dir='.', merge=True, info_only=False, **kwarg
# a link hr... | [universal] catch links with href to .png and .gif | py |
diff --git a/tests/test_forwarder.py b/tests/test_forwarder.py
index <HASH>..<HASH> 100644
--- a/tests/test_forwarder.py
+++ b/tests/test_forwarder.py
@@ -421,7 +421,7 @@ class SSHClientTest(unittest.TestCase):
self.log.debug('{0} connection closed.'.format(info))
def randomize_eport(self):
- ... | use ephemeral ports for tests | py |
diff --git a/tests/biome_test.py b/tests/biome_test.py
index <HASH>..<HASH> 100644
--- a/tests/biome_test.py
+++ b/tests/biome_test.py
@@ -11,7 +11,7 @@ class TestBiome(unittest.TestCase):
def test_biome_by_name(self):
self.assertRaises(Exception, Biome.by_name, "unexisting biome")
- self.assertI... | test: removing asserIsInstance (python <I> does not support it) Former-commit-id: 7a<I>b<I>f<I>b<I>c3b<I>a0cefdc<I>b | py |
diff --git a/salt/minion.py b/salt/minion.py
index <HASH>..<HASH> 100644
--- a/salt/minion.py
+++ b/salt/minion.py
@@ -1869,6 +1869,19 @@ class Minion(MinionBase):
log.critical('The beacon errored: ', exc_info=True)
if beacons:
self._fire_master(events=beacons)
+ ... | Add beacon event firing on the minion | py |
diff --git a/watermarker/templatetags/watermark.py b/watermarker/templatetags/watermark.py
index <HASH>..<HASH> 100644
--- a/watermarker/templatetags/watermark.py
+++ b/watermarker/templatetags/watermark.py
@@ -145,6 +145,9 @@ def watermark(url, args=''):
# make thumbnail filename
wm_name = wm_name % params
... | Perhaps I have it right this time... --HG-- extra : convert_revision : svn%3Ad2f<I>a-bb<I>-<I>dd-ad1f-f1f<I>dbc<I>/trunk%<I> | py |
diff --git a/sqlalchemy_cockroachdb/base.py b/sqlalchemy_cockroachdb/base.py
index <HASH>..<HASH> 100644
--- a/sqlalchemy_cockroachdb/base.py
+++ b/sqlalchemy_cockroachdb/base.py
@@ -148,12 +148,17 @@ class CockroachDBDialect(PGDialect):
# The crdb_internal.increment_feature_counter only exists in v21.1 of CRD... | Improve telemetry sent on starup - Sanitize the input to the query by using bindparams. - Report the versions of both sqlalchemy-cockroachdb and sqlalchemy. | py |
diff --git a/tests/Region_unit_tests.py b/tests/Region_unit_tests.py
index <HASH>..<HASH> 100644
--- a/tests/Region_unit_tests.py
+++ b/tests/Region_unit_tests.py
@@ -156,3 +156,25 @@ class RegionTestCase(unittest.TestCase):
x_array, y_array = region.index_arrays
self.assertEqual(region.points,
... | Added Region.dilate test. | py |
diff --git a/satpy/tests/reader_tests/__init__.py b/satpy/tests/reader_tests/__init__.py
index <HASH>..<HASH> 100644
--- a/satpy/tests/reader_tests/__init__.py
+++ b/satpy/tests/reader_tests/__init__.py
@@ -34,7 +34,8 @@ from satpy.tests.reader_tests import (test_abi_l1b, test_hrit_base,
... | Added new tests to __init__ of test folder | py |
diff --git a/mavproxy.py b/mavproxy.py
index <HASH>..<HASH> 100755
--- a/mavproxy.py
+++ b/mavproxy.py
@@ -855,13 +855,22 @@ def battery_report():
if opts.num_cells == 0:
return
- voltage = status.msgs['SYS_STATUS'].vbat / (opts.num_cells * 1000.0)
- levels = [ 3.22, 3.29, 3.36, 3.43, 3.5, 3.6, 3.... | fixed batter scale data based on <I>th July flight | py |
diff --git a/pkglib/tests/unit/setuptools/command/runner.py b/pkglib/tests/unit/setuptools/command/runner.py
index <HASH>..<HASH> 100644
--- a/pkglib/tests/unit/setuptools/command/runner.py
+++ b/pkglib/tests/unit/setuptools/command/runner.py
@@ -755,9 +755,6 @@ def run_setuptools(f, cmd, dist=None, dist_attrs=None, ar... | Don't mock out the environment, it's unnecessary. All we're doing here is replacing os.environ with a dict with the same contents. We shouldn't be mutating the environment in the first place, and we aren't. | py |
diff --git a/yagocd/resources/agent.py b/yagocd/resources/agent.py
index <HASH>..<HASH> 100644
--- a/yagocd/resources/agent.py
+++ b/yagocd/resources/agent.py
@@ -43,6 +43,14 @@ class AgentManager(BaseManager):
ACCEPT_HEADER = 'application/vnd.go.cd.v2+json'
def list(self):
+ """
+ Lists all a... | Add `dict` method to AgentManager, which returns list of agents as dict grouped by `uuid`. | py |
diff --git a/libcloud_monitoring/drivers/rackspace.py b/libcloud_monitoring/drivers/rackspace.py
index <HASH>..<HASH> 100644
--- a/libcloud_monitoring/drivers/rackspace.py
+++ b/libcloud_monitoring/drivers/rackspace.py
@@ -216,8 +216,11 @@ class RackspaceMonitoringDriver(MonitoringDriver):
m = resp['metada... | Also include the details (if available) when unexpected code is returned. | py |
diff --git a/account/forms.py b/account/forms.py
index <HASH>..<HASH> 100644
--- a/account/forms.py
+++ b/account/forms.py
@@ -192,6 +192,8 @@ class SettingsForm(forms.Form):
def clean_email(self):
value = self.cleaned_data["email"]
+ if self.initial.get("email") == value:
+ return... | Enable SettingsForm to process updates without changing the email address | py |
diff --git a/lime/submodular_pick.py b/lime/submodular_pick.py
index <HASH>..<HASH> 100644
--- a/lime/submodular_pick.py
+++ b/lime/submodular_pick.py
@@ -65,7 +65,8 @@ class SubmodularPick(object):
for i in sample_indices:
self.explanations.append(
explainer.explain_i... | Update submodular_pick.py passed **kwargs properly to explain_instance | py |
diff --git a/websocket/_core.py b/websocket/_core.py
index <HASH>..<HASH> 100644
--- a/websocket/_core.py
+++ b/websocket/_core.py
@@ -195,7 +195,10 @@ class WebSocket(object):
return None
def is_ssl(self):
- return isinstance(self.sock, ssl.SSLSocket)
+ try:
+ return isinst... | Fix #<I> ssl is None case. | py |
diff --git a/peerplays/cli/proposal.py b/peerplays/cli/proposal.py
index <HASH>..<HASH> 100644
--- a/peerplays/cli/proposal.py
+++ b/peerplays/cli/proposal.py
@@ -94,11 +94,11 @@ def proposals(ctx, account):
proposal["required_active_approvals"] +
proposal["required_owner_approvals"]
... | [cli] show proposal approvers per name | py |
diff --git a/ev3dev/core.py b/ev3dev/core.py
index <HASH>..<HASH> 100644
--- a/ev3dev/core.py
+++ b/ev3dev/core.py
@@ -49,6 +49,7 @@ import select
import shlex
import stat
import time
+import errno
from os.path import abspath
from struct import pack, unpack
from subprocess import Popen, check_output, PIPE
@@ -204... | Throw friendly errors (#<I>) * Untested implementation of friendly errors * Fix syntax * Use specific exception type * Fix and test error implementation | py |
diff --git a/pycbc/strain/strain.py b/pycbc/strain/strain.py
index <HASH>..<HASH> 100644
--- a/pycbc/strain/strain.py
+++ b/pycbc/strain/strain.py
@@ -278,6 +278,12 @@ def from_cli(opt, dyn_range_fac=1, precision='single',
else:
raise ValueError("Unrecognized precision {}".format(precision))
+ ... | move resampling to before gating block in strain from_cli (#<I>) | py |
diff --git a/prospector/config/__init__.py b/prospector/config/__init__.py
index <HASH>..<HASH> 100644
--- a/prospector/config/__init__.py
+++ b/prospector/config/__init__.py
@@ -286,7 +286,7 @@ class ProspectorConfig(object):
@property
def max_line_length(self):
- return self.arguments.get('max_line... | fix apparent oversight with --max-line-length option so it works as per the usage | py |
diff --git a/sitegate/__init__.py b/sitegate/__init__.py
index <HASH>..<HASH> 100644
--- a/sitegate/__init__.py
+++ b/sitegate/__init__.py
@@ -1,4 +1,4 @@
-VERSION = (0, 0, 1)
+VERSION = (0, 1, 0)
# TODO access code (invitations) flows
# TODO openid flow
@@ -8,5 +8,6 @@ VERSION = (0, 0, 1)
# TODO signs up toggle
... | Version number is bumped up. | py |
diff --git a/eyap/core/github_comments.py b/eyap/core/github_comments.py
index <HASH>..<HASH> 100644
--- a/eyap/core/github_comments.py
+++ b/eyap/core/github_comments.py
@@ -350,13 +350,14 @@ class GitHubCommentThread(comments.CommentThread):
issue_json['user']['login'], issue_json['created_at'],
... | Render comments with nl2br extension. We need to use the nl2br extension to map newline to break. Otherwise, when people edit comments in an editor which pastes with newlines bu not carriage return, what they get back will have line breaks stripped. Most people do not want that. | py |
diff --git a/gui/is_dock.py b/gui/is_dock.py
index <HASH>..<HASH> 100644
--- a/gui/is_dock.py
+++ b/gui/is_dock.py
@@ -752,7 +752,13 @@ class ISDock(QtGui.QDockWidget, Ui_ISDockBase):
if myEngineImpactLayer is None:
myMessage = str(self.tr('No impact layer was calculated. '
'Er... | Render propogated traceback as an ordered list | py |
diff --git a/puz.py b/puz.py
index <HASH>..<HASH> 100644
--- a/puz.py
+++ b/puz.py
@@ -5,7 +5,7 @@ import string
import struct
import sys
-PY3 = sys.version_info[0] == 3
+PY3 = sys.version_info[0] >= 3
if PY3:
str = str | Let's assume these changes will make it through to Python 4 | py |
diff --git a/docs/conf.py b/docs/conf.py
index <HASH>..<HASH> 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -42,7 +42,7 @@ for mod_name in MOCK_MODULES:
# If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. If the directory is relative to the
# do... | reverse docs/conf.py back to original | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -27,7 +27,7 @@ tests_require = [
'pytest-cache>=1.0',
'pytest-cov>=1.8.0',
'pytest-pep8>=1.0.6',
- 'pytest>=2.8.0,<3.0.0'
+ 'pytest>=3.8'
]
extras_require = { | installation: upgrade `pytest` | py |
diff --git a/BGC_magic.py b/BGC_magic.py
index <HASH>..<HASH> 100755
--- a/BGC_magic.py
+++ b/BGC_magic.py
@@ -152,6 +152,8 @@ def main(command_line=True, **kwargs):
print "line_items=", line_items
sample_azimuth=float(line_items[1])
sample_dip=90.0-float(line_items[2])
+ sample_bed_dip=line_items[3]
... | Added bedding dip and azimuth | py |
diff --git a/indra/tests/test_db.py b/indra/tests/test_db.py
index <HASH>..<HASH> 100644
--- a/indra/tests/test_db.py
+++ b/indra/tests/test_db.py
@@ -257,11 +257,17 @@ def test_full_upload():
db.TextContent.text_type == texttypes.FULLTEXT)
assert len(tc_list), "No fulltext was added."
Manuscripts(ft... | Add test for presence of manuscript ids. Note that this makes the test fail, as the manuscript id's are currently not uploaded. This issue will need to be fixed. | py |
diff --git a/nbdiff/diff.py b/nbdiff/diff.py
index <HASH>..<HASH> 100644
--- a/nbdiff/diff.py
+++ b/nbdiff/diff.py
@@ -45,6 +45,12 @@ def diff(before, after, check_modified = False):
})
return result
+def diff_modified_items(cellslist):
+ result = {}
+ for i in range(len(cellslist)):
+ ... | added method to compare lines of modified cells | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -23,7 +23,8 @@ setup(
"License :: OSI Approved :: MIT License",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
+ "Topic :: Software Development :: Code Generators",
... | Add PyPi classifier "Topic" | py |
diff --git a/pymc3/distributions/dist_math.py b/pymc3/distributions/dist_math.py
index <HASH>..<HASH> 100644
--- a/pymc3/distributions/dist_math.py
+++ b/pymc3/distributions/dist_math.py
@@ -54,7 +54,7 @@ def logpow(x, m):
Calculates log(x**m) since m*log(x) will fail when m, x = 0.
"""
# return m * log(... | Updated switch in logpow to correctly deal with 0*log(0) failure | py |
diff --git a/spillway/query.py b/spillway/query.py
index <HASH>..<HASH> 100644
--- a/spillway/query.py
+++ b/spillway/query.py
@@ -192,8 +192,12 @@ class RasterQuerySet(GeoQuerySet):
def aggregate_periods(self, periods):
record = self[0]
arr = record.image
+ if isinstance(arr, np.ndarray):... | Call array() unless we already have an ndarray | py |
diff --git a/examples/recordset_indexed_modified_date_and_archive_link_status.py b/examples/recordset_indexed_modified_date_and_archive_link_status.py
index <HASH>..<HASH> 100644
--- a/examples/recordset_indexed_modified_date_and_archive_link_status.py
+++ b/examples/recordset_indexed_modified_date_and_archive_link_sta... | properly handle utf-8 characters in recordset names | py |
diff --git a/pyzotero/zotero.py b/pyzotero/zotero.py
index <HASH>..<HASH> 100644
--- a/pyzotero/zotero.py
+++ b/pyzotero/zotero.py
@@ -147,7 +147,7 @@ class Zotero(object):
'bibtex': self._bib_processor,
'bookmarks': self._bib_processor,
'coins': self._bib_processor,
- ... | Adding CSL JSON processor CSL JSON (<URL>) is now processed into Python data structures (in this case, a list of dicts) | py |
diff --git a/www/src/Lib/_collections.py b/www/src/Lib/_collections.py
index <HASH>..<HASH> 100644
--- a/www/src/Lib/_collections.py
+++ b/www/src/Lib/_collections.py
@@ -402,14 +402,14 @@ class defaultdict(dict):
dict.__init__(self, args, kwds)
self.default_factory = default_factory
self.upd... | no iteritems allowed in python 3 | py |
diff --git a/eth_account/local.py b/eth_account/local.py
index <HASH>..<HASH> 100644
--- a/eth_account/local.py
+++ b/eth_account/local.py
@@ -1,15 +1,23 @@
class LocalAccount(object):
'''
- Collection of convenience methods to sign and encrypt with an embedded private key.
+ A collection of convenience met... | document address and privateKey on LocalAccount | py |
diff --git a/graphene_django/forms/mutation.py b/graphene_django/forms/mutation.py
index <HASH>..<HASH> 100644
--- a/graphene_django/forms/mutation.py
+++ b/graphene_django/forms/mutation.py
@@ -101,7 +101,10 @@ class DjangoFormMutation(BaseDjangoFormMutation):
@classmethod
def perform_mutate(cls, form, inf... | Fix broken form.save() call in DjangoFormMutation.perform_mutate (#<I>) Django's plain (non-model) forms don't have the `save` method, so calling this would just result in an `AttributeError` before this change. Resolves #<I> | py |
diff --git a/travis_docs_builder.py b/travis_docs_builder.py
index <HASH>..<HASH> 100755
--- a/travis_docs_builder.py
+++ b/travis_docs_builder.py
@@ -109,8 +109,8 @@ def run(args):
token = token.encode('utf-8')
out, err = run_command_hiding_token(args, token)
- print(out.encode('utf-8'))
- print(err.... | encode...decode, what's the difference? | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -13,6 +13,9 @@ if sys.version_info < (2, 7) or (3, 0) <= sys.version_info < (3, 4):
print('Glances requires at least Python 2.7 or 3.4 to run.')
sys.exit(1)
+PY2 = sys.version_info[0] == 2
+PY3 = sys.version_info[0... | Pin zeroconf dependency on <I> to maintain python 2 compatibility #<I> | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.