diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/trezorlib/client.py b/trezorlib/client.py
index <HASH>..<HASH> 100644
--- a/trezorlib/client.py
+++ b/trezorlib/client.py
@@ -166,7 +166,7 @@ class TextUIMixin(object):
def callback_PinMatrixRequest(self, msg):
if msg.type == 1:
- desc = 'old PIN'
+ desc = 'current PIN... | old PIN -> current PIN | py |
diff --git a/URLFinder.py b/URLFinder.py
index <HASH>..<HASH> 100644
--- a/URLFinder.py
+++ b/URLFinder.py
@@ -26,7 +26,7 @@ class URLFinder:
self.tlds = sorted(tmp_idna_tlds.union(tmp_tlds), key=len, reverse=True)
# escaped = [re.escape(tld) for tld in self.tlds]
self.tlds_re = re.compile('|... | Added < and > as stop chars | py |
diff --git a/aiodocker/__init__.py b/aiodocker/__init__.py
index <HASH>..<HASH> 100644
--- a/aiodocker/__init__.py
+++ b/aiodocker/__init__.py
@@ -1,7 +1,7 @@
from .docker import Docker
-__version__ = '0.8.5'
+__version__ = '0.8.5a0'
__all__ = ("Docker", ) | Bump to <I>a0 (#<I>) | py |
diff --git a/meshio/medit/_medit.py b/meshio/medit/_medit.py
index <HASH>..<HASH> 100644
--- a/meshio/medit/_medit.py
+++ b/meshio/medit/_medit.py
@@ -4,6 +4,7 @@ Latest official up-to-date documentation and a reference C implementation at
<https://github.com/LoicMarechal/libMeshb>
"""
import logging
+import struct
... | Fix endian-ness issue in Medit reader | py |
diff --git a/src/dolo/misc/calculus.py b/src/dolo/misc/calculus.py
index <HASH>..<HASH> 100644
--- a/src/dolo/misc/calculus.py
+++ b/src/dolo/misc/calculus.py
@@ -53,6 +53,24 @@ def solve_triangular_system(sdict,return_order=False,unknown_type=sympy.Symbol):
res[s] = lambda_sub(res[s],res)
return ... | Test new simple triangular solver. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -15,9 +15,12 @@ EMAIL = 'jan@malcakov.cz'
AUTHOR = 'Jan Malčák'
# What packages are required for this module to be executed?
-REQUIRED = [
- "pypiwin32"
-]
+if os.environ.get('READTHEDOCS') != 'True':
+ REQUIRED = [
... | Disable requirements for RTD Remove pypiwin<I> from required packages when building on ReadTheDocs. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -1,8 +1,7 @@
from setuptools import setup
requires = {
- "core": ["blessings; sys_platform != 'win32'",
- "six"],
+ "core": ["blessings; sys_platform != 'win32'"],
"tests": ["pytest", "pytest-timeout... | setup.py: Remove py2-related bits | py |
diff --git a/app/resonant-laboratory/server/querylang.py b/app/resonant-laboratory/server/querylang.py
index <HASH>..<HASH> 100644
--- a/app/resonant-laboratory/server/querylang.py
+++ b/app/resonant-laboratory/server/querylang.py
@@ -27,7 +27,7 @@ def astToFunction(ast):
return lambda row: f0(row) and f1(ro... | Fix error in AST handling: not expressions take a single operand (rather than a list) | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -14,10 +14,15 @@ def find_version():
raise RuntimeError("Unable to find version string.")
+with open('README.rst') as f:
+ long_description = f.read()
+
+
setup(
name='auth0-python',
version=find... | Use README.rst as long_description on PyPI | py |
diff --git a/common/vr/common/paths.py b/common/vr/common/paths.py
index <HASH>..<HASH> 100644
--- a/common/vr/common/paths.py
+++ b/common/vr/common/paths.py
@@ -29,19 +29,24 @@ def get_proc_path(settings):
return os.path.join(PROCS_ROOT, get_container_name(settings))
-def get_build_path(settings):
+def get_a... | each proc gets its own copy of the build | py |
diff --git a/shutit_global.py b/shutit_global.py
index <HASH>..<HASH> 100644
--- a/shutit_global.py
+++ b/shutit_global.py
@@ -413,7 +413,7 @@ class ShutIt(object):
self.cfg['expect_prompts'][prompt_name] = '\r\n' + local_prompt
self.send_and_expect(
("SHUTIT_BACKUP_PS1_%s=$PS1 &&" +
- "export SHUTIT_PROMPT... | Fairly sure this is a bug | py |
diff --git a/alarmdecoder/decoder.py b/alarmdecoder/decoder.py
index <HASH>..<HASH> 100644
--- a/alarmdecoder/decoder.py
+++ b/alarmdecoder/decoder.py
@@ -90,9 +90,9 @@ class AlarmDecoder(object):
#Version Information
serial_number = 0xFFFFFFFF
"""The device serial number"""
- version_number = '2.2a.8... | Blank defaults for version so we don't report bad stuff | py |
diff --git a/pyxmpp/utils.py b/pyxmpp/utils.py
index <HASH>..<HASH> 100644
--- a/pyxmpp/utils.py
+++ b/pyxmpp/utils.py
@@ -19,6 +19,7 @@
from types import UnicodeType,StringType
import re
+import libxml2
def to_utf8(s):
""" | - missing 'import libxml2' added | py |
diff --git a/tests.py b/tests.py
index <HASH>..<HASH> 100644
--- a/tests.py
+++ b/tests.py
@@ -253,7 +253,7 @@ class TestBehaviors(unittest.TestCase):
)
self.assertEqual(
str(parseRDate(textLineToContentLine("RDATE;VALUE=PERIOD:19960403T020000Z/19960403T040000Z,19960404T010000Z/PT3H")))... | repr changed for datetime.timedelta in python <I> Update the expected string to deal with both old and new repr for datetime.timedelta. see <URL> | py |
diff --git a/MAVProxy/modules/mavproxy_graph.py b/MAVProxy/modules/mavproxy_graph.py
index <HASH>..<HASH> 100644
--- a/MAVProxy/modules/mavproxy_graph.py
+++ b/MAVProxy/modules/mavproxy_graph.py
@@ -137,10 +137,13 @@ class Graph():
mtype = msg.get_type()
if mtype not in self.msg_types:
re... | graph: fixed live graph of expressions with conditions this means we can live graph PID_TUNING with multiple axes | py |
diff --git a/starbound/btreedb4.py b/starbound/btreedb4.py
index <HASH>..<HASH> 100644
--- a/starbound/btreedb4.py
+++ b/starbound/btreedb4.py
@@ -78,6 +78,7 @@ class FileBTreeDB4(sbbf02.FileSBBF02):
# The number of keys is read on-demand because only leaves pointed to
# by an index contain this numbe... | Abort when encountering corrupted key counts | py |
diff --git a/tocncx.py b/tocncx.py
index <HASH>..<HASH> 100644
--- a/tocncx.py
+++ b/tocncx.py
@@ -215,7 +215,12 @@ those conforming to the relaxed constraints of OPS 2.0'''))
if not self.collection_mode:
article = self.articles[0]
front = article.front
- authortext = front... | slight bug adjustment for articles with no authors... | py |
diff --git a/vlcp/service/connection/redisdb.py b/vlcp/service/connection/redisdb.py
index <HASH>..<HASH> 100644
--- a/vlcp/service/connection/redisdb.py
+++ b/vlcp/service/connection/redisdb.py
@@ -63,13 +63,16 @@ class RedisDB(TcpServerBase):
self._decode = _decode
else:
def _encode... | first decode to str in Python 3.x | py |
diff --git a/MAVProxy/mavproxy.py b/MAVProxy/mavproxy.py
index <HASH>..<HASH> 100644
--- a/MAVProxy/mavproxy.py
+++ b/MAVProxy/mavproxy.py
@@ -581,11 +581,12 @@ def log_writer():
'''log writing thread'''
while True:
mpstate.logfile_raw.write(mpstate.logqueue_raw.get())
- while not mpstate.logq... | flush logs at least every <I> seconds | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -69,5 +69,4 @@ setup(name="cereslib",
'pandas>=0.19.2',
'scipy'
],
- scripts=[],
zip_safe=False) | [setup] Remove scripts param This code removes the scripts param, which is not needed in cereslib. | py |
diff --git a/werkzeug/http.py b/werkzeug/http.py
index <HASH>..<HASH> 100644
--- a/werkzeug/http.py
+++ b/werkzeug/http.py
@@ -91,6 +91,8 @@ def quote_header_value(value, extra_chars='', allow_token=True):
:param allow_token: if this is enabled token values are returned
unchanged.
"""... | ensure cookie dumping works on py3 | py |
diff --git a/winrm/transport.py b/winrm/transport.py
index <HASH>..<HASH> 100644
--- a/winrm/transport.py
+++ b/winrm/transport.py
@@ -282,6 +282,7 @@ class Transport(object):
if not self.session:
return
self.session.close()
+ self.session = None
def send_message(self, messa... | Need to clear out the session on close. | py |
diff --git a/pyup/config.py b/pyup/config.py
index <HASH>..<HASH> 100644
--- a/pyup/config.py
+++ b/pyup/config.py
@@ -10,7 +10,7 @@ import re
SCHEDULE_REGEX = re.compile(
# has to begin with every
- "^every "
+ r"^every "
# followed by day/month
"((day|month)$"
# or week/two weeks | Added "r" flag before the regex string | py |
diff --git a/pew/pew.py b/pew/pew.py
index <HASH>..<HASH> 100644
--- a/pew/pew.py
+++ b/pew/pew.py
@@ -185,7 +185,7 @@ def _detect_shell():
if 'CMDER_ROOT' in os.environ:
shell = 'Cmder'
elif windows:
- shell = psutil.Process(os.getppid()).parent().name()
+ shell = p... | Python 2.x compat for Windows shell detection Python 2.x on Windows does not have os.getppid(), use os.getpid() and psutil instead. | py |
diff --git a/gwpy/segments/flag.py b/gwpy/segments/flag.py
index <HASH>..<HASH> 100644
--- a/gwpy/segments/flag.py
+++ b/gwpy/segments/flag.py
@@ -730,6 +730,7 @@ class DataQualityFlag(object):
a view of this flag, not a copy.
"""
self.known = self.known.coalesce()
+ self.active = ... | DataQualityFlag.coalesce: coalesce each list before & | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -21,6 +21,8 @@ setup(name='delocate',
packages=['delocate', 'delocate.tests'],
package_data = {'delocate.tests':
[pjoin('data', '*.dylib'),
+ pjoin('data', 'liba.a'),
... | BF: add static archive and object file to setup.py | py |
diff --git a/ctypeslib/codegen/clangparser.py b/ctypeslib/codegen/clangparser.py
index <HASH>..<HASH> 100644
--- a/ctypeslib/codegen/clangparser.py
+++ b/ctypeslib/codegen/clangparser.py
@@ -177,8 +177,9 @@ class Clang_Parser(object):
if name in self.all:
log.debug('register: %s already existed: %... | On duplicate definition, return definition instead of raising exception | py |
diff --git a/services/managers/fleetup_manager.py b/services/managers/fleetup_manager.py
index <HASH>..<HASH> 100644
--- a/services/managers/fleetup_manager.py
+++ b/services/managers/fleetup_manager.py
@@ -132,6 +132,8 @@ class FleetUpManager():
logger.warn("Can't connect to Fleet-Up API, is it offline?!"... | catch IndexError when getting fitting doctrine # addresses #<I> | py |
diff --git a/ptpython/entry_points/run_ptpython.py b/ptpython/entry_points/run_ptpython.py
index <HASH>..<HASH> 100644
--- a/ptpython/entry_points/run_ptpython.py
+++ b/ptpython/entry_points/run_ptpython.py
@@ -64,9 +64,11 @@ def run():
if os.path.exists(path):
run_config(repl, path)
+ ... | Use __main__.__dict__ for locals when running from command line Fixes issues #<I> and #<I> | py |
diff --git a/tpot/operators/preprocessors/feat_agg.py b/tpot/operators/preprocessors/feat_agg.py
index <HASH>..<HASH> 100644
--- a/tpot/operators/preprocessors/feat_agg.py
+++ b/tpot/operators/preprocessors/feat_agg.py
@@ -49,7 +49,7 @@ class TPOTFeatureAgglomeration(Preprocessor):
linkage_types = ['ward', 'co... | remove cosine affinity type from FeatureAgglomeration to avoid memory overflow | py |
diff --git a/hack/boilerplate/boilerplate.py b/hack/boilerplate/boilerplate.py
index <HASH>..<HASH> 100755
--- a/hack/boilerplate/boilerplate.py
+++ b/hack/boilerplate/boilerplate.py
@@ -95,7 +95,7 @@ def file_passes(filename, refs, regexs):
def file_extension(filename):
return os.path.splitext(filename)[1].split... | hack: ignore cluster/env.sh in boilerplate check This is used for user configuration overrides in cluster/. We should not enforce the boilerplate headers in this file. | py |
diff --git a/ryu/lib/ofctl_v1_3.py b/ryu/lib/ofctl_v1_3.py
index <HASH>..<HASH> 100644
--- a/ryu/lib/ofctl_v1_3.py
+++ b/ryu/lib/ofctl_v1_3.py
@@ -173,7 +173,7 @@ def action_to_str(act):
elif action_type == ofproto_v1_3.OFPAT_SET_QUEUE:
buf = 'SET_QUEUE:' + str(act.queue_id)
elif action_type == ofpro... | ofctl_v1_3: let action group can be converted to string | py |
diff --git a/ldapcherry/backend/__init__.py b/ldapcherry/backend/__init__.py
index <HASH>..<HASH> 100644
--- a/ldapcherry/backend/__init__.py
+++ b/ldapcherry/backend/__init__.py
@@ -8,7 +8,7 @@
from ldapcherry.exceptions import MissingParameter
-class Backend:
+class Backend(object):
def __init__(self, con... | making Backend skeleton a child class of object this enables the use of super() | py |
diff --git a/test_isort.py b/test_isort.py
index <HASH>..<HASH> 100644
--- a/test_isort.py
+++ b/test_isort.py
@@ -249,6 +249,33 @@ def test_output_modes():
" lib22\n"
")\n")
+ comment_output_vertical_indent = SortImports(fi... | Add test for vertical indent style with comment | py |
diff --git a/salt/modules/file.py b/salt/modules/file.py
index <HASH>..<HASH> 100644
--- a/salt/modules/file.py
+++ b/salt/modules/file.py
@@ -2111,7 +2111,7 @@ def replace(path,
if prepend_if_not_found or append_if_not_found:
# Search for content, to avoid pre/appending the
... | Search for (but do not include) CRLF line ending When searching for a line in a file that has CRLF line endings, the normal $ regex will not match a line. With this change, we will match on but not include LF, CRLF, and the end of a file. | py |
diff --git a/toot/api.py b/toot/api.py
index <HASH>..<HASH> 100644
--- a/toot/api.py
+++ b/toot/api.py
@@ -55,7 +55,7 @@ def login(app, username, password):
if response.is_redirect:
raise AuthenticationError()
- return http.process_response(response).json()
+ return response.json()
def get_br... | Remove double process_response function call since it's called in anon_post already | py |
diff --git a/ot/lp/__init__.py b/ot/lp/__init__.py
index <HASH>..<HASH> 100644
--- a/ot/lp/__init__.py
+++ b/ot/lp/__init__.py
@@ -18,6 +18,8 @@ from .emd_wrap import emd_c, check_result
from ..utils import parmap
from .cvx import barycenter
+__all__=['emd', 'emd2', 'barycenter', 'cvx']
+
def emd(a, b, M, numIte... | proper definition of all dor lp | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -7,7 +7,7 @@ setup(name='googleanalytics',
author_email='stijn@debrouwere.org',
#url='http://stdbrouw.github.com/python-google-analytics/',
download_url='http://www.github.com/debrouwere/google-analytics/tarball... | Rough pinning of dependencies. | py |
diff --git a/ffmpeg_normalize/_cmd_utils.py b/ffmpeg_normalize/_cmd_utils.py
index <HASH>..<HASH> 100644
--- a/ffmpeg_normalize/_cmd_utils.py
+++ b/ffmpeg_normalize/_cmd_utils.py
@@ -36,7 +36,7 @@ def which(program):
path = os.path.expandvars(os.path.expanduser(path)).strip('"')
exe_file = os.... | do not check for file existence, fixes #<I> | py |
diff --git a/km3pipe/testing/__init__.py b/km3pipe/testing/__init__.py
index <HASH>..<HASH> 100644
--- a/km3pipe/testing/__init__.py
+++ b/km3pipe/testing/__init__.py
@@ -19,4 +19,7 @@ except ImportError:
except ImportError:
from io import StringIO
-from mock import MagicMock
+try:
+ from mock import... | Adds magic mock support for Python3 | py |
diff --git a/quotequail/_html.py b/quotequail/_html.py
index <HASH>..<HASH> 100644
--- a/quotequail/_html.py
+++ b/quotequail/_html.py
@@ -395,7 +395,7 @@ def tree_line_generator(el, max_lines=None):
def indented_tree_line_generator(el, max_lines=None):
- """
+ r"""
Like tree_line_generator, but yields ... | D<I> use r""" if there's any backslashes in the docstring | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -13,6 +13,10 @@ import copy
import sys
import runpy
+if "travis_deploy" in sys.argv:
+ from build_package import travis_build_package
+ sys.exit(travis_build_package())
+
root_folder = os.path.abspath(os.path.dirnam... | Change Travis deploy order (#<I>) | py |
diff --git a/poyo/parser.py b/poyo/parser.py
index <HASH>..<HASH> 100644
--- a/poyo/parser.py
+++ b/poyo/parser.py
@@ -65,7 +65,9 @@ class _Parser(object):
continue
if match.group() != string:
- raise ValueError
+ # Unable to match the full string, try the n... | Skip over partial matches rather than raising an error | py |
diff --git a/great_expectations/data_context/data_context.py b/great_expectations/data_context/data_context.py
index <HASH>..<HASH> 100644
--- a/great_expectations/data_context/data_context.py
+++ b/great_expectations/data_context/data_context.py
@@ -1522,7 +1522,7 @@ class DataContext(BaseDataContext):
# If t... | Compare anonymized_usage_statistics attributes instead of objects | py |
diff --git a/rootpy/fit/histfactory/histfactory.py b/rootpy/fit/histfactory/histfactory.py
index <HASH>..<HASH> 100644
--- a/rootpy/fit/histfactory/histfactory.py
+++ b/rootpy/fit/histfactory/histfactory.py
@@ -125,7 +125,6 @@ class Sample(_SampleBase, QROOT.RooStats.HistFactory.Sample):
super(Sample, self).__... | transfer NormalizeByTheory setting when summing histfactory samples | py |
diff --git a/MambuPy/rest/mambutransaction.py b/MambuPy/rest/mambutransaction.py
index <HASH>..<HASH> 100644
--- a/MambuPy/rest/mambutransaction.py
+++ b/MambuPy/rest/mambutransaction.py
@@ -62,7 +62,6 @@ class MambuTransactions(MambuStruct):
MambuError.
"""
def __init__(self, urlfunc=mod_urlfunc, entid=... | TYPO in MambuTransactions | py |
diff --git a/spyder/utils/ipython/spyder_kernel.py b/spyder/utils/ipython/spyder_kernel.py
index <HASH>..<HASH> 100644
--- a/spyder/utils/ipython/spyder_kernel.py
+++ b/spyder/utils/ipython/spyder_kernel.py
@@ -238,15 +238,20 @@ class SpyderKernel(IPythonKernel):
if valid:
return getsource(obj)
... | IPython console: Add action to show environment variables | py |
diff --git a/salt/__init__.py b/salt/__init__.py
index <HASH>..<HASH> 100755
--- a/salt/__init__.py
+++ b/salt/__init__.py
@@ -150,11 +150,11 @@ class Minion(object):
# Late import so logging works correctly
import salt.minion
- minion = salt.minion.Minion(self.opts)
if self.cli['dae... | Move minion daemonization before initial authentication so init scripts don't hang | py |
diff --git a/j/AK.py b/j/AK.py
index <HASH>..<HASH> 100755
--- a/j/AK.py
+++ b/j/AK.py
@@ -24,13 +24,8 @@ if options.debug or options.video:
# if running as module
if options.route is None:
app_mode = "module"
- # check if is symlink return the path of the file importing the module
- file = os.getcwd() + "... | revert symlink patch | py |
diff --git a/src/sos/__main__.py b/src/sos/__main__.py
index <HASH>..<HASH> 100755
--- a/src/sos/__main__.py
+++ b/src/sos/__main__.py
@@ -1055,11 +1055,13 @@ def cmd_status(args, workflow_args):
list_queues(cfg, args.verbosity)
return
if not args.queue:
- check_tasks(args.... | Fix how sos status calls task engines to query status | py |
diff --git a/openquake/baselib/parallel.py b/openquake/baselib/parallel.py
index <HASH>..<HASH> 100644
--- a/openquake/baselib/parallel.py
+++ b/openquake/baselib/parallel.py
@@ -773,11 +773,7 @@ class Starmap(object):
if queue:
func, *args = queue.pop()
self.s... | Enforced the num_cores limitation Former-commit-id: 5b<I>a<I>bd<I>fc<I>a<I>a0c3b | py |
diff --git a/tests/test_modules/test_pmac/test_alternatingdelayaftermutator.py b/tests/test_modules/test_pmac/test_alternatingdelayaftermutator.py
index <HASH>..<HASH> 100644
--- a/tests/test_modules/test_pmac/test_alternatingdelayaftermutator.py
+++ b/tests/test_modules/test_pmac/test_alternatingdelayaftermutator.py
@... | AlternatingDelayAfterMutator: add test with NumPy indices | py |
diff --git a/salt/modules/solarispkg.py b/salt/modules/solarispkg.py
index <HASH>..<HASH> 100644
--- a/salt/modules/solarispkg.py
+++ b/salt/modules/solarispkg.py
@@ -243,6 +243,8 @@ def install(name=None, refresh=False, sources=None, **kwargs):
temp_cmd = cmd + '-d {0} "all"'.format(pkg)
# Install th... | Add logging of stderr output on install command | py |
diff --git a/volapi/volapi.py b/volapi/volapi.py
index <HASH>..<HASH> 100644
--- a/volapi/volapi.py
+++ b/volapi/volapi.py
@@ -232,9 +232,12 @@ class Connection(requests.Session):
"""Gets the main checksums"""
try:
- text = self.get(
- "https://static.volafile.io/static/js/... | Reuse checksum (for now) | py |
diff --git a/pandas/core/internals/array_manager.py b/pandas/core/internals/array_manager.py
index <HASH>..<HASH> 100644
--- a/pandas/core/internals/array_manager.py
+++ b/pandas/core/internals/array_manager.py
@@ -786,12 +786,10 @@ class ArrayManager(DataManager):
arrays = self.arrays[slobj]
ne... | INT: Use Index._getitem_slice in ArrayManager (#<I>) | py |
diff --git a/tests/make_randoms.py b/tests/make_randoms.py
index <HASH>..<HASH> 100644
--- a/tests/make_randoms.py
+++ b/tests/make_randoms.py
@@ -1,3 +1,5 @@
+# -*- coding: utf-8 -*-
+
# Copyright (c) 2013-2016, Freja Nordsiek
# All rights reserved.
#
@@ -93,9 +95,9 @@ def random_str_some_unicode(length):
# le... | Changed random non-ascii character generation in the tests to pull from the greek characters to make failed test output easier to decipher. | py |
diff --git a/ndlib/models/epidemics/IndependentCascadesModel.py b/ndlib/models/epidemics/IndependentCascadesModel.py
index <HASH>..<HASH> 100644
--- a/ndlib/models/epidemics/IndependentCascadesModel.py
+++ b/ndlib/models/epidemics/IndependentCascadesModel.py
@@ -1,6 +1,7 @@
from ..DiffusionModel import DiffusionModel
... | :bug: Independent Cascade undirected graphs bugfix | py |
diff --git a/symbols/argument.py b/symbols/argument.py
index <HASH>..<HASH> 100644
--- a/symbols/argument.py
+++ b/symbols/argument.py
@@ -14,7 +14,8 @@ from symbol_ import Symbol
from typecast import SymbolTYPECAST
from var import SymbolVAR
from api.config import OPTIONS
-
+from type_ import Type
+import api.global... | An argument by value (not byref) needs to remove it?s ?$? prefix (for dynamic types). | py |
diff --git a/aioworkers/cli.py b/aioworkers/cli.py
index <HASH>..<HASH> 100644
--- a/aioworkers/cli.py
+++ b/aioworkers/cli.py
@@ -66,6 +66,7 @@ def main(*config_files, args=None, config_dirs=(),
context.config.search_dirs.extend(config_dirs)
plugins = plugin.search_plugins()
+ plugins.extend(plugin.sear... | Force search plugins from cli.main param | py |
diff --git a/pylint/reporters/text.py b/pylint/reporters/text.py
index <HASH>..<HASH> 100644
--- a/pylint/reporters/text.py
+++ b/pylint/reporters/text.py
@@ -191,9 +191,7 @@ class ColorizedTextReporter(TextReporter):
self.color_mapping = color_mapping or \
dict(ColorizedTextRepor... | Simplify the code to not use assertion and exceptions. | py |
diff --git a/build/build.py b/build/build.py
index <HASH>..<HASH> 100755
--- a/build/build.py
+++ b/build/build.py
@@ -1201,7 +1201,7 @@ def runTests():
else:
args = "--ignore=html-its tests/messages.json"
className = "nu.validator.client.TestRunner"
- classPath = os.pathsep.join(dependencyJarPaths()
+ cla... | TestRunner classpath only needs runtime depends | py |
diff --git a/h11/state.py b/h11/state.py
index <HASH>..<HASH> 100644
--- a/h11/state.py
+++ b/h11/state.py
@@ -37,7 +37,9 @@ EVENT_TRIGGERED_TRANSITIONS = {
MUST_CLOSE: {
ConnectionClosed: CLOSED,
},
- CLOSED: {},
+ CLOSED: {
+ ConnectionClosed: CLOSED,
+ }... | Allow ConnectionClosed while in CLOSED | py |
diff --git a/tests/test_converter.py b/tests/test_converter.py
index <HASH>..<HASH> 100644
--- a/tests/test_converter.py
+++ b/tests/test_converter.py
@@ -46,11 +46,6 @@ class Test(unittest.TestCase):
assert len(tile['download_links']['aws_s3']) == 13
assert tile['tile_origin']['crs']['properties']['n... | don't compare with final meta on disk | py |
diff --git a/py/selenium/webdriver/common/actions/pointer_actions.py b/py/selenium/webdriver/common/actions/pointer_actions.py
index <HASH>..<HASH> 100644
--- a/py/selenium/webdriver/common/actions/pointer_actions.py
+++ b/py/selenium/webdriver/common/actions/pointer_actions.py
@@ -21,6 +21,7 @@ from .mouse_button impo... | Added EventFiringWebElement to the isinstance check in the move_to method. The isinstance check will now look for WebElement or EventFiringWebElement. This will fix cases where the move_to() method in ActionChains will throw AttributeErrors when using EventFiringWebDriver. Fixes #<I> | py |
diff --git a/tests/test_mturk.py b/tests/test_mturk.py
index <HASH>..<HASH> 100644
--- a/tests/test_mturk.py
+++ b/tests/test_mturk.py
@@ -364,6 +364,7 @@ def sns_iso(sns):
@pytest.mark.mturk
@pytest.mark.usefixtures("check_mturkfull")
class TestSNSService(object):
+ @pytest.mark.skip(reason="Requires a valid not... | AWS SNS service now actually verifies/validates the endpoint URL you provide, so skip that test | py |
diff --git a/molecule/validators.py b/molecule/validators.py
index <HASH>..<HASH> 100644
--- a/molecule/validators.py
+++ b/molecule/validators.py
@@ -64,8 +64,8 @@ def check_trailing_cruft(ignore_paths=[]):
continue
data = [line for line in open(filename, 'r')]
- newline = trailing_newli... | cleanup, flake8, yapf | py |
diff --git a/salt/renderers/pyobjects.py b/salt/renderers/pyobjects.py
index <HASH>..<HASH> 100644
--- a/salt/renderers/pyobjects.py
+++ b/salt/renderers/pyobjects.py
@@ -112,7 +112,7 @@ import logging
from salt.loader import states
from salt.utils.pyobjects import StateFactory, StateRegistry
-log = logging.getLogg... | Switch to __name__ when getting the logger | py |
diff --git a/bigchaindb/core.py b/bigchaindb/core.py
index <HASH>..<HASH> 100644
--- a/bigchaindb/core.py
+++ b/bigchaindb/core.py
@@ -501,7 +501,7 @@ class Bigchain(object):
if blocks_count:
raise GenesisBlockAlreadyExistsError('Cannot create the Genesis block')
- payload = {'message': '... | Bigchain -> BigchainDB in only one place and not other places. | py |
diff --git a/jss/upload.py b/jss/upload.py
index <HASH>..<HASH> 100644
--- a/jss/upload.py
+++ b/jss/upload.py
@@ -49,6 +49,21 @@ class FileUploader(object):
for repo in repos:
self.repos.append(repo)
+ def copy(self, filename):
+ """Copy file to all repos, guessing file type and desti... | Add in copy method for automatically handling destination. | py |
diff --git a/notifications_python_client/authentication.py b/notifications_python_client/authentication.py
index <HASH>..<HASH> 100644
--- a/notifications_python_client/authentication.py
+++ b/notifications_python_client/authentication.py
@@ -132,8 +132,8 @@ def decode_jwt_token(token, secret, request_method, request_p... | removed time check due to ntp drift. To be addressed | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -9,9 +9,11 @@ setup(
name='django-useraudit',
version='1.0.0',
description='Django user audit utilities like logging user log in, disabling access when password expires or user is inactive',
+ long_descriptio... | Small updates to fields in setup.py | py |
diff --git a/thefuck/rules/git_flag_after_filename.py b/thefuck/rules/git_flag_after_filename.py
index <HASH>..<HASH> 100644
--- a/thefuck/rules/git_flag_after_filename.py
+++ b/thefuck/rules/git_flag_after_filename.py
@@ -14,7 +14,7 @@ def get_new_command(command):
command_parts = command.script_parts[:]
#... | git_flag_after_filename: Call match() instead of copying its body | py |
diff --git a/sharpy/client.py b/sharpy/client.py
index <HASH>..<HASH> 100644
--- a/sharpy/client.py
+++ b/sharpy/client.py
@@ -1,3 +1,4 @@
+import logging
from urllib import urlencode
from dateutil.tz import tzutc
@@ -5,6 +6,8 @@ import httplib2
from sharpy.exceptions import CheddarError, AccessDenied, BadReques... | Added some logging to the client calls. | py |
diff --git a/gwpy/frequencyseries/core.py b/gwpy/frequencyseries/core.py
index <HASH>..<HASH> 100644
--- a/gwpy/frequencyseries/core.py
+++ b/gwpy/frequencyseries/core.py
@@ -273,8 +273,8 @@ class FrequencySeries(Series):
# parse keyword args
inplace = kwargs.pop('inplace', False)
if kwargs:
... | FrequencySeries: pep8 changes [ci skip] | py |
diff --git a/test/python/basicaer/test_basicaer_qobj_headers.py b/test/python/basicaer/test_basicaer_qobj_headers.py
index <HASH>..<HASH> 100644
--- a/test/python/basicaer/test_basicaer_qobj_headers.py
+++ b/test/python/basicaer/test_basicaer_qobj_headers.py
@@ -14,6 +14,10 @@
"""Tests for all BasicAer simulators."... | cleaning the test_basicaer_qobj_headers output (#<I>) | py |
diff --git a/law/contrib/tasks/__init__.py b/law/contrib/tasks/__init__.py
index <HASH>..<HASH> 100644
--- a/law/contrib/tasks/__init__.py
+++ b/law/contrib/tasks/__init__.py
@@ -180,6 +180,7 @@ class ForestMerge(LocalWorkflow):
super(ForestMerge, self).__init__(*args, **kwargs)
self._n_leaves = Non... | Allow control over mearge forest caching in ForestMerge. | py |
diff --git a/testproject/testproject/test_settings.py b/testproject/testproject/test_settings.py
index <HASH>..<HASH> 100644
--- a/testproject/testproject/test_settings.py
+++ b/testproject/testproject/test_settings.py
@@ -7,5 +7,3 @@ DATABASES = {
'NAME': ':memory:',
}
}
-
-STORMPATH_APPLICATION = None ... | Removing unnecessary override. | py |
diff --git a/filer/management/commands/import_files.py b/filer/management/commands/import_files.py
index <HASH>..<HASH> 100644
--- a/filer/management/commands/import_files.py
+++ b/filer/management/commands/import_files.py
@@ -101,7 +101,7 @@ class FileImporter(object):
folder_names = [root_folder_name... | When import files open them in binary mode This will make `import_files` to work again on Python 3 | py |
diff --git a/general/strutil.py b/general/strutil.py
index <HASH>..<HASH> 100644
--- a/general/strutil.py
+++ b/general/strutil.py
@@ -7,12 +7,18 @@ Utility functions for string manipulation.
Created by Shane O'Connor 2014
"""
+
+def remove_trailing_line_whitespace(content):
+ return ('\n'.join([l.strip() for l ... | Adding a new function to normalize PDB files (used in the file abstraction layer for the DDG database). | py |
diff --git a/vminspect/usnjrnl.py b/vminspect/usnjrnl.py
index <HASH>..<HASH> 100644
--- a/vminspect/usnjrnl.py
+++ b/vminspect/usnjrnl.py
@@ -186,7 +186,10 @@ def unpack_flags(value, flags):
def remove_zeroes(journal):
- offset = re.search(b'[^\x00]', journal).start()
- offset -= (offset % 8)
+ try:
+ ... | Fix USNJrnl parser The file might end with long zero-filled strings. | py |
diff --git a/sklearn_porter/Porter.py b/sklearn_porter/Porter.py
index <HASH>..<HASH> 100644
--- a/sklearn_porter/Porter.py
+++ b/sklearn_porter/Porter.py
@@ -360,7 +360,7 @@ class Porter(object):
filename = Porter._get_filename(class_name, self.target_language)
target_file = os.path.join(tnp_dir, fil... | hotfix/integrity-score: Fix getter and filenames | py |
diff --git a/capidup/finddups.py b/capidup/finddups.py
index <HASH>..<HASH> 100644
--- a/capidup/finddups.py
+++ b/capidup/finddups.py
@@ -42,6 +42,7 @@ import os
import stat
import hashlib
import fnmatch
+import errno
from capidup import py3compat
@@ -144,6 +145,8 @@ def filter_visited(curr_dir, subdirs, alrea... | Consider directory loops as an error. | py |
diff --git a/backtrader/cerebro.py b/backtrader/cerebro.py
index <HASH>..<HASH> 100644
--- a/backtrader/cerebro.py
+++ b/backtrader/cerebro.py
@@ -729,6 +729,7 @@ class Cerebro(with_metaclass(MetaParams, object)):
self._dorunonce = False # something is saving memory, no runonce
self._dopreloa... | Last minute detection of filters that may implement replay like functionality | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -105,11 +105,14 @@ if not ISRELEASED:
# partial clone, manually construct version string
# this is the format before we started using git-describe
# to get an ordering on dev version stri... | Respect PEP <I> (#<I>) * Respect PEP <I> Change unreleased version numbers as to respect PEP <I>. Rather than `<I>-9-g<I>a1a<I>` we will have `<I>+dev9.g<I>a1a<I>`. This means automated setuptools requirements can be respected. Closes #<I>. * The fallback version string should also respect PEP <I> | py |
diff --git a/chempy/printing/js.py b/chempy/printing/js.py
index <HASH>..<HASH> 100644
--- a/chempy/printing/js.py
+++ b/chempy/printing/js.py
@@ -62,6 +62,7 @@ var chempy_tabs = document.querySelectorAll('table.chempy_%(rsys_id)d');
tab.ori_header = tab.getElementsByTagName('th')[0].innerHTML;
tab.ondblclick... | Enhanced Jupyter JavaScript for ReactionSystem | py |
diff --git a/scout/server/blueprints/variants/controllers.py b/scout/server/blueprints/variants/controllers.py
index <HASH>..<HASH> 100644
--- a/scout/server/blueprints/variants/controllers.py
+++ b/scout/server/blueprints/variants/controllers.py
@@ -857,17 +857,19 @@ def persistent_filter_actions(
filter_... | Dont reset current form on lock/unlock | py |
diff --git a/hydra_base/lib/network.py b/hydra_base/lib/network.py
index <HASH>..<HASH> 100644
--- a/hydra_base/lib/network.py
+++ b/hydra_base/lib/network.py
@@ -1587,7 +1587,7 @@ def update_network(network,
@required_perms("edit_network")
def move_network(network_id, target_project_id, **kwargs):
"""
- ... | Update hydra_base/lib/network.py | py |
diff --git a/core/block_token.py b/core/block_token.py
index <HASH>..<HASH> 100644
--- a/core/block_token.py
+++ b/core/block_token.py
@@ -106,6 +106,7 @@ class List(BlockToken):
nested = 0
yield ListItem(line)
else: yield ListItem(line)
+ if nested: yield List(line... | 🐛 fixed List: not recognizing trailing Lists | py |
diff --git a/test/test_motor_pool.py b/test/test_motor_pool.py
index <HASH>..<HASH> 100644
--- a/test/test_motor_pool.py
+++ b/test/test_motor_pool.py
@@ -212,10 +212,9 @@ class MotorPoolTest(MotorTest):
return True # Don't propagate
def get_socket():
- with stack_context.ExceptionSt... | Fix test_stack_context for Tornado 3 From Ben Darnell: "This error has to do with the relationship between the stack_context and the actual stack. If a coroutine is suspended during the "with" statement that establishes a stack context, then the exit half of the "with" will not be run until after the coroutine is res... | py |
diff --git a/doc/source/conf.py b/doc/source/conf.py
index <HASH>..<HASH> 100644
--- a/doc/source/conf.py
+++ b/doc/source/conf.py
@@ -243,7 +243,7 @@ intersphinx_mapping = {
'numpy': ('https://docs.scipy.org/doc/numpy', None),
'scipy': ('https://docs.scipy.org/doc/scipy/reference', None),
'xarray': ('ht... | Update dask intersphinx to point to new dask documentation | py |
diff --git a/tests/test_qtcpp_helper.py b/tests/test_qtcpp_helper.py
index <HASH>..<HASH> 100644
--- a/tests/test_qtcpp_helper.py
+++ b/tests/test_qtcpp_helper.py
@@ -125,7 +125,7 @@ def test_default_value():
# check for enum
prop = interface._propertyMap['status']
answer = qtcpp.Filters.defaultValue(pro... | Fixed test to test for correct Enum prefix | py |
diff --git a/lib/py/src/server/TServer.py b/lib/py/src/server/TServer.py
index <HASH>..<HASH> 100644
--- a/lib/py/src/server/TServer.py
+++ b/lib/py/src/server/TServer.py
@@ -57,7 +57,7 @@ class TSimpleServer(TServer):
itrans = self.inputTransportFactory.getTransport(client)
otrans = self.outputTransportF... | Adityaslop typos in thrift py server Summary: outut is not output Reviewed By: aditya, cheever Test Plan: blogfeeds fixin git-svn-id: <URL> | py |
diff --git a/gitlab_tests/test_v91/test_deploy_keys.py b/gitlab_tests/test_v91/test_deploy_keys.py
index <HASH>..<HASH> 100644
--- a/gitlab_tests/test_v91/test_deploy_keys.py
+++ b/gitlab_tests/test_v91/test_deploy_keys.py
@@ -6,10 +6,6 @@ from response_data.deploy_keys import *
class TestGetAllDeployKeys(BaseTest... | removed integration login test from unittests | py |
diff --git a/fastjsonschema/__init__.py b/fastjsonschema/__init__.py
index <HASH>..<HASH> 100644
--- a/fastjsonschema/__init__.py
+++ b/fastjsonschema/__init__.py
@@ -34,8 +34,6 @@ it's not perfectly clear so I recommend also check out this `understaning json s
Note that there are some differences compared to JSON s... | Update documentation about 'definitions' and 'ref' | py |
diff --git a/datadog_checks_dev/datadog_checks/dev/tooling/commands/release.py b/datadog_checks_dev/datadog_checks/dev/tooling/commands/release.py
index <HASH>..<HASH> 100644
--- a/datadog_checks_dev/datadog_checks/dev/tooling/commands/release.py
+++ b/datadog_checks_dev/datadog_checks/dev/tooling/commands/release.py
@... | Run upload command in the proper location (#<I>) | py |
diff --git a/cheroot/test/test_ssl.py b/cheroot/test/test_ssl.py
index <HASH>..<HASH> 100644
--- a/cheroot/test/test_ssl.py
+++ b/cheroot/test/test_ssl.py
@@ -324,7 +324,7 @@ def test_tls_client_auth(
except AttributeError:
if PY34:
pytest.xfail('OpenSSL behaves wierdly under Pyth... | Stringify ssl_err under GH Actions too | py |
diff --git a/callhorizons.py b/callhorizons.py
index <HASH>..<HASH> 100755
--- a/callhorizons.py
+++ b/callhorizons.py
@@ -71,7 +71,8 @@ def get_ephemerides(objectname, observatory_code,
discretetimes=[],
airmass_lessthan=99,
solar_elongation=[0,180],
- ... | added option print_url that will print the URL used in the query | py |
diff --git a/tests/test_connection.py b/tests/test_connection.py
index <HASH>..<HASH> 100644
--- a/tests/test_connection.py
+++ b/tests/test_connection.py
@@ -14,7 +14,6 @@
# limitations under the License.
from __future__ import absolute_import, division
-from exceptions import AssertionError
from twisted.trial im... | AssertionError is already a keyword in python3 | py |
diff --git a/etk/core.py b/etk/core.py
index <HASH>..<HASH> 100644
--- a/etk/core.py
+++ b/etk/core.py
@@ -1273,8 +1273,8 @@ class Core(object):
else:
print 'guard type "{}" is not a valid type.'.format(guard['type'])
continue
- if len(matches) =... | don't put raw_content for nested docs, guard will pass if the path does not exist | py |
diff --git a/aioopenssl/__init__.py b/aioopenssl/__init__.py
index <HASH>..<HASH> 100644
--- a/aioopenssl/__init__.py
+++ b/aioopenssl/__init__.py
@@ -77,13 +77,6 @@ class _State(Enum):
return (self.value & 0x3) == 0
-if hasattr(asyncio, "ensure_future"):
- ensure_future = asyncio.ensure_future
-else:
-... | Remove pre-<I> workaround | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.