diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/tofu/geom/_comp.py b/tofu/geom/_comp.py
index <HASH>..<HASH> 100644
--- a/tofu/geom/_comp.py
+++ b/tofu/geom/_comp.py
@@ -419,7 +419,6 @@ def _Ves_get_sampleV(
num_threads=num_threads,
)
else:
- print("~~~~~~CALLING OLD ALGO~~~~~~~")
... | [vmesh] took out useless print | py |
diff --git a/wfdb/io/annotation.py b/wfdb/io/annotation.py
index <HASH>..<HASH> 100644
--- a/wfdb/io/annotation.py
+++ b/wfdb/io/annotation.py
@@ -1748,8 +1748,8 @@ def load_byte_pairs(record_name, extension, pn_dir):
Returns
-------
- filebytes : str
- The input filestream converted to bytes.
+ ... | Fix documentation of the internal variable 'filebytes'. This variable contains the complete contents of the input annotation file, as a numpy array of pairs of bytes (shape=(N,2), dtype='uint8'). It is neither a str nor a bytes object. | py |
diff --git a/claripy/backends/backend_z3.py b/claripy/backends/backend_z3.py
index <HASH>..<HASH> 100644
--- a/claripy/backends/backend_z3.py
+++ b/claripy/backends/backend_z3.py
@@ -304,12 +304,13 @@ class BackendZ3(Backend):
if isinstance(expr_raw, z3.BoolRef):
tactics = z3.Then(z3.Tactic("simplify"), z3.Tacti... | faster way of identifying concrete z3 bools | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -1,8 +1,14 @@
from setuptools import setup, find_packages
+import re
+
+# Parse version number from creamas/__init__.py to keep it in one place.
+__version__ = re.search(
+ r'__version__\s*=\s*[\'"]([^\'"]*)[\'"]',
+ op... | Added version number parsing from creamas/__init__.py to setup.py to keep the version number in only one place. | py |
diff --git a/setuptools/tests/test_easy_install.py b/setuptools/tests/test_easy_install.py
index <HASH>..<HASH> 100644
--- a/setuptools/tests/test_easy_install.py
+++ b/setuptools/tests/test_easy_install.py
@@ -124,7 +124,7 @@ class TestEasyInstallTest:
site.getsitepackages.
"""
mock_gsp = la... | getsitepackages may not be present | py |
diff --git a/pysat/instruments/pysat_testmodel.py b/pysat/instruments/pysat_testmodel.py
index <HASH>..<HASH> 100644
--- a/pysat/instruments/pysat_testmodel.py
+++ b/pysat/instruments/pysat_testmodel.py
@@ -80,8 +80,8 @@ def load(fnames, tag=None, sat_id=None):
for i, ut in enumerate(uts):
for j, long in ... | BUG: testmodel coordinate name Coordinate name for two of the data variables misspelled. | py |
diff --git a/holoviews/core/operation.py b/holoviews/core/operation.py
index <HASH>..<HASH> 100644
--- a/holoviews/core/operation.py
+++ b/holoviews/core/operation.py
@@ -180,6 +180,11 @@ class OperationCallable(Callable):
operation = param.ClassSelector(class_=ElementOperation, doc="""
The ElementOperati... | Added check to ensure OperationCallable always has an operation | py |
diff --git a/src/hcl/parser.py b/src/hcl/parser.py
index <HASH>..<HASH> 100644
--- a/src/hcl/parser.py
+++ b/src/hcl/parser.py
@@ -27,12 +27,16 @@ if sys.version_info[0] < 3:
def iteritems(d):
return iter(d.iteritems())
+ string_types = (str, unicode)
+
else:
def iteritems(d):
retu... | fix for python2 tests | py |
diff --git a/assess_win_client.py b/assess_win_client.py
index <HASH>..<HASH> 100755
--- a/assess_win_client.py
+++ b/assess_win_client.py
@@ -34,7 +34,7 @@ def win_test(script_dir, address, juju_home, revision_build):
ci = [os.path.join(script_dir, f) for f in [
'deploy_stack.py', 'deploy_job.py', 'jujup... | Added missing dep for win deploy tests. | py |
diff --git a/parker/consumepage.py b/parker/consumepage.py
index <HASH>..<HASH> 100644
--- a/parker/consumepage.py
+++ b/parker/consumepage.py
@@ -1,8 +1,6 @@
# -*- coding: utf-8 -*-
"""ConsumePage object for Parker."""
-from parsedpage import ParsedPage
-
_instances = dict() | Remove the redundant import of ParsedPage in ConsumePage. | py |
diff --git a/salt/renderers/gpg.py b/salt/renderers/gpg.py
index <HASH>..<HASH> 100644
--- a/salt/renderers/gpg.py
+++ b/salt/renderers/gpg.py
@@ -41,7 +41,7 @@ To generate a cipher from a secret:
.. code-block:: bash
- $ echo -n "supersecret" | gpg --homedir --armor --encrypt -r <KEY-name>
+ $ echo -n "supers... | Added the default directory that gpg imports to | py |
diff --git a/test_joyent.py b/test_joyent.py
index <HASH>..<HASH> 100644
--- a/test_joyent.py
+++ b/test_joyent.py
@@ -82,7 +82,7 @@ class ClientTestCase(TestCase):
with patch.object(client, 'request_deletion',
autospec=True) as rd_mock:
... | Updated method name to assert_any_call. | py |
diff --git a/popbill/faxService.py b/popbill/faxService.py
index <HASH>..<HASH> 100644
--- a/popbill/faxService.py
+++ b/popbill/faxService.py
@@ -7,7 +7,7 @@
# Author : Kim Seongjun (pallet027@gmail.com)
# Written : 2015-01-21
# Contributor : Jeong Yohan (code@linkhub.co.kr)
-# Updated : 2018-08-09
+# Updated : 202... | fixed fax comment(Updated) | py |
diff --git a/__main__.py b/__main__.py
index <HASH>..<HASH> 100644
--- a/__main__.py
+++ b/__main__.py
@@ -16,11 +16,13 @@ def configure_path():
while not templar.startswith(cwd):
paths.append(cwd)
cwd = os.path.dirname(cwd)
- paths.append(cwd)
- import config
- for i in range(len(paths)... | Fix path configuration to work with python<I> | py |
diff --git a/holoviews/core/util.py b/holoviews/core/util.py
index <HASH>..<HASH> 100644
--- a/holoviews/core/util.py
+++ b/holoviews/core/util.py
@@ -490,7 +490,7 @@ def callable_name(callable_obj):
if sys.version_info < (3,0):
owner = meth.im_class if meth.im_self is None else meth.im_s... | Avoid using Parameterized repr in callable_name (#<I>) * Avoid using Parameterized repr in callable_name * Small fix | py |
diff --git a/pydriller/repository_mining.py b/pydriller/repository_mining.py
index <HASH>..<HASH> 100644
--- a/pydriller/repository_mining.py
+++ b/pydriller/repository_mining.py
@@ -12,16 +12,14 @@
# See the License for the specific language governing permissions and
# limitations under the License.
-import atexit... | small refactor in repository_mining | py |
diff --git a/datatableview/utils.py b/datatableview/utils.py
index <HASH>..<HASH> 100644
--- a/datatableview/utils.py
+++ b/datatableview/utils.py
@@ -1,6 +1,6 @@
# -*- encoding: utf-8 -*-
-from collections import namedtuple
+from collections import defaultdict, namedtuple
try:
from functools import reduce
ex... | Change FIELD_TYPES to a defaultdict Part of the partial merge from @davidfischer-ch | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -3,7 +3,7 @@ from setuptools import setup
setup(
name='plucky',
- version='0.3.3',
+ version='0.3.4',
description='Plucking (deep) keys/paths safely from python collections has never been easier.',
long... | bumped to <I> | py |
diff --git a/wpull/testing/badapp.py b/wpull/testing/badapp.py
index <HASH>..<HASH> 100644
--- a/wpull/testing/badapp.py
+++ b/wpull/testing/badapp.py
@@ -188,7 +188,7 @@ class BadAppTestCase(AsyncTestCase):
self.http_server.start()
self._port = self.http_server.port
self.connection = Connect... | Increases unit test connection read timeout. | py |
diff --git a/brightside/message_pump.py b/brightside/message_pump.py
index <HASH>..<HASH> 100644
--- a/brightside/message_pump.py
+++ b/brightside/message_pump.py
@@ -115,10 +115,8 @@ class MessagePump:
except DeferMessageException:
self._requeue_message(message)
- ... | Use a context manager to control the lifetime of the heartbeat over an explicit call in the code | py |
diff --git a/eli5/formatters/text.py b/eli5/formatters/text.py
index <HASH>..<HASH> 100644
--- a/eli5/formatters/text.py
+++ b/eli5/formatters/text.py
@@ -158,9 +158,7 @@ def _targets_lines(explanation, hl_spaces, show_feature_values,
header=table_header,
col_align=col_align,
)
- ... | It's better without an extra header separator | py |
diff --git a/booty/__main__.py b/booty/__main__.py
index <HASH>..<HASH> 100644
--- a/booty/__main__.py
+++ b/booty/__main__.py
@@ -51,3 +51,6 @@ def main(hexfile, port, baudrate, load, verify):
logger.info('device verified!')
else:
logger.warning('device verification failed')
+
+if __... | Added a 'if name == main' statement | py |
diff --git a/openid/server/trustroot.py b/openid/server/trustroot.py
index <HASH>..<HASH> 100644
--- a/openid/server/trustroot.py
+++ b/openid/server/trustroot.py
@@ -55,7 +55,7 @@ class TrustRoot(object):
@sort: parse, isSane
"""
-
+
def __init__(self, unparsed, proto, wildcard, host, port, path):... | [project @ M-x whitespace-cleanup] | py |
diff --git a/eventlib/core.py b/eventlib/core.py
index <HASH>..<HASH> 100644
--- a/eventlib/core.py
+++ b/eventlib/core.py
@@ -95,8 +95,7 @@ def find_handlers(event_name):
def find_external_handlers(event_name):
- handlers = EXTERNAL_HANDLER_REGISTRY.get(find_event(event_name), [])
- handlers.extend(EXTERNAL... | fix event lookup issue with external handlers | py |
diff --git a/spacy_iwnlp/__init__.py b/spacy_iwnlp/__init__.py
index <HASH>..<HASH> 100644
--- a/spacy_iwnlp/__init__.py
+++ b/spacy_iwnlp/__init__.py
@@ -7,8 +7,7 @@ class spaCyIWNLP(object):
self.lemmatizer = IWNLPWrapper(lemmatizer_path=lemmatizer_path)
self.use_plain_lemmatization = use_plain_lemm... | Update necessary call to token.set_extension with force=True after spaCy update to latest | py |
diff --git a/test/test_conf_in_symlinks.py b/test/test_conf_in_symlinks.py
index <HASH>..<HASH> 100755
--- a/test/test_conf_in_symlinks.py
+++ b/test/test_conf_in_symlinks.py
@@ -21,6 +21,7 @@
#
# This file is used to test reading and processing of config files
#
+import os
import sys
from shinken_test import *
... | Fix : test_conf_in_symlinks.py and windows is not a good mix.... | py |
diff --git a/dallinger/version.py b/dallinger/version.py
index <HASH>..<HASH> 100644
--- a/dallinger/version.py
+++ b/dallinger/version.py
@@ -1,3 +1,3 @@
"""Dallinger version number."""
-__version__ = "3.0.0a1"
+__version__ = "2.7.0" | Move experiments to ``experiments`` module | py |
diff --git a/services/managers/phpbb3_manager.py b/services/managers/phpbb3_manager.py
index <HASH>..<HASH> 100755
--- a/services/managers/phpbb3_manager.py
+++ b/services/managers/phpbb3_manager.py
@@ -39,7 +39,7 @@ class Phpbb3Manager:
SQL_ADD_USER_AVATAR = r"UPDATE phpbb_users SET user_avatar_type=2, user_ava... | Fixing invalid column name We're using phpBB, not just "php" | py |
diff --git a/jieba/__init__.py b/jieba/__init__.py
index <HASH>..<HASH> 100644
--- a/jieba/__init__.py
+++ b/jieba/__init__.py
@@ -331,7 +331,7 @@ def load_userdict(f):
tup = line.split(" ")
add_word(*tup)
except Exception as e:
- logger.debug('%s at line %s %s' % (f_name, ... | fixed an error in load_userdict() | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -751,7 +751,9 @@ class InnoScript:
print(file=fd)
# Uninstall optional log files
print('[UninstallDelete]', file=fd)
- print(r'Type: files; Name: "{pf}\%s\linkchecker*.exe.log"' % self.name, f... | Remove all logs on uninstall in Windows. | py |
diff --git a/python/ray/tests/test_failure.py b/python/ray/tests/test_failure.py
index <HASH>..<HASH> 100644
--- a/python/ray/tests/test_failure.py
+++ b/python/ray/tests/test_failure.py
@@ -459,9 +459,18 @@ def test_actor_scope_or_intentionally_killed_message(ray_start_regular,
@ray.remote
class Actor:
- ... | Try to deflake test_failure (#<I>) | py |
diff --git a/example/settings.py b/example/settings.py
index <HASH>..<HASH> 100644
--- a/example/settings.py
+++ b/example/settings.py
@@ -101,6 +101,8 @@ SESSION_ENGINE = 'user_sessions.backends.db'
EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'
+SILENCED_SYSTEM_CHECKS = ['admin.E410']
+
try:
... | Opt-out of system checks for example | py |
diff --git a/ckanutils/__init__.py b/ckanutils/__init__.py
index <HASH>..<HASH> 100755
--- a/ckanutils/__init__.py
+++ b/ckanutils/__init__.py
@@ -21,6 +21,6 @@ __package_name__ = 'ckanutils'
__author__ = 'Reuben Cummings'
__description__ = 'Miscellaneous CKAN utility scripts'
__email__ = 'reubano@gmail.com'
-__vers... | Bump to version <I> | py |
diff --git a/malcolm/core/process.py b/malcolm/core/process.py
index <HASH>..<HASH> 100644
--- a/malcolm/core/process.py
+++ b/malcolm/core/process.py
@@ -182,6 +182,7 @@ class Process(Loggable):
self.log.warning(
"Timeout waiting for %s *%s **%s",
s._function,... | Raise on first error at Process.stop() | py |
diff --git a/txjason/tests/test_client.py b/txjason/tests/test_client.py
index <HASH>..<HASH> 100644
--- a/txjason/tests/test_client.py
+++ b/txjason/tests/test_client.py
@@ -29,6 +29,15 @@ class ClientTestCase(TXJasonTestCase):
clock.advance(1)
self.assertIsInstance(called[0], defer.CancelledError)
... | Add a test for passing a timeout to getRequest. | py |
diff --git a/alot/commands/thread.py b/alot/commands/thread.py
index <HASH>..<HASH> 100644
--- a/alot/commands/thread.py
+++ b/alot/commands/thread.py
@@ -512,21 +512,16 @@ class RemoveCommand(Command):
if (yield ui.choice(confirm_msg, select='yes', cancel='no')) == 'no':
return
- # remov... | rewrite thread.RemoveCommand call flush and use "afterwards" callback for notification | py |
diff --git a/pystache/__init__.py b/pystache/__init__.py
index <HASH>..<HASH> 100644
--- a/pystache/__init__.py
+++ b/pystache/__init__.py
@@ -4,5 +4,5 @@
from pystache.init import *
# TODO: make sure that "from pystache import *" exposes only the following:
-# ['__version__', 'render', 'Renderer', 'TemplateSpec'... | Deleted a trailing space. | py |
diff --git a/js_host/conf.py b/js_host/conf.py
index <HASH>..<HASH> 100644
--- a/js_host/conf.py
+++ b/js_host/conf.py
@@ -10,7 +10,7 @@ class Conf(conf.Conf):
PATH_TO_NODE = 'node'
# An absolute path to the directory which contains your node_modules directory
- SOURCE_ROOT = None
+ SOURCE_ROOT = os.g... | SOURCE_ROOT now defaults to the current working directory | py |
diff --git a/src/html5lib/html5parser.py b/src/html5lib/html5parser.py
index <HASH>..<HASH> 100644
--- a/src/html5lib/html5parser.py
+++ b/src/html5lib/html5parser.py
@@ -880,7 +880,8 @@ class InBodyPhase(Phase):
("xmp", self.startTagXmp),
("table", self.startTagTable),
(("area", ... | Fix handling of source/param within "in body". Fixes #<I>. | py |
diff --git a/cnxpublishing/publish.py b/cnxpublishing/publish.py
index <HASH>..<HASH> 100644
--- a/cnxpublishing/publish.py
+++ b/cnxpublishing/publish.py
@@ -9,6 +9,7 @@
Functions used to commit publication works to the archive.
"""
import cnxepub
+import psycopg2
from cnxepub import Document, Binder
from cnxarch... | Fix the data input from text to binary when inserting content. | py |
diff --git a/scoop/__main__.py b/scoop/__main__.py
index <HASH>..<HASH> 100644
--- a/scoop/__main__.py
+++ b/scoop/__main__.py
@@ -315,6 +315,7 @@ class ScoopApp(object):
sys.stdout.write(data.decode("utf-8"))
sys.stdout.flush()
data = stream.read(1)
+ ... | Now returns the exit code of the remote root worker program. | py |
diff --git a/velbus/messages/kwh_status.py b/velbus/messages/kwh_status.py
index <HASH>..<HASH> 100644
--- a/velbus/messages/kwh_status.py
+++ b/velbus/messages/kwh_status.py
@@ -40,6 +40,8 @@ class KwhStatusMessage(velbus.Message):
self.kwh = float(float(self.counter)/self.pulses)
self.delay = (data[... | if watt value is < <I>, then nothing is received by the module | py |
diff --git a/tools/run_tests/run_microbenchmark.py b/tools/run_tests/run_microbenchmark.py
index <HASH>..<HASH> 100755
--- a/tools/run_tests/run_microbenchmark.py
+++ b/tools/run_tests/run_microbenchmark.py
@@ -173,7 +173,7 @@ argp.add_argument('-c', '--collect',
default=sorted(collectors.keys()),
... | Update microbenchmarking framework for new benchmark | py |
diff --git a/tensorlayer/layers.py b/tensorlayer/layers.py
index <HASH>..<HASH> 100755
--- a/tensorlayer/layers.py
+++ b/tensorlayer/layers.py
@@ -1264,7 +1264,7 @@ class DeConv3dLayer(Layer):
):
Layer.__init__(self, name=name)
self.inputs = layer.outputs
- print(" tensorlayer:Instantiate... | [TYPO] deconv3dlayer console | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -72,7 +72,7 @@ class InstallWithKernelspec(install):
setup(name='SAS_kernel',
version='1.2.1',
- description='A SAS kernel for IPython',
+ description='A SAS kernel for Jupyter',
long_description=ope... | inital push of doc build system | py |
diff --git a/crontabber/tests/base.py b/crontabber/tests/base.py
index <HASH>..<HASH> 100644
--- a/crontabber/tests/base.py
+++ b/crontabber/tests/base.py
@@ -112,16 +112,13 @@ class IntegrationTestCaseBase(TestCaseBase):
configman.ConfigFileFutureProxy,
environment,
],
- ... | fixes #<I> - improper use of context in tests | py |
diff --git a/gooey/gui/components/footer.py b/gooey/gui/components/footer.py
index <HASH>..<HASH> 100644
--- a/gooey/gui/components/footer.py
+++ b/gooey/gui/components/footer.py
@@ -90,6 +90,7 @@ class Footer(wx.Panel):
def _do_layout(self):
+ self.SetBackgroundColour(self.buildSpec['footer_bg_color... | pass footer_bg_color from buildSpec to Footer | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -8,7 +8,7 @@ except(IOError, ImportError):
setup(
name='passwordgenerator',
- version='1.5',
+ version='1.5.1',
description='Passwords easy for humans, hard for computers',
long_description=long_descrip... | Push minor release for python_requires update (#<I>) | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -62,7 +62,7 @@ with open('README.rst') as f:
install_reqs = [
'bcrypt',
'boto',
- 'CherryPy',
+ 'CherryPy<8', # see https://github.com/girder/girder/issues/1615
'Mako',
'pymongo>=3',
'PyYAML',
... | Fixes #<I>. Disallow cherrpy version 8.x It contains a bug that breaks restarting the server | py |
diff --git a/salt/utils/s3.py b/salt/utils/s3.py
index <HASH>..<HASH> 100644
--- a/salt/utils/s3.py
+++ b/salt/utils/s3.py
@@ -218,7 +218,7 @@ def query(key, keyid, method='GET', params=None, headers=None,
if return_url is True:
return ret, requesturl
else:
- if method == 'GET' or meth... | updated s3.query function to return headers array for successful requests fixes issue with s3.head returning None for files that exist | py |
diff --git a/src/browse.py b/src/browse.py
index <HASH>..<HASH> 100755
--- a/src/browse.py
+++ b/src/browse.py
@@ -60,7 +60,9 @@ def parse(text):
outputs = []
try:
- target = next(lines)[:-1] # strip trailing colon
+ target = next(lines)
+ if target.endswith(':'):
+ target =... | browse.py: Fix truncation with an unknown target. | py |
diff --git a/crispy_forms_foundation/layout.py b/crispy_forms_foundation/layout.py
index <HASH>..<HASH> 100644
--- a/crispy_forms_foundation/layout.py
+++ b/crispy_forms_foundation/layout.py
@@ -254,11 +254,11 @@ class InlineSwitchField(InlineField):
def __init__(self, field, *args, **kwargs):
self.switch... | argh ! forgot to update class name | py |
diff --git a/openquake/hazardlib/contexts.py b/openquake/hazardlib/contexts.py
index <HASH>..<HASH> 100644
--- a/openquake/hazardlib/contexts.py
+++ b/openquake/hazardlib/contexts.py
@@ -79,7 +79,8 @@ def get_maxsize(num_levels, num_gsims):
# optimized for the USA model
assert num_levels * num_gsims * 32 < TW... | Refined maxsize more [ci skip] | py |
diff --git a/flake8_import_order/__init__.py b/flake8_import_order/__init__.py
index <HASH>..<HASH> 100644
--- a/flake8_import_order/__init__.py
+++ b/flake8_import_order/__init__.py
@@ -182,8 +182,6 @@ class ImportVisitor(ast.NodeVisitor):
pkg = root_package_name(name)
- # Entirely not confusingly ... | Remove missleading comment It no longer applies to the code. | py |
diff --git a/zinnia_html5/__init__.py b/zinnia_html5/__init__.py
index <HASH>..<HASH> 100644
--- a/zinnia_html5/__init__.py
+++ b/zinnia_html5/__init__.py
@@ -1,5 +1,5 @@
"""zinnia_html5"""
-__version__ = '0.1'
+__version__ = '0.2.dev'
__license__ = 'BSD License'
__author__ = 'Fantomas42' | passing to version <I>.dev | py |
diff --git a/multiqc/modules/mirtrace/mirtrace.py b/multiqc/modules/mirtrace/mirtrace.py
index <HASH>..<HASH> 100755
--- a/multiqc/modules/mirtrace/mirtrace.py
+++ b/multiqc/modules/mirtrace/mirtrace.py
@@ -304,7 +304,7 @@ class MultiqcModule(BaseMultiqcModule):
# Specify the order of the different possible ... | Fix bug that dict_keys does not support indexing for python 3.x | py |
diff --git a/pylivetrader/_version.py b/pylivetrader/_version.py
index <HASH>..<HASH> 100644
--- a/pylivetrader/_version.py
+++ b/pylivetrader/_version.py
@@ -13,4 +13,4 @@
# See the License for the specific language governing permissions and
# limitations under the License.
-VERSION = '0.0.13'
+VERSION = '0.0.15' | Bump to <I> (<I> was skipped) | py |
diff --git a/falafel/core/__init__.py b/falafel/core/__init__.py
index <HASH>..<HASH> 100644
--- a/falafel/core/__init__.py
+++ b/falafel/core/__init__.py
@@ -251,7 +251,7 @@ crw-------. 1 0 0 10, 236 Jul 25 10:00 control
# Note that we don't try to determine nonexistent month, day > 31, hour
# > 23, minute... | We can at least limit the accepted hours up to <I> :-) | py |
diff --git a/vumi_http_api/auth.py b/vumi_http_api/auth.py
index <HASH>..<HASH> 100644
--- a/vumi_http_api/auth.py
+++ b/vumi_http_api/auth.py
@@ -29,8 +29,14 @@ class ConversationAccessChecker(object):
username = credentials.username
token = credentials.password
tokens = self.worker.get_stat... | Extra validation for conversation key and account key in auth | py |
diff --git a/jujupy/tests/test_client.py b/jujupy/tests/test_client.py
index <HASH>..<HASH> 100644
--- a/jujupy/tests/test_client.py
+++ b/jujupy/tests/test_client.py
@@ -180,6 +180,12 @@ class TestJuju2Backend(TestCase):
self.assertIsNot(cloned, backend)
self.assertIs(soft_deadline, cloned.soft_deadl... | Failing test for sharing juju_timings data. | py |
diff --git a/taxii2client/common.py b/taxii2client/common.py
index <HASH>..<HASH> 100644
--- a/taxii2client/common.py
+++ b/taxii2client/common.py
@@ -253,6 +253,7 @@ class _HTTPConnection(object):
self.version = version
if cert:
self.session.cert = cert
+
def valid_content_type(self... | Added blank line to appease the flake gods | py |
diff --git a/mintapi/api.py b/mintapi/api.py
index <HASH>..<HASH> 100644
--- a/mintapi/api.py
+++ b/mintapi/api.py
@@ -147,7 +147,12 @@ class Mint(requests.Session):
def get_transactions(self):
if not pd:
raise ImportError('transactions data requires pandas')
- from StringIO import Str... | Fix Python 3 compatibility in get_transactions | py |
diff --git a/src/svgutils/transform.py b/src/svgutils/transform.py
index <HASH>..<HASH> 100644
--- a/src/svgutils/transform.py
+++ b/src/svgutils/transform.py
@@ -240,14 +240,14 @@ class SVGFigure(object):
if width:
try:
- # width is an instance of Unit
- self._widt... | transform.py: Get width/height/viewBox included with SVG output again (fixes #<I>) Regression from commit 6f5d<I>fa5cb<I>f7fb<I>ee<I>d<I>ba9d<I> introduce as part of pull request #<I>. | py |
diff --git a/JSAnimation/html_writer.py b/JSAnimation/html_writer.py
index <HASH>..<HASH> 100644
--- a/JSAnimation/html_writer.py
+++ b/JSAnimation/html_writer.py
@@ -1,9 +1,9 @@
import os
import warnings
-import random
import cStringIO
from matplotlib.animation import writers, FileMovieWriter
import random
+impor... | use non-digit characters for hash | py |
diff --git a/jiphy/handlers.py b/jiphy/handlers.py
index <HASH>..<HASH> 100644
--- a/jiphy/handlers.py
+++ b/jiphy/handlers.py
@@ -287,6 +287,16 @@ class SingleLineComment(Handler):
return '# {0}\n'.format(self.python_content)
+@routes.add('import pdb; pdb.set_trace()\n', 'import pdb;pdb.set_trace()\n', 'd... | Implement support for Break Points according to test and README specifications | py |
diff --git a/em73xx/sms.py b/em73xx/sms.py
index <HASH>..<HASH> 100644
--- a/em73xx/sms.py
+++ b/em73xx/sms.py
@@ -3,6 +3,17 @@ from .utils import unquote
class SMS(object):
@classmethod
+ def fromJson(cls, sms_json):
+ return cls(
+ sms_json["sms_id"],
+ sms_json["status"],
+ ... | oops, forgot from json | py |
diff --git a/openquake/hazardlib/lt.py b/openquake/hazardlib/lt.py
index <HASH>..<HASH> 100644
--- a/openquake/hazardlib/lt.py
+++ b/openquake/hazardlib/lt.py
@@ -310,7 +310,7 @@ def apply_uncertainties(bset_values, src_group):
def random(size, seed, sampling_method='early_weights'):
"""
- :param size: size ... | Updated docstring [skip CI] | py |
diff --git a/safe/impact_function/impact_function.py b/safe/impact_function/impact_function.py
index <HASH>..<HASH> 100644
--- a/safe/impact_function/impact_function.py
+++ b/safe/impact_function/impact_function.py
@@ -299,7 +299,7 @@ class ImpactFunction(object):
'end_datetime',
'duration',
... | Pass if impact is empty because no output yet. | py |
diff --git a/phoebe/io/parsers.py b/phoebe/io/parsers.py
index <HASH>..<HASH> 100644
--- a/phoebe/io/parsers.py
+++ b/phoebe/io/parsers.py
@@ -585,7 +585,7 @@ def legacy_to_phoebe(inputfile, create_body=False, create_bundle=False,
logger.warning("The light curve file {} cannot be located.".... | fixed typo in rv_file that should be lc_file | py |
diff --git a/spinoff/actor/_actor.py b/spinoff/actor/_actor.py
index <HASH>..<HASH> 100644
--- a/spinoff/actor/_actor.py
+++ b/spinoff/actor/_actor.py
@@ -1311,10 +1311,10 @@ class TempActor(Actor):
pool = set()
@classmethod
- def make(cls, node=None):
+ def make(cls, context=None):
# if not ... | Renamed TempActor.make argument 'node' to 'context' because it can be anything that can spawn an actor | py |
diff --git a/uptick/wallet.py b/uptick/wallet.py
index <HASH>..<HASH> 100644
--- a/uptick/wallet.py
+++ b/uptick/wallet.py
@@ -209,3 +209,14 @@ def importaccount(ctx, account, role):
if not imported:
click.echo("No matching key(s) found. Password correct?")
+
+
+@main.command()
+@click.pass_context
+@cl... | [wallet] Allow to wipe wallet | py |
diff --git a/fuel/transformers/defaults.py b/fuel/transformers/defaults.py
index <HASH>..<HASH> 100644
--- a/fuel/transformers/defaults.py
+++ b/fuel/transformers/defaults.py
@@ -20,7 +20,9 @@ class ToBytes(SourcewiseTransformer):
"""
def __init__(self, stream, **kwargs):
kwargs.setdefault('produces_... | Handle None axis_labels in ToBytes. | py |
diff --git a/saspy/sasiohttp.py b/saspy/sasiohttp.py
index <HASH>..<HASH> 100644
--- a/saspy/sasiohttp.py
+++ b/saspy/sasiohttp.py
@@ -376,7 +376,7 @@ class SASconfigHTTP:
headers={"Accept":"application/vnd.sas.collection+json",
"Accept-Item":"application/vnd.sas.compute.context.summary+json",
... | fix get contexts not retuning all of the contexts | py |
diff --git a/phy/utils/logging.py b/phy/utils/logging.py
index <HASH>..<HASH> 100644
--- a/phy/utils/logging.py
+++ b/phy/utils/logging.py
@@ -1,3 +1,4 @@
+from __future__ import absolute_import
"""Logger utility classes and functions."""
# ---------------------------------------------------------------------------... | Added future statement to avoid absolute/relative import bug in Python 2. | py |
diff --git a/pyemu/utils/gw_utils.py b/pyemu/utils/gw_utils.py
index <HASH>..<HASH> 100644
--- a/pyemu/utils/gw_utils.py
+++ b/pyemu/utils/gw_utils.py
@@ -229,7 +229,7 @@ def setup_mtlist_budget_obs(list_filename,gw_filename="mtlist_gw.dat",sw_filenam
if df_sw is None:
raise Exception("error proce... | minor changes in mf/mtlist setup | py |
diff --git a/spyderlib/spyder.py b/spyderlib/spyder.py
index <HASH>..<HASH> 100644
--- a/spyderlib/spyder.py
+++ b/spyderlib/spyder.py
@@ -1578,7 +1578,7 @@ class MainWindow(QMainWindow):
<a href="%s">Google Group</a>
</li></ul>
<p>This project is part of a larger effort to prom... | About dialog: Fix another spelling error Update Issue <I> Status: Fixed - Thanks to Pythius.Jang for noticing it. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -18,7 +18,7 @@ INSTALL_REQUIRES = [
'Jinja2>=2.7.2',
'MarkupSafe>=0.23',
'Werkzeug>=0.9.4',
- 'jinja2-highlight>=0.5.1',
+ 'jinja2-highlight==0.5.1', # pin for Python26 compatibility
'pyzmq>=4.3.1',
... | pin jinja2-highlight for Python <I> support | py |
diff --git a/honeybadger/tests/contrib/test_django.py b/honeybadger/tests/contrib/test_django.py
index <HASH>..<HASH> 100644
--- a/honeybadger/tests/contrib/test_django.py
+++ b/honeybadger/tests/contrib/test_django.py
@@ -154,7 +154,7 @@ class DjangoMiddlewareIntegrationTestCase(SimpleTestCase):
)
def test_e... | Update honeybadger/tests/contrib/test_django.py | py |
diff --git a/schedule/models/events.py b/schedule/models/events.py
index <HASH>..<HASH> 100644
--- a/schedule/models/events.py
+++ b/schedule/models/events.py
@@ -59,12 +59,6 @@ class Event(models.Model):
def get_absolute_url(self):
return reverse('event', args=[self.id])
- def create_relation(self, ... | remove trivial methods, if you want to do this just do the query | py |
diff --git a/importer_invenio/indico_importer_invenio/plugin.py b/importer_invenio/indico_importer_invenio/plugin.py
index <HASH>..<HASH> 100644
--- a/importer_invenio/indico_importer_invenio/plugin.py
+++ b/importer_invenio/indico_importer_invenio/plugin.py
@@ -16,17 +16,17 @@
from __future__ import unicode_literal... | Adapt to multiple importer engines per plugin | py |
diff --git a/airflow/utils/db.py b/airflow/utils/db.py
index <HASH>..<HASH> 100644
--- a/airflow/utils/db.py
+++ b/airflow/utils/db.py
@@ -361,7 +361,8 @@ def resetdb():
# We need to add this model manually to get reset working well
# noinspection PyUnresolvedReferences
from airflow.models.serialized_dag... | [AIRFLOW-<I>] BaseJob table was not deleted on db reset (#<I>) | py |
diff --git a/tests/test_trac.py b/tests/test_trac.py
index <HASH>..<HASH> 100644
--- a/tests/test_trac.py
+++ b/tests/test_trac.py
@@ -38,6 +38,7 @@ class TestTracIssue(AbstractServiceTest, ServiceTest):
'summary': 'Some Summary',
'number': 204,
'priority': 'critical',
+ 'component': '... | Update Trac tests to include component UDA | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -65,6 +65,7 @@ setuptools.setup(
'channels_redis~=2.3',
'async-timeout~=2.0',
'plumbum~=1.6.6',
+ 'resolwe-runtime-utils>=1.2.0',
],
extras_require={
'docs': ['sphinx_rtd_th... | Add resolwe-runtime-utils to list of required packages | py |
diff --git a/mautrix/__init__.py b/mautrix/__init__.py
index <HASH>..<HASH> 100644
--- a/mautrix/__init__.py
+++ b/mautrix/__init__.py
@@ -1,3 +1,3 @@
-__version__ = "0.4.0.dev70"
+__version__ = "0.4.0.dev71"
__author__ = "Tulir Asokan <tulir@maunium.net>"
__all__ = ["api", "appservice", "bridge", "client", "errors",... | New pypi dev build | py |
diff --git a/pmagpy_tests/test_ipmag.py b/pmagpy_tests/test_ipmag.py
index <HASH>..<HASH> 100644
--- a/pmagpy_tests/test_ipmag.py
+++ b/pmagpy_tests/test_ipmag.py
@@ -213,7 +213,10 @@ class TestCombineMagic(unittest.TestCase):
res = ipmag.combine_magic(flist, 'custom.out', data_model=3)
print('MIDDLE ... | add more debugging for combine magic windows tests | py |
diff --git a/api/src/opentrons/hardware_control/__init__.py b/api/src/opentrons/hardware_control/__init__.py
index <HASH>..<HASH> 100644
--- a/api/src/opentrons/hardware_control/__init__.py
+++ b/api/src/opentrons/hardware_control/__init__.py
@@ -543,8 +543,8 @@ class API(HardwareAPILike):
for smoothie... | fix(api): Ensure position is fully updated after a home (#<I>) | py |
diff --git a/sammy/__init__.py b/sammy/__init__.py
index <HASH>..<HASH> 100644
--- a/sammy/__init__.py
+++ b/sammy/__init__.py
@@ -335,9 +335,10 @@ class DynamoDBTable(Resource):
TableName = CharForeignProperty(SAMSchema, required=True)
GlobalSecondaryIndexes = ListProperty()
KeySchema = ListProperty(req... | added BillingMode to DynamoDB spec | py |
diff --git a/graphenecommon/transactionbuilder.py b/graphenecommon/transactionbuilder.py
index <HASH>..<HASH> 100644
--- a/graphenecommon/transactionbuilder.py
+++ b/graphenecommon/transactionbuilder.py
@@ -1,6 +1,7 @@
# -*- coding: utf-8 -*-
import struct
import logging
+from datetime import datetime, timedelta
fr... | Expire TaPoS cache after one day, fix #<I> | py |
diff --git a/cartoframes/viz/source.py b/cartoframes/viz/source.py
index <HASH>..<HASH> 100644
--- a/cartoframes/viz/source.py
+++ b/cartoframes/viz/source.py
@@ -79,14 +79,17 @@ class Source:
raise ValueError('Wrong source input. Valid values are str and DataFrame.')
def get_credentials(self):
- ... | Return Credentials only for Query Sources | py |
diff --git a/angr/sim_type.py b/angr/sim_type.py
index <HASH>..<HASH> 100644
--- a/angr/sim_type.py
+++ b/angr/sim_type.py
@@ -861,7 +861,8 @@ class SimUnion(SimType):
def __init__(self, members, name=None, label=None):
"""
- :param members: The members of the struct, as a mapping name -> typ... | Fix SimUnion __init__ docstring and __repr__ definition (it includes union name in its representation) | py |
diff --git a/penaltymodel_maxgap/tests/test_interface.py b/penaltymodel_maxgap/tests/test_interface.py
index <HASH>..<HASH> 100644
--- a/penaltymodel_maxgap/tests/test_interface.py
+++ b/penaltymodel_maxgap/tests/test_interface.py
@@ -56,12 +56,3 @@ class TestInterface(unittest.TestCase):
else:
... | Remove test that checks the non-zero feasible state filter Since MaxGap now supports non-zero feasible states, we no longer need to filter out non-zero feasible state problems. Since the filter has been removed, this test is no longer valid. | py |
diff --git a/test/sqlalchemy/test_suite.py b/test/sqlalchemy/test_suite.py
index <HASH>..<HASH> 100644
--- a/test/sqlalchemy/test_suite.py
+++ b/test/sqlalchemy/test_suite.py
@@ -1,14 +1 @@
from sqlalchemy.testing.suite import * # noqa
-
-from sqlalchemy.testing.suite import RowFetchTest as _RowFetchTest
-
-
-# This ... | Re-enable a test we now pass | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -1,6 +1,11 @@
#!/usr/bin/env python
from distutils.core import setup
+for cmd in ('egg_info', 'develop'):
+ import sys
+ if cmd in sys.argv:
+ from setuptools import setup
+
version='1.2.2'
setup( | allow to run egg_info & develop command | py |
diff --git a/controller/api/tests/test_limits.py b/controller/api/tests/test_limits.py
index <HASH>..<HASH> 100644
--- a/controller/api/tests/test_limits.py
+++ b/controller/api/tests/test_limits.py
@@ -1,14 +1,14 @@
import unittest
-import re
-
-MEMLIMIT = re.compile(r'^(?P<mem>[0-9]+(MB|KB|GB|[BKMG]))$', re.IGNORE... | ref(controller/tests): import regex to be tested, don't copy it | py |
diff --git a/pychromecast/__init__.py b/pychromecast/__init__.py
index <HASH>..<HASH> 100644
--- a/pychromecast/__init__.py
+++ b/pychromecast/__init__.py
@@ -62,7 +62,7 @@ def get_chromecasts(**filters):
for key, val in filters.items():
for chromecast in cc_list:
- for tup in [chromecast.dev... | Detecting chromecasts while using filters was broken | py |
diff --git a/nameko/containers.py b/nameko/containers.py
index <HASH>..<HASH> 100644
--- a/nameko/containers.py
+++ b/nameko/containers.py
@@ -457,7 +457,7 @@ class ServiceContainer(object):
if num_workers:
_log.warning('killing %s active workers(s)', num_workers)
- for worker_ctx, gt... | wrap kill iterations in a list just in case we yield | py |
diff --git a/werkzeug/urls.py b/werkzeug/urls.py
index <HASH>..<HASH> 100644
--- a/werkzeug/urls.py
+++ b/werkzeug/urls.py
@@ -342,7 +342,7 @@ def url_fix(s, charset='utf-8'):
s = s.encode(charset, 'replace')
scheme, netloc, path, qs, anchor = urlsplit(s)
path = url_quote(path, safe='/%')
- qs = u... | Fix path instead of qs quoting in url_fix | py |
diff --git a/test/integration/rget.py b/test/integration/rget.py
index <HASH>..<HASH> 100755
--- a/test/integration/rget.py
+++ b/test/integration/rget.py
@@ -18,7 +18,7 @@ def gen_value(prefix, num):
return prefix + value_padding + str(num).zfill(6)
-value_line = line("^VALUE\s+([^\s]+)\s+(\d+)\s+(\d+)\r\... | Fix rget test (Python readline reads more than expected on Python <I>) | py |
diff --git a/trashcli/put.py b/trashcli/put.py
index <HASH>..<HASH> 100644
--- a/trashcli/put.py
+++ b/trashcli/put.py
@@ -88,9 +88,9 @@ class TrashPutCmd:
help="ignored (for GNU rm compatibility)")
parser.add_option("-v", "--verbose", action="store_true",
... | Fixed python 3 incompatibility in patching OptionParser | py |
diff --git a/openquake/calculators/risk/scenario_damage/core.py b/openquake/calculators/risk/scenario_damage/core.py
index <HASH>..<HASH> 100644
--- a/openquake/calculators/risk/scenario_damage/core.py
+++ b/openquake/calculators/risk/scenario_damage/core.py
@@ -56,6 +56,9 @@ class ScenarioDamageRiskCalculator(general.... | Added check for continuous fragility model | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.