diff
stringlengths
139
3.65k
message
stringlengths
8
627
diff_languages
stringclasses
1 value
diff --git a/lib/svtplay_dl/service/tv4play.py b/lib/svtplay_dl/service/tv4play.py index <HASH>..<HASH> 100644 --- a/lib/svtplay_dl/service/tv4play.py +++ b/lib/svtplay_dl/service/tv4play.py @@ -156,7 +156,12 @@ class Tv4play(Service, OpenGraphThumbMixin): parse = urlparse(self.url) if parse.path.coun...
tv4play: fix auto naming for latest version of the site
py
diff --git a/blox/compile.py b/blox/compile.py index <HASH>..<HASH> 100644 --- a/blox/compile.py +++ b/blox/compile.py @@ -105,6 +105,7 @@ def to_python(dom, factory=factory, indent=' '): build_steps="\n{indent}".join(lines).format(indent=indent), ...
Fix spacing between functions to adhere to pep8
py
diff --git a/backtrader/lineseries.py b/backtrader/lineseries.py index <HASH>..<HASH> 100644 --- a/backtrader/lineseries.py +++ b/backtrader/lineseries.py @@ -229,7 +229,7 @@ class LineSeries(six.with_metaclass(MetaLineSeries, object)): def __setitem__(self, line, value): self.lines[line][0] = value - ...
lineseries.LineSeries __init__ takes *args **kargs to avoid errors with automatic initialization
py
diff --git a/federation/entities/activitypub/entities.py b/federation/entities/activitypub/entities.py index <HASH>..<HASH> 100644 --- a/federation/entities/activitypub/entities.py +++ b/federation/entities/activitypub/entities.py @@ -8,7 +8,7 @@ from federation.entities.activitypub.constants import ( CONTEXT_LD_S...
Ensure ActivitypubComment can have public attribute This is required since unlike our base Comment, Activitypub originating comments will possibly have a public namespace as a target. We represent that internally with the "public" attribute.
py
diff --git a/testsuite/test_workflows.py b/testsuite/test_workflows.py index <HASH>..<HASH> 100644 --- a/testsuite/test_workflows.py +++ b/testsuite/test_workflows.py @@ -43,7 +43,8 @@ class WorkflowViewTest(InvenioTestCase): """Test if admin view is avaiable.""" from flask import url_for - r...
global: fix for testing <I> after redirection * Addresses issue with testing HTTP <I> status code after redirections to secure page. (closes #<I>)
py
diff --git a/datasette/filters.py b/datasette/filters.py index <HASH>..<HASH> 100644 --- a/datasette/filters.py +++ b/datasette/filters.py @@ -145,7 +145,9 @@ class Filters: else [] ) + [ - TemplatedFilter("date", "date", "date({c}) = :{p}", '"{c}" is on date {v}'), + ...
Fix ?col__date= for columns with spaces
py
diff --git a/fwdpy11/_monkeypatch/_table_collection.py b/fwdpy11/_monkeypatch/_table_collection.py index <HASH>..<HASH> 100644 --- a/fwdpy11/_monkeypatch/_table_collection.py +++ b/fwdpy11/_monkeypatch/_table_collection.py @@ -133,8 +133,8 @@ def _ndfs(self, samples, sample_groups, num_sample_groups, ...
Fix ndfs performance bottleneck.
py
diff --git a/opennamed.py b/opennamed.py index <HASH>..<HASH> 100644 --- a/opennamed.py +++ b/opennamed.py @@ -88,6 +88,14 @@ class OpennamedRPC(object): def run_server(): """ run the opennamed server """ + + import subprocess + import os + file_path = os.path.dirname(__file__) + '/dht/server.tac' +...
start/stop dht node with opennamed
py
diff --git a/salt/returners/syslog_return.py b/salt/returners/syslog_return.py index <HASH>..<HASH> 100644 --- a/salt/returners/syslog_return.py +++ b/salt/returners/syslog_return.py @@ -10,9 +10,16 @@ facility to log return data # Import python libs import syslog import json +try: + import syslog + HAS_SYSLOG...
Check for syslog. Doesn't exist on Windows
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -127,8 +127,8 @@ class PyTest(TestCommand): def run_tests(self): # import here, cause outside the eggs aren't loaded import pytest - errno = pytest.main('txproductpages --flake8 ' + - ...
setup.py: split args to pytest.main The latest versions of pytest (<I>) require a list of strings here, not one single string.
py
diff --git a/bokeh/models/sources.py b/bokeh/models/sources.py index <HASH>..<HASH> 100644 --- a/bokeh/models/sources.py +++ b/bokeh/models/sources.py @@ -151,7 +151,7 @@ class ColumnDataSource(DataSource): Args: data (seq) : new data to add name (str, optional) : column name to use. ...
Fixes typo: "go" -> "of" (#<I>)
py
diff --git a/samcli/__init__.py b/samcli/__init__.py index <HASH>..<HASH> 100644 --- a/samcli/__init__.py +++ b/samcli/__init__.py @@ -2,4 +2,4 @@ SAM CLI version """ -__version__ = "1.33.0" +__version__ = "1.34.0"
chore: version bump to <I> (#<I>)
py
diff --git a/openquake/risklib/scientific.py b/openquake/risklib/scientific.py index <HASH>..<HASH> 100644 --- a/openquake/risklib/scientific.py +++ b/openquake/risklib/scientific.py @@ -1534,7 +1534,8 @@ class LossesByPeriodBuilder(object): :returns: an array of (P, R) values of dtype loss_dt """ ...
Added NaN for low periods if needed
py
diff --git a/librosa/onset.py b/librosa/onset.py index <HASH>..<HASH> 100644 --- a/librosa/onset.py +++ b/librosa/onset.py @@ -303,8 +303,8 @@ def onset_strength(y=None, sr=22050, S=None, lag=1, max_size=1, Constant-Q spectrogram instead of Mel - >>> onset_env = librosa.onset.onset_strength(y=y, sr=sr, - ...
fixed a doc thinko in onset strength
py
diff --git a/paramiko/proxy.py b/paramiko/proxy.py index <HASH>..<HASH> 100644 --- a/paramiko/proxy.py +++ b/paramiko/proxy.py @@ -26,9 +26,10 @@ from select import select import socket from paramiko.ssh_exception import ProxyCommandFailure +from paramiko.util import ClosingContextManager -class ProxyCommand(ob...
Turn ProxyCommand into a context manager
py
diff --git a/montblanc/impl/common/loaders/loaders.py b/montblanc/impl/common/loaders/loaders.py index <HASH>..<HASH> 100644 --- a/montblanc/impl/common/loaders/loaders.py +++ b/montblanc/impl/common/loaders/loaders.py @@ -48,10 +48,14 @@ class MeasurementSetLoader(BaseLoader): # Open the main table m...
Order MS by spectral window (band)
py
diff --git a/sorl/thumbnail/engines/pil_engine.py b/sorl/thumbnail/engines/pil_engine.py index <HASH>..<HASH> 100644 --- a/sorl/thumbnail/engines/pil_engine.py +++ b/sorl/thumbnail/engines/pil_engine.py @@ -135,7 +135,7 @@ class Engine(EngineBase): params['progressive'] = True try: im...
Pil/Pillow encode errors can raise an OSError Exception Related to #<I> and #<I>
py
diff --git a/source/test/testing_utils.py b/source/test/testing_utils.py index <HASH>..<HASH> 100644 --- a/source/test/testing_utils.py +++ b/source/test/testing_utils.py @@ -10,7 +10,7 @@ TMP_TEST_PATH = "/tmp/{0}/rafcon_unit_tests".format(getpass.getuser()) RAFCON_PATH = rafcon.__path__[0] TEST_SM_PATH = join(dir...
correct path to allow multiple users to run the tests on one machine
py
diff --git a/pylibscrypt/libsodium_load.py b/pylibscrypt/libsodium_load.py index <HASH>..<HASH> 100644 --- a/pylibscrypt/libsodium_load.py +++ b/pylibscrypt/libsodium_load.py @@ -17,7 +17,7 @@ import sys def get_libsodium(): - '''Locate the nacl c libs to use''' + '''Locate the libsodium C library''' ...
Retry platform specific methods if ctypes.CDLL fails Fixes #<I>
py
diff --git a/salmon/apps/monitor/views.py b/salmon/apps/monitor/views.py index <HASH>..<HASH> 100644 --- a/salmon/apps/monitor/views.py +++ b/salmon/apps/monitor/views.py @@ -8,15 +8,14 @@ from . import models def dashboard(request): """Shows the latest results for each minion""" minions = {} - latest_res...
Fixes bad logic with crazy raw SQL
py
diff --git a/luigi/parameter.py b/luigi/parameter.py index <HASH>..<HASH> 100644 --- a/luigi/parameter.py +++ b/luigi/parameter.py @@ -418,10 +418,6 @@ class BoolParameter(Parameter): """ def __init__(self, *args, **kwargs): - """ - This constructor passes along args and kwargs to ctor for :py...
docs: Clean up docs for Bool[ean]Parameter * Mention that BooleanParameter is deprecated in docs * Remove old outdated implementation details from __init__
py
diff --git a/src/oiccli/util.py b/src/oiccli/util.py index <HASH>..<HASH> 100755 --- a/src/oiccli/util.py +++ b/src/oiccli/util.py @@ -3,13 +3,6 @@ from urllib.parse import parse_qs from urllib.parse import urlsplit from urllib.parse import urlunsplit -from six import string_types -from future.backports.http.cookie...
Removed unused imports and removed <I> handling.
py
diff --git a/cleo/outputs/output.py b/cleo/outputs/output.py index <HASH>..<HASH> 100644 --- a/cleo/outputs/output.py +++ b/cleo/outputs/output.py @@ -9,9 +9,11 @@ class OutputError(Exception): class Output(object): - VERBOSITY_QUIET = 0 - VERBOSITY_NORMAL = 1 - VERBOSITY_VERBOSE = 2 + VERBOSITY_QUIET ...
Adding more levels of verbosity
py
diff --git a/cnxepub/tests/test_formatters.py b/cnxepub/tests/test_formatters.py index <HASH>..<HASH> 100644 --- a/cnxepub/tests/test_formatters.py +++ b/cnxepub/tests/test_formatters.py @@ -1052,6 +1052,7 @@ class ExerciseCallbackTestCase(unittest.TestCase): 'items': [{ 'questions': [{ ...
Minor test fix for new versions of jinja2 This fixes an error that otherwise occurs in the test case for newer versions of jinja2 (>= <I>): jinja2.exceptions.UndefinedError: 'dict object' has no attribute 'formats'
py
diff --git a/pymatgen/io/abinitio/flows.py b/pymatgen/io/abinitio/flows.py index <HASH>..<HASH> 100644 --- a/pymatgen/io/abinitio/flows.py +++ b/pymatgen/io/abinitio/flows.py @@ -393,9 +393,11 @@ class AbinitFlow(Node): #todo info_msg = 'We encountered an abi critial envent that could not be f...
trying to wait for the moon to change phase Former-commit-id: e5fab0f<I>ceffbff3cb<I>a<I>b<I> [formerly b<I>afd<I>d<I>bcb7ab<I>e7e<I>cf] Former-commit-id: e3f<I>c<I>b2de<I>d<I>c3b<I>ad<I>da
py
diff --git a/linguist/descriptors.py b/linguist/descriptors.py index <HASH>..<HASH> 100644 --- a/linguist/descriptors.py +++ b/linguist/descriptors.py @@ -145,7 +145,7 @@ class CacheDescriptor(dict): obj = None try: obj = Translation.objects.get(**attrs) - except in...
Fix stupid mistakes in descriptors module.
py
diff --git a/enoslib/infra/enos_chameleonbaremetal/provider.py b/enoslib/infra/enos_chameleonbaremetal/provider.py index <HASH>..<HASH> 100644 --- a/enoslib/infra/enos_chameleonbaremetal/provider.py +++ b/enoslib/infra/enos_chameleonbaremetal/provider.py @@ -184,7 +184,7 @@ class Chameleonbaremetal(cc.Chameleonkvm): ...
Chameleon: hostnames shouldn't include _ tldr; in the kubernetes deployment there's a check on hostnames that fais if it contains underscore.
py
diff --git a/green/cmdline.py b/green/cmdline.py index <HASH>..<HASH> 100644 --- a/green/cmdline.py +++ b/green/cmdline.py @@ -116,7 +116,7 @@ def main(testing=False, coverage_testing=False): '*/termstyle*', '*/mock*', tempfile.gettempdir() + '*'] - if 'gree...
Fixed Roland's logic error in the adaptation of the omit logic.
py
diff --git a/mr/awsome/common.py b/mr/awsome/common.py index <HASH>..<HASH> 100644 --- a/mr/awsome/common.py +++ b/mr/awsome/common.py @@ -167,6 +167,8 @@ class BaseMaster(object): self.section_info = {self.sectiongroupname: self.instance_class} for sectiongroupname, instance_class in self.section...
Allow to explicitly name the master if there are multiple ones.
py
diff --git a/spyder/plugins/editor/lsp/transport/main.py b/spyder/plugins/editor/lsp/transport/main.py index <HASH>..<HASH> 100644 --- a/spyder/plugins/editor/lsp/transport/main.py +++ b/spyder/plugins/editor/lsp/transport/main.py @@ -22,7 +22,7 @@ import signal # Local imports from spyder.py3compat import getcwd -...
LSP: Use absolute import for producer module in transport/main.py This way we'll avoid errors due to importing anything called "producer"
py
diff --git a/ayrton/__init__.py b/ayrton/__init__.py index <HASH>..<HASH> 100644 --- a/ayrton/__init__.py +++ b/ayrton/__init__.py @@ -198,5 +198,6 @@ def run (code, globals, locals): runner.run () def main (script=None, file=None, **kwargs): + global runner runner= Ayrton (script=script, file=file, **k...
@ revert reference to global.
py
diff --git a/tests/foundrytest.py b/tests/foundrytest.py index <HASH>..<HASH> 100644 --- a/tests/foundrytest.py +++ b/tests/foundrytest.py @@ -5,8 +5,10 @@ Test lots of ontologies from the OBO Foundry. OBO_CATALOG = 'http://www.obofoundry.org/registry/ontologies.jsonld' -BLOCKLIST = ('chebi.owl', 'chebi.obo', 'pr....
Add agro.owl to blocklist
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100755 --- a/setup.py +++ b/setup.py @@ -128,8 +128,8 @@ setup( sass_manifests={ 'rafcon': { - 'sass_path': 'gui/assets/share/themes/RAFCON/sass', - 'css_path': 'gui/assets/share/themes/RAFCON/gtk-3.0', + 'sass_path':...
chore(setup.py): fix path to theme for build_sass
py
diff --git a/sos/report/reporting.py b/sos/report/reporting.py index <HASH>..<HASH> 100644 --- a/sos/report/reporting.py +++ b/sos/report/reporting.py @@ -191,7 +191,10 @@ class PlainTextReport(object): def process_subsection(self, section, key, header, format_, footer): if key in section: se...
[reporting] Sort order of report contents by name When using `reporting.py`, e.g. for `sos.txt`, sort the content on a per-section basis so that comparison between multiple sos reports is easier. Closes: #<I> Resolves: #<I>
py
diff --git a/numina/types/product.py b/numina/types/product.py index <HASH>..<HASH> 100644 --- a/numina/types/product.py +++ b/numina/types/product.py @@ -37,18 +37,6 @@ class DataProductMixin(DataTypeBase): sclass = type(self).__name__ return "%s" % (sclass,) - def query(self, name, dal, ob, opt...
Remove unneeded query function in DataProductMixin
py
diff --git a/thinc/util.py b/thinc/util.py index <HASH>..<HASH> 100644 --- a/thinc/util.py +++ b/thinc/util.py @@ -63,11 +63,19 @@ def get_array_module(arr): # pragma: no cover return numpy +def gpu_is_available(): + try: + cupy.cuda.runtime.getDeviceCount() + return True + except cupy...
think-gpu (#<I>)
py
diff --git a/tests/globecoordinate_test.py b/tests/globecoordinate_test.py index <HASH>..<HASH> 100644 --- a/tests/globecoordinate_test.py +++ b/tests/globecoordinate_test.py @@ -8,11 +8,11 @@ from wikidata.globecoordinate import GlobeCoordinate @fixture def fx_globecoordinate() -> GlobeCoordinate: client = Clie...
Python <I> mypy doesn't like kwargs with **dict
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100755 --- a/setup.py +++ b/setup.py @@ -38,7 +38,6 @@ class build_ext_opt(build_ext): extensions = [ Extension('pybar.analysis.RawDataConverter.data_interpreter', ['pybar/analysis/RawDataConverter/data_interpreter.pyx', 'pybar/analysis/RawDataConverter/Interp...
PRJ: forgotten in last comit, do not build clusterizer anymore
py
diff --git a/ergodic.py b/ergodic.py index <HASH>..<HASH> 100644 --- a/ergodic.py +++ b/ergodic.py @@ -118,7 +118,9 @@ def fmpt(P): I = np.identity(k) Z = la.inv(I - P + A) E = np.ones_like(Z) - D = np.diag(1. / np.diag(A)) + A_diag = np.diag(A) + A_diag = A_diag + (A_diag==0) + D = np.diag(1...
ENH: handle the case of an ergodic distribution where one state has 0 probability
py
diff --git a/astroid/tests/unittest_nodes.py b/astroid/tests/unittest_nodes.py index <HASH>..<HASH> 100644 --- a/astroid/tests/unittest_nodes.py +++ b/astroid/tests/unittest_nodes.py @@ -1159,5 +1159,16 @@ def test_assignment_expression(): assert second.as_string() == "b := test" +def test_get_doc(): + node...
Add test for extracting a doc to make sure we have it working on Python <I>
py
diff --git a/jf_agent/jf_jira/__init__.py b/jf_agent/jf_jira/__init__.py index <HASH>..<HASH> 100644 --- a/jf_agent/jf_jira/__init__.py +++ b/jf_agent/jf_jira/__init__.py @@ -30,7 +30,7 @@ logger = logging.getLogger(__name__) @agent_logging.log_entry_exit(logger) def get_basic_jira_connection(config, creds): try...
Set User-Agent header for Jira connection
py
diff --git a/svg/charts/bar.py b/svg/charts/bar.py index <HASH>..<HASH> 100644 --- a/svg/charts/bar.py +++ b/svg/charts/bar.py @@ -127,6 +127,13 @@ class Bar(Graph): bar_gap = int(self.bar_gap) * bar_gap return bar_gap + def _fill_class(self, dataset_index): + """ + Return the CSS class for the indicated data...
Extract method for rendering the CSS class for a bar. Ref #9.
py
diff --git a/tests/test_analysis.py b/tests/test_analysis.py index <HASH>..<HASH> 100644 --- a/tests/test_analysis.py +++ b/tests/test_analysis.py @@ -359,6 +359,20 @@ def test_has_no_duplicate_in_pygount_source(): assert duplicate_path is None, "{0} must not be duplicate of {1}".format(source_path, duplic...
#<I> Added test case for deprecated functions.
py
diff --git a/bcbio/ngsalign/alignprep.py b/bcbio/ngsalign/alignprep.py index <HASH>..<HASH> 100644 --- a/bcbio/ngsalign/alignprep.py +++ b/bcbio/ngsalign/alignprep.py @@ -659,7 +659,7 @@ def _bgzip_file(finput, config, work_dir, needs_bgzip, needs_gunzip, needs_conve Handles cases where finput might be multiple fi...
align prep: correctly handle single sample inputs Fixes bug in addition of multiple input support for the standard bgzip case. Fixes #<I>
py
diff --git a/tornado_mysql/pools.py b/tornado_mysql/pools.py index <HASH>..<HASH> 100644 --- a/tornado_mysql/pools.py +++ b/tornado_mysql/pools.py @@ -111,6 +111,7 @@ class Pool(object): :rtype: Future """ conn = yield self._get_conn() + yield conn.begin() trx = Transaction(se...
Fix pool.begin() doesn't begin transaction
py
diff --git a/tests/test_api.py b/tests/test_api.py index <HASH>..<HASH> 100644 --- a/tests/test_api.py +++ b/tests/test_api.py @@ -270,13 +270,3 @@ b-comment = "a is 3" encoder=toml.TomlPreserveCommentEncoder()) assert len(s) == len(test_str) and sorted(test_str) == sorted(s) - - -@pytest.mar...
Removed test for unexpected EOF while parsing string The test for an EOF before the end of a string is being moved to the toml test suite
py
diff --git a/merkle.py b/merkle.py index <HASH>..<HASH> 100644 --- a/merkle.py +++ b/merkle.py @@ -14,6 +14,8 @@ class Node(object): and sibling (sib) node. It can also be aware of whether it is on the left or right hand side (side). data is hashed automatically by default, but does not have to be, if prehash...
using __slots__ in node def for better memory usage in large trees
py
diff --git a/pysat/tests/test_utils.py b/pysat/tests/test_utils.py index <HASH>..<HASH> 100644 --- a/pysat/tests/test_utils.py +++ b/pysat/tests/test_utils.py @@ -902,9 +902,13 @@ class TestGenerateInstList(object): """Test that user info passes through to correct instruments.""" for inst in self.in...
BUG: Corrected my previous test 'fix'
py
diff --git a/pyeapi/eapilib.py b/pyeapi/eapilib.py index <HASH>..<HASH> 100644 --- a/pyeapi/eapilib.py +++ b/pyeapi/eapilib.py @@ -240,20 +240,21 @@ class EapiConnection(object): the eAPI connection with """ + _auth_text = '{}:{}'.format(username, password) + # Work around fo...
Remove leaked base<I> authentication string in debug logs
py
diff --git a/pronto/__init__.py b/pronto/__init__.py index <HASH>..<HASH> 100644 --- a/pronto/__init__.py +++ b/pronto/__init__.py @@ -12,10 +12,14 @@ __version__='0.4.2' __author__='Martin Larralde' __author_email__ = 'martin.larralde@ens-cachan.fr' -from .ontology import Ontology -from .term import Term, TermList...
Add try/except blocks to pronto/__init__.py (fix #3)
py
diff --git a/content_placeholders/admin/placeholderfield.py b/content_placeholders/admin/placeholderfield.py index <HASH>..<HASH> 100644 --- a/content_placeholders/admin/placeholderfield.py +++ b/content_placeholders/admin/placeholderfield.py @@ -16,7 +16,18 @@ class PlaceholderInline(GenericInlineModelAdmin): ...
Fix script includes, also work when PlaceholderField is not used.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -34,5 +34,5 @@ setup( 'serenata_toolbox.datasets' ], url=REPO_URL, - version='12.3.0' + version='12.3.1' )
Change version from <I> to <I>
py
diff --git a/mautrix/util/formatter/parser.py b/mautrix/util/formatter/parser.py index <HASH>..<HASH> 100644 --- a/mautrix/util/formatter/parser.py +++ b/mautrix/util/formatter/parser.py @@ -48,6 +48,7 @@ class MatrixParser(Generic[T]): e: Type[EntityType] = EntityType fs: Type[T] = MarkdownString read_h...
Add option to ignore less relevant links in HTML->plaintext conversion
py
diff --git a/salt/exceptions.py b/salt/exceptions.py index <HASH>..<HASH> 100644 --- a/salt/exceptions.py +++ b/salt/exceptions.py @@ -2,39 +2,43 @@ This module is a central location for all salt exceptions ''' -class SaltClientError(Exception): +class SaltException(Exception): ''' - Problem reading the mas...
Moved all Salt exceptions to inherit from a common exception class
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -25,6 +25,11 @@ setup( 'Flask-Script-fix', 'celery>=2.3.0', ], + tests_require=[ + 'nose', + 'nose-cover3', + 'mock', + ], classifiers=[ 'Environment :: Web Envir...
Add tests_require to setup.py.
py
diff --git a/fritzconnection/core/soaper.py b/fritzconnection/core/soaper.py index <HASH>..<HASH> 100644 --- a/fritzconnection/core/soaper.py +++ b/fritzconnection/core/soaper.py @@ -168,7 +168,7 @@ class Soaper: <s:Envelope s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns...
fix: make soap envelope xml standard conform.
py
diff --git a/src/inputstream.py b/src/inputstream.py index <HASH>..<HASH> 100644 --- a/src/inputstream.py +++ b/src/inputstream.py @@ -40,6 +40,8 @@ class HTMLInputStream(object): #Number of bytes to use when looking for a meta element with #encoding information self.numBytesMeta = 512 + ...
Avoid reading the whole input when using chardet (by reading chunks of bytes and feeding them to the chardet UniversalDetector until it detects the encoding with enough confidence) --HG-- extra : convert_revision : svn%3Aacbfec<I>-<I>-<I>-a<I>-<I>a<I>e<I>e0/trunk%<I>
py
diff --git a/filterpy/kalman/kalman_filter.py b/filterpy/kalman/kalman_filter.py index <HASH>..<HASH> 100644 --- a/filterpy/kalman/kalman_filter.py +++ b/filterpy/kalman/kalman_filter.py @@ -344,19 +344,6 @@ class KalmanFilter(object): In other words `covariance[k,:,:]` is the covariance at step `k`. ...
Removed checking for zs in batch_filter. the check was not particularly good. It assumed that the first element in zs is representative of all elements in the list. However, Python lists are heterogeneous. And this is encouraged by the API - you can optionally use `None` for any value. The upshot is that if the first...
py
diff --git a/src/travis2docker/travis2docker.py b/src/travis2docker/travis2docker.py index <HASH>..<HASH> 100755 --- a/src/travis2docker/travis2docker.py +++ b/src/travis2docker/travis2docker.py @@ -229,10 +229,11 @@ class Travis2Docker(object): return False if not isinstance(versions, list): ...
[REF] travis2docker: Just use main python version (#<I>) Because default base image are not installed all minor versions of python
py
diff --git a/chartpress.py b/chartpress.py index <HASH>..<HASH> 100755 --- a/chartpress.py +++ b/chartpress.py @@ -266,6 +266,8 @@ def main(): help='Use this tag for images & charts') argparser.add_argument('--extra-message', default='', help='extra message to add to the commit message when publi...
Added option to change docker image prefix
py
diff --git a/salt/modules/aptpkg.py b/salt/modules/aptpkg.py index <HASH>..<HASH> 100644 --- a/salt/modules/aptpkg.py +++ b/salt/modules/aptpkg.py @@ -607,10 +607,6 @@ def hold(name=None, pkgs=None, sources=None, *kwargs): salt '*' pkg.hold pkgs='["foo", "bar"]' ''' - if 'yum-plugin-versionlock' ...
Remove yum-specific code This is what happens when you copy and paste, and don't pay attention.
py
diff --git a/reprint/reprint.py b/reprint/reprint.py index <HASH>..<HASH> 100644 --- a/reprint/reprint.py +++ b/reprint/reprint.py @@ -198,16 +198,16 @@ class output: else: self.parent.refresh(int(time.time()*1000), forced=False) - def clear(): + def clear(self): ...
Fix: makes 'change' work by fixing deadlock issue (#<I>)
py
diff --git a/test/conftest.py b/test/conftest.py index <HASH>..<HASH> 100644 --- a/test/conftest.py +++ b/test/conftest.py @@ -61,7 +61,7 @@ def reset_rabbit(request): config = request.config rabbit_ctl_uri = urlparse(config.getoption('rabbit_ctl_uri')) - host_port = '{}:{}'.format(rabbit_ctl_uri.hostnam...
changed to different string formatting for rabbit-ctl-uri
py
diff --git a/vent/core/rq_worker/watch.py b/vent/core/rq_worker/watch.py index <HASH>..<HASH> 100644 --- a/vent/core/rq_worker/watch.py +++ b/vent/core/rq_worker/watch.py @@ -260,7 +260,7 @@ def file_queue(path, template_path="/vent/", r_host="redis"): # other tools' output if ...
just in case the split is only 1 item
py
diff --git a/src/harvesters/core.py b/src/harvesters/core.py index <HASH>..<HASH> 100644 --- a/src/harvesters/core.py +++ b/src/harvesters/core.py @@ -350,13 +350,11 @@ class DeviceInfo: ] results = [] for _property in properties: - if _property is '': + assert _property...
Resolve issue #<I>
py
diff --git a/facebook/__init__.py b/facebook/__init__.py index <HASH>..<HASH> 100755 --- a/facebook/__init__.py +++ b/facebook/__init__.py @@ -199,10 +199,11 @@ class GraphAPI(object): """ object_id = album_id or "me" kwargs.update({"message": message}) - self.request(self.version + "/...
Fix regression in put_photo. Have `put_photo` return the results of the HTTP request. Fix #<I>. Thanks @timwu<I>!
py
diff --git a/test/test_zk.py b/test/test_zk.py index <HASH>..<HASH> 100755 --- a/test/test_zk.py +++ b/test/test_zk.py @@ -1,11 +1,7 @@ import unittest -import gzip import logging -import json import os -import code import random -from time import sleep from SolrClient import SolrClient from SolrClient.exceptions...
removed sleep() from test_zk
py
diff --git a/charmhelpers/fetch/archiveurl.py b/charmhelpers/fetch/archiveurl.py index <HASH>..<HASH> 100644 --- a/charmhelpers/fetch/archiveurl.py +++ b/charmhelpers/fetch/archiveurl.py @@ -1,5 +1,7 @@ import os import urllib2 +import urlparse + from charmhelpers.fetch import ( BaseFetchHandler, Unhandled...
Add support to ArchiveUrlFetchHandler for http and https uris that have username and password in them
py
diff --git a/acme_tiny.py b/acme_tiny.py index <HASH>..<HASH> 100755 --- a/acme_tiny.py +++ b/acme_tiny.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # Copyright Daniel Roesler, under MIT license, see LICENSE at github.com/diafygi/acme-tiny import argparse, subprocess, json, os, sys, base64, binas...
Set interpreter to 'python3' People over at the DebOps project encountered problems running acme-tiny on Python 3-only systems [1]. As described in the Debian Python Policy [2], this behaviour is expected when using the (discouraged) 'python' interpreter. This commit modifies the shebang line to specify the 'python3' ...
py
diff --git a/javatools/__init__.py b/javatools/__init__.py index <HASH>..<HASH> 100644 --- a/javatools/__init__.py +++ b/javatools/__init__.py @@ -820,17 +820,13 @@ class JavaClassInfo(object): yield "public" if self.is_final(): yield "final" + if self.is_abstract(): + ...
clean up the pretty access flags generator
py
diff --git a/lib/svtplay_dl/utils/__init__.py b/lib/svtplay_dl/utils/__init__.py index <HASH>..<HASH> 100644 --- a/lib/svtplay_dl/utils/__init__.py +++ b/lib/svtplay_dl/utils/__init__.py @@ -137,7 +137,7 @@ def filenamify(title): title = unicodedata.normalize('NFD', title) # Drop any non ascii letters/digit...
filenamify: Make title regexp stricter The - character is a range operator when used in character classes (e.g. [0-9]). In our case, we want it to match a literal - (which it coindicentally does, since it's within the range [ -.]. But we don't want it to match other characters within this range.
py
diff --git a/raiden/tests/integration/cli/test_cli_development.py b/raiden/tests/integration/cli/test_cli_development.py index <HASH>..<HASH> 100644 --- a/raiden/tests/integration/cli/test_cli_development.py +++ b/raiden/tests/integration/cli/test_cli_development.py @@ -12,10 +12,12 @@ pytestmark = pytest.mark.parametr...
increase test_cli_change_environment_type timeout Increasing the timeout because the test failed during tear down
py
diff --git a/test/test_mediafile_edge.py b/test/test_mediafile_edge.py index <HASH>..<HASH> 100644 --- a/test/test_mediafile_edge.py +++ b/test/test_mediafile_edge.py @@ -197,16 +197,6 @@ class SafetyTest(unittest.TestCase, _common.TempDirMixin): finally: os.unlink(fn) - @unittest.skipUnless(...
Remove not-found hardlink test (the OS prevents this from happening)
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -2,7 +2,7 @@ """ DISTNAME = 'oct2py' DESCRIPTION = 'Python to GNU Octave bridge --> run m-files from python.' -LONG_DESCRIPTION = open('README.rst').read().decode('utf-8') +LONG_DESCRIPTION = open('README.rst', 'rb').re...
Fix call to open() in setup.py
py
diff --git a/command/sdist.py b/command/sdist.py index <HASH>..<HASH> 100644 --- a/command/sdist.py +++ b/command/sdist.py @@ -11,10 +11,10 @@ import fnmatch from types import * from glob import glob from distutils.core import Command -from distutils.util import \ - newer, create_tree, remove_tree, make_tarball,...
Check that 'self.formats' is good early on.
py
diff --git a/vhdl_toolkit/samples/simplest_b_iLvl.py b/vhdl_toolkit/samples/simplest_b_iLvl.py index <HASH>..<HASH> 100644 --- a/vhdl_toolkit/samples/simplest_b_iLvl.py +++ b/vhdl_toolkit/samples/simplest_b_iLvl.py @@ -1,16 +1,12 @@ from vhdl_toolkit.synthetisator.interfaceLevel.synthetizator import Unit -from vhdl_to...
unit with Ap_none interfaces
py
diff --git a/bingmaps/location/location_by_point.py b/bingmaps/location/location_by_point.py index <HASH>..<HASH> 100644 --- a/bingmaps/location/location_by_point.py +++ b/bingmaps/location/location_by_point.py @@ -8,7 +8,9 @@ class LocationByPoint(LocationApi): if not bool(data): raise TypeError(...
Assigned filename variable to 'locationByPoint'. Passed filename to the parent class LocationApi. Moved get_data() call to class initialization.
py
diff --git a/helusers/views.py b/helusers/views.py index <HASH>..<HASH> 100644 --- a/helusers/views.py +++ b/helusers/views.py @@ -3,7 +3,7 @@ from urllib.parse import urlencode from django.contrib.auth.views import LogoutView as DjangoLogoutView from django.views.generic.base import RedirectView -from django.contr...
Log the user out before starting the Tunnistamo login flow
py
diff --git a/src/remote_pdb.py b/src/remote_pdb.py index <HASH>..<HASH> 100644 --- a/src/remote_pdb.py +++ b/src/remote_pdb.py @@ -86,7 +86,8 @@ class RemotePdb(Pdb): setattr(sys, name, self.handle) def __restore(self): - cry('Restoring streams: %s ...' % self.backup) + if self.bac...
Only print `Restoring streams` if there's something to actually restore.
py
diff --git a/healpix/healpy.py b/healpix/healpy.py index <HASH>..<HASH> 100644 --- a/healpix/healpy.py +++ b/healpix/healpy.py @@ -17,15 +17,16 @@ from .core import (nside_to_pixel_resolution, nside_to_pixel_area, RAD2DEG = 180 / np.pi -__all__ = [ - 'nside2resol', - 'nside2pixarea', - 'nside2npix', - ...
Add missing healpy compat functions to __all__
py
diff --git a/xarray/backends/plugins.py b/xarray/backends/plugins.py index <HASH>..<HASH> 100644 --- a/xarray/backends/plugins.py +++ b/xarray/backends/plugins.py @@ -1,6 +1,7 @@ import functools import inspect import itertools +import sys import warnings from importlib.metadata import entry_points @@ -95,7 +96,...
Use new importlib.metadata.entry_points interface where available. (#<I>) With Python <I>, the entry_points() method returning a SelectableGroups dict interface was deprecated. The preferred way is to now filter by group through a keyword argument. Fixes GH<I>.
py
diff --git a/backend/job_managers/abstract.py b/backend/job_managers/abstract.py index <HASH>..<HASH> 100644 --- a/backend/job_managers/abstract.py +++ b/backend/job_managers/abstract.py @@ -88,9 +88,6 @@ class AbstractJobManager(object): # Deletes from data structures del self._running_job_data[jobid...
The deepcopy is already done in above classes
py
diff --git a/xero/exceptions.py b/xero/exceptions.py index <HASH>..<HASH> 100644 --- a/xero/exceptions.py +++ b/xero/exceptions.py @@ -1,7 +1,7 @@ import json +from xml.dom.minidom import parseString from six.moves.urllib.parse import parse_qs -from xml.dom.minidom import parseString class XeroException(Except...
Temp soln to KeyError to enable digging
py
diff --git a/stellar_sdk/keypair.py b/stellar_sdk/keypair.py index <HASH>..<HASH> 100644 --- a/stellar_sdk/keypair.py +++ b/stellar_sdk/keypair.py @@ -191,7 +191,7 @@ class Keypair: The verification failed and the signature was incorrect. """ try: - return self.verify_key.verif...
fix: Keypair.verify should not return anything.
py
diff --git a/libchess/test.py b/libchess/test.py index <HASH>..<HASH> 100755 --- a/libchess/test.py +++ b/libchess/test.py @@ -224,10 +224,14 @@ class AttackerGeneratorTestCase(unittest.TestCase): class LegalMoveGeneratorTestCase(unittest.TestCase): def test_pseudo_legal_moves(self): + # Test a move that...
Move generation does not change the position.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -216,7 +216,8 @@ class upload_doc(distutils.cmd.Command): user_options = [] def initialize_options(self): - pass + if sys.version_info < (3,): + raise SystemExit('upload_doc must be run wit...
upload_doc must be run with python 3
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -36,7 +36,7 @@ setup( packages=find_packages(), include_package_data=True, install_requires=[ - "Django==2.1.2", + "Django==2.2.3", "djangorestframework==3.9.1", "dj-database-url=...
Upgrade django to <I>
py
diff --git a/sos/plugins/juju.py b/sos/plugins/juju.py index <HASH>..<HASH> 100644 --- a/sos/plugins/juju.py +++ b/sos/plugins/juju.py @@ -20,5 +20,5 @@ class juju(Plugin, UbuntuPlugin): """ Juju Plugin """ def setup(self): - self.addCopySpecs(["/var/log/juju*", + self.addCopySpecs(["/var/l...
Only specify the var/log/juju dir Only the juju directory exists in /var/log/ so grab that rather than globbing for the files.
py
diff --git a/zealdb.py b/zealdb.py index <HASH>..<HASH> 100644 --- a/zealdb.py +++ b/zealdb.py @@ -112,6 +112,8 @@ class ZealDB(object): '''Enter ZealDB context. Opens a connection to the database.''' self.open() + return self + def __exit__(self, exc_type, exc_value, exc_traceback): ...
Forgot to return self from ZealDB's context __enter__()
py
diff --git a/source/rafcon/utils/installation.py b/source/rafcon/utils/installation.py index <HASH>..<HASH> 100644 --- a/source/rafcon/utils/installation.py +++ b/source/rafcon/utils/installation.py @@ -64,7 +64,10 @@ def install_fonts(logger=None, restart=False): # A font is a folder one or more font face...
fix(installation): fix installation of fonts
py
diff --git a/test/ut/sdk/test_model_speedup.py b/test/ut/sdk/test_model_speedup.py index <HASH>..<HASH> 100644 --- a/test/ut/sdk/test_model_speedup.py +++ b/test/ut/sdk/test_model_speedup.py @@ -349,8 +349,8 @@ class SpeedupTestCase(TestCase): self.speedup_integration(model_list) def test_speedup_integr...
fix fast test (#<I>)
py
diff --git a/scripts/devops_tasks/git_helper.py b/scripts/devops_tasks/git_helper.py index <HASH>..<HASH> 100644 --- a/scripts/devops_tasks/git_helper.py +++ b/scripts/devops_tasks/git_helper.py @@ -21,6 +21,7 @@ EXCLUDED_PACKAGE_VERSIONS = { 'azure-storage-blob': ['0.37.0', '0.37.1', '1.0.0', '1.1.0', '1.2.0rc1',...
add the previous versions of azure-servicebus to the regression exclusion list (#<I>)
py
diff --git a/tests/test_screen.py b/tests/test_screen.py index <HASH>..<HASH> 100644 --- a/tests/test_screen.py +++ b/tests/test_screen.py @@ -293,7 +293,7 @@ def test_draw_wcwidth_zero(): screen.draw(" コンニチハ".encode("utf-8")) assert screen.cursor.x == screen.columns screen.draw("\N{ZERO WIDTH SPACE}".en...
Turns out Python2.X doesn't have ``"\N{DELETE}"``
py
diff --git a/indra/sources/omnipath/__init__.py b/indra/sources/omnipath/__init__.py index <HASH>..<HASH> 100644 --- a/indra/sources/omnipath/__init__.py +++ b/indra/sources/omnipath/__init__.py @@ -1,2 +1,18 @@ +""" +The OmniPath module accesses biomolecular interaction data from various +curated databases using the O...
Write short blurb about module and its usage
py
diff --git a/eve_elastic/elastic.py b/eve_elastic/elastic.py index <HASH>..<HASH> 100644 --- a/eve_elastic/elastic.py +++ b/eve_elastic/elastic.py @@ -243,7 +243,13 @@ class Elastic(DataLayer): query['aggs'] = source_config['aggregations'] args = self._es_args(resource) - hits = self.es.s...
Passes no mapping test for find and find_one; but string contains is a fragile solution
py
diff --git a/taxtastic/scripts/taxit.py b/taxtastic/scripts/taxit.py index <HASH>..<HASH> 100644 --- a/taxtastic/scripts/taxit.py +++ b/taxtastic/scripts/taxit.py @@ -60,11 +60,11 @@ def parse_arguments(argv): version='taxit v' + version, help='Print the version number ...
-q and -v should be part of main parser
py
diff --git a/allegedb/allegedb/__init__.py b/allegedb/allegedb/__init__.py index <HASH>..<HASH> 100644 --- a/allegedb/allegedb/__init__.py +++ b/allegedb/allegedb/__init__.py @@ -116,7 +116,7 @@ def update_backward_window(turn_from, tick_from, turn_to, tick_to, updfun, branc if branchd.has_exact_rev(turn_from): ...
Iterate backwards thru turns correctly
py
diff --git a/rtv/__main__.py b/rtv/__main__.py index <HASH>..<HASH> 100644 --- a/rtv/__main__.py +++ b/rtv/__main__.py @@ -61,7 +61,7 @@ def main(): try: print('Connecting...') - reddit = praw.Reddit(user_agent=AGENT.format(__version__)) + reddit = praw.Reddit(user_agent=AGENT.format(versi...
Fixed typo in AGENT string formatting.
py
diff --git a/wpull/version.py b/wpull/version.py index <HASH>..<HASH> 100644 --- a/wpull/version.py +++ b/wpull/version.py @@ -32,5 +32,5 @@ def get_version_tuple(string): return (major, minor, patch, level, serial) -__version__ = '0.32a1' +__version__ = '0.33a1' version_info = get_version_tuple(__version__)
Bumps version to <I>a1.
py
diff --git a/src/foremast/dns/create_dns.py b/src/foremast/dns/create_dns.py index <HASH>..<HASH> 100644 --- a/src/foremast/dns/create_dns.py +++ b/src/foremast/dns/create_dns.py @@ -43,7 +43,7 @@ class SpinnakerDns: self.app_name = self.generated.app_name() # Add domain - self.domain = domai...
fixed typo for dns creation
py