diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/delocate/libsana.py b/delocate/libsana.py
index <HASH>..<HASH> 100644
--- a/delocate/libsana.py
+++ b/delocate/libsana.py
@@ -290,7 +290,7 @@ def tree_libs(
def resolve_dynamic_paths(lib_path, rpaths, loader_path, executable_path=None):
- # type: (Text, Iterable[Text], Optional[Text], Optional[Text... | Remove Optional from loader_path. | py |
diff --git a/pyprelude/file_system.py b/pyprelude/file_system.py
index <HASH>..<HASH> 100644
--- a/pyprelude/file_system.py
+++ b/pyprelude/file_system.py
@@ -10,6 +10,7 @@
import os
import shutil
import stat
+import tempfile
from .platform import ON_WINDOWS
from .util import unpack_args
@@ -34,11 +35,16 @@ def ... | Refs #3: Remove circular dependency between remove_dir and temp_dir | py |
diff --git a/pyemma/util/tests/test_config.py b/pyemma/util/tests/test_config.py
index <HASH>..<HASH> 100644
--- a/pyemma/util/tests/test_config.py
+++ b/pyemma/util/tests/test_config.py
@@ -68,7 +68,7 @@ class TestConfig(unittest.TestCase):
self.config_inst.cfg_dir = '/dev/null'
self.assertIn("no... | [test-config] skip chmod based test because of a Docker bug. | py |
diff --git a/internetarchive/service.py b/internetarchive/service.py
index <HASH>..<HASH> 100644
--- a/internetarchive/service.py
+++ b/internetarchive/service.py
@@ -184,11 +184,11 @@ class CatalogTask(object):
if k in self.COLUMNS:
return getattr(self, k, None)
else:
- raise ... | Use raise() for python3 compatibility. | py |
diff --git a/livereload/middleware.py b/livereload/middleware.py
index <HASH>..<HASH> 100644
--- a/livereload/middleware.py
+++ b/livereload/middleware.py
@@ -10,12 +10,14 @@ from livereload import livereload_port
class LiveReloadScript(object):
"""
- Inject the live-reload script into your webpages.
+ In... | Check that response is not a StreamingResponse. | py |
diff --git a/djpaypal/models/billing.py b/djpaypal/models/billing.py
index <HASH>..<HASH> 100644
--- a/djpaypal/models/billing.py
+++ b/djpaypal/models/billing.py
@@ -143,7 +143,8 @@ class BillingAgreement(PaypalObject):
if ba.error:
raise PaypalApiError(str(ba.error)) # , ba.error)
- return cls.get_or_updat... | Return only the object from BillingAgreement.execute | py |
diff --git a/custodia/plugin.py b/custodia/plugin.py
index <HASH>..<HASH> 100644
--- a/custodia/plugin.py
+++ b/custodia/plugin.py
@@ -328,17 +328,19 @@ class CSStore(CustodiaPlugin):
def set(self, key, value, replace=False):
pass
- @abc.abstractmethod
+ # relax ABC for now, see https://github.com... | Relax abstract methods of CSStore span, list and cut are no longer abstract methods for backward compatibility reasons. Instead they raise NotImplementedError. Closes: #<I> | py |
diff --git a/src/hunter.py b/src/hunter.py
index <HASH>..<HASH> 100644
--- a/src/hunter.py
+++ b/src/hunter.py
@@ -106,6 +106,9 @@ class Event(object):
Provides few convenience properties.
"""
+ frame = None
+ kind = None
+ arg = None
def __init__(self, frame, kind, arg):
self.frame... | Extract the allowed query args from the event attributes. | py |
diff --git a/docs/source/conf.py b/docs/source/conf.py
index <HASH>..<HASH> 100644
--- a/docs/source/conf.py
+++ b/docs/source/conf.py
@@ -15,6 +15,17 @@
import sys
import os
+sys.path.append(
+ os.path.join(
+ os.path.dirname(__file__),
+ os.pardir,
+ os.pardir,
+ ... | Single-source package version in docs. * docs/source/conf.py: Get the version from capidup.version.__version__ instead of having it hardcoded. | py |
diff --git a/openquake/engine/tests/calculators/hazard/general_test.py b/openquake/engine/tests/calculators/hazard/general_test.py
index <HASH>..<HASH> 100644
--- a/openquake/engine/tests/calculators/hazard/general_test.py
+++ b/openquake/engine/tests/calculators/hazard/general_test.py
@@ -215,8 +215,8 @@ class Calcula... | Fixed a test broken by the change in the output_weight Former-commit-id: <I>dbb4a4b7d<I>c4d<I>afa<I>d6a<I>cda | py |
diff --git a/shinken/config.py b/shinken/config.py
index <HASH>..<HASH> 100644
--- a/shinken/config.py
+++ b/shinken/config.py
@@ -1126,7 +1126,7 @@ class Config(Item):
if hasattr(self, 'pollers'):
Log().log('Checking pollers')
r &= self.pollers.is_correct()
- Log().log('\t... | *Fixed a typo in config.py | py |
diff --git a/nlppln/commands/saf_to_txt.py b/nlppln/commands/saf_to_txt.py
index <HASH>..<HASH> 100644
--- a/nlppln/commands/saf_to_txt.py
+++ b/nlppln/commands/saf_to_txt.py
@@ -30,22 +30,22 @@ def command(input_files, output_dir, mode):
s_id = t['sentence']
sentence = []
... | Added unicode correction to saf_to_txt | py |
diff --git a/bolt/about.py b/bolt/about.py
index <HASH>..<HASH> 100644
--- a/bolt/about.py
+++ b/bolt/about.py
@@ -8,4 +8,4 @@ A task runner written in Python
copyright = u'2016 Abantos'
author = u'Isaac Rodriguez'
version = u'0.1'
-release = u'0.1.0-alpha01'
+release = u'0.1.0-alpha02' | Bumping version for alpha 2 | py |
diff --git a/src/infi/wioctl/structures.py b/src/infi/wioctl/structures.py
index <HASH>..<HASH> 100644
--- a/src/infi/wioctl/structures.py
+++ b/src/infi/wioctl/structures.py
@@ -21,3 +21,7 @@ class LARGE_INTEGER(Struct):
class GUID(Struct):
_fields_ = [DWORD("Data1"), WORD("Data2"), WORD("Data3"), FixedSizeArray... | HPT-<I> code review HPT-<I> changes Added __eq__ method to GUID class | py |
diff --git a/holoviews/plotting/mpl/util.py b/holoviews/plotting/mpl/util.py
index <HASH>..<HASH> 100644
--- a/holoviews/plotting/mpl/util.py
+++ b/holoviews/plotting/mpl/util.py
@@ -308,8 +308,11 @@ def get_tight_bbox(fig, bbox_extra_artists=[], pad=None):
clip_path = clip_path.get_fully_transformed_p... | Fix colorbar error by only using finite bbox (#<I>) | py |
diff --git a/phono3py/phonon/grid.py b/phono3py/phonon/grid.py
index <HASH>..<HASH> 100644
--- a/phono3py/phonon/grid.py
+++ b/phono3py/phonon/grid.py
@@ -506,7 +506,7 @@ def _get_bz_grid_points_by_rotations_py(grgps, rot_adrs, bz_grid):
if len(indices) == 0:
msg = "with_surface did not work prope... | (fix) Generate BZ grid points including surface by rotations | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -48,9 +48,6 @@ tests_require = [
]
extras_require = {
- ':python_version=="2.7"': [
- 'functools32>=3.2.3',
- ],
'admin': [
'Flask-Admin>=1.3.0',
],
@@ -58,7 +55,7 @@ extras_require = {
... | installation: sphinx and version markers dependency fix | py |
diff --git a/pagination/templatetags/pagination_tags.py b/pagination/templatetags/pagination_tags.py
index <HASH>..<HASH> 100644
--- a/pagination/templatetags/pagination_tags.py
+++ b/pagination/templatetags/pagination_tags.py
@@ -175,7 +175,10 @@ def paginate(context, window=DEFAULT_WINDOW):
getvars = con... | Fixed bug with extra getvars where an ampersand was always appended. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -15,7 +15,6 @@ setup(
entry_points={'console_scripts': ['wooify = wooey.backend.command_line:bootstrap',]},
install_requires = ['Django>=1.6', 'django-autoslug', 'django-celery', 'six', 'clinto'],
include_packag... | Update setup.py Change to BSD license | py |
diff --git a/salt/modules/inspectlib/fsdb.py b/salt/modules/inspectlib/fsdb.py
index <HASH>..<HASH> 100644
--- a/salt/modules/inspectlib/fsdb.py
+++ b/salt/modules/inspectlib/fsdb.py
@@ -264,12 +264,12 @@ class CsvDB(object):
'''
# Fail matcher if "less than"
for field, value in (mt or {}).it... | Bugfix: more than and less than should not take equal as. | py |
diff --git a/lettuce/plugins/xunit_output.py b/lettuce/plugins/xunit_output.py
index <HASH>..<HASH> 100644
--- a/lettuce/plugins/xunit_output.py
+++ b/lettuce/plugins/xunit_output.py
@@ -47,6 +47,10 @@ def enable(filename=None):
tc.setAttribute("classname", classname)
tc.setAttribute("name", step.sent... | Fix reporting of skipped tests in xunit output plugin | py |
diff --git a/xcffib/__init__.py b/xcffib/__init__.py
index <HASH>..<HASH> 100644
--- a/xcffib/__init__.py
+++ b/xcffib/__init__.py
@@ -107,10 +107,6 @@ class List(Protobj):
if isinstance(typ, str):
count = length / size
self.list = list(unpack_from(typ * count, parent, offset))
- ... | All types know what size they are So there's no need to pass an extra size here. This means we can get away with only one case in the if. | py |
diff --git a/guanciale/config.py b/guanciale/config.py
index <HASH>..<HASH> 100644
--- a/guanciale/config.py
+++ b/guanciale/config.py
@@ -131,7 +131,11 @@ def populateConfig_idacmd():
#TODO add native macOS and Linux support
#get wine full path
- winepath = subprocess.check_output("which ... | solved 'which wine' issue in config.py | py |
diff --git a/grimoire_elk/elk.py b/grimoire_elk/elk.py
index <HASH>..<HASH> 100755
--- a/grimoire_elk/elk.py
+++ b/grimoire_elk/elk.py
@@ -566,11 +566,6 @@ def enrich_backend(url, clean, backend_name, backend_params, cfg_section_name,
if node_regex:
enrich_backend.node_regex = node_regex
- ... | [elk] Remove filter-raw-* for enrich backend This code removes the filter-raw and filter-raw-prefix which were set in the `enrich_backend` function but not used by the enrich backend. | py |
diff --git a/tests/extmod/vfs_fat_ramdisk.py b/tests/extmod/vfs_fat_ramdisk.py
index <HASH>..<HASH> 100644
--- a/tests/extmod/vfs_fat_ramdisk.py
+++ b/tests/extmod/vfs_fat_ramdisk.py
@@ -1,5 +1,6 @@
import sys
import uos
+import uerrno
try:
uos.VfsFat
except AttributeError:
@@ -84,3 +85,15 @@ assert vfs.listdi... | tests/extmod/vfs_fat_ramdisk: Add tests for VFS.umount() Try to un-mount a file system and re-mount it again. | py |
diff --git a/b2handle/api/handleclient.py b/b2handle/api/handleclient.py
index <HASH>..<HASH> 100644
--- a/b2handle/api/handleclient.py
+++ b/b2handle/api/handleclient.py
@@ -89,7 +89,7 @@ class EUDATHandleClient(object):
def generateAndRegisterHandle(self, prefix, location, checksum=None, extratypes=None... | Added the method signature 'generatePIDName()' | py |
diff --git a/python/cmsis_svd/parser.py b/python/cmsis_svd/parser.py
index <HASH>..<HASH> 100644
--- a/python/cmsis_svd/parser.py
+++ b/python/cmsis_svd/parser.py
@@ -113,7 +113,12 @@ class SVDParser(object):
for interrupt_node in peripheral_node.findall('./interrupt'):
interrupts.append(self._par... | python: do not assume that addressBlock will be present This is an optional item in the SVD and several vendor's do not provide this information in their SVDs. Just assign None if not present. | py |
diff --git a/tools/licensescheck.py b/tools/licensescheck.py
index <HASH>..<HASH> 100755
--- a/tools/licensescheck.py
+++ b/tools/licensescheck.py
@@ -22,7 +22,8 @@ prunelist = ('hsqldb19b3',
'xml',
'helloworld',
'jaxb',
- 'pmsg')
+ 'pmsg',
+ ... | exempt customer-workloads from license check | py |
diff --git a/gooey/gui/widgets/components.py b/gooey/gui/widgets/components.py
index <HASH>..<HASH> 100644
--- a/gooey/gui/widgets/components.py
+++ b/gooey/gui/widgets/components.py
@@ -182,7 +182,7 @@ class RadioGroup(object):
self.option_stings = [btn_data['commands'] for btn_data in self.data]
# box =... | Removed hard-coded title from StaticBox constructor | py |
diff --git a/punch/app.py b/punch/app.py
index <HASH>..<HASH> 100644
--- a/punch/app.py
+++ b/punch/app.py
@@ -58,12 +58,13 @@ class App(object):
return decorator
def get_view_for_route(self, request):
- views = list(filter(lambda x: request.path == x.punch_path, self.views))
+ def f(view)... | fix(app) filter views by registered methods | py |
diff --git a/gandi/cli/core/base.py b/gandi/cli/core/base.py
index <HASH>..<HASH> 100644
--- a/gandi/cli/core/base.py
+++ b/gandi/cli/core/base.py
@@ -114,6 +114,8 @@ class GandiModule(GandiConfig):
@classmethod
def json_call(cls, url):
""" Call a remote api using json format """
+ # make the ... | Log called url in debug level when using json client | py |
diff --git a/pytypes/type_util.py b/pytypes/type_util.py
index <HASH>..<HASH> 100644
--- a/pytypes/type_util.py
+++ b/pytypes/type_util.py
@@ -217,7 +217,9 @@ def get_orig_class(obj, default_to__class__=False):
if _typing_3_7 and is_Generic(cls):
# Workaround for https://github.com/python/typing/i... | Only iterate backwards up to the second frame | py |
diff --git a/odl/solvers/nonsmooth/difference_convex.py b/odl/solvers/nonsmooth/difference_convex.py
index <HASH>..<HASH> 100644
--- a/odl/solvers/nonsmooth/difference_convex.py
+++ b/odl/solvers/nonsmooth/difference_convex.py
@@ -21,7 +21,7 @@ __all__ = ('dca', 'prox_dca', 'doubleprox_dc')
def dca(x, g, h, niter, cal... | DOC: Avoid printing colons. | py |
diff --git a/scripts/devops_tasks/common_tasks.py b/scripts/devops_tasks/common_tasks.py
index <HASH>..<HASH> 100644
--- a/scripts/devops_tasks/common_tasks.py
+++ b/scripts/devops_tasks/common_tasks.py
@@ -31,7 +31,7 @@ from packaging.version import Version
logging.getLogger().setLevel(logging.INFO)
-OMITTED_CI_P... | remove scheduler (#<I>) Removing scheduler from nightly build. Will still build individually and in CI (if changes are submitted) | py |
diff --git a/pyocd/target/pack/cmsis_pack.py b/pyocd/target/pack/cmsis_pack.py
index <HASH>..<HASH> 100644
--- a/pyocd/target/pack/cmsis_pack.py
+++ b/pyocd/target/pack/cmsis_pack.py
@@ -178,16 +178,27 @@ class CmsisPack(object):
def _extract_memories(self):
def filter(map, elem):
+ # 'name' ... | Improve CmsisPack memory region extraction. - Include 'Pname' in region filter. - If the region has neither 'name' nor 'id' then use a string from the 'start' and 'size' attributes as the name. | py |
diff --git a/fmn/rules/anitya.py b/fmn/rules/anitya.py
index <HASH>..<HASH> 100644
--- a/fmn/rules/anitya.py
+++ b/fmn/rules/anitya.py
@@ -89,3 +89,12 @@ def anitya_new_update(config, message):
**new release** according to `anitya <release-monitoring.org>`_.
"""
return message['topic'].endswith('anitya.p... | add the removed function for anitya info update | py |
diff --git a/api/src/opentrons/util/calibration_functions.py b/api/src/opentrons/util/calibration_functions.py
index <HASH>..<HASH> 100644
--- a/api/src/opentrons/util/calibration_functions.py
+++ b/api/src/opentrons/util/calibration_functions.py
@@ -35,8 +35,8 @@ def probe_instrument(instrument, robot, tip_length=None... | fix(api): fix tip probing not fully self-centering (#<I>) fix #<I> | py |
diff --git a/awsshell/__init__.py b/awsshell/__init__.py
index <HASH>..<HASH> 100644
--- a/awsshell/__init__.py
+++ b/awsshell/__init__.py
@@ -37,7 +37,14 @@ def load_index(filename):
return ast.literal_eval(f.read())
-class AWSCLIAutoCompleter(Completer):
+class AWSShellCompleter(Completer):
+ """Compl... | Rename completer class to be more clear | py |
diff --git a/pycm/__main__.py b/pycm/__main__.py
index <HASH>..<HASH> 100644
--- a/pycm/__main__.py
+++ b/pycm/__main__.py
@@ -15,7 +15,7 @@ if __name__ == "__main__":
"test.py",
optionflags=doctest.NORMALIZE_WHITESPACE | doctest.ELLIPSIS
| doctest.IGNORE_EXCEPTION_DET... | fix : __main__ doctest verbose changed to False | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -18,7 +18,7 @@ except:
setup(
name = "netsnmpagent",
- version = "0.1.1",
+ version = "0.2",
description = "Facilitates writing Net-SNMP (AgentX) subagents in Python",
long_description = """
python-netsnmp... | Increase version number to <I> | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -7,7 +7,7 @@ try:
except:
from disutils.core import setup, find_packages
-__title__ = 'Semantic URL'
+__title__ = 'semantic_url'
__author__ = 'Benjamin Schollnick'
__license__ = 'MIT'
__copyright__ = 'Copyright 2015... | Fixed small typo in setup.py Fixed extra ‘ in setup.py | py |
diff --git a/tornadis/__init__.py b/tornadis/__init__.py
index <HASH>..<HASH> 100644
--- a/tornadis/__init__.py
+++ b/tornadis/__init__.py
@@ -15,7 +15,7 @@ from tornadis.client import Client
from tornadis.pubsub import PubSubClient
from tornadis.pool import ClientPool
from tornadis.pipeline import Pipeline
-from to... | the TornadisException object is not public anymore | py |
diff --git a/python_modules/dagster/dagster/core/definitions/handle.py b/python_modules/dagster/dagster/core/definitions/handle.py
index <HASH>..<HASH> 100644
--- a/python_modules/dagster/dagster/core/definitions/handle.py
+++ b/python_modules/dagster/dagster/core/definitions/handle.py
@@ -162,6 +162,12 @@ class Execut... | Fix issue with loading single pipeline in dagit CLI Test Plan: tested dagit CLI Reviewers: schrockn Reviewed By: schrockn Differential Revision: <URL> | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -10,6 +10,7 @@ requires = [
'graypy==0.2.14',
'backoff==1.6.0',
'pillow==5.2.0',
+ 'redis==3.0.1'
]
about = {} | fix(bot): add redis to setup as requirement | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -8,6 +8,7 @@ https://github.com/pypa/sampleproject
# Always prefer setuptools over distutils
import os
import re
+import shutil
import sys
from setuptools import setup, find_packages
@@ -35,12 +36,17 @@ with open(os.pat... | Cleanup build dirs after publish (and check for twine. Copied from DRF. | py |
diff --git a/rqalpha/mod/analyser/mod.py b/rqalpha/mod/analyser/mod.py
index <HASH>..<HASH> 100644
--- a/rqalpha/mod/analyser/mod.py
+++ b/rqalpha/mod/analyser/mod.py
@@ -94,7 +94,7 @@ class AnalyserMod(AbstractMod):
if isinstance(value, Enum):
return value.name
- if isinstance(value, (fl... | np.float<I> does not exist on some platform | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -28,7 +28,6 @@ setup(
zip_safe=False,
platforms='any',
install_requires=[
- 'setuptools',
'Flask>=0.10',
'SQLAlchemy'
], | Removed setuptools requirement. This fixes #<I> | py |
diff --git a/tests/test_useragents.py b/tests/test_useragents.py
index <HASH>..<HASH> 100644
--- a/tests/test_useragents.py
+++ b/tests/test_useragents.py
@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
"""
tests.urls
~~~~~~~~~~ | Fix a style warning Mistakenly merged from d<I>b<I>c<I>d2aef0f<I>ee4a<I>c5b. | py |
diff --git a/MeteorClient.py b/MeteorClient.py
index <HASH>..<HASH> 100644
--- a/MeteorClient.py
+++ b/MeteorClient.py
@@ -189,7 +189,7 @@ class MeteorClient(EventEmitter):
self._wait_for_connect()
if name not in self.subscriptions:
raise MeteorClientException('No subscription for {}'.for... | Bugfix: unsubscribe by id | py |
diff --git a/kopt/config.py b/kopt/config.py
index <HASH>..<HASH> 100644
--- a/kopt/config.py
+++ b/kopt/config.py
@@ -57,7 +57,7 @@ def set_save_dir(_save_dir):
_config_path = os.path.expanduser(os.path.join(_kopt_dir, 'config.yaml'))
if os.path.exists(_config_path):
try:
- _config = yaml.load(open(_conf... | Fix annoying yaml warning `YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. Please read <URL> | py |
diff --git a/synth.py b/synth.py
index <HASH>..<HASH> 100644
--- a/synth.py
+++ b/synth.py
@@ -19,7 +19,13 @@ import logging
logging.basicConfig(level=logging.DEBUG)
+AUTOSYNTH_MULTIPLE_COMMITS = True
+
+
logging.basicConfig(level=logging.DEBUG)
+
+AUTOSYNTH_MULTIPLE_COMMITS = True
+
common_templates = gcp.Commo... | build: set AUTOSYNTH_MULTIPLE_COMMITS=true for context aware commits (#<I>) | py |
diff --git a/bokeh/protocol.py b/bokeh/protocol.py
index <HASH>..<HASH> 100644
--- a/bokeh/protocol.py
+++ b/bokeh/protocol.py
@@ -44,15 +44,20 @@ class NumpyJSONEncoder(json.JSONEncoder):
return super(NumpyJSONEncoder, self).default(obj)
def transform_list(self, l):
- for k, v in enumerate(l... | fix nan test issue throws expception when list contains non-float data, if that happens just punt | py |
diff --git a/acos_client/client.py b/acos_client/client.py
index <HASH>..<HASH> 100644
--- a/acos_client/client.py
+++ b/acos_client/client.py
@@ -129,5 +129,5 @@ class Client(object):
s = socket.create_connection((self.host, self.port), 1.0)
s.close()
break
- ... | catch all socket errors in wait_for_connect | py |
diff --git a/asv/benchmarks.py b/asv/benchmarks.py
index <HASH>..<HASH> 100644
--- a/asv/benchmarks.py
+++ b/asv/benchmarks.py
@@ -408,18 +408,20 @@ class Benchmarks(dict):
log.error(str(last_err))
raise util.UserError("Failed to build the project.")
- result_file = tempfi... | Run benchmark discovery with cwd in a temporary directory This is more robust vs. PYTHONPATH containing '' (current directory), which occurs when running under pytest-xdist. Running in a temporary directory is also consistent with how benchmarks themselves are run. | py |
diff --git a/koala/excel/excel.py b/koala/excel/excel.py
index <HASH>..<HASH> 100644
--- a/koala/excel/excel.py
+++ b/koala/excel/excel.py
@@ -32,6 +32,10 @@ def read_named_ranges(archive):
dict = {}
for name_node in safe_iterator(root, '{%s}definedName' % SHEET_MAIN_NS):
+ name = name_node.get('name... | Exception is raised when a named_range is defined in multiple sheets | py |
diff --git a/src/scs_core/sys/ps_datum.py b/src/scs_core/sys/ps_datum.py
index <HASH>..<HASH> 100644
--- a/src/scs_core/sys/ps_datum.py
+++ b/src/scs_core/sys/ps_datum.py
@@ -36,13 +36,13 @@ class PsDatum(JSONable):
@classmethod
def construct_from_report(cls, report):
- matc = re.match(r'^\s*(\d+)\s+... | Added show-time option to SystemDisplay | py |
diff --git a/dfvfs/helpers/source_scanner.py b/dfvfs/helpers/source_scanner.py
index <HASH>..<HASH> 100644
--- a/dfvfs/helpers/source_scanner.py
+++ b/dfvfs/helpers/source_scanner.py
@@ -150,8 +150,8 @@ class SourceScannerContext(object):
@property
def locked_scan_nodes(self):
- """generator[SourceScanNode]:... | Changes to source scanner for Python 3 (#<I>) | py |
diff --git a/micawber/providers.py b/micawber/providers.py
index <HASH>..<HASH> 100644
--- a/micawber/providers.py
+++ b/micawber/providers.py
@@ -116,6 +116,7 @@ def bootstrap_basic(cache=None):
pr = ProviderRegistry(cache)
pr.register('http://\S*?flickr.com/\S*', Provider('http://www.flickr.com/services/oem... | Apparently imgur has its own endpoint, adding to the bootstrap basic mix | py |
diff --git a/trans-notify/notify.py b/trans-notify/notify.py
index <HASH>..<HASH> 100644
--- a/trans-notify/notify.py
+++ b/trans-notify/notify.py
@@ -45,7 +45,7 @@ def run():
title=NOTIFO_TRANS_STARTED)
if __name__ == '__main__':
- daemon.daemonize('trans-notify.pid')
+ d... | Change location of trans-notify.pid to be in the /tmp/ directory instead of wherever it was run from. | py |
diff --git a/openquake/calculators/event_based_risk.py b/openquake/calculators/event_based_risk.py
index <HASH>..<HASH> 100644
--- a/openquake/calculators/event_based_risk.py
+++ b/openquake/calculators/event_based_risk.py
@@ -343,7 +343,7 @@ class EbrCalculator(base.RiskCalculator):
return
if dst... | Minor improvement [skip CI] | py |
diff --git a/rqalpha/main.py b/rqalpha/main.py
index <HASH>..<HASH> 100644
--- a/rqalpha/main.py
+++ b/rqalpha/main.py
@@ -119,7 +119,7 @@ def init_rqdatac(rqdatac_uri):
try:
init_rqdatac_env(rqdatac_uri)
rqdatac.init()
- except ValueError as e:
+ except Exception as e:
system_log.... | catch all exception during rqdatac.init | py |
diff --git a/splunklib/binding.py b/splunklib/binding.py
index <HASH>..<HASH> 100644
--- a/splunklib/binding.py
+++ b/splunklib/binding.py
@@ -504,8 +504,8 @@ class Context(object):
:return: ``True`` if there is auth token present, else ``False``
:rtype: ``bool``
"""
- auth_token_key =... | added check for auth token in cookie | py |
diff --git a/pyout/elements.py b/pyout/elements.py
index <HASH>..<HASH> 100644
--- a/pyout/elements.py
+++ b/pyout/elements.py
@@ -5,6 +5,7 @@ from collections.abc import Mapping
import jsonschema
schema = {
+ "$schema": "http://json-schema.org/draft-07/schema#",
"definitions": {
# Plain style elem... | Declare JSON schema as following Draft 7 | py |
diff --git a/spyder/widgets/variableexplorer/collectionseditor.py b/spyder/widgets/variableexplorer/collectionseditor.py
index <HASH>..<HASH> 100644
--- a/spyder/widgets/variableexplorer/collectionseditor.py
+++ b/spyder/widgets/variableexplorer/collectionseditor.py
@@ -1464,13 +1464,10 @@ def editor_test():
dialo... | Variable Explorer: Remove prints from some tests | py |
diff --git a/salt/states/pkgrepo.py b/salt/states/pkgrepo.py
index <HASH>..<HASH> 100644
--- a/salt/states/pkgrepo.py
+++ b/salt/states/pkgrepo.py
@@ -596,7 +596,7 @@ def absent(name, **kwargs):
be removed.
keyid_ppa : False
- If set to ``True``, the PGP key's ID will be looked up from
+ I... | Update salt/states/pkgrepo.py GPG revert | py |
diff --git a/src/python/twitter/pants/targets/jar_dependency.py b/src/python/twitter/pants/targets/jar_dependency.py
index <HASH>..<HASH> 100644
--- a/src/python/twitter/pants/targets/jar_dependency.py
+++ b/src/python/twitter/pants/targets/jar_dependency.py
@@ -54,7 +54,7 @@ class JarDependency(object):
self.arti... | Add an "id" field to JarDependency Auditors: benjy (sapling split of <I>caf9fe8ab5ced<I>e<I>ef<I>e6d2cc2f7) | py |
diff --git a/src/collectors/openvpn/openvpn.py b/src/collectors/openvpn/openvpn.py
index <HASH>..<HASH> 100644
--- a/src/collectors/openvpn/openvpn.py
+++ b/src/collectors/openvpn/openvpn.py
@@ -42,6 +42,8 @@ class OpenVPNCollector(diamond.collector.Collector):
def get_default_config_help(self):
config_he... | Add in more documented params in openvpn collector | py |
diff --git a/pip_accel/tests.py b/pip_accel/tests.py
index <HASH>..<HASH> 100644
--- a/pip_accel/tests.py
+++ b/pip_accel/tests.py
@@ -498,8 +498,8 @@ class PipAccelTestCase(unittest.TestCase):
"""
Test the installation of editable packages using ``pip install --editable``.
- This test clones... | Correct another note that was invalidated in pull request <I> | py |
diff --git a/tests/python/unittest/test_gluon.py b/tests/python/unittest/test_gluon.py
index <HASH>..<HASH> 100644
--- a/tests/python/unittest/test_gluon.py
+++ b/tests/python/unittest/test_gluon.py
@@ -1931,7 +1931,6 @@ def test_reshape_batchnorm():
@with_seed()
-@unittest.skip('Test failing, tracked by https://g... | enable batchnorm unit tests (#<I>) * enable bn unit tests * travis timed out, trigger ci | py |
diff --git a/src/travis2docker/travis2docker.py b/src/travis2docker/travis2docker.py
index <HASH>..<HASH> 100755
--- a/src/travis2docker/travis2docker.py
+++ b/src/travis2docker/travis2docker.py
@@ -18,10 +18,6 @@ RE_EXPORT_STR = r"^(?P<export>export|EXPORT)( )+" + RE_ENV_STR
class Travis2Docker(object):
re_exp... | [REF] travis2docker: Clean variable from OOP (#<I>) | py |
diff --git a/noseOfYeti/tokeniser/tracker.py b/noseOfYeti/tokeniser/tracker.py
index <HASH>..<HASH> 100644
--- a/noseOfYeti/tokeniser/tracker.py
+++ b/noseOfYeti/tokeniser/tracker.py
@@ -10,7 +10,10 @@ regexes = {'whitespace': re.compile('\s+')}
class Tracker(object):
"""Keep track of what each next token should ... | Fixing where Tracker.result comes from | py |
diff --git a/yandextank/plugins/Pandora/plugin.py b/yandextank/plugins/Pandora/plugin.py
index <HASH>..<HASH> 100644
--- a/yandextank/plugins/Pandora/plugin.py
+++ b/yandextank/plugins/Pandora/plugin.py
@@ -136,7 +136,7 @@ class Plugin(GeneratorPlugin):
instances=0,
loop_count=0,
... | pandora info: rm schedule as not supported by LP | py |
diff --git a/ziggurat_foundations/__init__.py b/ziggurat_foundations/__init__.py
index <HASH>..<HASH> 100644
--- a/ziggurat_foundations/__init__.py
+++ b/ziggurat_foundations/__init__.py
@@ -1,4 +1,4 @@
-__version__ = {'major': 0, 'minor': 1}
+__version__ = {'major': 0, 'minor': 4, 'patch': 1}
def make_passwordman... | version: bump to <I> | py |
diff --git a/src/core/scripts.py b/src/core/scripts.py
index <HASH>..<HASH> 100644
--- a/src/core/scripts.py
+++ b/src/core/scripts.py
@@ -780,11 +780,12 @@ class Script(QObject):
return data
@staticmethod
- def load_settings(path):
+ def load_settings(path, setttings_only = True):
"""
... | Script.load_settings is a bit smarter now (returns only the settings instead of the whole json file if there is only one script) simple_plot_1d: time scale is adjusted automatically to ns, us, ms and s | py |
diff --git a/test.py b/test.py
index <HASH>..<HASH> 100644
--- a/test.py
+++ b/test.py
@@ -44,7 +44,6 @@ def upload():
print repr(resp)
if __name__ == '__main__':
- dbs = main()
- print repr(dbs)
- for db in dbs:
- print db
+ #main()
+ #relevance()
+ upload() | Changing the default test routing to upload() | py |
diff --git a/invenio_base/app.py b/invenio_base/app.py
index <HASH>..<HASH> 100644
--- a/invenio_base/app.py
+++ b/invenio_base/app.py
@@ -88,6 +88,10 @@ def create_app_factory(app_name, config_loader=None,
def _create_app(**kwargs):
app = base_app(app_name, **app_kwargs)
+ debug = kwargs.get('de... | app: debug mode fix * Fixes problem with debug mode only being set after application creation when invoked from CLI. | py |
diff --git a/api/constants.py b/api/constants.py
index <HASH>..<HASH> 100644
--- a/api/constants.py
+++ b/api/constants.py
@@ -38,17 +38,33 @@ class CLASS(object):
sub = 'sub' # 6 # subroutine
type_ = 'type' # 7 # type
+ _CLASS_NAMES = {
+ unknown: '(unknown)',
+ var: 'var',
+ ar... | Added to_string() method to CLASS constants | py |
diff --git a/flowcraft/generator/engine.py b/flowcraft/generator/engine.py
index <HASH>..<HASH> 100644
--- a/flowcraft/generator/engine.py
+++ b/flowcraft/generator/engine.py
@@ -1168,6 +1168,10 @@ class NextflowGenerator:
# Skip init process
if p.template == "init":
+ for par... | Added init params to help message | py |
diff --git a/tests/unit/modules/test_kubernetesmod.py b/tests/unit/modules/test_kubernetesmod.py
index <HASH>..<HASH> 100644
--- a/tests/unit/modules/test_kubernetesmod.py
+++ b/tests/unit/modules/test_kubernetesmod.py
@@ -81,7 +81,6 @@ class KubernetesTestCase(TestCase, LoaderModuleMockMixin):
kub... | stops pylint E<I> from showing | py |
diff --git a/gcloud/bigtable/happybase/batch.py b/gcloud/bigtable/happybase/batch.py
index <HASH>..<HASH> 100644
--- a/gcloud/bigtable/happybase/batch.py
+++ b/gcloud/bigtable/happybase/batch.py
@@ -35,6 +35,14 @@ _WAL_WARNING = ('The wal argument (Write-Ahead-Log) is not '
class Batch(object):
"""Batch class for... | Adding Batch() note about __exit__() behavior. | py |
diff --git a/src/scs_core/client/http_client.py b/src/scs_core/client/http_client.py
index <HASH>..<HASH> 100644
--- a/src/scs_core/client/http_client.py
+++ b/src/scs_core/client/http_client.py
@@ -6,6 +6,7 @@ Created on 9 Nov 2016
import socket
import ssl
+import sys
import time
import http.client
@@ -125,15 ... | Added debugging for HTTPClient connection | py |
diff --git a/markus/backends/logging.py b/markus/backends/logging.py
index <HASH>..<HASH> 100644
--- a/markus/backends/logging.py
+++ b/markus/backends/logging.py
@@ -85,7 +85,7 @@ class LoggingMetrics(BackendBase):
self._log('histogram', stat, value, tags)
-def LoggingRollupMetrics(BackendBase):
+class Lo... | Fix things I would have caught had I written tests first | py |
diff --git a/py/selenium/webdriver/firefox/firefox_binary.py b/py/selenium/webdriver/firefox/firefox_binary.py
index <HASH>..<HASH> 100644
--- a/py/selenium/webdriver/firefox/firefox_binary.py
+++ b/py/selenium/webdriver/firefox/firefox_binary.py
@@ -102,7 +102,8 @@ class FirefoxBinary(object):
self.ki... | Added Firefox path variable for string placeholder | py |
diff --git a/plenum/test/consensus/order_service/test_sim_ordering_node_txn.py b/plenum/test/consensus/order_service/test_sim_ordering_node_txn.py
index <HASH>..<HASH> 100644
--- a/plenum/test/consensus/order_service/test_sim_ordering_node_txn.py
+++ b/plenum/test/consensus/order_service/test_sim_ordering_node_txn.py
@... | add some seeds into a blacklist until INDY-<I> and INDY-<I> are fixed | py |
diff --git a/ella/ellaexports/views.py b/ella/ellaexports/views.py
index <HASH>..<HASH> 100644
--- a/ella/ellaexports/views.py
+++ b/ella/ellaexports/views.py
@@ -136,14 +136,14 @@ class AggregatedMrssExport(MrssExport):
def get_context(self, request, **kwargs):
slug = kwargs.get('slug', None)
- ... | ellaexports - aggregated export | py |
diff --git a/pygubu/builder/__init__.py b/pygubu/builder/__init__.py
index <HASH>..<HASH> 100644
--- a/pygubu/builder/__init__.py
+++ b/pygubu/builder/__init__.py
@@ -179,18 +179,20 @@ class Builder(object):
# Import module as full path
try:
importlib.import_module(modulename)... | Fix import issues with custom widgets names. | py |
diff --git a/import_export/fields.py b/import_export/fields.py
index <HASH>..<HASH> 100644
--- a/import_export/fields.py
+++ b/import_export/fields.py
@@ -112,8 +112,9 @@ class Field(object):
attrs = self.attribute.split('__')
for attr in attrs[:-1]:
obj = getattr(obj, attr, N... | Avoid calling Field.clean() unnecessarily twice | py |
diff --git a/saltcloud/clouds/openstack.py b/saltcloud/clouds/openstack.py
index <HASH>..<HASH> 100644
--- a/saltcloud/clouds/openstack.py
+++ b/saltcloud/clouds/openstack.py
@@ -194,7 +194,8 @@ def create(vm_):
return False
not_ready = True
- nr_count = 50
+ nr_total = 50
+ nr_count = nr_total... | Our attempts should be slowing down, not speeding up | py |
diff --git a/py/testdir_multi_jvm/test_parse_rand_schmoo.py b/py/testdir_multi_jvm/test_parse_rand_schmoo.py
index <HASH>..<HASH> 100644
--- a/py/testdir_multi_jvm/test_parse_rand_schmoo.py
+++ b/py/testdir_multi_jvm/test_parse_rand_schmoo.py
@@ -80,7 +80,9 @@ class parse_rand_schmoo(unittest.TestCase):
# ... | poll seems to hang ..increase to <I> secs | py |
diff --git a/persephone/tests/test_bkw.py b/persephone/tests/test_bkw.py
index <HASH>..<HASH> 100644
--- a/persephone/tests/test_bkw.py
+++ b/persephone/tests/test_bkw.py
@@ -17,7 +17,7 @@ class TestBKW:
tgt_dir = Path(config.TEST_TGT_DATA_ROOT) / "bkw"
en_words_path = Path(config.EN_WORDS_PATH)
- NUM_UT... | Changed BKW utters number in test. | py |
diff --git a/stancache/stancache.py b/stancache/stancache.py
index <HASH>..<HASH> 100644
--- a/stancache/stancache.py
+++ b/stancache/stancache.py
@@ -25,6 +25,13 @@ def _mkdir_if_not_exists(path):
pass
+def _make_digest_dataframe(item):
+ index = tuple(item.index)
+ columns = tuple(item.columns)
+ ... | revert dataframe hash to previous version | py |
diff --git a/globus_cli/parsing/shared_options.py b/globus_cli/parsing/shared_options.py
index <HASH>..<HASH> 100644
--- a/globus_cli/parsing/shared_options.py
+++ b/globus_cli/parsing/shared_options.py
@@ -175,12 +175,14 @@ def endpoint_create_and_update_params(*args, **kwargs):
# Managed Endpoint options
... | Make default for --managed "None", not "False" With `--managed/--no-managed` split into two separate flag arguments, the default becomes `False` (this is a click behavior, makes sense for typical is_flag=True options). Explicitly tune the default back to "None" so that all of the behaviors based on this option remain ... | py |
diff --git a/omxplayer/player.py b/omxplayer/player.py
index <HASH>..<HASH> 100644
--- a/omxplayer/player.py
+++ b/omxplayer/player.py
@@ -4,12 +4,16 @@ import os
import signal
import logging
import threading
-import math
import atexit
import sys
-try: # python2
+try: # python 3
+ from pathlib import Path
+exc... | Support str media paths in OMXPlayer constructor | py |
diff --git a/tornado/web.py b/tornado/web.py
index <HASH>..<HASH> 100644
--- a/tornado/web.py
+++ b/tornado/web.py
@@ -444,7 +444,10 @@ class RequestHandler(object):
wrapped in a dictionary. More details at
http://haacked.com/archive/2008/11/20/anatomy-of-a-subtle-json-vulnerability.aspx
"""... | Add a better error message for a common assertion | py |
diff --git a/Tank/Plugins/ConsoleOnline.py b/Tank/Plugins/ConsoleOnline.py
index <HASH>..<HASH> 100644
--- a/Tank/Plugins/ConsoleOnline.py
+++ b/Tank/Plugins/ConsoleOnline.py
@@ -21,8 +21,11 @@ class ConsoleOnlinePlugin(AbstractPlugin, AggregateResultListener):
return __file__
def configure(self):
-... | Don't require Aggregator for console | py |
diff --git a/test_twarc.py b/test_twarc.py
index <HASH>..<HASH> 100644
--- a/test_twarc.py
+++ b/test_twarc.py
@@ -286,6 +286,10 @@ def test_user_lookup_by_screen_name():
assert set(names) == set(map(lambda x: x.lower(), screen_names))
+def test_tweet():
+ t = T.tweet("20")
+ assert t['text'] == 'just se... | added a test for the tweet method | py |
diff --git a/redis-monitor/plugins/zookeeper_monitor.py b/redis-monitor/plugins/zookeeper_monitor.py
index <HASH>..<HASH> 100644
--- a/redis-monitor/plugins/zookeeper_monitor.py
+++ b/redis-monitor/plugins/zookeeper_monitor.py
@@ -52,12 +52,14 @@ class ZookeeperMonitor(KafkaBaseMonitor):
self.logger.info('Rece... | Better error handling on brand new ZK clusters | py |
diff --git a/telethon/telegram_client.py b/telethon/telegram_client.py
index <HASH>..<HASH> 100644
--- a/telethon/telegram_client.py
+++ b/telethon/telegram_client.py
@@ -1226,8 +1226,8 @@ class TelegramClient(TelegramBareClient):
attr_dict[DocumentAttributeVideo] = doc
else:
... | Get name attribute from streams instead always 'unnamed' | py |
diff --git a/app/readers.py b/app/readers.py
index <HASH>..<HASH> 100644
--- a/app/readers.py
+++ b/app/readers.py
@@ -1,5 +1,5 @@
from lxml import etree
-import filtering
+import formatting
def get_namespace(fn):
ns = {'xmlns':'http://per-colator.com/percolator_out/14',
@@ -44,7 +44,7 @@ def generate_tags_mul... | Bug in readers getting importing from wrong module | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -20,6 +20,7 @@ Convert C struct definitions into Python classes with methods for serializing/de
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming La... | python <I> support added | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.