diff
stringlengths
139
3.65k
message
stringlengths
8
627
diff_languages
stringclasses
1 value
diff --git a/webview/serving.py b/webview/serving.py index <HASH>..<HASH> 100644 --- a/webview/serving.py +++ b/webview/serving.py @@ -98,12 +98,12 @@ def resolve_url(url, should_serve): if hasattr(url, '__fspath__'): path = os.fspath(url) elif bits.scheme == 'file': - path = b...
Use netloc for file urls in http server
py
diff --git a/nat/zotero_wrap.py b/nat/zotero_wrap.py index <HASH>..<HASH> 100644 --- a/nat/zotero_wrap.py +++ b/nat/zotero_wrap.py @@ -9,6 +9,7 @@ from datetime import datetime from dateutil.parser import parse from pyzotero.zotero import Zotero +from pyzotero.zotero_errors import InvalidItemFields class Zoter...
Fix exception raised by PyZotero check_items()
py
diff --git a/lib/ansiblelint/utils.py b/lib/ansiblelint/utils.py index <HASH>..<HASH> 100644 --- a/lib/ansiblelint/utils.py +++ b/lib/ansiblelint/utils.py @@ -545,6 +545,8 @@ def parse_yaml_linenumbers(data, filename): mapping = AnsibleConstructor.construct_mapping(loader, node, deep=deep) if hasa...
get line number from Ansible's mapping, not pyyaml's node
py
diff --git a/satpy/readers/fci_l1c_fdhsi.py b/satpy/readers/fci_l1c_fdhsi.py index <HASH>..<HASH> 100644 --- a/satpy/readers/fci_l1c_fdhsi.py +++ b/satpy/readers/fci_l1c_fdhsi.py @@ -302,7 +302,7 @@ class FCIFDHSIFileHandler(NetCDF4FileHandler): else: logger.error( "Received unkno...
add missing quote to 'radiance'
py
diff --git a/yandextank/plugins/Console/screen.py b/yandextank/plugins/Console/screen.py index <HASH>..<HASH> 100644 --- a/yandextank/plugins/Console/screen.py +++ b/yandextank/plugins/Console/screen.py @@ -212,15 +212,15 @@ class Sparkline(object): self.ticks = '_▁▂▃▄▅▆▇'.decode('utf-8') def recalc_act...
Ignore old seconds in sparklines
py
diff --git a/runcommands/run.py b/runcommands/run.py index <HASH>..<HASH> 100644 --- a/runcommands/run.py +++ b/runcommands/run.py @@ -405,7 +405,7 @@ class Run(Command): except TemplateRuntimeError as exc: raise RunnerError( 'Could not render template {obj...
Add missing args to str.format() in Run.interpolate() Pointed out by flake8.
py
diff --git a/teslajsonpy/__version__.py b/teslajsonpy/__version__.py index <HASH>..<HASH> 100644 --- a/teslajsonpy/__version__.py +++ b/teslajsonpy/__version__.py @@ -6,4 +6,4 @@ For more details about this api, please refer to the documentation at https://github.com/zabuldon/teslajsonpy """ -__version__ = "0.10.0"...
<I> Automatically generated by python-semantic-release
py
diff --git a/wikitextparser/_wikitext.py b/wikitextparser/_wikitext.py index <HASH>..<HASH> 100644 --- a/wikitextparser/_wikitext.py +++ b/wikitextparser/_wikitext.py @@ -14,6 +14,7 @@ from regex import VERBOSE, DOTALL, MULTILINE, IGNORECASE, search from regex import compile as regex_compile from wcwidth import wcswi...
Add noinspection for known PyProtectedMembers
py
diff --git a/pvl/__init__.py b/pvl/__init__.py index <HASH>..<HASH> 100755 --- a/pvl/__init__.py +++ b/pvl/__init__.py @@ -86,7 +86,7 @@ def load(stream, cls=PVLDecoder, strict=True, **kwargs): """ if isinstance(stream, six.string_types): with open(stream, 'rb') as fp: - return cls(**kwarg...
Fix bug by using the strict arg when loading the filepath
py
diff --git a/salt/grains/core.py b/salt/grains/core.py index <HASH>..<HASH> 100644 --- a/salt/grains/core.py +++ b/salt/grains/core.py @@ -24,6 +24,13 @@ import uuid from errno import EACCES, EPERM import datetime +# pylint: disable=import-error +try: + import dateutil.tz + _DATEUTIL_TZ = True +except ImportE...
Adding a timezone to grains locale_info
py
diff --git a/modernrpc/tests/conftest.py b/modernrpc/tests/conftest.py index <HASH>..<HASH> 100644 --- a/modernrpc/tests/conftest.py +++ b/modernrpc/tests/conftest.py @@ -62,12 +62,6 @@ def delete_user_perm(): @pytest.fixture(scope='session') -def live_server_url(live_server): - """Return the url associated wit...
Coverage: remove unused pytest fixture
py
diff --git a/caravel/models.py b/caravel/models.py index <HASH>..<HASH> 100644 --- a/caravel/models.py +++ b/caravel/models.py @@ -341,6 +341,14 @@ class Queryable(object): def url(self): return '/{}/edit/{}'.format(self.baselink, self.id) + @property + def explore_url(self): + if self.defa...
[hotfix] Druid explore/table dropdown doesn't change anything
py
diff --git a/salt/modules/pw_user.py b/salt/modules/pw_user.py index <HASH>..<HASH> 100644 --- a/salt/modules/pw_user.py +++ b/salt/modules/pw_user.py @@ -76,7 +76,7 @@ def add(name, if salt.utils.is_true(kwargs.pop('system', False)): log.warning('pw_user module does not support the \'system\' argument') ...
We should NEVER stack trace like this in a state!!
py
diff --git a/webarticle2text.py b/webarticle2text.py index <HASH>..<HASH> 100755 --- a/webarticle2text.py +++ b/webarticle2text.py @@ -329,7 +329,7 @@ def extractFromURL(url, # Load url from cache if enabled. if cache: if not os.path.isdir(cacheDir): - os.makedirs(cacheDir) + os...
Use less open permissions to create the cache directory
py
diff --git a/chainlet/chainlink.py b/chainlet/chainlink.py index <HASH>..<HASH> 100644 --- a/chainlet/chainlink.py +++ b/chainlet/chainlink.py @@ -389,6 +389,7 @@ class MetaChain(ConcurrentChain): @staticmethod def _send_n_to_1(element, values): # aggregate input for joining paths + # iterator...
data is lazily passed through the chain
py
diff --git a/visidata/data.py b/visidata/data.py index <HASH>..<HASH> 100644 --- a/visidata/data.py +++ b/visidata/data.py @@ -18,7 +18,7 @@ Sheet.addCommand('ga', 'add-rows', 'addRows(int(input("add rows: ", value=1)), c Sheet.addCommand('za', 'addcol-new', 'addColumn(SettableColumn(""), cursorColIndex+1)') Sheet.ad...
[fill-] fill-nulls has been renamed to setcol-fill
py
diff --git a/grimoire/elk/git.py b/grimoire/elk/git.py index <HASH>..<HASH> 100644 --- a/grimoire/elk/git.py +++ b/grimoire/elk/git.py @@ -154,7 +154,10 @@ class GitEnrich(Enrich): # Fields which names are translated map_fields = {"commit": "hash","message":"message_analyzed"} for fn in map_f...
[git enrich] Check field exists before using it.
py
diff --git a/pyvex/IRExpr/__init__.py b/pyvex/IRExpr/__init__.py index <HASH>..<HASH> 100644 --- a/pyvex/IRExpr/__init__.py +++ b/pyvex/IRExpr/__init__.py @@ -44,7 +44,7 @@ class IRExpr(VEXObject): @staticmethod def _translate(c_expr, irsb): - if c_expr[0] == ffi.NULL: + if c_expr == ffi.NULL ...
Additional NULL check in IRExpr initialization
py
diff --git a/sk_dsp_comm/sigsys.py b/sk_dsp_comm/sigsys.py index <HASH>..<HASH> 100644 --- a/sk_dsp_comm/sigsys.py +++ b/sk_dsp_comm/sigsys.py @@ -2679,8 +2679,13 @@ def rect_conv(n,N_len): Examples -------- + >>> import matplotlib.pyplot as plt + >>> from numpy import arange + >>> from sk_dsp_...
Adding imports and plotting for rec_conv
py
diff --git a/online_monitor/start_online_monitor.py b/online_monitor/start_online_monitor.py index <HASH>..<HASH> 100644 --- a/online_monitor/start_online_monitor.py +++ b/online_monitor/start_online_monitor.py @@ -54,9 +54,14 @@ def main(): def appExec(): app.exec_() # Stop other processes - ...
ENH: to ease the configuration, do not require a simulation / converter
py
diff --git a/pylatex/base_classes/containers.py b/pylatex/base_classes/containers.py index <HASH>..<HASH> 100644 --- a/pylatex/base_classes/containers.py +++ b/pylatex/base_classes/containers.py @@ -86,8 +86,7 @@ class Container(LatexObject, UserList): self._propagate_packages() - # TODO: Use super ...
Use super call in dumps_packages method in containers
py
diff --git a/holidays/countries/singapore.py b/holidays/countries/singapore.py index <HASH>..<HASH> 100644 --- a/holidays/countries/singapore.py +++ b/holidays/countries/singapore.py @@ -182,8 +182,8 @@ class Singapore(HolidayBase): storeholiday(self, date(year, DEC, 26), "Boxing Day") # Polling...
Added Singapore <I> polling day (#<I>)
py
diff --git a/engine.py b/engine.py index <HASH>..<HASH> 100644 --- a/engine.py +++ b/engine.py @@ -1,5 +1,5 @@ ## This file is part of Invenio. -## Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 CERN. +## Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2014 CERN. ## ## Invenio...
access: fix edge cases of user info usage
py
diff --git a/vertica_python/vertica/cursor.py b/vertica_python/vertica/cursor.py index <HASH>..<HASH> 100644 --- a/vertica_python/vertica/cursor.py +++ b/vertica_python/vertica/cursor.py @@ -82,6 +82,8 @@ class Cursor(object): row = self.row_formatter(self._message) self._message = self.connec...
call connection.process_message when message is not a data row in fetchone()
py
diff --git a/udiskie/device.py b/udiskie/device.py index <HASH>..<HASH> 100644 --- a/udiskie/device.py +++ b/udiskie/device.py @@ -25,25 +25,31 @@ class Device: return self._get_property('PartitionSlave') def is_removable(self): - return self._get_property('DeviceIsRemovable') + """Is the ...
Only check removable recursively.
py
diff --git a/xblock/runtime.py b/xblock/runtime.py index <HASH>..<HASH> 100644 --- a/xblock/runtime.py +++ b/xblock/runtime.py @@ -230,7 +230,7 @@ class Runtime(object): block_class = XBlock.load_class(plugin_name, default_class) return self.construct_block_from_class(block_class, field_data, scope_id...
Remove left-over mention of scope_keys
py
diff --git a/spacy/en/__init__.py b/spacy/en/__init__.py index <HASH>..<HASH> 100644 --- a/spacy/en/__init__.py +++ b/spacy/en/__init__.py @@ -37,7 +37,9 @@ class English(Language): def _fix_deprecated_glove_vectors_loading(overrides): if 'data_dir' in overrides and 'path' not in overrides: raise ValueEr...
Another tweak to GloVe path hackery.
py
diff --git a/testsuite.py b/testsuite.py index <HASH>..<HASH> 100644 --- a/testsuite.py +++ b/testsuite.py @@ -458,6 +458,7 @@ def run_selftests(): os.environ["srctree"] = "baz" c = kconfiglib.Config("Kconfiglib/tests/Ktext", base_dir = "foobar") + c.load_config("Kconfiglib/tests/empty") c.set_print...
Get some more test coverage for Config.__str__().
py
diff --git a/tests/integration/modules/test_macdefaults.py b/tests/integration/modules/test_macdefaults.py index <HASH>..<HASH> 100644 --- a/tests/integration/modules/test_macdefaults.py +++ b/tests/integration/modules/test_macdefaults.py @@ -1,10 +1,7 @@ -# -*- coding: utf-8 -*- """ Validate the mac-defaults module ...
Drop Py2 and six on tests/integration/modules/test_macdefaults.py
py
diff --git a/pylint/checkers/typecheck.py b/pylint/checkers/typecheck.py index <HASH>..<HASH> 100644 --- a/pylint/checkers/typecheck.py +++ b/pylint/checkers/typecheck.py @@ -1395,10 +1395,12 @@ accessed. Python regular expressions are accepted.", # Retrieve node from all previusly visited nodes in the...
Use safe_infer() when inferring context's paths to prevent the acceptance tests to fail for distutils Currently this check fails for distutils because one of the `path` objects is an `ImportFrom` that raises an `InferenceError` when trying to be inferred.
py
diff --git a/scanpy/_utils.py b/scanpy/_utils.py index <HASH>..<HASH> 100644 --- a/scanpy/_utils.py +++ b/scanpy/_utils.py @@ -467,12 +467,15 @@ def update_params( def check_nonnegative_integers(X: Union[np.ndarray, sparse.spmatrix]): """Checks values of X to ensure it is count data """ + from numbers imp...
Update nonnegative integer check Minor update, just checking if the type is already an integer, and doing a faster check for positive values.
py
diff --git a/salt/master.py b/salt/master.py index <HASH>..<HASH> 100644 --- a/salt/master.py +++ b/salt/master.py @@ -223,20 +223,22 @@ class ReqServer(threading.Thread): os.makedirs(hn_dir) pickle.dump(load['return'], open(os.path.join(hn_dir, 'return.p'), 'w+')) - def publish(self, load): ...
missing tgt_type in the master publication translation
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100755 --- a/setup.py +++ b/setup.py @@ -3,14 +3,16 @@ from setuptools import setup -__version__ = '1.1.0' +__version__ = "1.1.0" -setup(name='cowpy', +setup(name="cowpy", description="A cowsay clone for python in one file.", author="Jeff Buttar...
Add license and license_files keys into setup() call
py
diff --git a/src/pylast/__init__.py b/src/pylast/__init__.py index <HASH>..<HASH> 100644 --- a/src/pylast/__init__.py +++ b/src/pylast/__init__.py @@ -2128,6 +2128,8 @@ class Track(_Opus): def get_album(self): """Returns the album object of this track.""" + if "album" in self.info and self.info["...
If we already have the album, return early
py
diff --git a/backtrader/analyzer.py b/backtrader/analyzer.py index <HASH>..<HASH> 100644 --- a/backtrader/analyzer.py +++ b/backtrader/analyzer.py @@ -55,6 +55,9 @@ class MetaAnalyzer(MetaParams): class Analyzer(six.with_metaclass(MetaAnalyzer, object)): + def __len__(self): + return len(self.strategy) +...
len method for analyzers using the owning strategy
py
diff --git a/flask_io/io.py b/flask_io/io.py index <HASH>..<HASH> 100644 --- a/flask_io/io.py +++ b/flask_io/io.py @@ -273,9 +273,9 @@ class FlaskIO(object): else: message = http_status_message(code) - error = marshal(ErrorResult(code, message), ErrorResultSchema()) + s...
From now, only non http exceptions are logged
py
diff --git a/endpoints_management/__init__.py b/endpoints_management/__init__.py index <HASH>..<HASH> 100644 --- a/endpoints_management/__init__.py +++ b/endpoints_management/__init__.py @@ -16,7 +16,7 @@ from __future__ import absolute_import from . import auth, config, control, gen -__version__ = '1.1.3' +__vers...
Bump minor version (<I> -> <I>) Rationale: * workaround for six issue in apitools * add per-consumer metric reporting
py
diff --git a/odoorpc/tests/test_db.py b/odoorpc/tests/test_db.py index <HASH>..<HASH> 100644 --- a/odoorpc/tests/test_db.py +++ b/odoorpc/tests/test_db.py @@ -2,7 +2,6 @@ from datetime import datetime import zipfile -import urllib2 from odoorpc.tests import BaseTestCase import odoorpc
[FIX] Remove 'urllib2' import in 'tests/test_db.py' (making unit tests crash with Python 3)
py
diff --git a/deimos/containerizer/docker.py b/deimos/containerizer/docker.py index <HASH>..<HASH> 100644 --- a/deimos/containerizer/docker.py +++ b/deimos/containerizer/docker.py @@ -258,8 +258,7 @@ class Docker(Containerizer, _Struct): raise Err("Wait lock is not held nor is exit file present") def destr...
Destroy should us proto arg, not STDIN.
py
diff --git a/symbol/typedecl.py b/symbol/typedecl.py index <HASH>..<HASH> 100644 --- a/symbol/typedecl.py +++ b/symbol/typedecl.py @@ -9,7 +9,7 @@ # the GNU General License # ---------------------------------------------------------------------- -from api.constants import TYPE_SIZES +from api.con...
Refact: uses TYPE constants. __str__() and __repr__() defined.
py
diff --git a/fuel/datasets/hdf5.py b/fuel/datasets/hdf5.py index <HASH>..<HASH> 100644 --- a/fuel/datasets/hdf5.py +++ b/fuel/datasets/hdf5.py @@ -1,11 +1,8 @@ -import logging import tables from fuel.datasets import Dataset from fuel.utils import do_not_pickle_attributes -logger = logging.getLogger(__name__) - ...
Let it crash if it cannot open file
py
diff --git a/src/rasterstats/main.py b/src/rasterstats/main.py index <HASH>..<HASH> 100644 --- a/src/rasterstats/main.py +++ b/src/rasterstats/main.py @@ -182,9 +182,6 @@ def gen_zonal_stats( # If we're on 64 bit platform and the array is an integer type # make sure we cast to 64 bit to avoid ...
Remove alternative <I> bit detections
py
diff --git a/salt/modules/config.py b/salt/modules/config.py index <HASH>..<HASH> 100644 --- a/salt/modules/config.py +++ b/salt/modules/config.py @@ -206,7 +206,9 @@ def merge(value, ret = list(ret) + list(tmp) if ret is None and value in DEFAULTS: return DEFAULTS[value] - return ret ...
Return the object got from config event it's empty. Instead of returning the `default` one.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -16,6 +16,7 @@ params = dict( description='Basic API request signing', long_description=LONG_DESCRIPTION, py_modules=['apysigner'], + install_requires=['six'], zip_safe=False, classifiers = [
Peripheral: Updated install_requires to include 'six' package
py
diff --git a/javaobj/v2/stream.py b/javaobj/v2/stream.py index <HASH>..<HASH> 100644 --- a/javaobj/v2/stream.py +++ b/javaobj/v2/stream.py @@ -43,6 +43,14 @@ class DataStreamReader: """ self.__fd = fd + @property + def file_descriptor(self): + # type: () -> IO[bytes] + """ + ...
Added access to FD in DataStreamReader
py
diff --git a/source/rafcon/gui/mygaphas/items/line.py b/source/rafcon/gui/mygaphas/items/line.py index <HASH>..<HASH> 100644 --- a/source/rafcon/gui/mygaphas/items/line.py +++ b/source/rafcon/gui/mygaphas/items/line.py @@ -242,16 +242,11 @@ class PerpLine(Line): else: angle = 0 - ...
fix(line): Consistent connection label size within hierarchy level Use the line_width as base for label size calculations instead of the size of the outcome. This ensures that the label size within one hierarchy level is consistent.
py
diff --git a/drizzlepac/haputils/catalog_utils.py b/drizzlepac/haputils/catalog_utils.py index <HASH>..<HASH> 100755 --- a/drizzlepac/haputils/catalog_utils.py +++ b/drizzlepac/haputils/catalog_utils.py @@ -762,14 +762,15 @@ class HAPCatalogBase: self.sourcelist_filename = self.imgname.replace(self.imgname[-...
Ensure the gain variables are defined for all detectors. (#<I>)
py
diff --git a/googleanalytics/tests/report.py b/googleanalytics/tests/report.py index <HASH>..<HASH> 100644 --- a/googleanalytics/tests/report.py +++ b/googleanalytics/tests/report.py @@ -48,4 +48,4 @@ class TestReporting(base.TestCase): report = q.get() for date in report['date']: - self....
Fix test to assert that dates should be cast to datetime.date instead of datetime.datetime.
py
diff --git a/spacy/tests/tokenizer/test_tokenizer.py b/spacy/tests/tokenizer/test_tokenizer.py index <HASH>..<HASH> 100644 --- a/spacy/tests/tokenizer/test_tokenizer.py +++ b/spacy/tests/tokenizer/test_tokenizer.py @@ -142,6 +142,12 @@ def test_ie(en_tokenizer): assert len(tokens) == 6 assert tokens[3].orth_ ...
* Add test for Issue #<I>: Additional whitespace introduced when string ends with a whitespace token.
py
diff --git a/src/hypercorn/trio/lifespan.py b/src/hypercorn/trio/lifespan.py index <HASH>..<HASH> 100644 --- a/src/hypercorn/trio/lifespan.py +++ b/src/hypercorn/trio/lifespan.py @@ -34,9 +34,14 @@ class Lifespan: raise except Exception: self.supported = False - await self....
Match the asyncio lifespan error logging for trio This makes the message clearer and more helpful.
py
diff --git a/pyforms/BaseWidget.py b/pyforms/BaseWidget.py index <HASH>..<HASH> 100644 --- a/pyforms/BaseWidget.py +++ b/pyforms/BaseWidget.py @@ -380,12 +380,12 @@ class BaseWidget(QtGui.QWidget): self.save(data) filename = QtGui.QFileDialog.getSaveFileName(self, 'Select file') - output = op...
enhancement of the json file processing and minor fix
py
diff --git a/scapy/ansmachine.py b/scapy/ansmachine.py index <HASH>..<HASH> 100644 --- a/scapy/ansmachine.py +++ b/scapy/ansmachine.py @@ -68,7 +68,7 @@ class AnsweringMachine(object): def parse_all_options(self, mode, kargs): sniffopt = {} sendopt = {} - for k in kargs.keys(): ...
Python3 doesn't allow dict to be modified during iteration
py
diff --git a/multinode.py b/multinode.py index <HASH>..<HASH> 100644 --- a/multinode.py +++ b/multinode.py @@ -59,7 +59,7 @@ if __name__ == "__main__": nodes = [ Node(None, "n%s" % x) for x in range(num_nodes) ] - desired_min_eigenvalue = 2 # must be less than the total number of nodes!!! + desired_min_...
fix eigenvalue so its always sets up links properly
py
diff --git a/i18n/tests/loader_tests.py b/i18n/tests/loader_tests.py index <HASH>..<HASH> 100644 --- a/i18n/tests/loader_tests.py +++ b/i18n/tests/loader_tests.py @@ -1,10 +1,11 @@ import unittest -import i18n +from i18n import resource_loader class TestFileLoader(unittest.TestCase): - def test_dummy(self): - ...
Add test for nonexisting file extensions.
py
diff --git a/taxi/app.py b/taxi/app.py index <HASH>..<HASH> 100755 --- a/taxi/app.py +++ b/taxi/app.py @@ -127,19 +127,22 @@ def clean_aliases(options, args): project = db.get(mapping[0]) activity = None - if mapping[1] is not None: - activity = project.get_activity(mapping[1]) + ...
don't make clean-aliases fail if a mapped project doesn't exist in the projects database
py
diff --git a/tests/test_view.py b/tests/test_view.py index <HASH>..<HASH> 100644 --- a/tests/test_view.py +++ b/tests/test_view.py @@ -133,10 +133,6 @@ def test_view_throws_exception_without_cache_binding(): def test_view_cache_caches_files(): - """ - Test for cache template each 5 min - """ - contai...
removed docstring. Will add test docstrings all at once at a future date
py
diff --git a/runcommands/runners/remote.py b/runcommands/runners/remote.py index <HASH>..<HASH> 100644 --- a/runcommands/runners/remote.py +++ b/runcommands/runners/remote.py @@ -200,7 +200,23 @@ EOF port = int(config.get('port', DEFAULT_SSH_PORT)) key_file = config.get('identityfile') - ...
In RemoteRunner, handle ProxyJump config This is currently limited to just one proxy host. Some refactoring is probably in order to support multiple hops.
py
diff --git a/bark/middleware.py b/bark/middleware.py index <HASH>..<HASH> 100644 --- a/bark/middleware.py +++ b/bark/middleware.py @@ -141,7 +141,7 @@ class BarkMiddleware(object): for log, (format, handler) in self.handlers.items(): result = format.convert(request, response, data[log]) - ...
Emit log messages to the right handler We now know that a handler, as returned by get_handler(), is a callable of one argument--the formatted message. Fill in the placeholder code with the correct invocation.
py
diff --git a/charmhelpers/osplatform.py b/charmhelpers/osplatform.py index <HASH>..<HASH> 100644 --- a/charmhelpers/osplatform.py +++ b/charmhelpers/osplatform.py @@ -8,12 +8,18 @@ def get_platform(): will be returned (which is the name of the module). This string is used to decide which platform module shoul...
Handle platform.linux_platform() reporting "debian"
py
diff --git a/clif/conf.py b/clif/conf.py index <HASH>..<HASH> 100644 --- a/clif/conf.py +++ b/clif/conf.py @@ -3,7 +3,7 @@ import os import sys import yaml -import cli.logger as logger +import clif.logger as logger from . import CliError, hooks from pprint import pformat
Forget to change an import when renaming the project ...
py
diff --git a/test/test_knn.py b/test/test_knn.py index <HASH>..<HASH> 100644 --- a/test/test_knn.py +++ b/test/test_knn.py @@ -51,7 +51,7 @@ def test_duplicate_data(): RuntimeWarning, r"Detected zero distance between samples ([0-9and,\s]*). Consider removing duplicates to avoid errors in downstream pr...
Many duplicates occurs for <I> or more, reduce short test to 9
py
diff --git a/bokeh/server/django/__init__.py b/bokeh/server/django/__init__.py index <HASH>..<HASH> 100644 --- a/bokeh/server/django/__init__.py +++ b/bokeh/server/django/__init__.py @@ -6,7 +6,8 @@ if six.PY2: from bokeh.util.dependencies import import_required import_required("django", "django is required by boke...
Improve error message if import of channels fails. (#<I>) Currently channels in only availeble on pip, but not conda. Thus the conda install mentioned in the developer guide will not install it. To run pytest -m codebase (mentioned in the developer guide) to be added as git pre-commit hook will fail, giving first-t...
py
diff --git a/datajoint/relational_operand.py b/datajoint/relational_operand.py index <HASH>..<HASH> 100644 --- a/datajoint/relational_operand.py +++ b/datajoint/relational_operand.py @@ -63,7 +63,7 @@ class RelationalOperand(metaclass=abc.ABCMeta): assert arg is None or isinstance(arg, RelationalOperand), \ ...
fixed #<I>: foreign key attributes are now emphasized in HTML representations of tables
py
diff --git a/spacy/cli/evaluate.py b/spacy/cli/evaluate.py index <HASH>..<HASH> 100644 --- a/spacy/cli/evaluate.py +++ b/spacy/cli/evaluate.py @@ -84,12 +84,12 @@ def evaluate( def render_parses(docs, output_path, model_name="", limit=250, deps=True, ents=True): docs[0].user_data["title"] = model_name if ent...
Move generation of parses out of with blocks
py
diff --git a/scbw/bot_storage.py b/scbw/bot_storage.py index <HASH>..<HASH> 100644 --- a/scbw/bot_storage.py +++ b/scbw/bot_storage.py @@ -86,7 +86,7 @@ class SscaitBotStorage(BotStorage): def get_bot_specs(self): response = requests.get("http://sscaitournament.com/api/bots.php") - return json.lo...
Use response.text which is utf-8 decoded by default instead of response.content
py
diff --git a/wagtailvideos/models.py b/wagtailvideos/models.py index <HASH>..<HASH> 100644 --- a/wagtailvideos/models.py +++ b/wagtailvideos/models.py @@ -171,6 +171,11 @@ class AbstractVideo(CollectionMember, index.Indexed, models.Model): @property def file_ext(self): return os.path.splitext(self.fi...
Fix mimetype when the URL has params Using Cloud Storage could generate urls like: `<URL> Also, extracting the mimetype to some property that can be reused. Similar to <URL>
py
diff --git a/fasta/graphs.py b/fasta/graphs.py index <HASH>..<HASH> 100644 --- a/fasta/graphs.py +++ b/fasta/graphs.py @@ -12,12 +12,14 @@ __all__ = ['LengthDist'] class LengthDist(Graph): """The length distribution of the sequences""" short_name = 'length_dist' + sep = ('x') + x_grid = True...
Refactored the graph class a bit
py
diff --git a/src/petl/base.py b/src/petl/base.py index <HASH>..<HASH> 100644 --- a/src/petl/base.py +++ b/src/petl/base.py @@ -66,11 +66,16 @@ class IterContainer(object): return frozenset(self) def list(self): - return list(self) + # avoid iterating twice + l = list() + ...
closes #<I> by avoiding two passes over the container when building a list or tuple
py
diff --git a/modeltranslation/admin.py b/modeltranslation/admin.py index <HASH>..<HASH> 100644 --- a/modeltranslation/admin.py +++ b/modeltranslation/admin.py @@ -6,15 +6,16 @@ from django.contrib.admin.options import BaseModelAdmin, InlineModelAdmin from django.contrib.contenttypes import generic from django.utils i...
Silenced pyflakes for required but unused import statement.
py
diff --git a/source/rafcon/gui/start.py b/source/rafcon/gui/start.py index <HASH>..<HASH> 100755 --- a/source/rafcon/gui/start.py +++ b/source/rafcon/gui/start.py @@ -256,7 +256,11 @@ def signal_handler(signal, frame): import traceback print _("Could not stop state machine: {0} {1}").format(e.message,...
start.py: Exit with an error if prepare_destruction fails
py
diff --git a/pydoop/mapreduce/simulator.py b/pydoop/mapreduce/simulator.py index <HASH>..<HASH> 100644 --- a/pydoop/mapreduce/simulator.py +++ b/pydoop/mapreduce/simulator.py @@ -96,7 +96,7 @@ class TrivialRecordWriter(UpStreamAdapter): self.simulator = simulator def output(self, key, value): - s...
Simulator now generate stream of bytes in default.
py
diff --git a/identities/models.py b/identities/models.py index <HASH>..<HASH> 100644 --- a/identities/models.py +++ b/identities/models.py @@ -50,5 +50,5 @@ class OptOut(models.Model): """An opt_out""" identity = models.ForeignKey(Identity) request_source = models.CharField(null=False, max_length=100) - ...
changed request_source_id field to be charfield
py
diff --git a/shotgun.py b/shotgun.py index <HASH>..<HASH> 100644 --- a/shotgun.py +++ b/shotgun.py @@ -65,7 +65,7 @@ logging.info("(shotgun) beginning iterative estimation...") while (iIter < nIter) & (deltaCheck > tol): logging.info("(shotgun) starting iteration " + str(iIter)) logging.info("(shotgun) computing A...
Filter before reducing in Ab calculation
py
diff --git a/karld/run_together.py b/karld/run_together.py index <HASH>..<HASH> 100644 --- a/karld/run_together.py +++ b/karld/run_together.py @@ -2,7 +2,6 @@ from functools import partial from itertools import ifilter import os -from concurrent.futures import ProcessPoolExecutor from karld.iter_utils import yield...
Move import of futures module the one function to use it. This will enable the import and use of the rest of this module without having futures installed.
py
diff --git a/src/urh/plugins/NetworkSDRInterface/NetworkSDRInterfacePlugin.py b/src/urh/plugins/NetworkSDRInterface/NetworkSDRInterfacePlugin.py index <HASH>..<HASH> 100644 --- a/src/urh/plugins/NetworkSDRInterface/NetworkSDRInterfacePlugin.py +++ b/src/urh/plugins/NetworkSDRInterface/NetworkSDRInterfacePlugin.py @@ -7...
catch memory error for network sdr buffer allocation
py
diff --git a/bambou/nurest_object.py b/bambou/nurest_object.py index <HASH>..<HASH> 100644 --- a/bambou/nurest_object.py +++ b/bambou/nurest_object.py @@ -9,6 +9,7 @@ import json +import logging from copy import deepcopy @@ -855,7 +856,14 @@ class NURESTObject(object): has_callbacks = connection.has_...
Used warning log when response status_code is greater or equal than <I>. Fixes VSD-<I>
py
diff --git a/py/selenium/webdriver/phantomjs/service.py b/py/selenium/webdriver/phantomjs/service.py index <HASH>..<HASH> 100755 --- a/py/selenium/webdriver/phantomjs/service.py +++ b/py/selenium/webdriver/phantomjs/service.py @@ -106,6 +106,7 @@ class Service(object): self.process.stdin.close() ...
Allow stop to be safely called multiple times. If stop is called on an already-stopped service (e.g. by __del__) it must not signal the PID of the now-dead phantomjs process.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -1,5 +1,6 @@ #!/usr/bin/env python -from setuptools import setup, find_packages +from setuptools import find_packages, setup + setup( name='blanc-basic-news', @@ -25,6 +26,7 @@ setup( 'Programming Language ::...
Add Python <I> to supported list
py
diff --git a/unleash/git.py b/unleash/git.py index <HASH>..<HASH> 100644 --- a/unleash/git.py +++ b/unleash/git.py @@ -5,11 +5,11 @@ from stat import S_ISLNK, S_ISDIR, S_ISREG, S_IFDIR, S_IRWXU, S_IRWXG, S_IRWXO import time from dateutil.tz import tzlocal +from dulwich.errors import NotTreeError from dulwich.objec...
Do not fail if a file exists that is named similar to a directory that is supposed to exist.
py
diff --git a/keyboard/_keyboard_tests.py b/keyboard/_keyboard_tests.py index <HASH>..<HASH> 100644 --- a/keyboard/_keyboard_tests.py +++ b/keyboard/_keyboard_tests.py @@ -42,7 +42,7 @@ class TestKeyboard(unittest.TestCase): keyboard._listener.listening = True self.events = [] keyboard._presse...
Fix keyboard tests not overriding os_keyboard
py
diff --git a/exchangelib/folders.py b/exchangelib/folders.py index <HASH>..<HASH> 100644 --- a/exchangelib/folders.py +++ b/exchangelib/folders.py @@ -610,10 +610,12 @@ class Folder(RegisterMixIn): if self.is_distinguished or (not self.folder_id and self.has_distinguished_name): # Don't add the ch...
Support generating XML for distinguished folders with no account
py
diff --git a/multiqc/modules/picard/picard.py b/multiqc/modules/picard/picard.py index <HASH>..<HASH> 100755 --- a/multiqc/modules/picard/picard.py +++ b/multiqc/modules/picard/picard.py @@ -312,7 +312,8 @@ class MultiqcModule(BaseMultiqcModule): data[s_name]['summed_median'] = self.picard_insertSize_media...
Shouldn't try to be clever. See #<I>.
py
diff --git a/django_extensions/management/commands/show_urls.py b/django_extensions/management/commands/show_urls.py index <HASH>..<HASH> 100644 --- a/django_extensions/management/commands/show_urls.py +++ b/django_extensions/management/commands/show_urls.py @@ -143,7 +143,7 @@ class Command(BaseCommand): ...
show_urls -f aligned: 3 spaces between columns
py
diff --git a/armstrong/hatband/sites.py b/armstrong/hatband/sites.py index <HASH>..<HASH> 100644 --- a/armstrong/hatband/sites.py +++ b/armstrong/hatband/sites.py @@ -25,6 +25,9 @@ class HatbandAndDjangoRegistry(object): return True return False + def __setitem__(self, k, v): + sel...
Make sure __setitem__ is available for site.register()
py
diff --git a/tests/__init__.py b/tests/__init__.py index <HASH>..<HASH> 100644 --- a/tests/__init__.py +++ b/tests/__init__.py @@ -1,6 +1,8 @@ # coding: utf-8 from __future__ import unicode_literals, division, absolute_import, print_function +import imp +import os import unittest @@ -29,6 +31,12 @@ def test_cl...
Ensure module is being loaded from source dir when tests are imported elsewhere
py
diff --git a/doitlive/termutils.py b/doitlive/termutils.py index <HASH>..<HASH> 100644 --- a/doitlive/termutils.py +++ b/doitlive/termutils.py @@ -44,7 +44,7 @@ def raw_mode(): yield finally: # this block sets the terminal to sane mode again, - # also in case an exception o...
Fix simple typo: occured -> occurred
py
diff --git a/zipline/data/loader.py b/zipline/data/loader.py index <HASH>..<HASH> 100644 --- a/zipline/data/loader.py +++ b/zipline/data/loader.py @@ -158,10 +158,13 @@ def load_market_data(trading_day=trading_day_nyse, try: saved_benchmarks = pd.Series.from_csv(bm_filepath) except (OSError, IOError)...
MAINT: Use logger instead of printing in loader.py Makes it easier to filter logs when they're not desired.
py
diff --git a/cleverhans/picklable_model.py b/cleverhans/picklable_model.py index <HASH>..<HASH> 100644 --- a/cleverhans/picklable_model.py +++ b/cleverhans/picklable_model.py @@ -576,6 +576,7 @@ class Dropout(Layer): return tf.nn.dropout(x, include_prob) return x + class Residual(Layer): "...
autopep8 after rebase
py
diff --git a/ReText/webpages.py b/ReText/webpages.py index <HASH>..<HASH> 100644 --- a/ReText/webpages.py +++ b/ReText/webpages.py @@ -2,7 +2,7 @@ # Copyright: Dmitry Shachnev 2012 # License: GNU GPL v2 or higher -import os +import os.path import shutil from markups.web import WebLibrary from ReText import app_v...
webpages: don't makedir html, it's now done by pymarkups
py
diff --git a/docs/conf.py b/docs/conf.py index <HASH>..<HASH> 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -292,13 +292,6 @@ latex_documents = [ autoclass_content = 'both' -intersphinx_mapping = { - 'python': ('https://docs.python.org/2/', (None, '../python2-2.7.13.inv')), - 'python3': ('https://docs.pyth...
Remove unused intersphinx mappings (#<I>) This sorts an issue we found this morning where building docs failed due cloudfare flakiness.
py
diff --git a/thoth/python/package_version.py b/thoth/python/package_version.py index <HASH>..<HASH> 100644 --- a/thoth/python/package_version.py +++ b/thoth/python/package_version.py @@ -226,7 +226,11 @@ class PackageVersion: def to_tuple(self) -> tuple: """Return a tuple representing this Python packag...
Introduce to_tuple_locked for locked packages
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 @@ -40,6 +40,7 @@ IS_PYOPENSSL_SSL_VERSION_1_0 = ( ) PY27 = sys.version_info[:2] == (2, 7) PY34 = sys.version_info[:2] == (3, 4) +PY3 = not six.PY2 _stdlib_t...
Expect HTTPS fallback under actions/win/py3
py
diff --git a/web/core/application.py b/web/core/application.py index <HASH>..<HASH> 100644 --- a/web/core/application.py +++ b/web/core/application.py @@ -201,9 +201,14 @@ class Application(object): # Passing invalid arguments would 500 Internal Server Error on us due to the TypeError exception bubbling up. try: ...
Improved callable instance vs. routine detection.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100755 --- a/setup.py +++ b/setup.py @@ -108,7 +108,7 @@ setup( "argcomplete", ], extras_require={ - "deps": ["galaxy-tool-util"], + "deps": ["galaxy-tool-util >= 21.1.0"], "docs": [ "sphinx >= 2.2", ...
Also setup.py, since older g-t-u won't work
py
diff --git a/pyqode/core/frontend/modes/right_margin.py b/pyqode/core/frontend/modes/right_margin.py index <HASH>..<HASH> 100644 --- a/pyqode/core/frontend/modes/right_margin.py +++ b/pyqode/core/frontend/modes/right_margin.py @@ -76,7 +76,7 @@ class RightMarginMode(Mode): def _paint_margin(self, event): # pyli...
Fix visual bug with right margin, alway use an up to date font for metrics
py
diff --git a/pywws/WeatherStation.py b/pywws/WeatherStation.py index <HASH>..<HASH> 100755 --- a/pywws/WeatherStation.py +++ b/pywws/WeatherStation.py @@ -457,6 +457,8 @@ class weather_station(object): self.logger.warning('live_data lost sync') result = None ...
Bug fix - see issue <I>.
py
diff --git a/libtmux/common.py b/libtmux/common.py index <HASH>..<HASH> 100644 --- a/libtmux/common.py +++ b/libtmux/common.py @@ -228,7 +228,8 @@ class TmuxMappingObject(collections.MutableMapping): try: return self._info[self.formatter_prefix + key] except: - raise AttributeE...
raise more detailed error if attribute not found
py
diff --git a/tests/test_date_parser.py b/tests/test_date_parser.py index <HASH>..<HASH> 100644 --- a/tests/test_date_parser.py +++ b/tests/test_date_parser.py @@ -456,11 +456,12 @@ class TestDateParser(BaseTestCase): self.then_error_was_raised(ValueError, 'Day not in range for month') @parameterized.exp...
Fixed tests failing due to timezone differences
py
diff --git a/tests/_test_process_executor.py b/tests/_test_process_executor.py index <HASH>..<HASH> 100644 --- a/tests/_test_process_executor.py +++ b/tests/_test_process_executor.py @@ -74,6 +74,12 @@ def sleep_and_return(delay, x): return x +def sleep_and_write(t, filename, msg): + time.sleep(t) + with...
FIX make test_executor_shutdown pass again when cloudpickle is not installed
py
diff --git a/pyramda/iterable/reject_test.py b/pyramda/iterable/reject_test.py index <HASH>..<HASH> 100644 --- a/pyramda/iterable/reject_test.py +++ b/pyramda/iterable/reject_test.py @@ -7,3 +7,11 @@ def test_reject_filters_out_unwanted_items_in_iterable(): def test_curry_reject_filters_out_unwanted_items_in_iterabl...
Add test to ensure reject does not remove duplicates
py