diff
stringlengths
139
3.65k
message
stringlengths
8
627
diff_languages
stringclasses
1 value
diff --git a/vcs/backends/git.py b/vcs/backends/git.py index <HASH>..<HASH> 100644 --- a/vcs/backends/git.py +++ b/vcs/backends/git.py @@ -51,7 +51,16 @@ class GitRepository(BaseRepository): @LazyProperty def name(self): return os.path.basename(self.path) - + + @LazyProperty + def descripti...
added description as lazy property --HG-- branch : git
py
diff --git a/tests/scripts/thread-cert/node.py b/tests/scripts/thread-cert/node.py index <HASH>..<HASH> 100755 --- a/tests/scripts/thread-cert/node.py +++ b/tests/scripts/thread-cert/node.py @@ -476,11 +476,11 @@ class Node: self._expect('Done') def get_state(self): - states = ['detached', 'child...
[test] support full log (#<I>) This is useful when more logs are enabled and the logs contain "leader", "child", "router" or "leader".
py
diff --git a/python/herald/shell.py b/python/herald/shell.py index <HASH>..<HASH> 100644 --- a/python/herald/shell.py +++ b/python/herald/shell.py @@ -56,7 +56,7 @@ import pelix.shell @Instantiate("herald-shell") class HeraldCommands(object): """ - iPOPO shell commands + Herald shell commands """ ...
Corrected typo in docstring
py
diff --git a/py/selenium/selenium.py b/py/selenium/selenium.py index <HASH>..<HASH> 100644 --- a/py/selenium/selenium.py +++ b/py/selenium/selenium.py @@ -225,6 +225,8 @@ class selenium: def get_string_array(self, verb, args): csv = self.get_string(verb, args) + if not csv: + return []...
DavidBurns, on behalf of AnthonyLong, fix for issue <I> returning empty array r<I>
py
diff --git a/common/vr/common/models.py b/common/vr/common/models.py index <HASH>..<HASH> 100644 --- a/common/vr/common/models.py +++ b/common/vr/common/models.py @@ -324,6 +324,11 @@ class ProcData(ConfigData): 'volumes', ] + # for compatibility, don't require any config yet + _optional += _requi...
Disable required fields on ProcConfig. This backwards-incompatible change is breaking teardown when no 'user' is present. It also would break compatibility for 'proc' and 'cmd', suggested by __init__.
py
diff --git a/osmnx/geometries.py b/osmnx/geometries.py index <HASH>..<HASH> 100644 --- a/osmnx/geometries.py +++ b/osmnx/geometries.py @@ -764,7 +764,7 @@ def _filter_final_gdf(gdf, polygon, tags): # filter retaining geometries within the bounding polygon using spatial index if polygon is not None: ...
removes .centroid from within polygon filter
py
diff --git a/cli/sawtooth_cli/rest_client.py b/cli/sawtooth_cli/rest_client.py index <HASH>..<HASH> 100644 --- a/cli/sawtooth_cli/rest_client.py +++ b/cli/sawtooth_cli/rest_client.py @@ -34,8 +34,8 @@ class RestClient(object): else: self._auth_header = None - def list_blocks(self): - r...
Support configurable page sizes in RestClient
py
diff --git a/scapy/as_resolvers.py b/scapy/as_resolvers.py index <HASH>..<HASH> 100644 --- a/scapy/as_resolvers.py +++ b/scapy/as_resolvers.py @@ -34,14 +34,15 @@ class AS_resolver: asn,desc = None,b"" for l in txt.splitlines(): if not asn and l.startswith(b"origin:"): - as...
Fixing as_resolvers returning strings for description
py
diff --git a/credstash.py b/credstash.py index <HASH>..<HASH> 100755 --- a/credstash.py +++ b/credstash.py @@ -107,7 +107,13 @@ def value_or_filename(string): # If an empty string is passes in, just return an empty string if string == "": return "" - if string[0] == "@": + + if string == '-': +...
In the 'put' action, the value can be read from stdin.
py
diff --git a/intranet/apps/users/models.py b/intranet/apps/users/models.py index <HASH>..<HASH> 100644 --- a/intranet/apps/users/models.py +++ b/intranet/apps/users/models.py @@ -127,7 +127,8 @@ class User(AbstractBaseUser, PermissionsMixin): """ user = User.get_user(dn=dn, id=id, username=username)...
Fix bug that was resetting superuser status on login
py
diff --git a/kmapper/visuals.py b/kmapper/visuals.py index <HASH>..<HASH> 100644 --- a/kmapper/visuals.py +++ b/kmapper/visuals.py @@ -104,6 +104,12 @@ def colorscale_from_matplotlib_cmap(cmap, ii_off=0, ff_off=0, nbins=10): >>> colorscale = colorscale_from_matplotlib_cmap(plt.cm.cool, ff_off=255//10) """ +...
added some safety rails to colorscale builder
py
diff --git a/src/graphql/utilities/build_ast_schema.py b/src/graphql/utilities/build_ast_schema.py index <HASH>..<HASH> 100644 --- a/src/graphql/utilities/build_ast_schema.py +++ b/src/graphql/utilities/build_ast_schema.py @@ -49,6 +49,14 @@ def build_ast_schema( assert_valid_sdl(document_ast) + empty_s...
build_ast_schema: pass empty schema as literal Replicates graphql/graphql-js@fe4f8ebf<I>c<I>dd<I>efa1beeacdb8fc5a9f
py
diff --git a/blimpy/file_wrapper.py b/blimpy/file_wrapper.py index <HASH>..<HASH> 100644 --- a/blimpy/file_wrapper.py +++ b/blimpy/file_wrapper.py @@ -123,9 +123,9 @@ class Reader(object): if self._n_bytes == 4: return b'float32' elif self._n_bytes == 2: - return b'int16' + ...
load data as uintX instead of intX See issue #<I> Former-commit-id: 2b<I>a2b<I>d2f0f8f3eb9bc<I>af5faf<I>
py
diff --git a/salt/modules/network.py b/salt/modules/network.py index <HASH>..<HASH> 100644 --- a/salt/modules/network.py +++ b/salt/modules/network.py @@ -295,3 +295,30 @@ def hwaddr(interface): else: return None +def host_to_ip(host): + ''' + Returns the IP address of a given hostname + + ...
Added calls to resolve hostnames to IP's and vise versa
py
diff --git a/toytree/Drawing.py b/toytree/Drawing.py index <HASH>..<HASH> 100644 --- a/toytree/Drawing.py +++ b/toytree/Drawing.py @@ -448,7 +448,7 @@ class Drawing: # build dict from edges cdict = { - self.coords.edges[i, 1]: self.__getattribute__(attr)[i] + self.coords.edges...
as written, __getattribute__ and __setattribute__ aren't compatible with py2. I think getattr() and setattr() are compatible with both.
py
diff --git a/superset/connectors/sqla/models.py b/superset/connectors/sqla/models.py index <HASH>..<HASH> 100644 --- a/superset/connectors/sqla/models.py +++ b/superset/connectors/sqla/models.py @@ -706,7 +706,7 @@ class SqlaTable(Model, BaseDatasource): if not any_date_col and dbcol.is_time: ...
Don't use fully qualified column names in metric definitions (#<I>) When generating an auto SUM() metric on a column, Superset currently will go `SUM(table_name.column_name)`. This is an issue when moving to point to another table. It's common to work on some temporary table or work table and eventually need to poi...
py
diff --git a/dynamic_scraper/management/commands/run_checker_tests.py b/dynamic_scraper/management/commands/run_checker_tests.py index <HASH>..<HASH> 100644 --- a/dynamic_scraper/management/commands/run_checker_tests.py +++ b/dynamic_scraper/management/commands/run_checker_tests.py @@ -10,6 +10,12 @@ class Command(Base...
Added additional option --only-active-scrapers to run_checker_tests management command
py
diff --git a/setuptools/version.py b/setuptools/version.py index <HASH>..<HASH> 100644 --- a/setuptools/version.py +++ b/setuptools/version.py @@ -1 +1 @@ -__version__ = '19.4.1' +__version__ = '19.5'
Bumped to <I> in preparation for next release.
py
diff --git a/datacats/project.py b/datacats/project.py index <HASH>..<HASH> 100644 --- a/datacats/project.py +++ b/datacats/project.py @@ -352,8 +352,10 @@ class Project(object): port = self.port command = None if not production: - command = ['/usr/lib/ckan/bin/paster', '--plugin=c...
paster serve as www-data, not root
py
diff --git a/holoviews/plotting/hooks.py b/holoviews/plotting/hooks.py index <HASH>..<HASH> 100644 --- a/holoviews/plotting/hooks.py +++ b/holoviews/plotting/hooks.py @@ -8,7 +8,7 @@ except: plugins = None import param -from ..ipython.magics import OutputMagic + from ..core import NdOverlay, Overlay from ..el...
Inlined ipython import in plotting/hooks.py
py
diff --git a/spacy/tests/regression/test_issue1380.py b/spacy/tests/regression/test_issue1380.py index <HASH>..<HASH> 100644 --- a/spacy/tests/regression/test_issue1380.py +++ b/spacy/tests/regression/test_issue1380.py @@ -1,3 +1,4 @@ +from __future__ import unicode_literals import pytest from ...language import La...
Make test work for Python <I>
py
diff --git a/satpy/readers/olci_nc.py b/satpy/readers/olci_nc.py index <HASH>..<HASH> 100644 --- a/satpy/readers/olci_nc.py +++ b/satpy/readers/olci_nc.py @@ -49,6 +49,7 @@ import numpy as np import xarray as xr from satpy import CHUNK_SIZE +from satpy.readers import open_file_or_filename from satpy.readers.file_h...
Refactor olci file opening
py
diff --git a/jsoncfg/tree_python.py b/jsoncfg/tree_python.py index <HASH>..<HASH> 100644 --- a/jsoncfg/tree_python.py +++ b/jsoncfg/tree_python.py @@ -23,7 +23,8 @@ def default_array_creator(listener): def default_number_converter(number_str): - return int(number_str) if number_str.isdigit() else float(number_s...
bugfix: negative integers were mistakenly parsed as floats
py
diff --git a/pysat/tests/test_methods_general.py b/pysat/tests/test_methods_general.py index <HASH>..<HASH> 100644 --- a/pysat/tests/test_methods_general.py +++ b/pysat/tests/test_methods_general.py @@ -36,8 +36,7 @@ class TestFileCadance(): @pytest.mark.parametrize("time_kwarg, time_val, is_daily", ...
BUG: removed bad initializations Removed bad initialization keywords from timedelta test.
py
diff --git a/chardet/charsetgroupprober.py b/chardet/charsetgroupprober.py index <HASH>..<HASH> 100644 --- a/chardet/charsetgroupprober.py +++ b/chardet/charsetgroupprober.py @@ -73,6 +73,7 @@ class CharSetGroupProber(CharSetProber): continue if state == ProbingState.FOUND_IT: ...
Properly set CharsetGroupProber.state to FOUND_IT (#<I>) Throughout the rest of the chardet code we assume that FOUND_IT means we can stop looking. Previously the CharsetGroupProber did not set its state appropriately when a child prober returned FOUND_IT. This substantially speeds up the chardet for most encodings...
py
diff --git a/mpop/satout/cfscene.py b/mpop/satout/cfscene.py index <HASH>..<HASH> 100644 --- a/mpop/satout/cfscene.py +++ b/mpop/satout/cfscene.py @@ -363,16 +363,24 @@ def geos2cf(proj_dict): } def stere2cf(proj_dict): - """Return the cf grid mapping from a geos proj dict. + """Return the cf grid...
Added a stereographic projection translation
py
diff --git a/bika/lims/browser/analyses.py b/bika/lims/browser/analyses.py index <HASH>..<HASH> 100644 --- a/bika/lims/browser/analyses.py +++ b/bika/lims/browser/analyses.py @@ -8,6 +8,7 @@ from plone import api from Products.CMFPlone.utils import safe_unicode from bika.lims import bikaMessageFactory as _ +from bik...
Flag getAnalysisSpecsStr as deprecated
py
diff --git a/modules/cij/util.py b/modules/cij/util.py index <HASH>..<HASH> 100644 --- a/modules/cij/util.py +++ b/modules/cij/util.py @@ -47,7 +47,9 @@ def execute(cmd=None, shell=True, echo=True): if shell: cmd = " ".join(cmd) - proc = Popen(cmd, stdout=PIPE, stderr=PIPE, shell=shell, c...
py:mod:util: fix issues reported by flake8
py
diff --git a/src/python/test/test_dxclient.py b/src/python/test/test_dxclient.py index <HASH>..<HASH> 100644 --- a/src/python/test/test_dxclient.py +++ b/src/python/test/test_dxclient.py @@ -10607,8 +10607,8 @@ class TestDXRun(DXTestCase): @pytest.mark.TRACEABILITY_MATRIX @testutil.update_traceability_matrix(...
Switch app launched in test_dx_run_app (#<I>)
py
diff --git a/notario/engine.py b/notario/engine.py index <HASH>..<HASH> 100644 --- a/notario/engine.py +++ b/notario/engine.py @@ -82,10 +82,16 @@ class IterableValidator(BaseItemValidator): run against any number of items in a given data structure """ + def data_sanity(self, data): + if not isins...
sanity for data type on IterableValidator
py
diff --git a/web/opensubmit/settings.py b/web/opensubmit/settings.py index <HASH>..<HASH> 100644 --- a/web/opensubmit/settings.py +++ b/web/opensubmit/settings.py @@ -102,7 +102,7 @@ DATABASES = { # We have the is_production indicator from above, which could also determine this value. # But sometimes, you need Djan...
Stop running in DEBUG mode on production. Patch by @thehappyhippo, fixes #<I>
py
diff --git a/ics_parser.py b/ics_parser.py index <HASH>..<HASH> 100644 --- a/ics_parser.py +++ b/ics_parser.py @@ -87,25 +87,20 @@ class Container(list): def unfold_lines(physical_lines): - buffer = "" - remove_space = 0 - for win in utils.window(physical_lines,2): - if not len(win) == 2: - ...
[fix] Bug found in <I>caae; rewrite unfold_lines
py
diff --git a/host/basil/TL/Visa.py b/host/basil/TL/Visa.py index <HASH>..<HASH> 100644 --- a/host/basil/TL/Visa.py +++ b/host/basil/TL/Visa.py @@ -5,6 +5,7 @@ # ------------------------------------------------------------ # import visa +import logging from basil.TL.TransferLayer import TransferLayer @@ -29,12 +...
ENH: show all visa resources and the backend during init MAINT: activate correct device closing
py
diff --git a/Lib/fontParts/base/contour.py b/Lib/fontParts/base/contour.py index <HASH>..<HASH> 100644 --- a/Lib/fontParts/base/contour.py +++ b/Lib/fontParts/base/contour.py @@ -492,7 +492,7 @@ class BaseContour( del segments[-1] if lastWasOffCurve and not firstIsMove: segment = segm...
Opps, error from testing logic.
py
diff --git a/tests/sample.py b/tests/sample.py index <HASH>..<HASH> 100755 --- a/tests/sample.py +++ b/tests/sample.py @@ -195,11 +195,11 @@ def sample_cleanup(client, project, logstore): def main(): - endpoint = os.environ.get('ALIYUN-LOG-SAMPLE-ENDPOINT', 'cn-hangzhou.log.aliyuncs.com') - accessKeyId =...
fix env name convention issue to fit CI
py
diff --git a/ceph_deploy/gatherkeys.py b/ceph_deploy/gatherkeys.py index <HASH>..<HASH> 100644 --- a/ceph_deploy/gatherkeys.py +++ b/ceph_deploy/gatherkeys.py @@ -237,7 +237,7 @@ def gatherkeys(args): LOG.info("keyring '%s' already exists" % (filename)) continue ...
[fix-remove-ceph-create-keys-dep_cp] ceph_deploy.gatherkeys: use comma-separated values in logs It is prefured to use comma-separated values in logs
py
diff --git a/tests/test_monitor_progress.py b/tests/test_monitor_progress.py index <HASH>..<HASH> 100644 --- a/tests/test_monitor_progress.py +++ b/tests/test_monitor_progress.py @@ -1,9 +1,13 @@ +import os import pprint +import progressbar pytest_plugins = 'pytester' SCRIPT = ''' +import sys +sys.path.append(...
Added import path to fix #<I>
py
diff --git a/taskcluster/utils.py b/taskcluster/utils.py index <HASH>..<HASH> 100644 --- a/taskcluster/utils.py +++ b/taskcluster/utils.py @@ -303,8 +303,6 @@ def makeSingleHttpRequest(method, url, payload, headers, session=None): response = obj.request(method.upper(), url, data=payload, headers=headers) log....
stop interpreting response through the .text property
py
diff --git a/peru/plugin.py b/peru/plugin.py index <HASH>..<HASH> 100644 --- a/peru/plugin.py +++ b/peru/plugin.py @@ -21,5 +21,5 @@ def plugin_fetch(cache_root, type, dest, plugin_fields): command.append("--" + field_name) command.append(plugin_fields[field_name]) - output = subprocess.check_out...
don't suppress stderr from plugins
py
diff --git a/pymola/backends/casadi/model.py b/pymola/backends/casadi/model.py index <HASH>..<HASH> 100644 --- a/pymola/backends/casadi/model.py +++ b/pymola/backends/casadi/model.py @@ -397,11 +397,6 @@ class Model: # To keep equations balanced, we make sure that we don't drop ...
remove conservative alias detection check (should be fixed properly in a different merge)
py
diff --git a/cassandra/cluster.py b/cassandra/cluster.py index <HASH>..<HASH> 100644 --- a/cassandra/cluster.py +++ b/cassandra/cluster.py @@ -1708,7 +1708,8 @@ class ResponseFuture(object): return request_id def _reprepare(self, prepare_message): - request_id = self._query(self._current_host, pr...
After re-preparing stmts, run query in executor The query was being resubmitted on the event loop thread, which could cause a deadlock if there were not any connections available for use.
py
diff --git a/calendarium/models.py b/calendarium/models.py index <HASH>..<HASH> 100644 --- a/calendarium/models.py +++ b/calendarium/models.py @@ -11,7 +11,7 @@ import json from dateutil import rrule from django.conf import settings -from django.contrib.contenttypes import generic +from django.contrib.contenttypes....
Replacing GenericForeignKey from generic to fields `django.contrib.contenttypes import generic` were deprecated in django <I> as can be seen [here](<URL>).
py
diff --git a/pre_commit/staged_files_only.py b/pre_commit/staged_files_only.py index <HASH>..<HASH> 100644 --- a/pre_commit/staged_files_only.py +++ b/pre_commit/staged_files_only.py @@ -66,9 +66,9 @@ def _unstaged_changes_cleared(patch_dir: str) -> Generator[None, None, None]: # prevent recursive post-check...
move patch discarding inside `try` for staged_files_only there's a rare race outlined in #<I>
py
diff --git a/sos/hosts.py b/sos/hosts.py index <HASH>..<HASH> 100755 --- a/sos/hosts.py +++ b/sos/hosts.py @@ -180,7 +180,7 @@ class LocalHost: def run_command(self, cmd, wait_for_task): # run command but does not wait for result. - if wait_for_task: + if wait_for_task or sys.platform == '...
Do not use daemonized process under windows
py
diff --git a/tests/test_character.py b/tests/test_character.py index <HASH>..<HASH> 100644 --- a/tests/test_character.py +++ b/tests/test_character.py @@ -1,6 +1,10 @@ # -*- coding: utf-8 -*- -import unittest +import sys +if sys.version_info < (2, 7): + import unittest2 as unittest +else: + import unittest as ...
Use unittest2 when python version is less than <I>. In Google App Engine (GAE) you have to use unittest2 if the unit test code uses any of the capabilities added in Python <I> to the unittest module.
py
diff --git a/glue/__init__.py b/glue/__init__.py index <HASH>..<HASH> 100644 --- a/glue/__init__.py +++ b/glue/__init__.py @@ -1,5 +1,7 @@ # Initialization module for glue # +# $Id$ +# __author__ = 'Duncan Brown <dbrown@ligo.caltech.edu>' __date__ = '$Date$' __version__ = '$Revision$'[11:-2]
another minor change to test epydoc
py
diff --git a/ocrd/ocrd/processor/base.py b/ocrd/ocrd/processor/base.py index <HASH>..<HASH> 100644 --- a/ocrd/ocrd/processor/base.py +++ b/ocrd/ocrd/processor/base.py @@ -107,7 +107,6 @@ def generate_processor_help(ocrd_tool): param['type'], ' - REQUIRED' if 'required' in param and par...
Update ocrd/ocrd/processor/base.py
py
diff --git a/dsmr_parser/protocol.py b/dsmr_parser/protocol.py index <HASH>..<HASH> 100644 --- a/dsmr_parser/protocol.py +++ b/dsmr_parser/protocol.py @@ -73,9 +73,11 @@ class DSMRProtocol(asyncio.Protocol): def handle_lines(self): """Assemble incoming data into single lines.""" - while "\r\n" in...
Pass lines to parser including line endings
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -82,11 +82,14 @@ source_version_file.close() # Exclude the original source package, only accept the preprocessed package! our_packages = find_packages(exclude=[from_package]) -our_requires = [] +our_requires = [ + 'six>=1...
We depends on the compatible library 'six'
py
diff --git a/pytypes/stubfile_2_converter.py b/pytypes/stubfile_2_converter.py index <HASH>..<HASH> 100644 --- a/pytypes/stubfile_2_converter.py +++ b/pytypes/stubfile_2_converter.py @@ -147,12 +147,12 @@ def convert(in_file, out_file = None): os.makedirs(directory) with open(out_file, 'w') as out_file_handle: -...
Reverted a couple lines from the docstring quotes fix
py
diff --git a/dolo/misc/modfile.py b/dolo/misc/modfile.py index <HASH>..<HASH> 100644 --- a/dolo/misc/modfile.py +++ b/dolo/misc/modfile.py @@ -67,8 +67,6 @@ def parse_dynare_text(txt,add_model=True,full_output=False,names_dict = {}, debu for i in instruction_groups: print(i) - for ins in inst...
BUG: Suppressed unnecessary print statement.
py
diff --git a/holoviews/plotting/mpl/renderer.py b/holoviews/plotting/mpl/renderer.py index <HASH>..<HASH> 100644 --- a/holoviews/plotting/mpl/renderer.py +++ b/holoviews/plotting/mpl/renderer.py @@ -232,6 +232,7 @@ class MPLRenderer(Renderer): if kw['bbox_inches'] == 'tight': if not fig_id in MPLR...
Fixed initial frame Renderer bounding box calculation
py
diff --git a/cocaine/services/__init__.py b/cocaine/services/__init__.py index <HASH>..<HASH> 100644 --- a/cocaine/services/__init__.py +++ b/cocaine/services/__init__.py @@ -22,7 +22,7 @@ # It's provided for backward compatibility with 0.11.x from ..detail.channel import EmptyResponse -from ..detail.locator import...
[PEP8] Fix an import order
py
diff --git a/hepdata_converter_ws_client/__init__.py b/hepdata_converter_ws_client/__init__.py index <HASH>..<HASH> 100644 --- a/hepdata_converter_ws_client/__init__.py +++ b/hepdata_converter_ws_client/__init__.py @@ -93,7 +93,7 @@ def convert(url, input, output=None, options={}, id=None, extract=True, timeout= ...
Ensure we pass the file mode to tarfile.open instead of a name
py
diff --git a/goatools/associations.py b/goatools/associations.py index <HASH>..<HASH> 100755 --- a/goatools/associations.py +++ b/goatools/associations.py @@ -53,7 +53,7 @@ def read_associations(assoc_fn, no_top=False): def get_assoc_ncbi_taxids(taxids, force_dnld=False, loading_bar=True, **kws): """Download NCBI...
added argname in fnc call
py
diff --git a/rows/__init__.py b/rows/__init__.py index <HASH>..<HASH> 100644 --- a/rows/__init__.py +++ b/rows/__init__.py @@ -9,6 +9,17 @@ from rows.localization import locale_context # Plugin imports -from rows.plugins.csv import import_from_csv, export_to_csv -from rows.plugins.xls import import_from_xls, expor...
Add try/except ImportError on plugin imports
py
diff --git a/Adafruit_DHT/Test.py b/Adafruit_DHT/Test.py index <HASH>..<HASH> 100644 --- a/Adafruit_DHT/Test.py +++ b/Adafruit_DHT/Test.py @@ -19,7 +19,7 @@ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. from . import common -import .Test_Driver as driver +from . import T...
Fix #<I> by fixing test import line.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -14,7 +14,7 @@ setup( install_requires=[ 'jupyterhub>=0.8', 'pyYAML', - 'kubernetes==8.0.*', + 'kubernetes>=7.0', 'escapism', 'jinja2', 'async_generator>=1.8',
re-un-pin kubernetes packages should never strictly pin dependencies, that is the responsibility of deployments
py
diff --git a/glances/__init__.py b/glances/__init__.py index <HASH>..<HASH> 100644 --- a/glances/__init__.py +++ b/glances/__init__.py @@ -70,11 +70,11 @@ def __signal_handler(signal, frame): def end(): """Stop Glances.""" - if core.is_standalone(): + if core.is_standalone() and not WINDOWS: # St...
Global name standalone not defined (#<I>). Correct only the error message at the end of Glances but not the main cause of the issue (Webserver interface is not displayed)
py
diff --git a/tests/test_led.py b/tests/test_led.py index <HASH>..<HASH> 100644 --- a/tests/test_led.py +++ b/tests/test_led.py @@ -1,3 +1,4 @@ +import os import sys import time import periphery @@ -94,6 +95,10 @@ def test_interactive(): if __name__ == "__main__": + if os.environ.get("CI") == "true": + ...
tests/led: run arguments test in ci environment
py
diff --git a/geotweet/handle.py b/geotweet/handle.py index <HASH>..<HASH> 100644 --- a/geotweet/handle.py +++ b/geotweet/handle.py @@ -8,10 +8,11 @@ from log import logger, get_rotating_logger class LogTweetHandler(object): - def __init__(self, logfile, interval=60, when="M"): + def __init__(self, logfile=No...
allow making LogTweetHandler with no args
py
diff --git a/fedmsg/tests/test_text.py b/fedmsg/tests/test_text.py index <HASH>..<HASH> 100644 --- a/fedmsg/tests/test_text.py +++ b/fedmsg/tests/test_text.py @@ -24,14 +24,16 @@ from nose.tools import eq_ import fedmsg.text +from test_hub import load_config + class Base(unittest.TestCase): msg, expected_t...
Load the config in the Base text test class
py
diff --git a/anyconfig/api.py b/anyconfig/api.py index <HASH>..<HASH> 100644 --- a/anyconfig/api.py +++ b/anyconfig/api.py @@ -75,7 +75,8 @@ def _maybe_validated(cnf, schema, format_checker=None, ac_namedtuple=False): if schema is None: valid = True else: - (valid, msg) = validate(cnf, schema,...
fix: anyconfig.validate only accepts two positional arguments, the rest of arguments must be passed as keyword arguments.
py
diff --git a/claripy/backend.py b/claripy/backend.py index <HASH>..<HASH> 100644 --- a/claripy/backend.py +++ b/claripy/backend.py @@ -1,6 +1,7 @@ import sys import ctypes import weakref +import operator import threading import logging @@ -212,13 +213,10 @@ class Backend(object): obj = NotImplemente...
use operator for __ builtin operations on backend objects instead of our homegrown solution
py
diff --git a/pyinfra/api/util.py b/pyinfra/api/util.py index <HASH>..<HASH> 100644 --- a/pyinfra/api/util.py +++ b/pyinfra/api/util.py @@ -322,6 +322,10 @@ def make_hash(obj): ID's for operations based on their name & arguments. ''' + # pyinfra attr key where available (host/inventory data), see attrs.py...
Has True/False/None constants as the same when hashing operation arguments, so they can be different values between hosts (ie conditionals).
py
diff --git a/py/h2o_cmd.py b/py/h2o_cmd.py index <HASH>..<HASH> 100644 --- a/py/h2o_cmd.py +++ b/py/h2o_cmd.py @@ -250,6 +250,8 @@ def parseS3File(node=None, bucket=None, filename=None, keyForParseResult=None, t myKeyForParseResult = keyForParseResult return node.parse(s3_key, myKeyForParseResult, timeout...
Temporary disable RF scoring method.
py
diff --git a/flasgger/base.py b/flasgger/base.py index <HASH>..<HASH> 100644 --- a/flasgger/base.py +++ b/flasgger/base.py @@ -163,6 +163,8 @@ class APISpecsView(MethodView): data['host'] = self.config.get('host') if self.config.get("basePath"): data["basePath"] = self.config.get('bas...
Pull schemes from config if present
py
diff --git a/salt/engines/libvirt_events.py b/salt/engines/libvirt_events.py index <HASH>..<HASH> 100644 --- a/salt/engines/libvirt_events.py +++ b/salt/engines/libvirt_events.py @@ -229,7 +229,8 @@ def _domain_event_lifecycle_cb(conn, domain, event, detail, opaque): ''' event_str, detail_str = _get_domain_ev...
libvirt_events: align domain lifecycle event with other Domain lifecycle event was not using the callback provided event type for the tag, but rather using the realy event. Harmonize this with the other callbacks
py
diff --git a/splunklib/client.py b/splunklib/client.py index <HASH>..<HASH> 100644 --- a/splunklib/client.py +++ b/splunklib/client.py @@ -466,6 +466,11 @@ class Service(Context): @property def splunk_version(self): + """Get the version of the splunkd instance this object is attached to. + + T...
Added doctoring to splunk_version.
py
diff --git a/filemail/config.py b/filemail/config.py index <HASH>..<HASH> 100644 --- a/filemail/config.py +++ b/filemail/config.py @@ -121,7 +121,7 @@ class Config(): here = os.path.dirname(__file__) locations = [ - os.getenv('FILEMAIL_CONFIG_PATH', ''), + os.getenv('FILEMAIL_C...
Changed enironment variable name
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -17,6 +17,7 @@ setup( 'Intended Audience :: Developers', 'License :: OSI Approved :: BSD License', 'Programming Language :: Python', + 'Programming Language :: Python :: 3', 'Programm...
Resolves #<I> - pr corrections
py
diff --git a/tests.py b/tests.py index <HASH>..<HASH> 100644 --- a/tests.py +++ b/tests.py @@ -178,11 +178,17 @@ class InstancesTestCase(TestCase): def test_security_groups_get_raises(self): with self._patch_connection(): - with self.assertRaises(ec2.security_groups.MultipleObjectsReturned): ...
Try and make tests py<I> compatible
py
diff --git a/examples/cuboids.py b/examples/cuboids.py index <HASH>..<HASH> 100644 --- a/examples/cuboids.py +++ b/examples/cuboids.py @@ -1,3 +1,4 @@ +from OpenGL.GL import * import pg import random @@ -64,7 +65,11 @@ class Window(pg.Window): matrix = pg.Matrix().translate((width / 2, height / 2, 0)) ...
thick, color-inverting crosshairs
py
diff --git a/buildbot_travis/tests/test_travisyml.py b/buildbot_travis/tests/test_travisyml.py index <HASH>..<HASH> 100644 --- a/buildbot_travis/tests/test_travisyml.py +++ b/buildbot_travis/tests/test_travisyml.py @@ -63,6 +63,8 @@ class TestYamlParsing(TravisYmlTestCase): 'title': 'make dist'}]) d...
skip test if buildbot is too old
py
diff --git a/examples/hypertune-mnist.py b/examples/hypertune-mnist.py index <HASH>..<HASH> 100644 --- a/examples/hypertune-mnist.py +++ b/examples/hypertune-mnist.py @@ -11,10 +11,10 @@ from tensorflow.examples.tutorials.mnist import input_data mnist = input_data.read_data_sets("MNIST_data/", one_hot=True) -learn...
[refactor] less hyperparams
py
diff --git a/docs/examples/main_demo.py b/docs/examples/main_demo.py index <HASH>..<HASH> 100644 --- a/docs/examples/main_demo.py +++ b/docs/examples/main_demo.py @@ -22,7 +22,8 @@ async def main(): await redis.enqueue_job('download_content', url) # WorkerSettings defines the settings to use when creating t...
Add link to available settings for WorkerSettings (#<I>)
py
diff --git a/dbkit.py b/dbkit.py index <HASH>..<HASH> 100644 --- a/dbkit.py +++ b/dbkit.py @@ -218,4 +218,22 @@ def _column_set(cursor): finally: cursor.close() +# Utility functions {{{ + +def unindent_statement(query): + """ + Strips leading whitespace from a query based on the indentation + o...
Utility function for unindenting SQL statements (for logging).
py
diff --git a/src/sos/Julia/kernel.py b/src/sos/Julia/kernel.py index <HASH>..<HASH> 100644 --- a/src/sos/Julia/kernel.py +++ b/src/sos/Julia/kernel.py @@ -151,14 +151,14 @@ function __s_o_s__julia_py_repr_character_1(obj) end # Dataframe in Julia doesn't have rowname function __s_o_s__julia_py_repr_dataframe(obj) - ...
reading julia-s feather file in python
py
diff --git a/salt/client/ssh/ssh_py_shim.py b/salt/client/ssh/ssh_py_shim.py index <HASH>..<HASH> 100644 --- a/salt/client/ssh/ssh_py_shim.py +++ b/salt/client/ssh/ssh_py_shim.py @@ -210,8 +210,9 @@ def main(argv): # pylint: disable=W0613 # Yes, the flush() is necessary. sys.stdout.write(OPTIONS.delimiter + ...
Don't write to stderr when using a tty. As it seems to cause issues with the output parsing and results in the following error: _error: Failed to return clean data
py
diff --git a/poetry/console/commands/lock.py b/poetry/console/commands/lock.py index <HASH>..<HASH> 100644 --- a/poetry/console/commands/lock.py +++ b/poetry/console/commands/lock.py @@ -6,8 +6,10 @@ class LockCommand(EnvCommand): name = "lock" description = "Locks the project dependencies." - help = """...
reformat `help` from LockCommand
py
diff --git a/multiqc/plots/linegraph.py b/multiqc/plots/linegraph.py index <HASH>..<HASH> 100644 --- a/multiqc/plots/linegraph.py +++ b/multiqc/plots/linegraph.py @@ -362,13 +362,13 @@ def matplotlib_linegraph (plotdata, pconfig=None): xmin = default_xlimits[0] if 'xmin' in pconfig: xmin ...
Fixing xCeiling and xFloor to match the y axis changes
py
diff --git a/scripts/github/merge_dev_to_feature.py b/scripts/github/merge_dev_to_feature.py index <HASH>..<HASH> 100644 --- a/scripts/github/merge_dev_to_feature.py +++ b/scripts/github/merge_dev_to_feature.py @@ -65,6 +65,19 @@ for branch in repo.get_branches(): ) print 'Create pull ...
Updated merge_dev_to_feature script to assign merge conflict pull requests to the last developer who committed on the branch
py
diff --git a/tests/test__compiler.py b/tests/test__compiler.py index <HASH>..<HASH> 100644 --- a/tests/test__compiler.py +++ b/tests/test__compiler.py @@ -124,5 +124,13 @@ class TestCompiler(TestCase): } result = u"Hi Ahmed!" path = '/project/widgets/templates' - self.assertEqual(resul...
Fix bug where a new path has its name generated anyways + add test
py
diff --git a/glances/plugins/glances_docker.py b/glances/plugins/glances_docker.py index <HASH>..<HASH> 100644 --- a/glances/plugins/glances_docker.py +++ b/glances/plugins/glances_docker.py @@ -76,17 +76,20 @@ class Plugin(GlancesPlugin): # Connexion error (Docker not detected) # Let this mes...
Correct an issue in Python3 if Docker client and Server are not in the same version
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 @@ -162,11 +162,19 @@ Fetching data from Yahoo Finance. # we have data,then we need to update if len(trading_days) - last_bm_date_offset > 1: benchmark_re...
MAINT: Protect loader against Series saved with no tz. Checking for tz.UTC is not sufficient, since it is possible for the index.tz value to be None.
py
diff --git a/edisgo/grid/connect.py b/edisgo/grid/connect.py index <HASH>..<HASH> 100644 --- a/edisgo/grid/connect.py +++ b/edisgo/grid/connect.py @@ -150,7 +150,9 @@ def connect_lv_generators(network, allow_multiple_genos_per_load=True): # get predefined random seed and initialize random generator seed = i...
change seed of random generator to avoid having branch id duplicates revert as soon as #<I> is resolved
py
diff --git a/mysql/toolkit/components/manipulate/insert.py b/mysql/toolkit/components/manipulate/insert.py index <HASH>..<HASH> 100644 --- a/mysql/toolkit/components/manipulate/insert.py +++ b/mysql/toolkit/components/manipulate/insert.py @@ -70,10 +70,6 @@ class Insert: If only one row is found, self.insert...
Removed check in insert_many method that returns False
py
diff --git a/textx/export.py b/textx/export.py index <HASH>..<HASH> 100644 --- a/textx/export.py +++ b/textx/export.py @@ -69,7 +69,9 @@ def match_abstract_str(cls): not (cls._tx_type is RULE_ABSTRACT and cls.__name__ != cls._tx_peg_rule.rule_name): e = cls._tx_peg_rule - ...
Fix in dot export. Render match representation in the body of the rule in case it is the only part of the rule expression.
py
diff --git a/delphi/translators/for2py/syntax.py b/delphi/translators/for2py/syntax.py index <HASH>..<HASH> 100644 --- a/delphi/translators/for2py/syntax.py +++ b/delphi/translators/for2py/syntax.py @@ -206,15 +206,25 @@ def line_is_continuation(line: str, f_ext: str) -> bool: line Returns: True ...
generalized handling of continuation lines (#<I>) * bug fix in handling continuation lines + comments * bug fix in handling continuation lines + comments * bug fix in handling continuation lines + comments * bug fix in handling continuation lines + comments * bug fix in handling continuation lines + commen...
py
diff --git a/hydra_base/config.py b/hydra_base/config.py index <HASH>..<HASH> 100644 --- a/hydra_base/config.py +++ b/hydra_base/config.py @@ -106,7 +106,7 @@ def load_config(): env_value = os.environ.get('HYDRA_CONFIG') if env_value is not None: if os.path.exists(env_value): - config.read...
Read the hydra.ini file correctly from HYDRA_CONFIG
py
diff --git a/pyof/foundation/base.py b/pyof/foundation/base.py index <HASH>..<HASH> 100644 --- a/pyof/foundation/base.py +++ b/pyof/foundation/base.py @@ -484,8 +484,19 @@ class GenericStruct(object, metaclass=MetaStruct): return False return True - # linter cannot detect attribute added ...
Add helper methods on GenericStruct
py
diff --git a/ratelimitbackend/backends.py b/ratelimitbackend/backends.py index <HASH>..<HASH> 100644 --- a/ratelimitbackend/backends.py +++ b/ratelimitbackend/backends.py @@ -23,18 +23,18 @@ class RateLimitMixin(object): counts = self.get_counters(request) if sum(counts.values()) >= self.reque...
unicode & loggers - crashed with username with accents
py
diff --git a/evfl/timeline.py b/evfl/timeline.py index <HASH>..<HASH> 100644 --- a/evfl/timeline.py +++ b/evfl/timeline.py @@ -254,6 +254,7 @@ class Timeline(BinaryObject): t.clip.set_index(clip_to_idx) def _do_write(self, stream: WriteStream) -> None: + self.triggers.sort(key=lambda a: a.cli...
timeline.py: Add trigger sorting Sorts triggers so that they don't mess up playback
py
diff --git a/openquake/commonlib/export/risk.py b/openquake/commonlib/export/risk.py index <HASH>..<HASH> 100644 --- a/openquake/commonlib/export/risk.py +++ b/openquake/commonlib/export/risk.py @@ -179,14 +179,14 @@ def export_agg_losses_ebr(ekey, dstore): elt_dt = numpy.dtype(dtlist) rlzs_assoc = dstore['cs...
Added a few comments Former-commit-id: d<I>f<I>e<I>a<I>
py
diff --git a/openquake/calculators/disaggregation.py b/openquake/calculators/disaggregation.py index <HASH>..<HASH> 100644 --- a/openquake/calculators/disaggregation.py +++ b/openquake/calculators/disaggregation.py @@ -125,11 +125,10 @@ def compute_disagg(dstore, idxs, cmaker, iml4, trti, bin_edges, pne_mon = moni...
Save memory in compute_disagg [skip hazardlib]
py
diff --git a/tcod/__init__.py b/tcod/__init__.py index <HASH>..<HASH> 100644 --- a/tcod/__init__.py +++ b/tcod/__init__.py @@ -22,6 +22,8 @@ def _import_library_functions(lib): for name in dir(lib): if name[:5] == 'TCOD_': g[name[5:]] = getattr(lib, name) + elif name[:4] == 'TCOD': # s...
grab shorter constant names, like keycodes
py
diff --git a/usb1/libusb1.py b/usb1/libusb1.py index <HASH>..<HASH> 100644 --- a/usb1/libusb1.py +++ b/usb1/libusb1.py @@ -142,10 +142,8 @@ class USBError(Exception): if sys.version_info[0] == 3: _string_item_to_int = lambda x: x - _empty_char_p = bytes() else: _string_item_to_int = ord - _empty_cha...
libusb1: Use b-strings. Removes one reason to have a version check here. This is supported since <I> .
py
diff --git a/tests/test_pm_imagenet.py b/tests/test_pm_imagenet.py index <HASH>..<HASH> 100644 --- a/tests/test_pm_imagenet.py +++ b/tests/test_pm_imagenet.py @@ -21,6 +21,11 @@ def test_pm_imagenet(model_name, pretrained): num_classes=1000, pretrained=pretrained) net.eval() + + if 'nasnetalar...
Remove nasnetalarge forward from tests (bcause of travis
py
diff --git a/summary/summary.py b/summary/summary.py index <HASH>..<HASH> 100644 --- a/summary/summary.py +++ b/summary/summary.py @@ -54,7 +54,7 @@ def content_object_init(instance): len(instance.settings['SUMMARY_BEGIN_MARKER']) if begin_summary != -1 else 0) ...
Fix summary plugin not properly updating asset paths in summaries. RST files with figures in the summary were not properly displaying the image, because the path was not properly being rewritten with the "|filename|" substituted with the proper path. Calling _update_content() performs the proper regex substitutions...
py
diff --git a/salt/returners/mongo_return.py b/salt/returners/mongo_return.py index <HASH>..<HASH> 100644 --- a/salt/returners/mongo_return.py +++ b/salt/returners/mongo_return.py @@ -31,7 +31,7 @@ def _remove_dots(d): output = {} for k, v in d.iteritems(): if isinstance(v, dict): - v = rem...
Fix bug in mongo_return, made typo error
py