diff
stringlengths
139
3.65k
message
stringlengths
8
627
diff_languages
stringclasses
1 value
diff --git a/pylint/checkers/imports.py b/pylint/checkers/imports.py index <HASH>..<HASH> 100644 --- a/pylint/checkers/imports.py +++ b/pylint/checkers/imports.py @@ -337,18 +337,14 @@ given file (report RP0402 must not be disabled)'} # check imports are grouped by category (standard, 3rd party, local) ...
Simplify a bit the algorithm checking for ungrouped imports related to issue #<I>
py
diff --git a/matplotlib2tikz.py b/matplotlib2tikz.py index <HASH>..<HASH> 100644 --- a/matplotlib2tikz.py +++ b/matplotlib2tikz.py @@ -145,7 +145,8 @@ def save( filepath, import codecs file_handle = codecs.open(filepath, 'w', encoding) - print(file_handle.encoding) + if show_info: + print('file...
Only print info when show_info==True The messages concerning encoding and libs are not printed anymore when show_info==False. This prevents pollution of output, e.g. when using tikz_save in an ipython notebook.
py
diff --git a/build.py b/build.py index <HASH>..<HASH> 100755 --- a/build.py +++ b/build.py @@ -298,7 +298,10 @@ def build_check_requires_timestamp(t): if m: require_linenos[m.group(1)] = lineno continue - for lineno, line in _strip_comments(lines): + ignore_l...
Fix check for unused goog.require directives
py
diff --git a/scigraph.py b/scigraph.py index <HASH>..<HASH> 100755 --- a/scigraph.py +++ b/scigraph.py @@ -16,6 +16,7 @@ class restService: self._session.mount('http://', adapter) if cache: + print('WARNING: cache enabled, if you mutate the contents of return values you will mutate the ca...
scigraph added warning to cache and list sorting Added warning that the values returned from the cache are mutable. Added a sort key for lists in the codegen so that the ordering is consistent between versions.
py
diff --git a/torchtext/data/example.py b/torchtext/data/example.py index <HASH>..<HASH> 100644 --- a/torchtext/data/example.py +++ b/torchtext/data/example.py @@ -28,14 +28,12 @@ class Example(object): @classmethod def fromTSV(cls, data, fields): - if data[-1] == '\n': - data = data[:-1] +...
Use rstrip instead of slicing when making examples from lines
py
diff --git a/src/AppiumLibrary/keywords/_applicationmanagement.py b/src/AppiumLibrary/keywords/_applicationmanagement.py index <HASH>..<HASH> 100644 --- a/src/AppiumLibrary/keywords/_applicationmanagement.py +++ b/src/AppiumLibrary/keywords/_applicationmanagement.py @@ -2,6 +2,7 @@ import os import robot +import...
Check the stack to see if "run_keyword_and_ignore_error" is called; if called, do not log source (with the intention of preventing large log files)
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -30,6 +30,7 @@ suggestions and criticisms from the community are always very welcome. Copyright (C) 2012-2013 GEM Foundation. """ import re +import sys from setuptools import setup, find_packages, Extension import numpy
setup.py: Added missing import.
py
diff --git a/bulbs/instant_articles/parser.py b/bulbs/instant_articles/parser.py index <HASH>..<HASH> 100644 --- a/bulbs/instant_articles/parser.py +++ b/bulbs/instant_articles/parser.py @@ -47,6 +47,26 @@ def parse_youtube(tag): pass +def parse_onion_video(tag): + # return {'onion_video': {'iframe': iframe...
add parser stubs
py
diff --git a/fitsio/fitslib.py b/fitsio/fitslib.py index <HASH>..<HASH> 100644 --- a/fitsio/fitslib.py +++ b/fitsio/fitslib.py @@ -3538,6 +3538,7 @@ class FITSHDR: 'ZQUANTIZ','ZDITHER0','ZIMAGE','ZCMPTYPE', 'ZSIMPLE','ZTENSION','ZPCOUNT','ZGCOUNT', 'ZBITPIX','...
Ignore more keywords when writing a header These are new keywords associated with compressed tables.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -37,7 +37,6 @@ setup( 'gcloud/storage/demo.key']}, include_package_data=True, zip_safe=False, - setup_requires=REQUIREMENTS, install_requires=REQUIREMENTS, classifiers=[ ...
Remove install-time requirements from 'setup_requires'. That field is used for stuff needed at packaging time, but causes eggs to be downloaded and installed in the project directory, which is undesirable.
py
diff --git a/aigerbv/aigbv.py b/aigerbv/aigbv.py index <HASH>..<HASH> 100644 --- a/aigerbv/aigbv.py +++ b/aigerbv/aigbv.py @@ -90,6 +90,9 @@ class AIGBV: latch_map=self.latch_map | other.latch_map, ) + def __lshift__(self, other): + return other >> self + def __or__(self, other): ...
define a << b == b >> a
py
diff --git a/anytemplate/engines/string.py b/anytemplate/engines/string.py index <HASH>..<HASH> 100644 --- a/anytemplate/engines/string.py +++ b/anytemplate/engines/string.py @@ -16,7 +16,7 @@ import anytemplate.compat LOGGER = logging.getLogger(__name__) -class StringTemplateEngine(anytemplate.engines.base.BaseEn...
follow the rename of base class
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 @@ -369,14 +369,14 @@ class PmapMaker(): L, G = len(self.imtls.array), len(self.gsims) poemap = ProbabilityMap(L, G) ...
Small renaming [skip CI]
py
diff --git a/libsubmit/providers/aws/aws.py b/libsubmit/providers/aws/aws.py index <HASH>..<HASH> 100644 --- a/libsubmit/providers/aws/aws.py +++ b/libsubmit/providers/aws/aws.py @@ -183,16 +183,26 @@ class EC2Provider(ExecutionProvider): logger.error("Site:[{0}] Failed to initialize".format(self)) ...
Moving infra creation for #<I> If any failure happens during infra creation it is not properly reported. This adds better reporting. @reidmcy to test.
py
diff --git a/tests/common_serialization.py b/tests/common_serialization.py index <HASH>..<HASH> 100644 --- a/tests/common_serialization.py +++ b/tests/common_serialization.py @@ -142,14 +142,12 @@ class TestTypeSerializationDummy(object): class MetaTestTypeSerializationDummy(type): pass -# TODO: figure out why ...
fix error with class equality in tests: all tests pass
py
diff --git a/progressbar/__about__.py b/progressbar/__about__.py index <HASH>..<HASH> 100644 --- a/progressbar/__about__.py +++ b/progressbar/__about__.py @@ -19,7 +19,7 @@ A Python Progressbar library to provide visual (yet text based) progress to long running operations. '''.strip().split()) __email__ = 'wolph@wol...
Incrementing version to <I>
py
diff --git a/util/preprocess.py b/util/preprocess.py index <HASH>..<HASH> 100644 --- a/util/preprocess.py +++ b/util/preprocess.py @@ -8,8 +8,8 @@ from multiprocessing.dummy import Pool from util.audio import audiofile_to_input_vector from util.text import text_to_char_array -def pmap(fun, iterable, threads=8): - ...
Preprocessing: use all available threads ...the limitation to 8 threads looks a bit random to me.
py
diff --git a/dynamic_rest/prefetch.py b/dynamic_rest/prefetch.py index <HASH>..<HASH> 100644 --- a/dynamic_rest/prefetch.py +++ b/dynamic_rest/prefetch.py @@ -227,7 +227,8 @@ class FastQueryCompatMixin(object): prefetches = [] for field, fprefetch in self.prefetches.items(): - qs = fprefe...
prevents execution of base query through accessing query attribute on prefetch object
py
diff --git a/angr/analyses/cfg/cfg_fast.py b/angr/analyses/cfg/cfg_fast.py index <HASH>..<HASH> 100644 --- a/angr/analyses/cfg/cfg_fast.py +++ b/angr/analyses/cfg/cfg_fast.py @@ -2367,6 +2367,8 @@ class CFGFast(ForwardAnalysis, CFGBase): # pylint: disable=abstract-method # is it in a section with zero byt...
CFGFast: Handle cases where find_object_containing() returns None.
py
diff --git a/src/pyechonest/artist.py b/src/pyechonest/artist.py index <HASH>..<HASH> 100644 --- a/src/pyechonest/artist.py +++ b/src/pyechonest/artist.py @@ -107,7 +107,9 @@ class Artist(object): ['audio', 'urls', 'images', 'biographies', 'blogs', 'familiarity', 'hott...
automatically refreshes if you ask for different buckets
py
diff --git a/specter/expect.py b/specter/expect.py index <HASH>..<HASH> 100644 --- a/specter/expect.py +++ b/specter/expect.py @@ -118,9 +118,16 @@ class ExpectAssert(object): if not self.success: was = 'wasn\'t' if self.used_negative else 'was' - msg = _('Function {func_name} {was} e...
Adding error handling for missing __name__ Fixes the edge case where an exception used doesn't contain a double underscore name definition. If this case is hit, Specter should grab the name from the type. Addresses: #<I>
py
diff --git a/bin/run_tests.py b/bin/run_tests.py index <HASH>..<HASH> 100755 --- a/bin/run_tests.py +++ b/bin/run_tests.py @@ -175,8 +175,9 @@ def main(parser, parse_args): # Run tests - pytest.main(args + list(tests)) + return pytest.main(args + list(tests)) if __name__ == "__main__": - main(parser, sys...
Return proper exit code from pytest.main()
py
diff --git a/django_webpack/bundle.py b/django_webpack/bundle.py index <HASH>..<HASH> 100644 --- a/django_webpack/bundle.py +++ b/django_webpack/bundle.py @@ -1,3 +1,4 @@ +import sys import os from django.utils.safestring import mark_safe from django.contrib.staticfiles import finders @@ -7,7 +8,7 @@ if six.PY2: el...
Ensuring that django will not silently fail when rendering a bundle.
py
diff --git a/tornado/test/web_test.py b/tornado/test/web_test.py index <HASH>..<HASH> 100644 --- a/tornado/test/web_test.py +++ b/tornado/test/web_test.py @@ -2393,6 +2393,7 @@ class FinishExceptionTest(SimpleHandlerTestCase): self.assertEqual(b'authentication required', response.body) +@wsgi_safe class D...
Add @wsgi_safe decorator to a couple of web tests.
py
diff --git a/subliminal/subtitle.py b/subliminal/subtitle.py index <HASH>..<HASH> 100644 --- a/subliminal/subtitle.py +++ b/subliminal/subtitle.py @@ -105,8 +105,9 @@ def is_valid_subtitle(subtitle_text): try: pysrt.from_string(subtitle_text, error_handling=pysrt.ERROR_RAISE) return True - exc...
Be more permissive in subtitle validation
py
diff --git a/src/_pytest/fixtures.py b/src/_pytest/fixtures.py index <HASH>..<HASH> 100644 --- a/src/_pytest/fixtures.py +++ b/src/_pytest/fixtures.py @@ -93,7 +93,7 @@ def get_scope_package(node, fixturedef): cls = pytest.Package current = node - fixture_package_name = os.path.join(fixturedef.baseid, "_...
Fix the package fixture ordering in Windows.
py
diff --git a/api/symboltable.py b/api/symboltable.py index <HASH>..<HASH> 100644 --- a/api/symboltable.py +++ b/api/symboltable.py @@ -649,8 +649,6 @@ class SymbolTable(object): if entry is None: return entry.declared = True - entry.scope = SCOPE.parameter - if entry.type_...
Removed useless line. SCOPE is set in the PARAMDECL class.
py
diff --git a/stanza/server/client.py b/stanza/server/client.py index <HASH>..<HASH> 100644 --- a/stanza/server/client.py +++ b/stanza/server/client.py @@ -113,6 +113,7 @@ class RobustService(object): self.be_quiet = be_quiet self.host = host self.port = port + atexit.register(self.atex...
Try to terminate a server at exit even if it wasn't made as a context
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -21,7 +21,7 @@ from setuptools import find_packages from setuptools import setup -with open("README.md", "r") as readme: +with open("README.md", "r", encoding="utf-8") as readme: long_description = readme.read() se...
Force utf-8 when reading readme
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -9,12 +9,18 @@ with open( ) as f: VERSION = re.match(r".*__version__ = '(.*?)'", f.read(), re.S).group(1) +with open( + os.path.join(os.path.dirname(__file__), 'README.rst') +) as f: + long_description = f.read()...
Add long description to setup.py to show in PyPI
py
diff --git a/salt/modules/win_system.py b/salt/modules/win_system.py index <HASH>..<HASH> 100644 --- a/salt/modules/win_system.py +++ b/salt/modules/win_system.py @@ -31,6 +31,7 @@ except ImportError: # Import salt libs import salt.utils import salt.utils.locales +import salt.ext.six as six # Set up logging log ...
don't decode strings on Python 3
py
diff --git a/peglet.py b/peglet.py index <HASH>..<HASH> 100644 --- a/peglet.py +++ b/peglet.py @@ -85,7 +85,7 @@ def _parse(rules, actions, rule, text): vals = () for token in tokens: ok, pos, vals = parse_token(token, pos, vals) - if not ok: return False, pos, None + ...
code a bit clearer, I think
py
diff --git a/tests/docker/test_docker_run.py b/tests/docker/test_docker_run.py index <HASH>..<HASH> 100644 --- a/tests/docker/test_docker_run.py +++ b/tests/docker/test_docker_run.py @@ -147,7 +147,7 @@ describe HarpoonCase, "Building docker images": if isinstance(output, six.binary_type): outpu...
Make the test pass on travis
py
diff --git a/hwt/hdl/types/structCast.py b/hwt/hdl/types/structCast.py index <HASH>..<HASH> 100644 --- a/hwt/hdl/types/structCast.py +++ b/hwt/hdl/types/structCast.py @@ -1,12 +1,13 @@ from hwt.code import Concat from hwt.doc_markers import internal from hwt.hdl.typeShortcuts import vec +from hwt.hdl.types.array imp...
hstruct_reinterpret_to_bits: support for Signal instances
py
diff --git a/pyphi/subsystem.py b/pyphi/subsystem.py index <HASH>..<HASH> 100644 --- a/pyphi/subsystem.py +++ b/pyphi/subsystem.py @@ -865,9 +865,9 @@ def cause_emd(d1, d2): If the distributions are independent we can use the same shortcut we use for effect repertoires. Otherwise fall back to the Hamming EMD....
Only check independence for n > 7
py
diff --git a/AlphaTwirl/EventReader/MPEventLoopRunner.py b/AlphaTwirl/EventReader/MPEventLoopRunner.py index <HASH>..<HASH> 100755 --- a/AlphaTwirl/EventReader/MPEventLoopRunner.py +++ b/AlphaTwirl/EventReader/MPEventLoopRunner.py @@ -58,9 +58,7 @@ class MPEventLoopRunner(object): self._progressMonitor.last(...
extract a method end_workers() in MPEventLoopRunner
py
diff --git a/holoviews/plotting/plot.py b/holoviews/plotting/plot.py index <HASH>..<HASH> 100644 --- a/holoviews/plotting/plot.py +++ b/holoviews/plotting/plot.py @@ -580,7 +580,10 @@ class GenericElementPlot(DimensionedPlot): else: y0, y1 = (np.NaN, np.NaN) if sel...
Small fix for extents when using 3d projection
py
diff --git a/spyderplugins/widgets/pylintgui.py b/spyderplugins/widgets/pylintgui.py index <HASH>..<HASH> 100644 --- a/spyderplugins/widgets/pylintgui.py +++ b/spyderplugins/widgets/pylintgui.py @@ -352,7 +352,7 @@ class PylintWidget(QWidget): line_nb = line[i1+1:i2].strip() if not line_nb: ...
(Fixes Issue <I>) Pylint/bugfix: fixed parsing error
py
diff --git a/rollbar/contrib/starlette/requests.py b/rollbar/contrib/starlette/requests.py index <HASH>..<HASH> 100644 --- a/rollbar/contrib/starlette/requests.py +++ b/rollbar/contrib/starlette/requests.py @@ -46,13 +46,7 @@ def get_current_request() -> Optional[Request]: ) return None - request...
Do not log error if request is missing in the context Return None object instead
py
diff --git a/openquake/db/models.py b/openquake/db/models.py index <HASH>..<HASH> 100644 --- a/openquake/db/models.py +++ b/openquake/db/models.py @@ -1756,6 +1756,32 @@ class Gmf(djm.Model): class DisaggResult(djm.Model): + """ + Storage for disaggregation historgrams. Each histogram is stored in + `matr...
db/models: Added some doc for `DisaggResult` table model.
py
diff --git a/stop_words/__init__.py b/stop_words/__init__.py index <HASH>..<HASH> 100644 --- a/stop_words/__init__.py +++ b/stop_words/__init__.py @@ -1,7 +1,7 @@ import json import os -__VERSION__ = (2015, 2, 21) +__VERSION__ = (2015, 2, 23) CURRENT_DIR = os.path.dirname(os.path.realpath(__file__)) STOP_WORDS_DI...
__VERSION__ changed
py
diff --git a/algorithms/tree/red_black_tree/red_black_tree.py b/algorithms/tree/red_black_tree/red_black_tree.py index <HASH>..<HASH> 100644 --- a/algorithms/tree/red_black_tree/red_black_tree.py +++ b/algorithms/tree/red_black_tree/red_black_tree.py @@ -241,8 +241,7 @@ class RBTree: node.parent.co...
fixing delete_fixup() in red_black_tree (#<I>)
py
diff --git a/tests/test_hooks.py b/tests/test_hooks.py index <HASH>..<HASH> 100644 --- a/tests/test_hooks.py +++ b/tests/test_hooks.py @@ -1,10 +1,11 @@ +import os from io import BytesIO from unittest.mock import MagicMock, patch from isort import hooks -def test_git_hook(): +def test_git_hook(src_dir): "...
<I>% hooks coverage
py
diff --git a/billy/bin/update.py b/billy/bin/update.py index <HASH>..<HASH> 100755 --- a/billy/bin/update.py +++ b/billy/bin/update.py @@ -107,14 +107,7 @@ def _run_scraper(scraper_type, options, metadata): # run scraper against year/session/term for time in times: for chamber in options.chambers: - ...
changing update up a skitch
py
diff --git a/test_path.py b/test_path.py index <HASH>..<HASH> 100644 --- a/test_path.py +++ b/test_path.py @@ -1221,7 +1221,3 @@ class TestMultiPath: assert not isinstance(first, Multi) assert next(items) == '/baz/bing' assert path == input - - -if __name__ == '__main__': - pytest.main()
Remove executable function of test_path. Tester is always expected to invoke pytest directly.
py
diff --git a/tests/conftest.py b/tests/conftest.py index <HASH>..<HASH> 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -64,8 +64,8 @@ def pytest_configure(config): else: # we're not running integration tests print("running without integration tests") - # if we're on Travis, this...
Error if we are running on GitHub CI without integration tests
py
diff --git a/tests/test_rs.py b/tests/test_rs.py index <HASH>..<HASH> 100644 --- a/tests/test_rs.py +++ b/tests/test_rs.py @@ -315,7 +315,8 @@ class ReplicaSetTestCase(unittest.TestCase): # self.repl = ReplicaSet(self.repl_cfg) def tearDown(self): - self.repl.cleanup() + if hasattr(self, '...
fix issue with ReplicaSetTestCase hasn't attribute repl
py
diff --git a/tmdbsimple/movies.py b/tmdbsimple/movies.py index <HASH>..<HASH> 100644 --- a/tmdbsimple/movies.py +++ b/tmdbsimple/movies.py @@ -102,7 +102,7 @@ class Movies(TMDB): def external_ids(self, **kwargs): """ - Get the external ids for a specific person id. + Get the external ids f...
Change movies.py external_ids comment from "specific person id" to "specific movie id"
py
diff --git a/pyvista/plotting/widgets.py b/pyvista/plotting/widgets.py index <HASH>..<HASH> 100644 --- a/pyvista/plotting/widgets.py +++ b/pyvista/plotting/widgets.py @@ -1161,7 +1161,7 @@ class WidgetHelper: theta_resolution: int , optional Set the number of points in the longitude direction (r...
typo fix (#<I>)
py
diff --git a/src/moneyed/localization.py b/src/moneyed/localization.py index <HASH>..<HASH> 100644 --- a/src/moneyed/localization.py +++ b/src/moneyed/localization.py @@ -303,7 +303,7 @@ _sign(DEFAULT, moneyed.SZL, prefix='E') _sign(DEFAULT, moneyed.THB, prefix='฿') _sign(DEFAULT, moneyed.TND, prefix='د.ت') _sign(DE...
Turkish money symbol As reported in django-money#<I>
py
diff --git a/autofit/graphical/factor_graphs/numerical.py b/autofit/graphical/factor_graphs/numerical.py index <HASH>..<HASH> 100644 --- a/autofit/graphical/factor_graphs/numerical.py +++ b/autofit/graphical/factor_graphs/numerical.py @@ -66,7 +66,7 @@ def numerical_func_jacobian( for det, val in det_v...
bugfixing calculation of deterministic Jacobians
py
diff --git a/src/ossos-pipeline/scripts/update_astrometry.py b/src/ossos-pipeline/scripts/update_astrometry.py index <HASH>..<HASH> 100644 --- a/src/ossos-pipeline/scripts/update_astrometry.py +++ b/src/ossos-pipeline/scripts/update_astrometry.py @@ -159,8 +159,11 @@ def recompute_mag(mpc_in): cutout = image_slice...
Corrected the use of ZP for flux computing. The update_astrometry script should use the ZP in the astrometric header when computing magnitudes, not the original image header. Now the script does that.
py
diff --git a/python/ray/util/collective/collective.py b/python/ray/util/collective/collective.py index <HASH>..<HASH> 100644 --- a/python/ray/util/collective/collective.py +++ b/python/ray/util/collective/collective.py @@ -26,9 +26,6 @@ try: gloo_collective_group import GLOOGroup except ImportError: _GLO...
[Collective] silent the pygloo warning as it is not commonly used (#<I>)
py
diff --git a/setup-jottacloudclient.py b/setup-jottacloudclient.py index <HASH>..<HASH> 100644 --- a/setup-jottacloudclient.py +++ b/setup-jottacloudclient.py @@ -44,8 +44,8 @@ setup(name='jottacloudclient', url='https://github.com/havardgulldahl/jottalib', package_dir={'':'src/tools'}, packages=['...
correct path to scripts in setup.py
py
diff --git a/django_mobile/conf.py b/django_mobile/conf.py index <HASH>..<HASH> 100644 --- a/django_mobile/conf.py +++ b/django_mobile/conf.py @@ -15,15 +15,15 @@ class SettingsProxy(object): try: return getattr(self.defaults, attr) except AttributeError: - rais...
Using unicode strings in conf.py. Just to be sure.
py
diff --git a/aioxmpp/protocol.py b/aioxmpp/protocol.py index <HASH>..<HASH> 100644 --- a/aioxmpp/protocol.py +++ b/aioxmpp/protocol.py @@ -10,6 +10,8 @@ import xml.parsers.expat as pyexpat from . import xml, errors, xso, stream_xsos, stanza from .utils import namespaces +logger = logging.getLogger(__name__) + cl...
Implement debug logging of received data
py
diff --git a/pandas/core/internals.py b/pandas/core/internals.py index <HASH>..<HASH> 100644 --- a/pandas/core/internals.py +++ b/pandas/core/internals.py @@ -291,10 +291,9 @@ class BlockManager(object): return axes_array, block_values, block_items def __setstate__(self, state): - if len(state) =...
FIX: legacy pickle format
py
diff --git a/pulsar/client/amqp_exchange.py b/pulsar/client/amqp_exchange.py index <HASH>..<HASH> 100644 --- a/pulsar/client/amqp_exchange.py +++ b/pulsar/client/amqp_exchange.py @@ -86,9 +86,15 @@ class PulsarExchange(object): except (IOError, socket.error), exc: # In testing, errno is No...
Improved heartbeat thread handling in amqp_exchange. - Add a join timeout incase this is is where things are hanging. - Don't allow heartbeat or sleep exceptions to halt queue consumption - shutdown events need to fire to actually stop this computation. - Add more logging to determine if this is a problematic spot.
py
diff --git a/python/phonenumbers/phonenumberutil.py b/python/phonenumbers/phonenumberutil.py index <HASH>..<HASH> 100644 --- a/python/phonenumbers/phonenumberutil.py +++ b/python/phonenumbers/phonenumberutil.py @@ -1717,7 +1717,7 @@ def truncate_too_long_number(numobj): while not is_valid_number(numobj_copy): ...
Use floor division not normal division when removing digits from decimal number
py
diff --git a/lib/svtplay_dl/utils/stream.py b/lib/svtplay_dl/utils/stream.py index <HASH>..<HASH> 100644 --- a/lib/svtplay_dl/utils/stream.py +++ b/lib/svtplay_dl/utils/stream.py @@ -25,7 +25,7 @@ def list_quality(videos): data.extend(sort_quality(videos)) for i in range(len(data)): logging.info( - ...
list_quality: make the output a bit smaller
py
diff --git a/dispatcher/utils/base.py b/dispatcher/utils/base.py index <HASH>..<HASH> 100644 --- a/dispatcher/utils/base.py +++ b/dispatcher/utils/base.py @@ -23,7 +23,10 @@ class Base(object): if i not in memo: memo[i] = threading.Event() rv = super(Base, self).__reduce_ex__(4) -...
FIX copy with py<I>.
py
diff --git a/treebeard/templatetags/admin_tree.py b/treebeard/templatetags/admin_tree.py index <HASH>..<HASH> 100644 --- a/treebeard/templatetags/admin_tree.py +++ b/treebeard/templatetags/admin_tree.py @@ -166,7 +166,7 @@ def items_for_result(cl, result, form): else: attr = pk ...
Use explicit single quotes for result_id `repr` will produce different strings on PY2/3 JSON doesn't work because string needs to be single quoted inside double quoted html attribute
py
diff --git a/tests/scripts/thread-cert/test_route_table.py b/tests/scripts/thread-cert/test_route_table.py index <HASH>..<HASH> 100755 --- a/tests/scripts/thread-cert/test_route_table.py +++ b/tests/scripts/thread-cert/test_route_table.py @@ -69,9 +69,11 @@ class TestRouteTable(thread_cert.TestCase): self.asse...
[scripts] fix test_route_table.py fails by chance (#<I>)
py
diff --git a/alignak_backend_client/backend_client.py b/alignak_backend_client/backend_client.py index <HASH>..<HASH> 100755 --- a/alignak_backend_client/backend_client.py +++ b/alignak_backend_client/backend_client.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python # -*- coding: utf-8 -*- #
Change backend_client script shebang
py
diff --git a/sos/component.py b/sos/component.py index <HASH>..<HASH> 100644 --- a/sos/component.py +++ b/sos/component.py @@ -246,13 +246,13 @@ class SoSComponent(): auto_archive = self.policy.get_preferred_archive() self.archive = auto_archive(archive_name, self.tmpdir, ...
[component] Use sysroot from Policy when opts doesn't specify it Until --sysroot option is specified, Archive (sub)classes should be called with sysroot determined from Policy. Resolves: #<I>
py
diff --git a/pychromecast/discovery.py b/pychromecast/discovery.py index <HASH>..<HASH> 100644 --- a/pychromecast/discovery.py +++ b/pychromecast/discovery.py @@ -212,7 +212,9 @@ class ZeroConfListener: cast_type = CAST_TYPE_GROUP manufacturer = MF_GOOGLE else: - ...
Format some code (#<I>)
py
diff --git a/src/configupdater/configupdater.py b/src/configupdater/configupdater.py index <HASH>..<HASH> 100644 --- a/src/configupdater/configupdater.py +++ b/src/configupdater/configupdater.py @@ -394,11 +394,11 @@ class Section(Block, Container, MutableMapping): return self def items(self): - ...
Fix copy/paste error in docstring.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -262,8 +262,8 @@ def get_version_info(): # If this is a release or another kind of source distribution of PyCBC except: - version = '1.8.0dev' - release = 'False' + version = '1.7.1' + r...
Update setup.py Set to <I> for release
py
diff --git a/tests/test_tcp_splunk_publisher.py b/tests/test_tcp_splunk_publisher.py index <HASH>..<HASH> 100644 --- a/tests/test_tcp_splunk_publisher.py +++ b/tests/test_tcp_splunk_publisher.py @@ -87,6 +87,8 @@ class TestTCPSplunkPublisher(unittest.TestCase): self): """test_tcp_publish_to_splunk...
travis is failing this test case...
py
diff --git a/salt/modules/cp.py b/salt/modules/cp.py index <HASH>..<HASH> 100644 --- a/salt/modules/cp.py +++ b/salt/modules/cp.py @@ -342,7 +342,8 @@ def cache_files(paths, saltenv='base', env=None): return __context__['cp.fileclient'].cache_files(paths, saltenv) -def cache_dir(path, saltenv='base', include_e...
Add include_pat/exclude_pat to cp.cache_dir This uses the include_pat/exclude_pat logic from the file.recurse state to the cp.cache_dir function, allowing one to selectively cache the desired files.
py
diff --git a/django_tenants/middleware/main.py b/django_tenants/middleware/main.py index <HASH>..<HASH> 100644 --- a/django_tenants/middleware/main.py +++ b/django_tenants/middleware/main.py @@ -38,13 +38,13 @@ class TenantMainMiddleware(MiddlewareMixin): try: tenant = self.get_tenant(domain_model...
Return the request from the main middleware Actually return the request after meddling with it, since this is what django expects. Also allow for more return values when tenant is not found.
py
diff --git a/tinyrpc/server/gevent.py b/tinyrpc/server/gevent.py index <HASH>..<HASH> 100644 --- a/tinyrpc/server/gevent.py +++ b/tinyrpc/server/gevent.py @@ -11,3 +11,10 @@ class RPCServerGreenlets(RPCServer): # documentation in docs because of dependencies def _spawn(self, func, *args, **kwargs): g...
Add a start method to the gevent servers so you can run multiple servers and do a joinall for all of them.
py
diff --git a/cgutils/cgroup.py b/cgutils/cgroup.py index <HASH>..<HASH> 100644 --- a/cgutils/cgroup.py +++ b/cgutils/cgroup.py @@ -359,6 +359,17 @@ class SubsystemDevices(Subsystem): } +class SubsystemNetPrio(Subsystem): + NAME = 'net_prio' + STATS = { + 'prioidx': long, + } + __ifs = os.lis...
Support missing net_prio subsystem
py
diff --git a/pandas_td/td.py b/pandas_td/td.py index <HASH>..<HASH> 100644 --- a/pandas_td/td.py +++ b/pandas_td/td.py @@ -23,6 +23,8 @@ class Connection(object): apikey = os.environ['TD_API_KEY'] if endpoint is None: endpoint = DEFAULT_ENDPOINT + if not endpoint.endswith('/'):...
Ensure trailing '/' at the end of endpoint
py
diff --git a/build/zip_libcxx.py b/build/zip_libcxx.py index <HASH>..<HASH> 100644 --- a/build/zip_libcxx.py +++ b/build/zip_libcxx.py @@ -22,6 +22,9 @@ def get_object_files(base_path, archive_name): if line.startswith(base_path): object_file = line.split(":")[0] object_files.add(object_file) + if...
build: ensure object files are included even if unparsable
py
diff --git a/cobra/test/unit_tests.py b/cobra/test/unit_tests.py index <HASH>..<HASH> 100644 --- a/cobra/test/unit_tests.py +++ b/cobra/test/unit_tests.py @@ -42,6 +42,15 @@ class TestDictList(TestCase): self.list = DictList() self.list.append(self.obj) + def testIndependent(self): + a = D...
test: ensure DictLists remain independent
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -13,7 +13,7 @@ setup( keywords='reddit terminal praw curses', packages=['rtv'], include_package_data=True, - install_requires=['praw>=2.1.6', 'six', 'requests', 'kitchen'], + install_requires=['praw>=3.1.0...
Upped required PRAW version to 3.
py
diff --git a/fooster/web/query.py b/fooster/web/query.py index <HASH>..<HASH> 100644 --- a/fooster/web/query.py +++ b/fooster/web/query.py @@ -7,7 +7,7 @@ from fooster import web __all__ = ['regex', 'QueryMixIn', 'QueryHandler', 'new'] -regex = r'(?:\?(?P<query>[\w=&%.+]*))?' +regex = r'(?:\?(?P<query>[\w&= !"#$%\...
update query regex to support more characters
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -3,7 +3,7 @@ import sys from setuptools import setup, find_packages NAME = 'django-debug-toolbar-vcs-info' -VERSION = '1.1.0' +VERSION = '1.2.0' def read(filename): @@ -19,14 +19,6 @@ def readlist(filename): rows...
Bump up version to <I>
py
diff --git a/plenum/config.py b/plenum/config.py index <HASH>..<HASH> 100644 --- a/plenum/config.py +++ b/plenum/config.py @@ -195,10 +195,10 @@ CLIENT_REPLY_TIMEOUT = 15 CLIENT_MAX_RETRY_ACK = 5 CLIENT_MAX_RETRY_REPLY = 5 -VIEW_CHANGE_TIMEOUT = 60 # seconds +VIEW_CHANGE_TIMEOUT = 600 # seconds INSTANCE_CHANGE_T...
INDY-<I>: Increase viewchange/catchup timeout to 5 minutes
py
diff --git a/cwltool/main.py b/cwltool/main.py index <HASH>..<HASH> 100755 --- a/cwltool/main.py +++ b/cwltool/main.py @@ -741,7 +741,7 @@ def main(argsl=None, # type: List[str] make_tool_kwds["find_default_container"] = functools.partial(find_default_container, args) tool = make_tool(docum...
Fix whitespace deleted in previous rebase.
py
diff --git a/torf/_torrent.py b/torf/_torrent.py index <HASH>..<HASH> 100644 --- a/torf/_torrent.py +++ b/torf/_torrent.py @@ -812,12 +812,9 @@ class Torrent(): remove_empty_file() raise else: - fh = os.fdopen(fd, 'rb+') - fh.truncate() - ...
Use fdopen() as context manager
py
diff --git a/tests/integration/test_fs_checks.py b/tests/integration/test_fs_checks.py index <HASH>..<HASH> 100644 --- a/tests/integration/test_fs_checks.py +++ b/tests/integration/test_fs_checks.py @@ -16,7 +16,6 @@ import pytest import colin -from colin.core.target import ImageTarget @pytest.fixture() @@ -50...
Use target_type property for string representation of the target type
py
diff --git a/tests/test_funcs.py b/tests/test_funcs.py index <HASH>..<HASH> 100644 --- a/tests/test_funcs.py +++ b/tests/test_funcs.py @@ -30,11 +30,17 @@ class FuncsTestCase(TestCaseWithData): def _test_func(self, func, expected_value=NO_VALUE): sql = 'SELECT %s AS value' % func.to_sql() logging...
Ignore functions that don't exist in the used ClickHouse version
py
diff --git a/sphviewer/Render.py b/sphviewer/Render.py index <HASH>..<HASH> 100644 --- a/sphviewer/Render.py +++ b/sphviewer/Render.py @@ -102,8 +102,7 @@ class Render(object): where xsize and ysize are the number of pixels of the image defined by the Camera. """ extent = self.Scene.get_exten...
Update Render.py removing the normalization by pixel size. It gives more problems than antiipated
py
diff --git a/conftest.py b/conftest.py index <HASH>..<HASH> 100644 --- a/conftest.py +++ b/conftest.py @@ -1,8 +1,29 @@ +import sys import platform collect_ignore = ["hook-keyring.backend.py"] -if platform.system() != 'Darwin': - collect_ignore.append('keyring/backends/macOS/api.py') + +def macos_api_ignore():...
An initial attempt to skip collection on macOS API module. Doesn't work because mac_ver doesn't work on newer macs with older Pythons. Ref #<I>.
py
diff --git a/src/you_get/extractor.py b/src/you_get/extractor.py index <HASH>..<HASH> 100644 --- a/src/you_get/extractor.py +++ b/src/you_get/extractor.py @@ -196,7 +196,10 @@ class VideoExtractor(): else: # Download stream with the best quality from .processor.ffmpeg impo...
[extractor] use best quality from dash_streams if streams_sorted is empty
py
diff --git a/raiden/api/rest.py b/raiden/api/rest.py index <HASH>..<HASH> 100644 --- a/raiden/api/rest.py +++ b/raiden/api/rest.py @@ -204,11 +204,11 @@ class APIServer(object): ) self.add_resource( ConnectionsResource, - '/connection/<hexaddress:token_address>' + '/...
Rename /connection endpoint to /connections
py
diff --git a/librsync/__init__.py b/librsync/__init__.py index <HASH>..<HASH> 100644 --- a/librsync/__init__.py +++ b/librsync/__init__.py @@ -71,7 +71,8 @@ def _execute(job, f, o=None): elif result != RS_BLOCKED: # TODO: I don't think error reporting works properly. raise LibRsyncErr...
`o` is optional. It only needs to be rewound if provided.
py
diff --git a/tornado_eventsource/__init__.py b/tornado_eventsource/__init__.py index <HASH>..<HASH> 100644 --- a/tornado_eventsource/__init__.py +++ b/tornado_eventsource/__init__.py @@ -1,4 +1,4 @@ #!/usr/bin/python # -*- coding: utf-8 -*- -__version__ = '1.0.0rc1' +__version__ = '1.0.0rc2'
Bump to <I>rc2
py
diff --git a/peewee.py b/peewee.py index <HASH>..<HASH> 100644 --- a/peewee.py +++ b/peewee.py @@ -4092,7 +4092,7 @@ class ForeignKeyField(Field): def db_value(self, value): if isinstance(value, self.rel_model): - value = value._get_pk_value() + value = value.get_id() retu...
Fix method call mentioned in #<I>
py
diff --git a/fbchat/_client.py b/fbchat/_client.py index <HASH>..<HASH> 100644 --- a/fbchat/_client.py +++ b/fbchat/_client.py @@ -73,8 +73,8 @@ class Client(object): self.seq = "0" # See `createPoll` for the reason for using `OrderedDict` here self.payloadDefault = OrderedDict() - sel...
Privatize default_thread_X client variables We have a setter method for them, so there should be no need to access these directly!
py
diff --git a/moto/apigateway/models.py b/moto/apigateway/models.py index <HASH>..<HASH> 100644 --- a/moto/apigateway/models.py +++ b/moto/apigateway/models.py @@ -317,16 +317,13 @@ class RestAPI(object): # TODO deal with no matching resource def resource_callback(self, request): - headers = reque...
Cleanup apigateway callback.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -19,7 +19,7 @@ setup( tests_require=['Nose'], url='https://github.com/erikrose/blessings', include_package_data=True, - classifiers = [ + classifiers=[ 'Intended Audience :: Developers', ...
Add some keywords to improve PyPI search ranking.
py
diff --git a/py3status/__init__.py b/py3status/__init__.py index <HASH>..<HASH> 100755 --- a/py3status/__init__.py +++ b/py3status/__init__.py @@ -158,7 +158,7 @@ class I3status(Thread): if cleanup: valid_config_params = [_ for _ in self.i3status_module_names if...
respect ordering of the ipv6 i3status module even on empty configuration, fix #<I> as reported by @nazco
py
diff --git a/emma2/msm/analysis/dense/pcca.py b/emma2/msm/analysis/dense/pcca.py index <HASH>..<HASH> 100644 --- a/emma2/msm/analysis/dense/pcca.py +++ b/emma2/msm/analysis/dense/pcca.py @@ -10,7 +10,11 @@ import decomposition import numpy def pcca(T, n): - eigenvalues,left_eigenvectors,right_eigenvectors = deco...
[msm/analysis] Adapted the rdl_decomposition call so that it respects the new order and type of the return arguments
py
diff --git a/holoviews/plotting/renderer.py b/holoviews/plotting/renderer.py index <HASH>..<HASH> 100644 --- a/holoviews/plotting/renderer.py +++ b/holoviews/plotting/renderer.py @@ -363,7 +363,8 @@ class Renderer(Exporter): try: plotclass = Store.registry[cls.backend][element_type] excep...
Skip rendering when no matching plotting class is found
py
diff --git a/python_utils/logger.py b/python_utils/logger.py index <HASH>..<HASH> 100644 --- a/python_utils/logger.py +++ b/python_utils/logger.py @@ -23,7 +23,7 @@ class Logged(object): ''' def __new__(cls, *args, **kwargs): cls.logger = logging.getLogger( - cls.__get_name(__name__, cls._...
improved logged module to include the module name when logging
py
diff --git a/tests/admin/test_simple.py b/tests/admin/test_simple.py index <HASH>..<HASH> 100644 --- a/tests/admin/test_simple.py +++ b/tests/admin/test_simple.py @@ -51,7 +51,7 @@ class AdminSimpleSet(CouchbaseTestCase): def test_bad_auth(self): self.assertRaises(AuthError, Admin, - ...
Pass correct hostname for Admin to get AuthError If the cluster was not 'localhost', a ConnectError was thrown instead Change-Id: I<I>fd<I>a<I>baa<I>b<I>f<I>d7cd5d<I> Reviewed-on: <URL>
py
diff --git a/ezibpy/ezibpy.py b/ezibpy/ezibpy.py index <HASH>..<HASH> 100644 --- a/ezibpy/ezibpy.py +++ b/ezibpy/ezibpy.py @@ -998,7 +998,7 @@ class ezIBpy(): # ----------------------------------------- def createTriggerableTrailingStop(self, symbol, quantity=1, triggerPrice=0, trailPercent=100.,...
trailing stop uses ticksize from contractDetails
py