diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/tools/sphinx/avrodomain.py b/tools/sphinx/avrodomain.py
index <HASH>..<HASH> 100644
--- a/tools/sphinx/avrodomain.py
+++ b/tools/sphinx/avrodomain.py
@@ -25,6 +25,10 @@ from sphinx.util.nodes import make_refnode
from sphinx.util.compat import Directive
from sphinx.util.docfields import Field, GroupedFiel... | Changes to suppress the many "WARNING: duplicate Avro object description of ..." messages produced by avrodomain.py due to our (totally correct) use of "import idl". | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -6,17 +6,10 @@ with open('README.rst') as readme_file:
with open('HISTORY.rst') as history_file:
history = history_file.read()
-requirements = [
- 'cryptography',
- 'hypothesis',
- 'matplotlib',
- 'networkx... | moved requirements back out to requirements.txt | py |
diff --git a/pvlib/irradiance.py b/pvlib/irradiance.py
index <HASH>..<HASH> 100644
--- a/pvlib/irradiance.py
+++ b/pvlib/irradiance.py
@@ -411,7 +411,6 @@ def globalinplane(AOI, DNI, In_Plane_SkyDiffuse, GR):
AOI : float or Series
Angle of incidence of solar rays with respect
to the module su... | removed range limitation of AOI in the docstring | py |
diff --git a/pyghmi/ipmi/oem/lenovo/nextscale.py b/pyghmi/ipmi/oem/lenovo/nextscale.py
index <HASH>..<HASH> 100644
--- a/pyghmi/ipmi/oem/lenovo/nextscale.py
+++ b/pyghmi/ipmi/oem/lenovo/nextscale.py
@@ -94,11 +94,11 @@ def fpc_get_nodeperm(ipmicmd, number, sz):
if ie.ipmicode == 0xd5: # no node present
... | Check the status for no power permission It is possible to assert no power permission without providing a reason. Check and add the no power permission state explicitly in such a case. Change-Id: I<I>b<I>fc<I>a1d5b<I>ab9e<I>b<I>d<I> | py |
diff --git a/src/oidcmsg/logging.py b/src/oidcmsg/logging.py
index <HASH>..<HASH> 100644
--- a/src/oidcmsg/logging.py
+++ b/src/oidcmsg/logging.py
@@ -38,7 +38,7 @@ def configure_logging(debug: Optional[bool] = False,
config_source = 'dictionary'
elif filename is not None and os.path.exists(filename):
... | Replace yaml load to safe_load | py |
diff --git a/openstack_dashboard/dashboards/project/volumes/volumes/tables.py b/openstack_dashboard/dashboards/project/volumes/volumes/tables.py
index <HASH>..<HASH> 100644
--- a/openstack_dashboard/dashboards/project/volumes/volumes/tables.py
+++ b/openstack_dashboard/dashboards/project/volumes/volumes/tables.py
@@ -9... | Add "btn-create" Class to Create Volume Button Create volume button doesn't have 'btn-create' class. So when volume quota exceeded, and then delete volume, create volume button will not come back to enabled automatically, because that will not run the update action. Closes-Bug: <I> Change-Id: I<I>b<I>b<I>f<I>a<I>d<I... | py |
diff --git a/tests/testcomponent.py b/tests/testcomponent.py
index <HASH>..<HASH> 100644
--- a/tests/testcomponent.py
+++ b/tests/testcomponent.py
@@ -1,22 +1,13 @@
from timeside.component import *
+from timeside.tests import TestCase, TestRunner
import unittest
-class TestComponentArchitecture(unittest.TestCase)... | use the custom test runner and base testcase in component test | py |
diff --git a/test_twarc.py b/test_twarc.py
index <HASH>..<HASH> 100644
--- a/test_twarc.py
+++ b/test_twarc.py
@@ -146,7 +146,7 @@ def test_follow():
"23484039", # WSJbreakingnews
"384438102", # ABCNewsLive
"15108702", # ReutersLive
- "87416722" # SkyNewsBreak
+ "8741... | some other places where AJELive was in the tests | py |
diff --git a/blockstack_client/wallet.py b/blockstack_client/wallet.py
index <HASH>..<HASH> 100644
--- a/blockstack_client/wallet.py
+++ b/blockstack_client/wallet.py
@@ -208,12 +208,16 @@ def make_wallet(password, payment_privkey_info=None, owner_privkey_info=None, da
if segwit is None:
# no preference g... | don't initliaze segwit wallets by default (yet) | py |
diff --git a/mbed/mbed.py b/mbed/mbed.py
index <HASH>..<HASH> 100644
--- a/mbed/mbed.py
+++ b/mbed/mbed.py
@@ -1449,7 +1449,7 @@ class Program(object):
if missing and install_requirements:
try:
action("Auto-installing missing Python modules...")
- ... | Use mbed CLI's python to call pip | py |
diff --git a/steam/core/msg.py b/steam/core/msg.py
index <HASH>..<HASH> 100644
--- a/steam/core/msg.py
+++ b/steam/core/msg.py
@@ -296,7 +296,7 @@ class ChannelEncryptRequest:
self.load(data)
def serialize(self):
- return struct.pack("<II", self.protocolVersion, self.universe)
+ return... | fix serialization in ChannelEncryptRequest | py |
diff --git a/lexicon/providers/base.py b/lexicon/providers/base.py
index <HASH>..<HASH> 100644
--- a/lexicon/providers/base.py
+++ b/lexicon/providers/base.py
@@ -6,7 +6,7 @@ from ..common.options_handler import SafeOptionsWithFallback
class Provider(object):
"""
- This is the base class for all lexicon Prov... | Fix a typo in lexicon/providers/base.py | py |
diff --git a/salt/utils/win_runas.py b/salt/utils/win_runas.py
index <HASH>..<HASH> 100644
--- a/salt/utils/win_runas.py
+++ b/salt/utils/win_runas.py
@@ -19,6 +19,7 @@ try:
import win32profile
import msvcrt
import ctypes
+ import winerror
from ctypes import wintypes
HAS_WIN32 = True
except... | Handle users that aren't admin | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -28,7 +28,7 @@ setup(name='mapbox-vector-tile',
keywords='',
author=u"Harish Krishna",
author_email='harish.krsn@gmail.com',
- url='https://github.com/hkrishna/mapbox-vector-tile',
+ url='https:/... | switching the url to mapzen/ | py |
diff --git a/test.py b/test.py
index <HASH>..<HASH> 100644
--- a/test.py
+++ b/test.py
@@ -172,9 +172,12 @@ class TestZipCodes(RegexTestCase):
class TestSSN(RegexTestCase):
def test_ssn(self):
- matching = ["523 23 4566"]
+ matching = ["523 23 4566", "523-04-1234"]
+ non_matching = ["774 00... | Updated test case for SSN Updated test cases for SSN with non-matching values. | py |
diff --git a/bcbio/cwl/hpc.py b/bcbio/cwl/hpc.py
index <HASH>..<HASH> 100644
--- a/bcbio/cwl/hpc.py
+++ b/bcbio/cwl/hpc.py
@@ -340,7 +340,7 @@ HPC_CONFIGS = {
Int cpu = 1
Int memory_mb = 2048
String queue = "%(queue)s"
- String pename = "%(pename}s"
+ String pename = "%(pename)s... | CWL: fix type in SGE HPC configuration. Fixes #<I> | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -23,10 +23,16 @@ try:
except ImportError:
pass
-# Build the epoll extension for Linux systems with Python < 2.6
-extensions = []
major, minor = sys.version_info[:2]
python_26 = (major > 2 or (major == 2 and minor >= ... | Declare dependencies in setup.py for automatic installation. | py |
diff --git a/netmiko/ssh_autodetect.py b/netmiko/ssh_autodetect.py
index <HASH>..<HASH> 100644
--- a/netmiko/ssh_autodetect.py
+++ b/netmiko/ssh_autodetect.py
@@ -76,6 +76,12 @@ SSH_MAPPER_DICT = {
"priority": 99,
"dispatch": "_autodetect_std",
},
+ "ciena_saos": {
+ "cmd": "software sh... | Ciena SAOS - SSH Autodetect (#<I>) * adding ciena to autodetext * update to use full command string | py |
diff --git a/doc/conf.py b/doc/conf.py
index <HASH>..<HASH> 100644
--- a/doc/conf.py
+++ b/doc/conf.py
@@ -23,10 +23,10 @@ pyvista.set_error_output_file("errors.txt")
pyvista.OFF_SCREEN = True # Not necessary - simply an insurance policy
# Preferred plotting style for documentation
pyvista.set_plot_theme("document"... | change default window size to <I> x <I> (#<I>) | py |
diff --git a/test/Framework/__init__.py b/test/Framework/__init__.py
index <HASH>..<HASH> 100644
--- a/test/Framework/__init__.py
+++ b/test/Framework/__init__.py
@@ -4,7 +4,7 @@ import unittest
import httplib
import traceback
-sys.path.append( os.path.join( os.path.dirname( __file__ ), "..", "..", "src" ) )
+s... | Change sys.path to import the development version in tests! | py |
diff --git a/nianalysis/requirements.py b/nianalysis/requirements.py
index <HASH>..<HASH> 100644
--- a/nianalysis/requirements.py
+++ b/nianalysis/requirements.py
@@ -185,7 +185,8 @@ class Requirement(object):
' and '.join(str(e) for e in ver_exceptions))
-mrtrix3_req = Requirement('mrtrix', min_versio... | added maximum version to mrtrix | py |
diff --git a/hszinc/parser.py b/hszinc/parser.py
index <HASH>..<HASH> 100644
--- a/hszinc/parser.py
+++ b/hszinc/parser.py
@@ -346,7 +346,8 @@ def parse_scalar(scalar, mode=MODE_ZINC):
try:
tz = timezone(tzname)
return isodate.astimezone(tz)
- ex... | parser: Exclude unlikely code paths | py |
diff --git a/jax/interpreters/pxla.py b/jax/interpreters/pxla.py
index <HASH>..<HASH> 100644
--- a/jax/interpreters/pxla.py
+++ b/jax/interpreters/pxla.py
@@ -447,9 +447,18 @@ class ShardedDeviceArray(xla.DeviceArray):
# TODO(skye): expose PyLocalBuffers in xla_client
def __init__(self,
aval: Shap... | Temporarily make ShardedDeviceArray.__init__ optionally accept old si… (#<I>) This allows us to incrementally update ShardedDeviceArray creators to the new constructor introduced in <URL> | py |
diff --git a/pysat/tests/test_instruments.py b/pysat/tests/test_instruments.py
index <HASH>..<HASH> 100644
--- a/pysat/tests/test_instruments.py
+++ b/pysat/tests/test_instruments.py
@@ -99,7 +99,8 @@ class TestInstruments(InstLibTests):
dt.datetime(2021, 12, 31))
_, d... | TST: Test requires update_files to be True | py |
diff --git a/pyshop/helpers/download.py b/pyshop/helpers/download.py
index <HASH>..<HASH> 100644
--- a/pyshop/helpers/download.py
+++ b/pyshop/helpers/download.py
@@ -112,9 +112,9 @@ class ReleaseFileRenderer(object):
build_whl(sdistpath, localpath)
- data = ''
+ data = b''
... | Python 3 download file problem Fixing: data += content TypeError: Can't convert 'bytes' object to str implicitly | py |
diff --git a/pre_commit_hooks/requirements_txt_fixer.py b/pre_commit_hooks/requirements_txt_fixer.py
index <HASH>..<HASH> 100644
--- a/pre_commit_hooks/requirements_txt_fixer.py
+++ b/pre_commit_hooks/requirements_txt_fixer.py
@@ -74,6 +74,11 @@ def fix_requirements_txt(argv=None):
for arg in args.filenames:
... | Print on requirements.txt failure | py |
diff --git a/utils/speedyvec/writers/subject_verb_agreement.py b/utils/speedyvec/writers/subject_verb_agreement.py
index <HASH>..<HASH> 100644
--- a/utils/speedyvec/writers/subject_verb_agreement.py
+++ b/utils/speedyvec/writers/subject_verb_agreement.py
@@ -14,6 +14,9 @@ DB_NAME = os.environ.get('SVA_DB', 'sva')
DB_U... | helpful table creation comment in speedyvec sva writer | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -30,8 +30,7 @@ setup(
install_requires=[
'ply',
'rdflib',
- 'enum34',
- 'Click',
+ 'click',
'pyyaml',
'xmltodict',
], | Drop enum<I> dependency which is not used | py |
diff --git a/plotnine/facets/facet_grid.py b/plotnine/facets/facet_grid.py
index <HASH>..<HASH> 100644
--- a/plotnine/facets/facet_grid.py
+++ b/plotnine/facets/facet_grid.py
@@ -49,7 +49,7 @@ class facet_grid(facet):
Alternatively if a ``dict``, it indicates the relative facet
size ratios such as::
... | DOC: Remove double quoting of code in docstring | py |
diff --git a/anyconfig/backend/tests/toml.py b/anyconfig/backend/tests/toml.py
index <HASH>..<HASH> 100644
--- a/anyconfig/backend/tests/toml.py
+++ b/anyconfig/backend/tests/toml.py
@@ -5,8 +5,6 @@
# pylint: disable=missing-docstring
from __future__ import absolute_import
-import datetime
-
import anyconfig.backe... | fix: one more try to make offset-aware datetime object in toml test cases | py |
diff --git a/tests/unit_project/test_core/test_publishable.py b/tests/unit_project/test_core/test_publishable.py
index <HASH>..<HASH> 100644
--- a/tests/unit_project/test_core/test_publishable.py
+++ b/tests/unit_project/test_core/test_publishable.py
@@ -56,6 +56,16 @@ class TestMainPlacement(PublishableTestCase):
... | Added test for main_placement with reverse creation order | py |
diff --git a/btfxwss/classes.py b/btfxwss/classes.py
index <HASH>..<HASH> 100644
--- a/btfxwss/classes.py
+++ b/btfxwss/classes.py
@@ -373,7 +373,7 @@ class BtfxWss:
self.ping_timer)
if not self.conn:
# The connection was killed - initiate res... | removed call to self.restart() in processing thread | py |
diff --git a/sos/report/plugins/ovn_central.py b/sos/report/plugins/ovn_central.py
index <HASH>..<HASH> 100644
--- a/sos/report/plugins/ovn_central.py
+++ b/sos/report/plugins/ovn_central.py
@@ -85,6 +85,7 @@ class OVNCentral(Plugin):
'ovn-nbctl get-connection',
'ovn-sbctl get-ssl',
... | [ovn_central] Add OVN loadbalancer command output Now that OVN has loadbalancer support we should list any entries along with other OVN details. Resolves: #<I> | py |
diff --git a/bokeh/mpl.py b/bokeh/mpl.py
index <HASH>..<HASH> 100644
--- a/bokeh/mpl.py
+++ b/bokeh/mpl.py
@@ -31,7 +31,7 @@ def axes2plot(axes, xkcd):
background_fill = 'white'
title = axes.get_title()
plot = objects.Plot(title=title, background_fill=background_fill)
- plot.title_text_font = "cur... | Specified better the font to use in the xkcd styling. | py |
diff --git a/internetarchive/s3.py b/internetarchive/s3.py
index <HASH>..<HASH> 100644
--- a/internetarchive/s3.py
+++ b/internetarchive/s3.py
@@ -55,7 +55,7 @@ class IterableToFileAdapter(object):
# build_headers()
#_________________________________________________________________________________________
-def buil... | Converted all parameters into kwargs for more flexibility. | py |
diff --git a/stravalib/util/limiter.py b/stravalib/util/limiter.py
index <HASH>..<HASH> 100644
--- a/stravalib/util/limiter.py
+++ b/stravalib/util/limiter.py
@@ -159,8 +159,10 @@ class SleepingRateLimitRule(object):
def _get_wait_time(self, short_usage, long_usage, seconds_until_short_limit, seconds_until_long_... | Some logging to indicate rate limit exceedance | py |
diff --git a/reference/cwltool/process.py b/reference/cwltool/process.py
index <HASH>..<HASH> 100644
--- a/reference/cwltool/process.py
+++ b/reference/cwltool/process.py
@@ -70,7 +70,7 @@ class Process(object):
if "type" not in c:
raise validate.ValidationException("Missing `type` in para... | Checking if c is a list | py |
diff --git a/troposphere/utils.py b/troposphere/utils.py
index <HASH>..<HASH> 100644
--- a/troposphere/utils.py
+++ b/troposphere/utils.py
@@ -19,14 +19,15 @@ def get_events(conn, stackname):
return reversed(sum(event_list, []))
-def tail(conn, stack_name, log_func=_tail_print, sleep_time=5):
+def tail(conn, s... | Add "include_initial" kwarg to support tailing stack updates `get_events` will return all events that have occurred for a stack. This is useless if we're tailing an update to a stack. | py |
diff --git a/ntfsutils/hardlink.py b/ntfsutils/hardlink.py
index <HASH>..<HASH> 100644
--- a/ntfsutils/hardlink.py
+++ b/ntfsutils/hardlink.py
@@ -19,7 +19,7 @@ def create(source, link_name):
Creates a hardlink at link_name referring to the same file as source.
"""
res = CreateHardLink(link_name, source,... | Fix incorrect variable reference. Thanks to fredrik for reporting. | py |
diff --git a/dipper/sources/ZFIN.py b/dipper/sources/ZFIN.py
index <HASH>..<HASH> 100644
--- a/dipper/sources/ZFIN.py
+++ b/dipper/sources/ZFIN.py
@@ -931,6 +931,10 @@ class ZFIN(Source):
else:
pass
# logger.info("Normal phenotype found,... | add abnormal missing zfin zp defs to output | py |
diff --git a/zencoder/core.py b/zencoder/core.py
index <HASH>..<HASH> 100644
--- a/zencoder/core.py
+++ b/zencoder/core.py
@@ -127,19 +127,20 @@ class HTTPBackend(object):
return self.process(response, content)
- def put(self, url, body=None):
+ def put(self, url, data=None, body=None):
"""
... | add PUT support to HTTPBackend now correctly sets the content-length header `resubmit` and `cancel` use these methods | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -33,8 +33,7 @@ setup(
platforms=['all'],
license='MIT',
install_requires=install_requires,
- setup_requires=['pytest-runner',],
- tests_require=['pytest'],
+ test_suite='tests',
classifiers=[
... | Remove use of pytest and the runner; unittest is sufficient | py |
diff --git a/bitcoin/blockchain.py b/bitcoin/blockchain.py
index <HASH>..<HASH> 100644
--- a/bitcoin/blockchain.py
+++ b/bitcoin/blockchain.py
@@ -78,6 +78,7 @@ from .serialize import (
from .utils import uint256_from_compact
__all__ = [
+ 'Chain',
'OutPoint',
'Input',
'Output',
@@ -87,6 +88,23 @@... | Add shell of a chain object. | py |
diff --git a/pre_commit_hooks/check_executables_have_shebangs.py b/pre_commit_hooks/check_executables_have_shebangs.py
index <HASH>..<HASH> 100644
--- a/pre_commit_hooks/check_executables_have_shebangs.py
+++ b/pre_commit_hooks/check_executables_have_shebangs.py
@@ -15,7 +15,10 @@ EXECUTABLE_VALUES = frozenset(('1', '3... | Check Git core.fileMode rather than infer from OS. There was already a guard preventing the check-executables-have-shebangs hook from raising false positives on win<I> by looking up the Git file mode rather than relying on the file mode in the file system. Git already automatically probes the file system for executabl... | py |
diff --git a/gwpy/cli/cliproduct.py b/gwpy/cli/cliproduct.py
index <HASH>..<HASH> 100644
--- a/gwpy/cli/cliproduct.py
+++ b/gwpy/cli/cliproduct.py
@@ -891,7 +891,7 @@ class TimeDomainProduct(CliProduct):
if args.epoch is None:
args.epoch = args.xmin
else:
- epoch = float(args.e... | simplify relative epoch calc | py |
diff --git a/docker/models/images.py b/docker/models/images.py
index <HASH>..<HASH> 100644
--- a/docker/models/images.py
+++ b/docker/models/images.py
@@ -169,14 +169,15 @@ class ImageCollection(Collection):
events = list(json_stream(resp))
if not events:
return BuildError('Unknown')
- ... | Handle multiple success messages during image building. | py |
diff --git a/mongo-connector/tests/doc_managers/test_mongo_doc_manager.py b/mongo-connector/tests/doc_managers/test_mongo_doc_manager.py
index <HASH>..<HASH> 100644
--- a/mongo-connector/tests/doc_managers/test_mongo_doc_manager.py
+++ b/mongo-connector/tests/doc_managers/test_mongo_doc_manager.py
@@ -83,7 +83,26 @@ cl... | added _search and _remove to mongo doc manager | py |
diff --git a/androguard/decompiler/dad/decompile.py b/androguard/decompiler/dad/decompile.py
index <HASH>..<HASH> 100644
--- a/androguard/decompiler/dad/decompile.py
+++ b/androguard/decompiler/dad/decompile.py
@@ -311,7 +311,10 @@ class DvClass(object):
if init_value:
value = init_value.v... | patch decompiler to print escaped strings of utf | py |
diff --git a/spyderplugins/widgets/profilergui.py b/spyderplugins/widgets/profilergui.py
index <HASH>..<HASH> 100644
--- a/spyderplugins/widgets/profilergui.py
+++ b/spyderplugins/widgets/profilergui.py
@@ -32,7 +32,7 @@ from PyQt4.QtGui import (QHBoxLayout, QWidget, QMessageBox, QVBoxLayout,
... | Profiler plugin/handling module requirements (continued): standard library modules cProfile and pstats are not installed on certain GNU/Linux distributions (this was removed abusively when merging with Santiago's code) | py |
diff --git a/prospector/tools/pylint/__init__.py b/prospector/tools/pylint/__init__.py
index <HASH>..<HASH> 100644
--- a/prospector/tools/pylint/__init__.py
+++ b/prospector/tools/pylint/__init__.py
@@ -154,8 +154,9 @@ class PylintTool(ToolBase):
# try to find a .pylintrc
pylint_options = pros... | Flag --pylint-config-file has priority over config_file set inside prospector.yml | py |
diff --git a/deployutils/management/commands/__init__.py b/deployutils/management/commands/__init__.py
index <HASH>..<HASH> 100644
--- a/deployutils/management/commands/__init__.py
+++ b/deployutils/management/commands/__init__.py
@@ -120,11 +120,11 @@ def download(remote_location):
backend = S3Backend(remote_... | use . instead of ./htdocs for download of resources | py |
diff --git a/pymouse.py b/pymouse.py
index <HASH>..<HASH> 100644
--- a/pymouse.py
+++ b/pymouse.py
@@ -7,12 +7,12 @@ class PyMouseMeta(object):
"""Press the mouse on a givven x, y and button.
Button is defined as 0 = left, 1 = middle, 2 = right."""
- print "Function not implemented"
+ ... | Replaces print with NotImplementedError | py |
diff --git a/python/phonenumbers/re_util.py b/python/phonenumbers/re_util.py
index <HASH>..<HASH> 100644
--- a/python/phonenumbers/re_util.py
+++ b/python/phonenumbers/re_util.py
@@ -9,7 +9,7 @@ with Java regular expression code.
>>> r2 = re.compile('bc')
>>> r3 = re.compile('abc')
>>> fullmatch(r1, string) # docte... | Update doctest with more lenient ellipsis Python <I> seems to output "re.Match object; span=(0, 4), match='abcd'" | py |
diff --git a/allennlp/training/trainer.py b/allennlp/training/trainer.py
index <HASH>..<HASH> 100644
--- a/allennlp/training/trainer.py
+++ b/allennlp/training/trainer.py
@@ -455,8 +455,6 @@ class Trainer:
num_epochs=1,
cuda_device=self... | Fix start of tqdm logging in training. (#<I>) | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -13,7 +13,7 @@ setup(
packages=['jsonrpcclient'],
package_data={'jsonrpcclient': ['response-schema.json']},
install_requires=['requests', 'jsonschema'],
- version='1.0.6',
+ version='1.0.7',
descripti... | Version bumped to <I> | py |
diff --git a/tests/unit/beacons/test_inotify.py b/tests/unit/beacons/test_inotify.py
index <HASH>..<HASH> 100644
--- a/tests/unit/beacons/test_inotify.py
+++ b/tests/unit/beacons/test_inotify.py
@@ -111,6 +111,7 @@ class INotifyBeaconTestCase(TestCase, LoaderModuleMockMixin):
ret = inotify.beacon(config)
... | Skip 2 tests on FreeBSD. Currently IN_OPEN, IN_CLOSE_WRITE and IN_CLOSE_NOWRITE events are not implemented into libinotify and not available on FreeBSD, hence disable 2 affected tests [1] [1]: <URL> | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -64,7 +64,7 @@ setup(
extras_require={
':python_version == "2.7"': ['futures'],
'test': TEST_REQUIRES,
- 'dev': ['pycodestyle', 'pylint', 'yapf'],
+ 'dev': ['pycodestyle', 'pylint', 'yapf==... | Pin yapf version to match current formatting (#<I>) | py |
diff --git a/ib_insync/ib.py b/ib_insync/ib.py
index <HASH>..<HASH> 100644
--- a/ib_insync/ib.py
+++ b/ib_insync/ib.py
@@ -1289,6 +1289,8 @@ class IB:
subscribe with.
"""
ticker = self.ticker(contract)
+ ticker.domBids.clear()
+ ticker.domAsks.clear()
reqId = se... | Clear DOM levels on canceling market depth. | py |
diff --git a/examples/simple/inquiry.py b/examples/simple/inquiry.py
index <HASH>..<HASH> 100644
--- a/examples/simple/inquiry.py
+++ b/examples/simple/inquiry.py
@@ -15,5 +15,8 @@ nearby_devices = bluetooth.discover_devices(duration=2, lookup_names=True,
print("found %d devices" % len(nearby_devices))
for addr, na... | Fix in inquiry.py for name encoding issues | py |
diff --git a/blockstack/lib/config.py b/blockstack/lib/config.py
index <HASH>..<HASH> 100644
--- a/blockstack/lib/config.py
+++ b/blockstack/lib/config.py
@@ -113,6 +113,8 @@ MICROSTACKS_PER_SATOSHI_DEN = 15
NAMESPACE_PREORDER_EXPIRE = BLOCKS_PER_DAY # namespace preorders expire after 1 day, if not revealed
NAME... | there are <I> billion STX | py |
diff --git a/ceph_deploy/install.py b/ceph_deploy/install.py
index <HASH>..<HASH> 100644
--- a/ceph_deploy/install.py
+++ b/ceph_deploy/install.py
@@ -174,6 +174,7 @@ def install(args):
args.adjust_repos,
components=components,
gpgcheck=gpgcheck,
+ args=... | [RM-<I>] install: pass args to the host-specific install function | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -24,7 +24,7 @@ setup(name = 'GPy',
package_data = {'GPy': ['defaults.cfg', 'installation.cfg', 'util/data_resources.json', 'util/football_teams.json']},
py_modules = ['GPy.__init__'],
long_description=read... | remove nose from install_requires | py |
diff --git a/bucketcache/__init__.py b/bucketcache/__init__.py
index <HASH>..<HASH> 100644
--- a/bucketcache/__init__.py
+++ b/bucketcache/__init__.py
@@ -11,6 +11,6 @@ __all__ = (backends.__all__ + buckets.__all__ + config.__all__ +
exceptions.__all__ + utilities.__all__)
__author__ = 'Frazer McLean <fr... | Bumped version number to <I> | py |
diff --git a/test/s3_test.py b/test/s3_test.py
index <HASH>..<HASH> 100644
--- a/test/s3_test.py
+++ b/test/s3_test.py
@@ -25,8 +25,23 @@ import luigi.format
import boto
from boto.s3 import bucket
from boto.exception import S3ResponseError
-from moto import mock_s3
+# moto does not yet work with
+# python 2.6. Un... | moto only works with python<I>+, so disable moto-based tests if it cannot import | py |
diff --git a/wonambi/widgets/utils.py b/wonambi/widgets/utils.py
index <HASH>..<HASH> 100644
--- a/wonambi/widgets/utils.py
+++ b/wonambi/widgets/utils.py
@@ -3,7 +3,7 @@
from ast import literal_eval
from logging import getLogger
from math import ceil, floor
-from numpy import arange
+from numpy import arange, NaN
... | handle missing values or N/A in spindle detection | py |
diff --git a/cobe/model.py b/cobe/model.py
index <HASH>..<HASH> 100644
--- a/cobe/model.py
+++ b/cobe/model.py
@@ -67,11 +67,6 @@ class Model(object):
self.tokens.load(self._prefix_items("t/", skip_prefix=True))
- def _add_count(self, batch, key, value):
- count = varint.decode_one(self.kv.Get(ke... | Move _add_count into save(), the only function that used it | py |
diff --git a/tests/blessed_images/generated_blessed_images.py b/tests/blessed_images/generated_blessed_images.py
index <HASH>..<HASH> 100644
--- a/tests/blessed_images/generated_blessed_images.py
+++ b/tests/blessed_images/generated_blessed_images.py
@@ -15,8 +15,8 @@ from worldengine.draw import *
def main(blessed_... | Updated to test new version of draw_simple_elevation_on_file. | py |
diff --git a/django_x509/base/admin.py b/django_x509/base/admin.py
index <HASH>..<HASH> 100644
--- a/django_x509/base/admin.py
+++ b/django_x509/base/admin.py
@@ -151,7 +151,6 @@ CertAdmin = AbstractCertAdmin
AbstractCertAdmin.list_display = BaseAdmin.list_display[:]
AbstractCertAdmin.list_display.insert(1, 'ca_url... | [admin] Removed ``serial_number`` from certificate list | py |
diff --git a/quickview.py b/quickview.py
index <HASH>..<HASH> 100644
--- a/quickview.py
+++ b/quickview.py
@@ -16,11 +16,16 @@ def quickview(filename,
'''
data = np.load(filename)
-
+ if 'kSpace' in data:
+ key = 'kSpace'
+ else:
+ key = 'imSpace'
+ noIFFT = not noIFFT
+... | Adjusted quick view to work with image space data | py |
diff --git a/python/ray/rllib/evaluation/rollout_worker.py b/python/ray/rllib/evaluation/rollout_worker.py
index <HASH>..<HASH> 100644
--- a/python/ray/rllib/evaluation/rollout_worker.py
+++ b/python/ray/rllib/evaluation/rollout_worker.py
@@ -750,10 +750,11 @@ def _validate_multiagent_config(policy, allow_none_graph=Fa... | Multiagent experiment resume (#<I>) * Fixed problem with multiagent experiment resume * Applied format script * fix lint | py |
diff --git a/fireplace/aura.py b/fireplace/aura.py
index <HASH>..<HASH> 100644
--- a/fireplace/aura.py
+++ b/fireplace/aura.py
@@ -57,9 +57,9 @@ class Refresh:
class TargetableByAuras:
def refresh_buff(self, source, id):
- for slot in self.slots:
- if slot.source is source and slot.id == id:
- slot.tick = so... | Specifically check Entity.buffs when refreshing buffs Fixes #<I> | py |
diff --git a/pyqtree.py b/pyqtree.py
index <HASH>..<HASH> 100644
--- a/pyqtree.py
+++ b/pyqtree.py
@@ -85,7 +85,11 @@ if PYTHON3:
def _normalize_rect(rect):
- x1, y1, x2, y2 = rect
+ if len(rect) == 2:
+ x1, y1 = rect
+ x2, y2 = rect
+ else:
+ x1, y1, x2, y2 = rect
if x1 > x2:
... | Support points, not only rectangles. | py |
diff --git a/openquake/commands/plot_hmaps.py b/openquake/commands/plot_hmaps.py
index <HASH>..<HASH> 100644
--- a/openquake/commands/plot_hmaps.py
+++ b/openquake/commands/plot_hmaps.py
@@ -19,6 +19,7 @@ from openquake.baselib import sap
from openquake.hazardlib.imt import from_string
from openquake.calculators.extr... | [skip CI] Former-commit-id: cf<I>c9bdc<I>e<I>c<I>c8d3ea1f<I>f | py |
diff --git a/lib/webgroup_dblayer.py b/lib/webgroup_dblayer.py
index <HASH>..<HASH> 100644
--- a/lib/webgroup_dblayer.py
+++ b/lib/webgroup_dblayer.py
@@ -1,24 +1,22 @@
# -*- coding: utf-8 -*-
-
+##
## $Id$
-##
-## db-related function of group
##
-## This file is part of the CERN Document Server Software (CDSware)... | Added copyright messages to the files where they were missing. Fixed copyright messages that still spoke about CDSware instead of CDS Invenio. | py |
diff --git a/config_resolver/core.py b/config_resolver/core.py
index <HASH>..<HASH> 100644
--- a/config_resolver/core.py
+++ b/config_resolver/core.py
@@ -27,7 +27,7 @@ from warnings import warn
from .exc import NoVersionError
from .util import PrefixFilter
-__version__ = '4.3.2'
+__version__ = '4.3.3'
ConfigI... | Version bumped to <I> | py |
diff --git a/cocaine/worker.py b/cocaine/worker.py
index <HASH>..<HASH> 100644
--- a/cocaine/worker.py
+++ b/cocaine/worker.py
@@ -125,19 +125,18 @@ class Worker(object):
return
elif msg.id == message.RPC_INVOKE:
- #todo: _stream might be referenced
+ request = Request()
+ ... | Fixed possible bug when stream variable is not assigned (maybe, an exception is thrown in init method or earlier) | py |
diff --git a/MySQLdb/setup_common.py b/MySQLdb/setup_common.py
index <HASH>..<HASH> 100644
--- a/MySQLdb/setup_common.py
+++ b/MySQLdb/setup_common.py
@@ -1,4 +1,9 @@
-from ConfigParser import SafeConfigParser
+try:
+ # Python 2.x
+ from ConfigParser import SafeConfigParser
+except ImportError:
+ # Python 3.x
... | Some Python 3 fixes for the build process. _mysql does *not* build yet. | py |
diff --git a/src/oiccli/oic/service.py b/src/oiccli/oic/service.py
index <HASH>..<HASH> 100644
--- a/src/oiccli/oic/service.py
+++ b/src/oiccli/oic/service.py
@@ -61,6 +61,14 @@ PROVIDER_DEFAULT = {
def store_id_token(resp, cli_info, **kwargs):
+ """
+ Store the verified ID Token in the state database.
+
+ ... | Make sure that the 'sub' value returned in the id_token is then same I get from the userinfo endpoint. | py |
diff --git a/telethon/telegram_bare_client.py b/telethon/telegram_bare_client.py
index <HASH>..<HASH> 100644
--- a/telethon/telegram_bare_client.py
+++ b/telethon/telegram_bare_client.py
@@ -10,7 +10,7 @@ from time import sleep
from . import helpers as utils
from .crypto import rsa, CdnDecrypter
from .errors import ... | Except ServerErrors and sleep a bit before retrying | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -1,16 +1,16 @@
#!/usr/bin/env python
# Copyright (c) 2015 IBM. All rights reserved.
#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
... | Change setup.py based on Pylint run - Fix trailing whitespace issues - Fix variable assignment spacing | py |
diff --git a/docs/conf.py b/docs/conf.py
index <HASH>..<HASH> 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -14,7 +14,7 @@
import sys
import os
-from unittest.mock import MagicMock
+from mock import MagicMock
# If extensions (or modules to document with autodoc) are in another directory,
# add these directori... | Mocking pandas as it fails when compiling on RTD | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -32,7 +32,7 @@ setup(name='bcdata',
install_requires=[
'click',
'requests',
- 'beautifulsoup',
+ 'beautifulsoup4',
'selenium',
'polling'
], | fixed another problem with install_requires | py |
diff --git a/baron/grammator_operators.py b/baron/grammator_operators.py
index <HASH>..<HASH> 100644
--- a/baron/grammator_operators.py
+++ b/baron/grammator_operators.py
@@ -148,6 +148,7 @@ def include_operators(pg):
@pg.production("term : factor SLASH term")
@pg.production("term : factor PERCENT term")
... | [fix] missing declaration from AT as a binary operator | py |
diff --git a/tangelo/setup.py b/tangelo/setup.py
index <HASH>..<HASH> 100644
--- a/tangelo/setup.py
+++ b/tangelo/setup.py
@@ -22,8 +22,11 @@ data_files_list = [("share/tangelo/conf", ["conf/tangelo.conf.global",
("share/tangelo/data", ["data/get-flickr-data.py"]),
("share/tangel... | Exclude .pyc files, and generated tests, from generated python package. | py |
diff --git a/openquake/baselib/hdf5.py b/openquake/baselib/hdf5.py
index <HASH>..<HASH> 100644
--- a/openquake/baselib/hdf5.py
+++ b/openquake/baselib/hdf5.py
@@ -232,7 +232,8 @@ class File(h5py.File):
h5obj = super(File, self).__getitem__(path)
h5attrs = h5obj.attrs
if '__pyclass__' in h5att... | Added a decode needed for Python 3 | py |
diff --git a/bika/lims/idserver.py b/bika/lims/idserver.py
index <HASH>..<HASH> 100644
--- a/bika/lims/idserver.py
+++ b/bika/lims/idserver.py
@@ -220,7 +220,7 @@ def get_current_year():
def search_by_prefix(portal_type, prefix):
"""Returns brains which share the same portal_type and ID prefix
"""
- catal... | Replace portal_catalog by uid_catalog in search_by_prefix Some portal types are not stored in portal_catalog (e.g. Worksheet) | py |
diff --git a/scripts/bcbio_prepare_samples.py b/scripts/bcbio_prepare_samples.py
index <HASH>..<HASH> 100755
--- a/scripts/bcbio_prepare_samples.py
+++ b/scripts/bcbio_prepare_samples.py
@@ -47,6 +47,12 @@ def _get_samples_to_process(fn, out_dir, config):
if len(cols) < 2:
raise ValueError... | Workaround if name files have spaces. #<I> | py |
diff --git a/billing/tests/amazon_fps_tests.py b/billing/tests/amazon_fps_tests.py
index <HASH>..<HASH> 100644
--- a/billing/tests/amazon_fps_tests.py
+++ b/billing/tests/amazon_fps_tests.py
@@ -13,7 +13,7 @@ class AmazonFPSTestCase(TestCase):
"paymentReason": "Digital Download",
"pipelineName... | Fix the breaking fps tests. | py |
diff --git a/tensorboard/program.py b/tensorboard/program.py
index <HASH>..<HASH> 100644
--- a/tensorboard/program.py
+++ b/tensorboard/program.py
@@ -433,6 +433,15 @@ class TensorBoard(object):
sys.exit(1)
if flags.load_fast == "auto" and _should_use_data_server(flags.logdir):
+ ... | Print message explaining that --load_fast does not support --logdir_spec (#<I>) This changes the program to print a message that explicitly indicates `--logdir_spec` is unsupported with `--load_fast` behavior. See <URL> | py |
diff --git a/src/edeposit/amqp/aleph/settings.py b/src/edeposit/amqp/aleph/settings.py
index <HASH>..<HASH> 100644
--- a/src/edeposit/amqp/aleph/settings.py
+++ b/src/edeposit/amqp/aleph/settings.py
@@ -6,12 +6,3 @@ BASE_PATH = (os.path.dirname(__file__))
ALEPH_URL = "http://aleph.nkp.cz"
PATH_OF_EXPORT_DIRECTORY =... | Remove unnecessary test variables from settings.py. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -9,9 +9,9 @@ except:
from distutils.core import setup
MAJOR = 0
-MINOR = 1
-MICRO = 1
-ISRELEASED = True
+MINOR = 2
+MICRO = 0
+ISRELEASED = False
VERSION = '%d.%d.%d' % (MAJOR, MINOR, MICRO)
QUALIFIER = '' | Switch setup.py version back to <I>-dev | py |
diff --git a/Mixtape/subset_featurizer.py b/Mixtape/subset_featurizer.py
index <HASH>..<HASH> 100644
--- a/Mixtape/subset_featurizer.py
+++ b/Mixtape/subset_featurizer.py
@@ -236,6 +236,7 @@ class SubsetFeatureUnion(mixtape.featurizer.TrajFeatureUnion):
class DummyCV(object):
+ """A cross-validation object that... | Added dummy cv docstring. | py |
diff --git a/salt/pillar/pepa.py b/salt/pillar/pepa.py
index <HASH>..<HASH> 100755
--- a/salt/pillar/pepa.py
+++ b/salt/pillar/pepa.py
@@ -58,11 +58,9 @@ __opts__ = {
}
# Import libraries
-try:
- import yaml
- HAS_YAML = True
-except ImportError:
- HAS_YAML = False
+import yaml
+import jinja2
+import re
... | Remove try/except blocks for imports that will always exist | py |
diff --git a/src/pytest_cov/engine.py b/src/pytest_cov/engine.py
index <HASH>..<HASH> 100644
--- a/src/pytest_cov/engine.py
+++ b/src/pytest_cov/engine.py
@@ -40,7 +40,8 @@ class CovController(object):
os.environ['COV_CORE_CONFIG'] = config_file
else:
os.environ['COV_CORE_CONFIG'] = '... | Get data_file path from Coverage config in subprocesses. Fix #<I>. | py |
diff --git a/kurt/scratch20/__init__.py b/kurt/scratch20/__init__.py
index <HASH>..<HASH> 100644
--- a/kurt/scratch20/__init__.py
+++ b/kurt/scratch20/__init__.py
@@ -107,6 +107,7 @@ class ZipReader(object):
# watchers
for actor in actors:
if not isinstance(actor, kurt.Sprite):
+ ... | Hotfix: list watchers now show up in "children" too. | py |
diff --git a/src/funcparserlib/lexer.py b/src/funcparserlib/lexer.py
index <HASH>..<HASH> 100644
--- a/src/funcparserlib/lexer.py
+++ b/src/funcparserlib/lexer.py
@@ -90,7 +90,8 @@ def make_tokenizer(specs):
n_pos = len(value) - value.rfind(u'\n') - 1
return Token(type, value, (lin... | Fixed a bug with a wrong token position in lexer error messages | py |
diff --git a/openquake/server/db/actions.py b/openquake/server/db/actions.py
index <HASH>..<HASH> 100644
--- a/openquake/server/db/actions.py
+++ b/openquake/server/db/actions.py
@@ -508,10 +508,10 @@ def get_calcs(db, request_get_dict, allowed_users, user_acl_on=False, id=None):
a :class:`openquake.server.dba... | Update a docstring in db/actions.py [skip ci] | py |
diff --git a/python/neuroglancer/viewer_state.py b/python/neuroglancer/viewer_state.py
index <HASH>..<HASH> 100644
--- a/python/neuroglancer/viewer_state.py
+++ b/python/neuroglancer/viewer_state.py
@@ -234,6 +234,7 @@ class AnnotationBase(JsonObjectWrapper):
id = wrapped_property('id', optional(text_type)) # pyl... | fix(python): add segments property to viewer_state.AnnotationBase | py |
diff --git a/scanpy/tools/_louvain.py b/scanpy/tools/_louvain.py
index <HASH>..<HASH> 100644
--- a/scanpy/tools/_louvain.py
+++ b/scanpy/tools/_louvain.py
@@ -37,7 +37,8 @@ def louvain(
of [Traag17]_. The Louvain algorithm has been proposed for single-cell
analysis by [Levine15]_.
- This requires to run ... | DOC: one can also run bbknn before louvain (#<I>) | py |
diff --git a/src/txkube/testing/strategies.py b/src/txkube/testing/strategies.py
index <HASH>..<HASH> 100644
--- a/src/txkube/testing/strategies.py
+++ b/src/txkube/testing/strategies.py
@@ -290,6 +290,11 @@ def podtemplatespecs(model=default_model):
)
+def _without_activeDeadlineSeconds(template):
+ # When... | activeDeadlineSeconds not allowed here at least for newer Kubernetes | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.