diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/Main.py b/Main.py
index <HASH>..<HASH> 100755
--- a/Main.py
+++ b/Main.py
@@ -105,9 +105,10 @@ class Application(object):
except Exception:
pass # TODO
- subcommand = Config.DEFAULT_ACTION
- if len(sys.argv):
+ try:
subcommand = sys.argv[1]
+ ... | Guard access to argv, fallback to the default action. | py |
diff --git a/test/functional/test_block.py b/test/functional/test_block.py
index <HASH>..<HASH> 100644
--- a/test/functional/test_block.py
+++ b/test/functional/test_block.py
@@ -12,8 +12,8 @@ TEST_CID_STR = "QmYA2fn8cMbVWo4v95RwcwJVyQsNtnEwHerfWR8UNtEwoE"
TEST_CONTENT_SIZE = 248
if cid:
- TEST2_CID_OBJ =... | Change test block CID to something common | py |
diff --git a/flux_led/protocol.py b/flux_led/protocol.py
index <HASH>..<HASH> 100755
--- a/flux_led/protocol.py
+++ b/flux_led/protocol.py
@@ -105,6 +105,7 @@ LEDENET_REMOTE_CONFIG_RESPONSE_LEN = 14 # 2b 03 00 00 00 00 29 00 00 00 00 00 0
LEDENET_TIME_RESPONSE_LEN = 12 # 10 14 16 01 02 10 26 20 07 00 0f a9
LEDENET_... | Use a constant for socket timer length (#<I>) | py |
diff --git a/docs/conf.py b/docs/conf.py
index <HASH>..<HASH> 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -19,10 +19,11 @@ import os
# 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
# documentation root, ... | Updated doc path and theme. | py |
diff --git a/posthocs/_plotting.py b/posthocs/_plotting.py
index <HASH>..<HASH> 100644
--- a/posthocs/_plotting.py
+++ b/posthocs/_plotting.py
@@ -168,8 +168,10 @@ def sign_plot(x, g = None, flat = False, cmap = None, cbar_ax_bbox = None,\
[ 1, 0, -1]])
>>> ph.sign_plot(x, flat = Tr... | kwargs in sign_plot() fix | py |
diff --git a/clients/python/girder_client/__init__.py b/clients/python/girder_client/__init__.py
index <HASH>..<HASH> 100644
--- a/clients/python/girder_client/__init__.py
+++ b/clients/python/girder_client/__init__.py
@@ -935,7 +935,7 @@ class GirderClient(object):
else:
# write to file-like obje... | Skip calling _copyFile unnecessarily | py |
diff --git a/riemann/tx/tx.py b/riemann/tx/tx.py
index <HASH>..<HASH> 100644
--- a/riemann/tx/tx.py
+++ b/riemann/tx/tx.py
@@ -366,14 +366,16 @@ class Tx(ByteData):
'''
A complete transaction. It consists of a version, a flag that indicates the
presence of witnesses (and breaks legacy parsers), a length-... | docs: slight format improvements to tx docs | py |
diff --git a/hwt/simulator/utils.py b/hwt/simulator/utils.py
index <HASH>..<HASH> 100644
--- a/hwt/simulator/utils.py
+++ b/hwt/simulator/utils.py
@@ -1,16 +1,10 @@
import sys
-from hwt.doc_markers import internal
from hwt.serializer.generic.indent import getIndent
from hwt.synthesizer.hObjList import HObjList
fr... | rm sim relicts | py |
diff --git a/labware/microplates.py b/labware/microplates.py
index <HASH>..<HASH> 100644
--- a/labware/microplates.py
+++ b/labware/microplates.py
@@ -2,7 +2,7 @@ from .grid import GridContainer, GridItem
from .liquids import LiquidContainer, LiquidWell
-class Microplate(GridContainer):
+class Microplate(GridConta... | Refactor of LiquidContainer vs. GridContainer to support grids which don't contain liquids. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -31,5 +31,6 @@ setup(
'Environment :: Web Environment',
'Framework :: Django',
'Development Status :: 5 - Production/Stable',
- 'Programming Language :: Pyt... | Mention Python <I> support in setup.py | py |
diff --git a/napalm_base/base.py b/napalm_base/base.py
index <HASH>..<HASH> 100644
--- a/napalm_base/base.py
+++ b/napalm_base/base.py
@@ -1542,6 +1542,6 @@ class NetworkDriver(object):
Return a compliance report.
Verify that the device complies with the given validation file and writes a compliance... | Correct link under "compliance_report" function (#<I>) Fixing a bad link in the documentation for "compliance_report" function. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -21,6 +21,9 @@ setup(
version=__version__,
packages=find_packages(),
install_requires=['six', 'Fabric>=1.8.0', 'docker-py>=0.5.0', 'docker-map>=0.1.1'],
+ extras_require = {
+ 'yaml': ['PyYAML'],
+ ... | Add PyYAML as extra requirement. | py |
diff --git a/queries/pool.py b/queries/pool.py
index <HASH>..<HASH> 100644
--- a/queries/pool.py
+++ b/queries/pool.py
@@ -265,10 +265,7 @@ class Pool(object):
cid = id(connection)
if cid not in self.connections:
raise ConnectionNotFoundError(self.id, cid)
- conn = self._connection... | Simplify the remove close logic to fall through to Connection for busy validation | py |
diff --git a/photutils/tests/test_segmentation.py b/photutils/tests/test_segmentation.py
index <HASH>..<HASH> 100644
--- a/photutils/tests/test_segmentation.py
+++ b/photutils/tests/test_segmentation.py
@@ -62,6 +62,14 @@ class TestSegmentationImage(object):
assert_allclose(segm.data, segm.array)
asse... | Add tests for SegmentationImage copy | py |
diff --git a/examples/todo_list_api/app.py b/examples/todo_list_api/app.py
index <HASH>..<HASH> 100644
--- a/examples/todo_list_api/app.py
+++ b/examples/todo_list_api/app.py
@@ -105,6 +105,7 @@ def create_todolist_app(testing=False):
},
User: {
'url_slug': 'users',
+ 'remove_p... | fixing the test to check for property key removal | py |
diff --git a/jax/experimental/jax2tf/jax2tf.py b/jax/experimental/jax2tf/jax2tf.py
index <HASH>..<HASH> 100644
--- a/jax/experimental/jax2tf/jax2tf.py
+++ b/jax/experimental/jax2tf/jax2tf.py
@@ -25,7 +25,6 @@ from jax import random, tree_util, util
from jax.api_util import flatten_fun
from jax.interpreters import ad,... | [jax2tf] Systematically add the functions in xla.call_translations to the list of unexpected functions. | py |
diff --git a/salt/modules/extfs.py b/salt/modules/extfs.py
index <HASH>..<HASH> 100644
--- a/salt/modules/extfs.py
+++ b/salt/modules/extfs.py
@@ -245,6 +245,8 @@ def dump(device, args=None):
elif line.startswith('Group') and not line.startswith('Group descriptor size'):
mode = 'blocks'
... | check count of columns after split If called on a device w/o extfs, a unhandled exception will be raise. After add this check, is implies that attributes will be empty if the device's filesystem is not extfs. | py |
diff --git a/openquake/calculators/classical.py b/openquake/calculators/classical.py
index <HASH>..<HASH> 100644
--- a/openquake/calculators/classical.py
+++ b/openquake/calculators/classical.py
@@ -302,7 +302,7 @@ class ClassicalCalculator(base.HazardCalculator):
avail = min(psutil.virtual_memory().available,... | Fixed logging [ci skip] | py |
diff --git a/ryu/ofproto/ofproto_parser.py b/ryu/ofproto/ofproto_parser.py
index <HASH>..<HASH> 100644
--- a/ryu/ofproto/ofproto_parser.py
+++ b/ryu/ofproto/ofproto_parser.py
@@ -58,7 +58,11 @@ def create_list_of_base_attributes(f):
@functools.wraps(f)
def wrapper(self, *args, **kwargs):
ret = f(self... | ofproto: _baseattribute can be class attribute So that it can save memory a bit. Cc: <EMAIL> | py |
diff --git a/salt/states/pkg.py b/salt/states/pkg.py
index <HASH>..<HASH> 100644
--- a/salt/states/pkg.py
+++ b/salt/states/pkg.py
@@ -1637,7 +1637,7 @@ def latest(
and __salt__['portage_config.is_changed_uses'](pkg):
# Package is up-to-date, but Gentoo USE flags are changing so
... | Fix condition for Gentoo USE flag update In this scenario, ``avail[pkg]`` contains an empty string, we want to reinstall the current version with new USE flags so the currently-installed version is what we need to add to the targets. | py |
diff --git a/scapy/layers/l2.py b/scapy/layers/l2.py
index <HASH>..<HASH> 100644
--- a/scapy/layers/l2.py
+++ b/scapy/layers/l2.py
@@ -4,6 +4,7 @@
## This program is published under a GPLv2 license
import os,struct,time
+from scapy.base_classes import Net
from scapy.config import conf
from scapy.packet import *
... | Fixed getmacbyip() to work with Net() objects | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -42,7 +42,7 @@ setup(
"twine>=3,<4",
"requests>=2.25,<3",
"wheel",
- "python-gitlab>=1.10,<2",
+ "python-gitlab>=1.10,<3",
"tomlkit>=0.7.0,<1.0.0",
"dotty-dict>=1.3.0,... | fix: Upgrade python-gitlab range Keeping both 1.x and 2.x since only change that is breaking is dropping python <I> support. I hope that leaving the lower limit will make it still work with python <I>. Fixes #<I> | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -36,7 +36,7 @@ tests_require = [
'pytest-flake8>=0.9.1',
'pytest-pep8>=1.0.6',
'pytest-yapf>=0.1.1',
- 'pytest>=3.2.1',
+ 'pytest>=3.6.3',
'responses>=0.7.0',
'yapf>=0.22.0',
] | setup: bump pytest version to test inputs | py |
diff --git a/aiohttp_cors/__init__.py b/aiohttp_cors/__init__.py
index <HASH>..<HASH> 100644
--- a/aiohttp_cors/__init__.py
+++ b/aiohttp_cors/__init__.py
@@ -173,7 +173,8 @@ class CorsConfig:
route_methods = frozenset(self._router_adapter.route_methods(route))
# TODO
- assert hdrs.METH_OPTIO... | (temporarily) forbid "*" method in CORS-configured route | py |
diff --git a/pumpp/task/base.py b/pumpp/task/base.py
index <HASH>..<HASH> 100644
--- a/pumpp/task/base.py
+++ b/pumpp/task/base.py
@@ -24,7 +24,7 @@ def fill_value(dtype):
0 otherwise
'''
- if np.issubdtype(dtype, np.float) or np.issubdtype(dtype, np.complex):
+ if np.issubdtype(dtype, np.floating) or... | fixing future warnings for subdtype checks | py |
diff --git a/isort/isort.py b/isort/isort.py
index <HASH>..<HASH> 100644
--- a/isort/isort.py
+++ b/isort/isort.py
@@ -220,7 +220,7 @@ class _SortImports:
module_name = str(module_name)
if sub_imports and config["order_by_type"]:
- if module_name.isupper() and len(module_name) > 1:
+ ... | Add comment mentioning relevant ticket at line upercasing letter | py |
diff --git a/python/ray/_private/worker.py b/python/ray/_private/worker.py
index <HASH>..<HASH> 100644
--- a/python/ray/_private/worker.py
+++ b/python/ray/_private/worker.py
@@ -880,7 +880,7 @@ def get_resource_ids():
return global_worker.core_worker.resource_ids()
-@Deprecated(message="Use ray.init()['webui_... | Fix broken links in the code (#<I>) | py |
diff --git a/glue/ligolw/lsctables.py b/glue/ligolw/lsctables.py
index <HASH>..<HASH> 100644
--- a/glue/ligolw/lsctables.py
+++ b/glue/ligolw/lsctables.py
@@ -955,7 +955,8 @@ class SnglInspiral(object):
cmp(self.end_time, other.end_time) or
cmp(self.end_time_ns, other.end_time_ns) or
cmp(self.mass1, other.m... | Fix PR<I>: add "search" to attributes by which sngl_inspiral rows are checked for equality | py |
diff --git a/autocomplete_utils.py b/autocomplete_utils.py
index <HASH>..<HASH> 100644
--- a/autocomplete_utils.py
+++ b/autocomplete_utils.py
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
##
## This file is part of Invenio.
-## Copyright (C) 2013 CERN.
+## Copyright (C) 2013, 2014 CERN.
##
## Invenio is free software; ... | deposit: addition of dynamic KB autocomplete func | py |
diff --git a/sciunit/unit_test/base_tests.py b/sciunit/unit_test/base_tests.py
index <HASH>..<HASH> 100644
--- a/sciunit/unit_test/base_tests.py
+++ b/sciunit/unit_test/base_tests.py
@@ -5,9 +5,9 @@ class BaseCase(unittest.TestCase):
"""Unit tests for config files"""
def test_deep_exclude(self):
from... | fix tests cases for base.py | py |
diff --git a/ptpython/completer.py b/ptpython/completer.py
index <HASH>..<HASH> 100644
--- a/ptpython/completer.py
+++ b/ptpython/completer.py
@@ -62,9 +62,9 @@ class PythonCompleter(Completer):
grammar = r"""
# Text before the current string.
(
- [^'"#] ... | Bugfix in completer: don't hang when pasting a long string with many backslashes. | py |
diff --git a/bot/multithreading/worker.py b/bot/multithreading/worker.py
index <HASH>..<HASH> 100644
--- a/bot/multithreading/worker.py
+++ b/bot/multithreading/worker.py
@@ -57,3 +57,17 @@ class QueueWorker(AbstractWorker):
def shutdown(self):
self.queue.join()
+
+
+class ImmediateWorker(AbstractWorker... | Create a ImmediateWorker that executes the posted jobs on the same thread synchronously | py |
diff --git a/consoleprinter/__init__.py b/consoleprinter/__init__.py
index <HASH>..<HASH> 100644
--- a/consoleprinter/__init__.py
+++ b/consoleprinter/__init__.py
@@ -1168,7 +1168,7 @@ def console(*args, **kwargs):
for arg in arglist:
txt, subs = get_value_as_text(colors, 22, return_string, arg,... | Thursday <I> December <I> (week:<I> day:<I>), <I>:<I>:<I> | py |
diff --git a/salt/modules/pillar.py b/salt/modules/pillar.py
index <HASH>..<HASH> 100644
--- a/salt/modules/pillar.py
+++ b/salt/modules/pillar.py
@@ -16,7 +16,7 @@ import salt.ext.six as six
import salt.pillar
import salt.utils
from salt.defaults import DEFAULT_TARGET_DELIM
-from salt.exceptions import CommandExecu... | pillar.get: Raise exception when merge=True and default is not a dict | py |
diff --git a/fast_arrow/util.py b/fast_arrow/util.py
index <HASH>..<HASH> 100644
--- a/fast_arrow/util.py
+++ b/fast_arrow/util.py
@@ -1,26 +1,6 @@
-# import hmac
-# import io
-# import logging
-# import sys
-# import os
-# import re
-
import configparser
from urllib.parse import urlparse
-# FAST_ARROW_LOG = os.env... | utils. so glad to have this. let's not burden RH's api. | py |
diff --git a/SoftLayer/managers/network.py b/SoftLayer/managers/network.py
index <HASH>..<HASH> 100644
--- a/SoftLayer/managers/network.py
+++ b/SoftLayer/managers/network.py
@@ -361,7 +361,7 @@ class NetworkManager(object):
'id,'
'name,'
'description,'
- ... | Fix remoteGroupId in securitygroup detail The mask in the get_securitygroup() function in the manager was wrong, so fixing that allows the remoteGroupId to print in securitygroup detail. | py |
diff --git a/ananas/ananas.py b/ananas/ananas.py
index <HASH>..<HASH> 100644
--- a/ananas/ananas.py
+++ b/ananas/ananas.py
@@ -208,7 +208,8 @@ class PineappleBot(StreamListener):
self._bot.log("config", "Section {} not in {}, aborting.".format(self._name, self._filename))
return False
... | Allow DEFAULT section to be absent | py |
diff --git a/fs/base.py b/fs/base.py
index <HASH>..<HASH> 100644
--- a/fs/base.py
+++ b/fs/base.py
@@ -1308,7 +1308,7 @@ class FS(object):
sensible default.
**options: Implementation specific options required to open
the source file.
-
+
Raises:
... | Remove line with whitespaces in `fs.base` failing `flake8` linter | py |
diff --git a/tests/RST212/short_underline.py b/tests/RST212/short_underline.py
index <HASH>..<HASH> 100755
--- a/tests/RST212/short_underline.py
+++ b/tests/RST212/short_underline.py
@@ -11,7 +11,7 @@ There is a missing equals sign on the above underline,
and that is considered an error. This should fail::
$ fl... | update test Note still have double reporting, see issue #<I>. | py |
diff --git a/edc_sync_files/classes/dump_to_usb.py b/edc_sync_files/classes/dump_to_usb.py
index <HASH>..<HASH> 100644
--- a/edc_sync_files/classes/dump_to_usb.py
+++ b/edc_sync_files/classes/dump_to_usb.py
@@ -48,7 +48,6 @@ class TransactionLoadUsbFile:
def __init__(self):
app_config = django_apps.get_ap... | 3 booleans, track file status and use to generate message to send to view | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -171,6 +171,7 @@ setup_args = {
'install_requires': [
'clodius',
'flask',
+ 'ipywidgets',
],
'setup_requires': [
], | Added ipywidgets dependency | py |
diff --git a/src/python/dxpy/scripts/dx_build_app.py b/src/python/dxpy/scripts/dx_build_app.py
index <HASH>..<HASH> 100755
--- a/src/python/dxpy/scripts/dx_build_app.py
+++ b/src/python/dxpy/scripts/dx_build_app.py
@@ -209,7 +209,7 @@ def _lint(dxapp_json_filename):
if 'categories' in app_spec:
for cate... | Add "Assembly" category and syncronize categories list with membrane. This syncs the categories list with membrane as of dnanexus/membrane@<I>dae6b. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -1,5 +1,8 @@
from setuptools import setup
+with open("README.txt") as readme_file:
+ long_description = readme_file.read()
+
setup(name="Presser",
version="0.1",
packages=["presser",],
@@ -8,6 +11,6 @@ setup(n... | Ensure file handle is closed using with statement | py |
diff --git a/lib/svtplay_dl/service/viaplay.py b/lib/svtplay_dl/service/viaplay.py
index <HASH>..<HASH> 100644
--- a/lib/svtplay_dl/service/viaplay.py
+++ b/lib/svtplay_dl/service/viaplay.py
@@ -90,7 +90,7 @@ class Viaplay(Service, OpenGraphThumbMixin):
if streamj["streams"]["medium"]:
filename ... | viaplay: f4m can be in the middle of the filename | py |
diff --git a/pylint/checkers/utils.py b/pylint/checkers/utils.py
index <HASH>..<HASH> 100644
--- a/pylint/checkers/utils.py
+++ b/pylint/checkers/utils.py
@@ -1830,7 +1830,6 @@ def in_type_checking_block(node: nodes.NodeNG) -> bool:
if (
isinstance(inferred_module, nodes.Module)
... | Remove always true test for "builtins.module" | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -8,13 +8,13 @@ def fread(fname):
setup(
name='questionnaire',
- version='0.4.2',
+ version='0.5.0',
description='Uses https://github.com/wong2/pick to prompt user to fill' \
' out a question... | test commit to pypi | py |
diff --git a/webwhatsapi/__init__.py b/webwhatsapi/__init__.py
index <HASH>..<HASH> 100755
--- a/webwhatsapi/__init__.py
+++ b/webwhatsapi/__init__.py
@@ -105,7 +105,7 @@ class WhatsAPIDriver(object):
return self.driver.execute_script('return window.localStorage;')
def set_local_storage(self, data):
- ... | Fix for issue #<I> and #<I> (#<I>) * Fix for issue :<URL> | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -1,7 +1,10 @@
#!/usr/bin/env python
import sys, os
-from distutils.core import setup
+try:
+ from setuptools import setup
+except ImportError:
+ from distutils.core import setup
setup_args = {} | Support for `setup.py develop` via setuptools. | py |
diff --git a/src/arcrest/manageorg/_community.py b/src/arcrest/manageorg/_community.py
index <HASH>..<HASH> 100644
--- a/src/arcrest/manageorg/_community.py
+++ b/src/arcrest/manageorg/_community.py
@@ -1342,16 +1342,20 @@ class User(BaseAGOLClass):
for k,v in self._json_dict.items():
yield [k,v]
... | modified UserContent property on community so the URL keeps casing. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -1,4 +1,3 @@
-from __future__ import print_function
from setuptools import setup, find_packages
from setuptools.command.test import test as TestCommand
import io
@@ -6,7 +5,6 @@ import codecs
import os
import sys
-impor... | Fix setup (Fixes #2) * [#1] Remove unnecessary dependency * [#1] Remove dependency of uninstalled packages | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -43,7 +43,7 @@ setup(
'Topic :: Software Development :: Libraries :: Python Modules',
],
install_requires = [
- 'astropy',
+ 'astropy<=3.1',
'numpy',
],
setup_requires = [ | Pin to astropy <I> to avoid io.fits incompatibility | py |
diff --git a/thinc/tests/unit/test_model.py b/thinc/tests/unit/test_model.py
index <HASH>..<HASH> 100644
--- a/thinc/tests/unit/test_model.py
+++ b/thinc/tests/unit/test_model.py
@@ -84,12 +84,12 @@ def test_init_calls_hooks():
def test_use_device():
- dev_id = id(base.Model._thread_local.ops)
- with base.Mo... | Revert thread-local ops tests (#<I>) | py |
diff --git a/usr/share/lib/ipa/tests/SLES/EC2/test_sles_ec2_services.py b/usr/share/lib/ipa/tests/SLES/EC2/test_sles_ec2_services.py
index <HASH>..<HASH> 100644
--- a/usr/share/lib/ipa/tests/SLES/EC2/test_sles_ec2_services.py
+++ b/usr/share/lib/ipa/tests/SLES/EC2/test_sles_ec2_services.py
@@ -7,5 +7,12 @@ import pytes... | Cloud init services are one-shot. Only check the service exited successfully. Service may or may not be running. | py |
diff --git a/peerplays/peerplays.py b/peerplays/peerplays.py
index <HASH>..<HASH> 100644
--- a/peerplays/peerplays.py
+++ b/peerplays/peerplays.py
@@ -1314,7 +1314,7 @@ class PeerPlays(object):
self,
event_id,
status,
- scores,
+ scores=[],
account=None,
**kwar... | Use empty string as default for scroes | py |
diff --git a/photos/photos.py b/photos/photos.py
index <HASH>..<HASH> 100644
--- a/photos/photos.py
+++ b/photos/photos.py
@@ -12,6 +12,7 @@ logger = logging.getLogger(__name__)
queue_resize = dict()
hrefs = None
+created_galleries = {}
def initialized(pelican):
p = os.path.expanduser('~/Pictures')
@@ -140,... | galleries should only be created once per language, and also be available only once in the output | py |
diff --git a/coursera/coursera_dl.py b/coursera/coursera_dl.py
index <HASH>..<HASH> 100755
--- a/coursera/coursera_dl.py
+++ b/coursera/coursera_dl.py
@@ -388,7 +388,7 @@ def download_lectures(downloader,
last_update = max(last_update, os.path.getmtime(lecfn))
# after fetchin... | coursera: Remove superfluous comparison with True. | py |
diff --git a/AlphaTwirl/EventReaderBundleMP.py b/AlphaTwirl/EventReaderBundleMP.py
index <HASH>..<HASH> 100755
--- a/AlphaTwirl/EventReaderBundleMP.py
+++ b/AlphaTwirl/EventReaderBundleMP.py
@@ -78,13 +78,12 @@ class EventReaderBundleMP(object):
def __init__(self, eventBuilder, nprocesses = 16):
self._eve... | move the instantiation of EventLooperMP from begin to __init__ | py |
diff --git a/indra/preassembler/custom_preassembly.py b/indra/preassembler/custom_preassembly.py
index <HASH>..<HASH> 100644
--- a/indra/preassembler/custom_preassembly.py
+++ b/indra/preassembler/custom_preassembly.py
@@ -172,11 +172,15 @@ def agents_stmt_type_matches(stmt):
def agent_name_matches(agent):
+ ""... | Handle None agent and add docstrings | py |
diff --git a/galpy/potential.py b/galpy/potential.py
index <HASH>..<HASH> 100644
--- a/galpy/potential.py
+++ b/galpy/potential.py
@@ -11,6 +11,7 @@ from galpy.potential_src import plotRotcurve
from galpy.potential_src import plotEscapecurve
from galpy.potential_src import KGPotential
from galpy.potential_src import... | DehnenBarPotential at the top level | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -48,9 +48,9 @@ setup(
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
- # 'Programming Language :: Python :: 3.10', ... | include python <I> | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -15,24 +15,15 @@
# Copyright (C) 2010, Lorenzo Gil Sanchez, <lgs@yaco.es> #
###############################################################################
-import os
from setuptools import setup, fin... | Little workaround to proper PyPI installation | py |
diff --git a/juju/controller.py b/juju/controller.py
index <HASH>..<HASH> 100644
--- a/juju/controller.py
+++ b/juju/controller.py
@@ -1,4 +1,5 @@
import asyncio
+import concurrent.futures
import logging
from . import tag
@@ -102,11 +103,14 @@ class Controller(object):
# Add our ssh key to the model, to w... | Moved execution of utils.read_ssh_key to a thread. It's a blocking operation, so into a thread it goes! | py |
diff --git a/globus_cli/services/transfer/async_transfer.py b/globus_cli/services/transfer/async_transfer.py
index <HASH>..<HASH> 100644
--- a/globus_cli/services/transfer/async_transfer.py
+++ b/globus_cli/services/transfer/async_transfer.py
@@ -101,7 +101,8 @@ from globus_cli.services.transfer.activation import autoa... | Allow `--sync-level=size` in transfer submissions Adds this sync level setting, which is passed through to the SDK as-is. Fixes #<I>. Requires globus/globus-sdk-python#<I> to work end-to-end, but won't break anything if that isn't in-place. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -20,9 +20,9 @@ setup(
'tenant_schemas.management',
'tenant_schemas.management.commands',
'tenant_schemas.templatetags',
- 'tenant_schemas.examples',
'tenant_schemas.test',
'tenant_schemas.test... | fixed setup.py wrong path to examples | py |
diff --git a/src/xray/utils.py b/src/xray/utils.py
index <HASH>..<HASH> 100644
--- a/src/xray/utils.py
+++ b/src/xray/utils.py
@@ -260,8 +260,8 @@ def xarray_equal(v1, v2, rtol=1e-05, atol=1e-08, check_attributes=True):
"""
def data_equiv(arr1, arr2):
exact_dtypes = [np.datetime64, np.timedelta64, np... | Use exact array_equal for dtype=object in xarray_equal | py |
diff --git a/perceval/_version.py b/perceval/_version.py
index <HASH>..<HASH> 100644
--- a/perceval/_version.py
+++ b/perceval/_version.py
@@ -1,2 +1,2 @@
# Versions compliant with PEP 440 https://www.python.org/dev/peps/pep-0440
-__version__ = "0.12.7"
+__version__ = "0.12.8" | Update version number to <I> | py |
diff --git a/claripy/ast/fp.py b/claripy/ast/fp.py
index <HASH>..<HASH> 100644
--- a/claripy/ast/fp.py
+++ b/claripy/ast/fp.py
@@ -169,3 +169,4 @@ FP.__radd__ = operations.reversed_op(FP.__add__)
FP.__rsub__ = operations.reversed_op(FP.__sub__)
FP.__rmul__ = operations.reversed_op(FP.__mul__)
FP.__rdiv__ = operation... | add reversed division op just to be sure. see #<I> | py |
diff --git a/ftfy/__init__.py b/ftfy/__init__.py
index <HASH>..<HASH> 100644
--- a/ftfy/__init__.py
+++ b/ftfy/__init__.py
@@ -93,6 +93,9 @@ def fix_text(text,
encoding is possibly flawed), and do not mind performing operations on
the whole text at once, use `fix_text_segment`.
"""
+ if isinstance(tex... | Raise an error for non-Unicode text in the main method. This is better than an unexplained error about decoding ASCII. | py |
diff --git a/trepan/api.py b/trepan/api.py
index <HASH>..<HASH> 100644
--- a/trepan/api.py
+++ b/trepan/api.py
@@ -241,7 +241,7 @@ dictionary that gets fed to trepan.Debugger.core.start().
def stop(opts=None):
- if isinstance(Trepan, Mdebugger.debugger_obj):
+ if isinstance( Mdebugger.debugger_obj, Trepan):
... | the stop is wrong use fix #<I> | py |
diff --git a/test/test_gridfs.py b/test/test_gridfs.py
index <HASH>..<HASH> 100644
--- a/test/test_gridfs.py
+++ b/test/test_gridfs.py
@@ -181,6 +181,7 @@ class TestGridfs(unittest.TestCase):
def test_get_last_version_with_metadata(self):
a = self.fs.put("foo", filename="test", author="author")
+ ... | Fix a gridfs unittest failure. | py |
diff --git a/glances/plugins/glances_docker.py b/glances/plugins/glances_docker.py
index <HASH>..<HASH> 100644
--- a/glances/plugins/glances_docker.py
+++ b/glances/plugins/glances_docker.py
@@ -113,7 +113,7 @@ class Plugin(GlancesPlugin):
# API error (Version mismatch ?)
logger.debug(... | fix unable to find version in docker api error exception parsing fix #<I> | py |
diff --git a/alphatwirl/concurrently/HTCondorJobSubmitter.py b/alphatwirl/concurrently/HTCondorJobSubmitter.py
index <HASH>..<HASH> 100755
--- a/alphatwirl/concurrently/HTCondorJobSubmitter.py
+++ b/alphatwirl/concurrently/HTCondorJobSubmitter.py
@@ -85,9 +85,6 @@ class HTCondorJobSubmitter(object):
resultdir_... | stop creating result dirs in HTCondorJobSubmitter They are created by WorkingArea | py |
diff --git a/pytablewriter/_excel_workbook.py b/pytablewriter/_excel_workbook.py
index <HASH>..<HASH> 100644
--- a/pytablewriter/_excel_workbook.py
+++ b/pytablewriter/_excel_workbook.py
@@ -8,6 +8,7 @@ from __future__ import absolute_import
import abc
import dataproperty
+import pathvalidate
import six
import xl... | Fix for the case that excel sheet includes invalid character(s) | py |
diff --git a/howdoi/howdoi.py b/howdoi/howdoi.py
index <HASH>..<HASH> 100755
--- a/howdoi/howdoi.py
+++ b/howdoi/howdoi.py
@@ -662,7 +662,7 @@ def get_parser():
parser.add_argument('-j', '--json', help='return answers in raw json format', dest='json_output',
action='store_true')
parse... | Corrected Verb Tense Error | py |
diff --git a/daemonocle/helpers.py b/daemonocle/helpers.py
index <HASH>..<HASH> 100644
--- a/daemonocle/helpers.py
+++ b/daemonocle/helpers.py
@@ -141,7 +141,10 @@ class MultiDaemon(object):
# be in its own process group (handled in Daemon class).
os.setsid()
+ ctx = click.get_current_context... | Allow pass_daemon decorator to work on MultiDaemon workers | py |
diff --git a/openmath/convert.py b/openmath/convert.py
index <HASH>..<HASH> 100644
--- a/openmath/convert.py
+++ b/openmath/convert.py
@@ -14,7 +14,8 @@ basic Python types. For convenience, a default instance
Examples::
- >>> from openmath.convert import DefaultConverter
+ sage: from openmath.convert import ... | Workaround to have doctests work both with sage and Python | py |
diff --git a/conftest.py b/conftest.py
index <HASH>..<HASH> 100644
--- a/conftest.py
+++ b/conftest.py
@@ -13,6 +13,21 @@
# limitations under the License.
+def pytest_configure(config):
+ # Ignore deprecation warnings in python code generated from our protobuf definitions.
+ # Eventually, the warnings will b... | Ignore deprecation warnings from protobufs (#<I>) | py |
diff --git a/tests/test_api.py b/tests/test_api.py
index <HASH>..<HASH> 100644
--- a/tests/test_api.py
+++ b/tests/test_api.py
@@ -665,6 +665,9 @@ assert args[2] == 5
obj1 = self.dbus_con.get_object('org.freedesktop.Test', '/obj1')
self.assertRaises(dbus.exceptions.DBusException, obj1.GetAll, '')
+ ... | tests: Move test_version to TestAPI It accidentally was added to TestServices, where it makes no sense. | py |
diff --git a/alerta/syslog/daemon.py b/alerta/syslog/daemon.py
index <HASH>..<HASH> 100644
--- a/alerta/syslog/daemon.py
+++ b/alerta/syslog/daemon.py
@@ -79,7 +79,7 @@ class SyslogDaemon(Daemon):
if syslogAlert:
self.mq.send(syslogAlert)
count ... | send syslog heartbeat every 5 messages | py |
diff --git a/src/beliefs/cells/numeric.py b/src/beliefs/cells/numeric.py
index <HASH>..<HASH> 100644
--- a/src/beliefs/cells/numeric.py
+++ b/src/beliefs/cells/numeric.py
@@ -10,8 +10,13 @@ class IntervalCell(Cell):
"""
Creates a new IntervalCell with values restricted to between `low` and `high`.
... | intervalcell init with 0 bug fixed | py |
diff --git a/accounts/urls.py b/accounts/urls.py
index <HASH>..<HASH> 100644
--- a/accounts/urls.py
+++ b/accounts/urls.py
@@ -10,7 +10,7 @@ urlpatterns = patterns('',
url(r'^user/change/(?P<pk>.+)/$', views.UserChange.as_view(), name='accounts_user_change'),
url(r'^user/view/(?P<pk>.+)/$', views.UserDetail.a... | Updated urls to use the new password change view. | py |
diff --git a/spyder_conda/condapackages.py b/spyder_conda/condapackages.py
index <HASH>..<HASH> 100644
--- a/spyder_conda/condapackages.py
+++ b/spyder_conda/condapackages.py
@@ -145,13 +145,13 @@ class CondaPackages(CondaPackagesWidget, SpyderPluginMixin):
main = self.main
main.add_dockwidget(self)
... | Comment conda manager code related to projects | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -2,7 +2,7 @@ from setuptools import setup
setup(
name='upsmychoice',
- version='1.0.4',
+ version='1.0.5',
description='Python 3 API for UPS My Choice, a way to track packages.',
url='https://github.com... | Version bump Bumping version to <I> due to second Python <I> compatibility code update | py |
diff --git a/_pytest/mark.py b/_pytest/mark.py
index <HASH>..<HASH> 100644
--- a/_pytest/mark.py
+++ b/_pytest/mark.py
@@ -169,7 +169,7 @@ class MarkGenerator:
""" Factory for :class:`MarkDecorator` objects - exposed as
a ``pytest.mark`` singleton instance. Example::
- import py
+ import py... | Fix a typo in the docstring for mark.MarkGenerator | py |
diff --git a/esptool.py b/esptool.py
index <HASH>..<HASH> 100755
--- a/esptool.py
+++ b/esptool.py
@@ -678,6 +678,9 @@ class ESP32ROM(ESPROM):
def erase_region(self):
raise NotImplementedInROMError(self)
+ def flash_id(self):
+ raise NotImplementedInROMError(self)
+
class ESP32StubLoader(ESP3... | Add --no-stub argument to skip the software stub | py |
diff --git a/IPython/html/widgets/tests/test_traits.py b/IPython/html/widgets/tests/test_traits.py
index <HASH>..<HASH> 100644
--- a/IPython/html/widgets/tests/test_traits.py
+++ b/IPython/html/widgets/tests/test_traits.py
@@ -5,7 +5,7 @@
from unittest import TestCase
from IPython.utils.traitlets import HasTraits
-... | update traitlets test import in widgets don't need to shim out private things like test modules | py |
diff --git a/pypet/storageservice.py b/pypet/storageservice.py
index <HASH>..<HASH> 100644
--- a/pypet/storageservice.py
+++ b/pypet/storageservice.py
@@ -1525,7 +1525,7 @@ class HDF5StorageService(StorageService, HasLogger):
# Increase the run table by the number of new runs
run_table = getattr(self.... | Short fix of refactored namings | py |
diff --git a/cpu6502.py b/cpu6502.py
index <HASH>..<HASH> 100644
--- a/cpu6502.py
+++ b/cpu6502.py
@@ -389,6 +389,9 @@ class ControlHandler:
self.cpu.running = True
self.sock.send("resetting\n")
+ def fileno(self):
+ return self.sock.fileno()
+
def handle_read(self):
buf = se... | add fileno() method to ControlHandler for better compatiblity with select() | py |
diff --git a/fastfood/food.py b/fastfood/food.py
index <HASH>..<HASH> 100644
--- a/fastfood/food.py
+++ b/fastfood/food.py
@@ -147,11 +147,11 @@ def update_cookbook(cookbook_path, templatepack, stencilset_name, **options):
print("Skipping existing file %s" % target_path)
LOG.info("Skip... | write the file if force is set | py |
diff --git a/experiments/nips2015-model-selection.py b/experiments/nips2015-model-selection.py
index <HASH>..<HASH> 100755
--- a/experiments/nips2015-model-selection.py
+++ b/experiments/nips2015-model-selection.py
@@ -126,6 +126,14 @@ parser.add_argument(
type=parse_int_list,
help="Comma separated list of hi... | added max-ic<I> commandline option | py |
diff --git a/drivers/python/rethinkdb/_dump.py b/drivers/python/rethinkdb/_dump.py
index <HASH>..<HASH> 100755
--- a/drivers/python/rethinkdb/_dump.py
+++ b/drivers/python/rethinkdb/_dump.py
@@ -112,9 +112,19 @@ def do_export(temp_dir, options):
def do_zip(temp_dir, options):
print("Zipping export directory...")
... | removing export files as they are added to the archive | py |
diff --git a/hamper/plugins/karma.py b/hamper/plugins/karma.py
index <HASH>..<HASH> 100644
--- a/hamper/plugins/karma.py
+++ b/hamper/plugins/karma.py
@@ -67,7 +67,7 @@ class Karma(ChatCommandPlugin):
super(Karma, self).message(bot, comm)
# No directed karma giving or taking
- if not comm['di... | karma: do not allow karma modifications in a pm | py |
diff --git a/bokeh/mixins.py b/bokeh/mixins.py
index <HASH>..<HASH> 100644
--- a/bokeh/mixins.py
+++ b/bokeh/mixins.py
@@ -4,7 +4,7 @@ related properties in bulk. """
from __future__ import absolute_import
from .properties import (
- HasProps, ColorSpec, Enum, DashPattern, Int, NumberSpec, String)
+ HasProps,... | allow font size to be a 'Spec' (be able to vectorized) | py |
diff --git a/kconfiglib.py b/kconfiglib.py
index <HASH>..<HASH> 100644
--- a/kconfiglib.py
+++ b/kconfiglib.py
@@ -849,6 +849,7 @@ class Kconfig(object):
for sym in self.defined_syms:
if not sym._written:
+ sym._written = True
# Note: _write_to_con... | Move sym._written setting earlier Makes the logic a bit clearer, and might save some branching. | py |
diff --git a/SECEdgar/crawler.py b/SECEdgar/crawler.py
index <HASH>..<HASH> 100755
--- a/SECEdgar/crawler.py
+++ b/SECEdgar/crawler.py
@@ -69,7 +69,7 @@ class SecCrawler(object):
if len(date) != 8:
raise TypeError('Date must be of the form YYYYMMDD')
elif isinstance(date, int):
- ... | Change date sanitizing conditions | py |
diff --git a/test/test_engine2.py b/test/test_engine2.py
index <HASH>..<HASH> 100644
--- a/test/test_engine2.py
+++ b/test/test_engine2.py
@@ -1,4 +1,5 @@
import os
+import sys
import simplejson
from pytest import contents, gettmpfilepath
@@ -577,7 +578,10 @@ def test_writefile_usage(tmpdir):
homely._engine2.... | [9] test/test_engine2.py: ensure string type is correct for python2/python3 | py |
diff --git a/pymongo/connection.py b/pymongo/connection.py
index <HASH>..<HASH> 100644
--- a/pymongo/connection.py
+++ b/pymongo/connection.py
@@ -526,6 +526,9 @@ class Connection(object): # TODO support auth for pooling
# additional hosts from a replSet:
first = iter(self.__nodes).next()
+ ... | when connected to a replica set secondary, don't failover to master if the secondary goes down PYTHON-<I> | py |
diff --git a/raiden/raiden_service.py b/raiden/raiden_service.py
index <HASH>..<HASH> 100644
--- a/raiden/raiden_service.py
+++ b/raiden/raiden_service.py
@@ -1152,6 +1152,12 @@ class RaidenService(Runnable):
self.start_health_check_for(Address(target))
+ # Checks if there is a payment in flight wit... | Explain why there is a check for an existing payment [skip tests] | py |
diff --git a/grip/server.py b/grip/server.py
index <HASH>..<HASH> 100644
--- a/grip/server.py
+++ b/grip/server.py
@@ -35,6 +35,13 @@ def create_app(path=None, gfm=False, context=None,
app.config.from_object('grip.settings')
app.config.from_pyfile('settings_local.py', silent=True)
app.config.from_pyfile(... | Load username and password from settings. | py |
diff --git a/tempora.py b/tempora.py
index <HASH>..<HASH> 100644
--- a/tempora.py
+++ b/tempora.py
@@ -365,7 +365,7 @@ def calculate_prorated_values():
A utility function to prompt for a rate (a string in units per
unit time), and return that same rate for various time periods.
"""
- rate = raw_input("Enter th... | Update calculate_prorate to work on Python 3 | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.