diff
stringlengths
139
3.65k
message
stringlengths
8
627
diff_languages
stringclasses
1 value
diff --git a/src/ai/backend/client/cli/run.py b/src/ai/backend/client/cli/run.py index <HASH>..<HASH> 100644 --- a/src/ai/backend/client/cli/run.py +++ b/src/ai/backend/client/cli/run.py @@ -199,6 +199,7 @@ def _noop(*args, **kwargs): def _format_stats(stats): formatted = [] version = stats.pop('version', 1)...
Fix compatibility with a slightly modified kernel destroy API return
py
diff --git a/premailer/premailer.py b/premailer/premailer.py index <HASH>..<HASH> 100644 --- a/premailer/premailer.py +++ b/premailer/premailer.py @@ -107,6 +107,7 @@ class Premailer(object): def __init__(self, html, base_url=None, preserve_internal_links=False, + preserve_inlin...
Added support for inline/related attachments
py
diff --git a/BAC0/core/io/Read.py b/BAC0/core/io/Read.py index <HASH>..<HASH> 100644 --- a/BAC0/core/io/Read.py +++ b/BAC0/core/io/Read.py @@ -183,10 +183,19 @@ class ReadProperty: else: if reason == "unknownProperty": if "description" in args: - ...
Related to issue #<I>. I know it's not perfect but for now, until I find better, there will be a warning message clearly stipulating that BAC0 uses an internal default value for certain properties if they are not supported in the device we try to reach.
py
diff --git a/giddy/tests/test_rank.py b/giddy/tests/test_rank.py index <HASH>..<HASH> 100644 --- a/giddy/tests/test_rank.py +++ b/giddy/tests/test_rank.py @@ -51,6 +51,9 @@ class SpatialTau_Tester(unittest.TestCase): self.assertAlmostEqual(tau_s[i], obs[i].tau_spatial, 3) self.assertAlmostEqua...
BUG: testing for symmetry in spatial tau
py
diff --git a/MAVProxy/tools/mavflightview.py b/MAVProxy/tools/mavflightview.py index <HASH>..<HASH> 100755 --- a/MAVProxy/tools/mavflightview.py +++ b/MAVProxy/tools/mavflightview.py @@ -299,7 +299,7 @@ def mavflightview_mav(mlog, options=None, flightmode_selections=[]): path[instance].append(point...
mavflightiew: avoid no-point-to-plot exception
py
diff --git a/build/check.py b/build/check.py index <HASH>..<HASH> 100755 --- a/build/check.py +++ b/build/check.py @@ -60,7 +60,7 @@ def checkHtmlLint(): """ htmlhint_path = shakaBuildHelpers.getNodeBinaryPath('htmlhint') if not os.path.exists(htmlhint_path): - return 0 + return True base = shakaBuild...
Fix skipping of htmlhint when missing We were returning 0 in a function that was supposed to return True/False. Change-Id: Ie<I>c<I>b<I>a5c0fe3ffc0df<I>bdb2a2ab<I>
py
diff --git a/tensorflow_datasets/text/trivia_qa.py b/tensorflow_datasets/text/trivia_qa.py index <HASH>..<HASH> 100644 --- a/tensorflow_datasets/text/trivia_qa.py +++ b/tensorflow_datasets/text/trivia_qa.py @@ -244,8 +244,8 @@ class TriviaQA(tfds.core.GeneratorBasedBuilder): with tf.io.gfile.GFile(sear...
Fix trivia_qa internal building. PiperOrigin-RevId: <I>
py
diff --git a/instaloader/structures.py b/instaloader/structures.py index <HASH>..<HASH> 100644 --- a/instaloader/structures.py +++ b/instaloader/structures.py @@ -224,7 +224,11 @@ class Post: def get_sidecar_nodes(self) -> Iterator[PostSidecarNode]: """Sidecar nodes of a Post with typename==GraphSidecar."...
Fix Downloading of Videos within a Sidecar Post Fixes #<I>.
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 @@ -37,5 +37,5 @@ class SiVisa(TransferLayer): def read(self): self._resource.read() - def ask(self, data): + def query(self, data): return self._...
API: query isntad of ask for write + read
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -42,4 +42,5 @@ setup(name='pysasl', 'Programming Language :: Python', 'Programming Language :: Python :: 2.6', 'Programming Language :: Python :: 2.7', - ...
advertise support for py<I>
py
diff --git a/account/admin.py b/account/admin.py index <HASH>..<HASH> 100644 --- a/account/admin.py +++ b/account/admin.py @@ -14,7 +14,7 @@ class SignupCodeAdmin(admin.ModelAdmin): class EmailAddressAdmin(admin.ModelAdmin): list_display = ["user", "email", "verified", "primary"] - search_fields = ["user", "...
Fix the search on EmailAddress admin. We cannot query a foreign key directly, but we need to specify one field. Now we query the username
py
diff --git a/checkers/base.py b/checkers/base.py index <HASH>..<HASH> 100755 --- a/checkers/base.py +++ b/checkers/base.py @@ -342,7 +342,7 @@ functions, methods # const None node with lineno to None are inserted # on unnecessary semi-column # XXX navigate to get a cor...
We need the new 'child_sequence' method --HG-- branch : astng2
py
diff --git a/blimpy/io/hdf_reader.py b/blimpy/io/hdf_reader.py index <HASH>..<HASH> 100644 --- a/blimpy/io/hdf_reader.py +++ b/blimpy/io/hdf_reader.py @@ -26,10 +26,12 @@ def examine_h5(h5): verblob = h5.attrs["VERSION"] else: oops("examine_h5: HDF5 VERSION attribute missing") - try: + if t...
Sometimes, the type(VERSION) = numpy.bytes_ This was observed in the data centre using pytest. When run interactively, the same file yielded a VERSION of type bytes. And, for some files, type(VERSION) = str.
py
diff --git a/release.py b/release.py index <HASH>..<HASH> 100755 --- a/release.py +++ b/release.py @@ -48,8 +48,9 @@ def commit(version): print "Adding and committing files..." addAndCommitReleaseFiles(version) - # print "Publishing new commit to master" - # subprocess.call('git push origin master'.sp...
chore release: commit to master as well
py
diff --git a/bcbio/pipeline/datadict.py b/bcbio/pipeline/datadict.py index <HASH>..<HASH> 100644 --- a/bcbio/pipeline/datadict.py +++ b/bcbio/pipeline/datadict.py @@ -34,6 +34,8 @@ LOOKUPS = { "checker": file_exists}, "srna_mint_space": {"keys": ['genome_resources', 'srnaseq', 'mint_space'],...
sRNA: missing tRNA annotation link in dd
py
diff --git a/consoleiotools.py b/consoleiotools.py index <HASH>..<HASH> 100644 --- a/consoleiotools.py +++ b/consoleiotools.py @@ -95,6 +95,12 @@ def get_input(question='', prompt='> '): def get_choice(choices, exitable: bool = False): + """Get user choice from a given list + + Args: + choices: list. ...
make err message better looking.
py
diff --git a/cmsplugin_cascade/__init__.py b/cmsplugin_cascade/__init__.py index <HASH>..<HASH> 100644 --- a/cmsplugin_cascade/__init__.py +++ b/cmsplugin_cascade/__init__.py @@ -1 +1 @@ -__version__ = "0.6.0" +__version__ = "0.6.1"
Bump to version <I>
py
diff --git a/djangocms_helper/main.py b/djangocms_helper/main.py index <HASH>..<HASH> 100644 --- a/djangocms_helper/main.py +++ b/djangocms_helper/main.py @@ -144,7 +144,10 @@ def generate_authors(): stdout=subprocess.PIPE) seen_authors = [] authors = [] - with open('AUTHORS', 'r'...
Add support for AUTHORS.rst file
py
diff --git a/pyqode/core/modes/pygments_sh.py b/pyqode/core/modes/pygments_sh.py index <HASH>..<HASH> 100644 --- a/pyqode/core/modes/pygments_sh.py +++ b/pyqode/core/modes/pygments_sh.py @@ -88,7 +88,7 @@ def get_tokens_unprocessed(self, text, stack=('root',)): pos += 1 statest...
Fix py<I> compatibility issues
py
diff --git a/ceph_deploy/forgetkeys.py b/ceph_deploy/forgetkeys.py index <HASH>..<HASH> 100644 --- a/ceph_deploy/forgetkeys.py +++ b/ceph_deploy/forgetkeys.py @@ -1,4 +1,5 @@ import logging +import errno from .cliutil import priority @@ -14,10 +15,16 @@ def forgetkeys(args): 'bootstrap-osd', 'bo...
forgetkeys: no error if keys don't exist Fixes: #<I>
py
diff --git a/quizler/models.py b/quizler/models.py index <HASH>..<HASH> 100644 --- a/quizler/models.py +++ b/quizler/models.py @@ -8,7 +8,6 @@ class Term: def __init__(self, raw_data): try: - # ToDo: type annotations self.definition = raw_data['definition'] self.id =...
Do not advertise for Python <I> stuff.
py
diff --git a/pyregion/core.py b/pyregion/core.py index <HASH>..<HASH> 100644 --- a/pyregion/core.py +++ b/pyregion/core.py @@ -191,9 +191,9 @@ class ShapeList(list): for a in attr0 if a != 'text']) # first line is globals - print >> outf, "global", defaultl...
fix pyregion writer - I think this is a 2-to-3 failure? I was getting issues like: TypeError: unsupported operand type(s) for >>: 'builtin_function_or_method' and '_io.TextIOWrapper'
py
diff --git a/mycluster/slurm.py b/mycluster/slurm.py index <HASH>..<HASH> 100644 --- a/mycluster/slurm.py +++ b/mycluster/slurm.py @@ -268,7 +268,7 @@ echo -e "Complete========\n" return script_str -def submit(script_name, immediate, depends_on = False, depends_on_always_run = False): +def submit(script_name, ...
job dependencies for slurm
py
diff --git a/gwpy/tests/test_table.py b/gwpy/tests/test_table.py index <HASH>..<HASH> 100644 --- a/gwpy/tests/test_table.py +++ b/gwpy/tests/test_table.py @@ -74,10 +74,10 @@ def mock_hacr_mysqldb_connection(table, start, stop): if cursor._query.get_real_name() == 'job': return [(1, start, stop)] ...
tests: cast map to list for python3
py
diff --git a/python/examples/hypertools_demo-align_tests.py b/python/examples/hypertools_demo-align_tests.py index <HASH>..<HASH> 100644 --- a/python/examples/hypertools_demo-align_tests.py +++ b/python/examples/hypertools_demo-align_tests.py @@ -5,6 +5,17 @@ import numpy as np data = sio.loadmat('test_data.mat') dat...
ENH: Updated example with spiral dataset that are misaligned before hyperalignment and were aligned after hyperalignment.
py
diff --git a/ceph_deploy/install.py b/ceph_deploy/install.py index <HASH>..<HASH> 100644 --- a/ceph_deploy/install.py +++ b/ceph_deploy/install.py @@ -164,7 +164,7 @@ def purge_data(args): process.run( distro.conn, [ - 'rm', '-rf', '--one-file-system', '--', '/etc/ceph/...
go back to removing /etc/ceph completely
py
diff --git a/nidmresults/exporter.py b/nidmresults/exporter.py index <HASH>..<HASH> 100644 --- a/nidmresults/exporter.py +++ b/nidmresults/exporter.py @@ -114,7 +114,8 @@ class NIDMExporter(): raise def cleanup(self,): - shutil.rmtree(self.export_dir) + if os.path.isdir(self.export_dir...
fix: at cleanup only delete export_dir if it exists
py
diff --git a/dataviews/collector.py b/dataviews/collector.py index <HASH>..<HASH> 100644 --- a/dataviews/collector.py +++ b/dataviews/collector.py @@ -50,9 +50,9 @@ class ViewGroup(object): def grid(self, ordering='alphanumeric'): """ - Turn the ViewGroup into a GridLayout with the View object - ...
The grid method of ViewGroup is now robust to non-DataView objects
py
diff --git a/hgtools/managers/subprocess.py b/hgtools/managers/subprocess.py index <HASH>..<HASH> 100644 --- a/hgtools/managers/subprocess.py +++ b/hgtools/managers/subprocess.py @@ -29,6 +29,8 @@ class MercurialManager(Subprocess, cmd.Mercurial, base.RepoManager): as a subprocess. """ priority = 1 + if os.path.i...
Throw in a heuristic to increase the priority of Mercurial or Git commands if the current directory is a Mercurial or Git repo.
py
diff --git a/assess_container_networking.py b/assess_container_networking.py index <HASH>..<HASH> 100755 --- a/assess_container_networking.py +++ b/assess_container_networking.py @@ -388,7 +388,7 @@ def assess_container_networking(client, types): log.info("Restarting hosted machine: {}".format(host)) ...
Call show-action-status once.
py
diff --git a/backdrop/collector/write.py b/backdrop/collector/write.py index <HASH>..<HASH> 100644 --- a/backdrop/collector/write.py +++ b/backdrop/collector/write.py @@ -1,7 +1,7 @@ import requests -class Backdrop(object): +class Bucket(object): def __init__(self, url, token): self.url = url ...
Rename write.Backdrop to write.Bucket Closer to current domain language.
py
diff --git a/tests/__init__.py b/tests/__init__.py index <HASH>..<HASH> 100644 --- a/tests/__init__.py +++ b/tests/__init__.py @@ -2381,8 +2381,10 @@ class CommonTest(EWSTest): def test_get_elements(self): # Test that we can handle SOAP-level error messages + # TODO: The request actually raises E...
Fix test after 6c<I>
py
diff --git a/pants-plugins/internal_plugins/releases/register.py b/pants-plugins/internal_plugins/releases/register.py index <HASH>..<HASH> 100644 --- a/pants-plugins/internal_plugins/releases/register.py +++ b/pants-plugins/internal_plugins/releases/register.py @@ -138,6 +138,7 @@ async def pants_setup_kwargs( ...
[internal] Add link to mailing list to project urls (#<I>)
py
diff --git a/pysat/__init__.py b/pysat/__init__.py index <HASH>..<HASH> 100644 --- a/pysat/__init__.py +++ b/pysat/__init__.py @@ -65,7 +65,7 @@ pysat_dir = os.path.join(home_dir, '.pysat') if not os.path.isdir(pysat_dir): # create directory os.mkdir(pysat_dir) - logger.info('Created .pysat directory in u...
ENH: changed init loging to print
py
diff --git a/master/buildbot/schedulers/base.py b/master/buildbot/schedulers/base.py index <HASH>..<HASH> 100644 --- a/master/buildbot/schedulers/base.py +++ b/master/buildbot/schedulers/base.py @@ -304,7 +304,10 @@ class BaseScheduler(ClusteredBuildbotService, StateMixin): if not builderNames: bu...
add comment on findBuilderId()
py
diff --git a/src/sos/sos_script.py b/src/sos/sos_script.py index <HASH>..<HASH> 100755 --- a/src/sos/sos_script.py +++ b/src/sos/sos_script.py @@ -26,6 +26,7 @@ import copy import fnmatch import textwrap import shutil +import types # used by structural directive import sys @@ -73,7 +74,7 @@ def get_type_hint(stm...
Fix another mixup of SOS syntax with Python type hint. #<I>
py
diff --git a/docs/conf.py b/docs/conf.py index <HASH>..<HASH> 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -1,5 +1,6 @@ #! /usr/bin/env python3 # Requires Python 3.6+ +# pylint: disable=invalid-name """Configuration of Sphinx documentation generator.""" extensions = [
Ignore invalid-name pylint rule in docs.conf
py
diff --git a/girder/api/rest.py b/girder/api/rest.py index <HASH>..<HASH> 100644 --- a/girder/api/rest.py +++ b/girder/api/rest.py @@ -222,11 +222,14 @@ class loadmodel(ModelImporter): # noqa: class name :type plugin: str :param level: Access level, if this is an access controlled model. :type level: Ac...
Allow loadmodel to load None if no such model exists This is an optional case that could be useful for checking the existence of models, for instance.
py
diff --git a/snapcast/control.py b/snapcast/control.py index <HASH>..<HASH> 100755 --- a/snapcast/control.py +++ b/snapcast/control.py @@ -16,7 +16,7 @@ CONTROL_PORT = 1705 _NEWLINE = b'\r\n' _ENCODING = 'utf-8' _READ_TIMEOUT = 0.5 -_RESP_TIMEOUT = 2.0 # In python2.7 response time is longer +_RESP_TIMEOUT = 4.0 # ...
classes inherit from object (python2 compatible)
py
diff --git a/mutagen/id3/__init__.py b/mutagen/id3/__init__.py index <HASH>..<HASH> 100644 --- a/mutagen/id3/__init__.py +++ b/mutagen/id3/__init__.py @@ -200,7 +200,7 @@ class ID3(DictProxy, mutagen.Metadata): del(self[key]) else: key = key + ":" - for k in self.keys(): + ...
id3/__init__.py: fixed deletion-during-iteration error introduced in <I>cff
py
diff --git a/moban_handlebars/engine.py b/moban_handlebars/engine.py index <HASH>..<HASH> 100644 --- a/moban_handlebars/engine.py +++ b/moban_handlebars/engine.py @@ -7,7 +7,12 @@ PY2 = sys.version_info[0] == 2 class EngineHandlebars(object): - def __init__(self, template_dirs, extensions=None): + def __init...
:sparkles: minor update. change extensions to options. fix #7
py
diff --git a/trunk/pywbem/cim_http.py b/trunk/pywbem/cim_http.py index <HASH>..<HASH> 100644 --- a/trunk/pywbem/cim_http.py +++ b/trunk/pywbem/cim_http.py @@ -227,9 +227,9 @@ def wbem_request(url, data, creds, headers=[], debug=0, x509=None, raise Error('SSL error: post connection check '\ ...
In support of reintroducing Python <I> support in cim_http.HTTPSConnection.connect(): - Removed SSLTimeoutError from except list, being a subclass it is catched via SSLError - Already committed by accident in r<I>: Replaced Python <I> specific code copied from httplib.HTTPSConnection.connect() with a call to that metho...
py
diff --git a/bitshares/bitshares.py b/bitshares/bitshares.py index <HASH>..<HASH> 100644 --- a/bitshares/bitshares.py +++ b/bitshares/bitshares.py @@ -222,6 +222,7 @@ class BitShares(object): additional_active_keys=[], additional_owner_accounts=[], ...
[bitshares] allow definition of proxy in account_create
py
diff --git a/grimoire_elk/ocean/github.py b/grimoire_elk/ocean/github.py index <HASH>..<HASH> 100644 --- a/grimoire_elk/ocean/github.py +++ b/grimoire_elk/ocean/github.py @@ -40,8 +40,8 @@ class GitHubOcean(ElasticOcean): owner = url.split('/')[-2] repo = url.split('/')[-1] - params.append('-...
[github] owner and repository are now positional params in perceval backend
py
diff --git a/pandas/io/formats/style.py b/pandas/io/formats/style.py index <HASH>..<HASH> 100644 --- a/pandas/io/formats/style.py +++ b/pandas/io/formats/style.py @@ -702,7 +702,7 @@ class Styler(StylerRenderer): >>> df = pd.DataFrame([[1]]) >>> df.style.set_properties( ... **{"font-weigh...
DOC:GH<I> Fix mistake in code example of Styler.to_latex documentation. (#<I>)
py
diff --git a/predix/admin/uaa.py b/predix/admin/uaa.py index <HASH>..<HASH> 100644 --- a/predix/admin/uaa.py +++ b/predix/admin/uaa.py @@ -24,7 +24,7 @@ class UserAccountAuthentication(object): self.use_class = predix.security.uaa.UserAccountAuthentication self.service = predix.admin.service.CloudFo...
Linking custom name in creating UAA instance When a call to create a UAA instance using “UserAccountAuthentication(plan_name='Free’, name=‘custom_name’)” was made, it wouldn’t be named ‘custom_name’ but rather the default value ’predixpy-demo-predix-uaa-free’. This is a simple fix to accept custom names.
py
diff --git a/angr/analyses/variable_recovery/engine_base.py b/angr/analyses/variable_recovery/engine_base.py index <HASH>..<HASH> 100644 --- a/angr/analyses/variable_recovery/engine_base.py +++ b/angr/analyses/variable_recovery/engine_base.py @@ -561,7 +561,7 @@ class SimEngineVRBase(SimEngineLight): ...
VRA: Enable type inference for bp registers. (#<I>)
py
diff --git a/tests/units/feature_extraction/test_data.py b/tests/units/feature_extraction/test_data.py index <HASH>..<HASH> 100644 --- a/tests/units/feature_extraction/test_data.py +++ b/tests/units/feature_extraction/test_data.py @@ -57,7 +57,7 @@ class DataAdapterTestCase(DataTestCase): def test_wide_tsframe_w...
Fix for older python version
py
diff --git a/salt/states/telemetry_alert.py b/salt/states/telemetry_alert.py index <HASH>..<HASH> 100644 --- a/salt/states/telemetry_alert.py +++ b/salt/states/telemetry_alert.py @@ -28,6 +28,8 @@ Example: from __future__ import absolute_import from salt._compat import string_types + + def __virtual__(): # On...
lint passes locally :(
py
diff --git a/ec2/spark_ec2.py b/ec2/spark_ec2.py index <HASH>..<HASH> 100755 --- a/ec2/spark_ec2.py +++ b/ec2/spark_ec2.py @@ -158,7 +158,7 @@ def is_active(instance): def get_spark_shark_version(opts): spark_shark_map = {"0.7.2": "0.7.0"} version = opts.spark_version.replace("v", "") - if version not in ["0.7....
Small improvement in python script
py
diff --git a/dallinger/experiment_server/gunicorn.py b/dallinger/experiment_server/gunicorn.py index <HASH>..<HASH> 100644 --- a/dallinger/experiment_server/gunicorn.py +++ b/dallinger/experiment_server/gunicorn.py @@ -8,6 +8,8 @@ import logging logger = logging.getLogger(__file__) +app = util.import_app("dallinge...
avoid loading config twice when running via gunicorn
py
diff --git a/eventsourcing/tests/test_performance.py b/eventsourcing/tests/test_performance.py index <HASH>..<HASH> 100644 --- a/eventsourcing/tests/test_performance.py +++ b/eventsourcing/tests/test_performance.py @@ -1,4 +1,7 @@ +from unittest import skip + import time +from eventsourcing.tests.sequenced_item_tests....
Added TestPopoPerformance (shows <I>x speed up over SQLite in memory).
py
diff --git a/xigt/codecs/xigtxml.py b/xigt/codecs/xigtxml.py index <HASH>..<HASH> 100644 --- a/xigt/codecs/xigtxml.py +++ b/xigt/codecs/xigtxml.py @@ -280,9 +280,10 @@ def default_encode_meta(meta, indent=2, level=1): )] if cnt: lines.append(cnt.rstrip()) - if indent: - lines.append...
Don't output newlines for single-line Meta.text with no children. Resolves #<I>.
py
diff --git a/tests/unit/test_cube_slice.py b/tests/unit/test_cube_slice.py index <HASH>..<HASH> 100644 --- a/tests/unit/test_cube_slice.py +++ b/tests/unit/test_cube_slice.py @@ -25,6 +25,11 @@ class DescribeCubeSlice(object): assert updated_axis == expected_value + def it_raises_not_implemented_for_wro...
Coverage back to <I>%
py
diff --git a/parker/mediafile.py b/parker/mediafile.py index <HASH>..<HASH> 100644 --- a/parker/mediafile.py +++ b/parker/mediafile.py @@ -4,6 +4,11 @@ import client _instances = dict() +_content_type_map = { + 'image/jpeg': 'jpg', + 'image/png': 'png', + 'image/gif': 'gif' +} def get_instance(uri): @...
Break out the dodgy if statement into a map.
py
diff --git a/creamas/serializers.py b/creamas/serializers.py index <HASH>..<HASH> 100644 --- a/creamas/serializers.py +++ b/creamas/serializers.py @@ -1,12 +1,20 @@ """ .. py:module:: serializers - :platform: + :platform: Unix Predefined serializers for routers. """ import pickle -from creamas import Art...
Added serializers for numpy data types
py
diff --git a/test_elasticsearch/test_server/test_common.py b/test_elasticsearch/test_server/test_common.py index <HASH>..<HASH> 100644 --- a/test_elasticsearch/test_server/test_common.py +++ b/test_elasticsearch/test_server/test_common.py @@ -144,11 +144,11 @@ class YamlTestCase(ElasticTestCase): except Assert...
The yaml test suite has some weird bool rules
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -22,11 +22,8 @@ import os import fnmatch import sys import subprocess -import commands -import time +import shutil from trace import fullmodname -import unittest -from distutils import sysconfig,file_util from distutils.c...
Fixed setup.py clean, removed unused imports. Fixed error with 'python setup.py clean' when docs/_build is absent (reported by Steffen Grunewald). Also removed a few unused imports from setup.py
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -46,7 +46,7 @@ except ImportError: try: with open(os.path.join(base_directory, 'README.rst')) as file_h: long_description = file_h.read() -except IOError, OSError: +except (IOError, OSError): sys.stderr.write('README.r...
[setup.py] except block needs parentheses for multiple values
py
diff --git a/test/integration/test_display_callback.py b/test/integration/test_display_callback.py index <HASH>..<HASH> 100644 --- a/test/integration/test_display_callback.py +++ b/test/integration/test_display_callback.py @@ -21,7 +21,12 @@ def executor(tmpdir, request): playbooks = request.node.callspec.params.g...
Correctly silence warnings, make tests more robust
py
diff --git a/insights/specs/sos_archive.py b/insights/specs/sos_archive.py index <HASH>..<HASH> 100644 --- a/insights/specs/sos_archive.py +++ b/insights/specs/sos_archive.py @@ -118,6 +118,7 @@ class SosSpecs(Specs): root_crontab = first_file(["sos_commands/crontab/root_crontab", "sos_commands/cron/root_crontab"]...
add sssd_logs to sos_archive.py (#<I>)
py
diff --git a/variation/delly.py b/variation/delly.py index <HASH>..<HASH> 100644 --- a/variation/delly.py +++ b/variation/delly.py @@ -105,7 +105,7 @@ def mitocompile(args): sys.exit(not p.print_help()) vcfs = args - print "\t".join("vcf seqid pos alt pe sr".split()) + print "\t".join("vcf seqid p...
[variation] add SVLEN field in delly
py
diff --git a/nurbs/Grid.py b/nurbs/Grid.py index <HASH>..<HASH> 100644 --- a/nurbs/Grid.py +++ b/nurbs/Grid.py @@ -159,3 +159,13 @@ class Grid: line = line + ";" target.write(line) target.write("\n") + + def bumps(self, num_bumps): + """ Generates random bumps (i...
Initial commit of the Grid::bumps method
py
diff --git a/simuvex/s_state.py b/simuvex/s_state.py index <HASH>..<HASH> 100644 --- a/simuvex/s_state.py +++ b/simuvex/s_state.py @@ -86,6 +86,7 @@ class SimState(ana.Storable): # pylint: disable=R0904 # this is a global condition, applied to all added constraints, memory reads, etc self._global_co...
eip_constraints in state
py
diff --git a/dusty/daemon.py b/dusty/daemon.py index <HASH>..<HASH> 100644 --- a/dusty/daemon.py +++ b/dusty/daemon.py @@ -51,6 +51,7 @@ def _listen_on_socket(socket_path): except Exception as e: logging.exception("Daemon encountered exception while processing command") ...
send the warngins to the client when you hit an exceptiong
py
diff --git a/settings.py b/settings.py index <HASH>..<HASH> 100644 --- a/settings.py +++ b/settings.py @@ -43,6 +43,7 @@ INSTALLED_APPS = ( 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', + 'django.contrib.messages', 'django_currentuser', 'testapp', )
Add django.contrib.messages to the list of installed applications
py
diff --git a/grimoire_elk/elk/rss.py b/grimoire_elk/elk/rss.py index <HASH>..<HASH> 100644 --- a/grimoire_elk/elk/rss.py +++ b/grimoire_elk/elk/rss.py @@ -43,7 +43,7 @@ class Mapping(BaseMapping): :returns: dictionary with a key, 'items', with the mapping """ - if es_major != 2: + ...
[elk] Fix check condition ES version for rss This patch fixes how the ES version is checked. The parameter of get_elastic_mappings (es_major) is checked against a string (not an integer).
py
diff --git a/visidata/sheets.py b/visidata/sheets.py index <HASH>..<HASH> 100644 --- a/visidata/sheets.py +++ b/visidata/sheets.py @@ -1069,7 +1069,7 @@ def quit(vd, *sheets): @BaseSheet.api def confirmQuit(vs, verb='quit'): if vs.options.quitguard: - if vs.hasBeenModified: + if vs.precious and vs....
[quitguard] only confirm quit if also sheet.precious
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100755 --- a/setup.py +++ b/setup.py @@ -32,7 +32,6 @@ import glob, os, sys if sys.version[0:1] == '1': raise RuntimeError, ("pyscard requires Python 2.x to build.") -print get_platform() if 'win32'==get_platform(): platform__cc_defines=[('WIN32', '100...
Improved detection of Mac OS X darwin platform
py
diff --git a/example_project/settings.py b/example_project/settings.py index <HASH>..<HASH> 100644 --- a/example_project/settings.py +++ b/example_project/settings.py @@ -82,10 +82,10 @@ DATABASES = { # The default settings may work well for local development. 'default': dj_database_url.config() or { ...
Changing default database username to 'postgres' (as this is common when using docker)
py
diff --git a/docs/conf.py b/docs/conf.py index <HASH>..<HASH> 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -12,10 +12,13 @@ # All configuration values have a default; values that are commented out # serve to show the default. -import os -import sys +from os import environ -from sphinx_rtd_theme import get_html...
Making the theme work on rtd as well as locally.
py
diff --git a/spyderlib/app/spyder.py b/spyderlib/app/spyder.py index <HASH>..<HASH> 100644 --- a/spyderlib/app/spyder.py +++ b/spyderlib/app/spyder.py @@ -90,6 +90,7 @@ from qtpy import QtSvg # analysis:ignore # Avoid a bug in Qt: https://bugreports.qt.io/browse/QTBUG-46720 from qtpy import QtWebEngineWidgets # an...
Main Window: Add a couple of blank lines for readability [ci skip]
py
diff --git a/soco/core.py b/soco/core.py index <HASH>..<HASH> 100755 --- a/soco/core.py +++ b/soco/core.py @@ -2122,7 +2122,7 @@ PLAY_MODES = ( "REPEAT_ONE", ) # soundbar product names -SOUNDBARS = ("playbase", "playbar", "beam") +SOUNDBARS = ("playbase", "playbar", "beam", "sonos amp") if config.SOCO_CLASS i...
Lists 'sonos amp' as a soundbar in order to provide night mode and speech enhancement support for amp.
py
diff --git a/api_tool.py b/api_tool.py index <HASH>..<HASH> 100644 --- a/api_tool.py +++ b/api_tool.py @@ -90,7 +90,9 @@ def annotation_to_str(annotation): if annotation.__name__ == "ndarray": return "numpy.ndarray" if issubclass(annotation, typing.List): - return "List[{}]".format(annotation_...
Handle typing.Sequence.
py
diff --git a/programs/thellier_gui3.py b/programs/thellier_gui3.py index <HASH>..<HASH> 100755 --- a/programs/thellier_gui3.py +++ b/programs/thellier_gui3.py @@ -3305,7 +3305,10 @@ class Arai_GUI(wx.Frame): #------------- TEXT="specimens interpretations are saved in pmag_specimens.txt.\nPress...
modified: thellier_gui3.py
py
diff --git a/src/symbols/symbol_.py b/src/symbols/symbol_.py index <HASH>..<HASH> 100644 --- a/src/symbols/symbol_.py +++ b/src/symbols/symbol_.py @@ -9,7 +9,6 @@ # the GNU General License # ---------------------------------------------------------------------- -import re from collections import...
refact: remove unused method in Symbol()
py
diff --git a/atomic_reactor/util.py b/atomic_reactor/util.py index <HASH>..<HASH> 100644 --- a/atomic_reactor/util.py +++ b/atomic_reactor/util.py @@ -757,9 +757,6 @@ def get_manifest_digests(image, registry, insecure=False, dockercfg_path=None, KeyError) as ex: # no mediaType key ...
Remove debugging now it is not needed This extra logging was added to aid debugging an issue which is now understood.
py
diff --git a/astrobase/hplc.py b/astrobase/hplc.py index <HASH>..<HASH> 100644 --- a/astrobase/hplc.py +++ b/astrobase/hplc.py @@ -823,7 +823,24 @@ def parallel_gen_binnedlc_pkls(binnedpkldir, ''' - binnedpkls = glob.glob(os.path.join(binnedpkldir, binnedpklglob)) + binnedpkls = sorted(glob.glob(os.path....
hplc: working on binnedlc collection
py
diff --git a/bridgepoint/ooaofooa.py b/bridgepoint/ooaofooa.py index <HASH>..<HASH> 100644 --- a/bridgepoint/ooaofooa.py +++ b/bridgepoint/ooaofooa.py @@ -4212,13 +4212,15 @@ class Loader(xtuml.ModelLoader): else: xtuml.ModelLoader.filename_input(self, filename) - def build_component(self, na...
ooaofooa: allow building a component without a name.The component will contain all classes defined in the global scope
py
diff --git a/axes/utils.py b/axes/utils.py index <HASH>..<HASH> 100644 --- a/axes/utils.py +++ b/axes/utils.py @@ -1,3 +1,5 @@ +from django.core.cache import cache + from axes.models import AccessAttempt @@ -15,8 +17,13 @@ def reset(ip=None, username=None): if attempts: count = attempts.count() - ...
Delete cache key in reset command line
py
diff --git a/pyphi/utils.py b/pyphi/utils.py index <HASH>..<HASH> 100644 --- a/pyphi/utils.py +++ b/pyphi/utils.py @@ -135,19 +135,19 @@ def phi_eq(x, y): return abs(x - y) <= constants.EPSILON -def normalize(x): - """Normalize an array. +def normalize(a): + """Normalize a distribution. Args: - ...
Rename `normalize` arg to `a`
py
diff --git a/tests/test_more.py b/tests/test_more.py index <HASH>..<HASH> 100644 --- a/tests/test_more.py +++ b/tests/test_more.py @@ -4143,8 +4143,8 @@ class ValueChainTests(TestCase): self.assertEqual(actual, expected) def test_simple(self): - actual = list(mi.value_chain(1, 2, 'foo')) - ...
Expand unit test: add different value types.
py
diff --git a/python/segyio/_raw_trace.py b/python/segyio/_raw_trace.py index <HASH>..<HASH> 100644 --- a/python/segyio/_raw_trace.py +++ b/python/segyio/_raw_trace.py @@ -12,11 +12,10 @@ class RawTrace(object): """ :rtype: numpy.ndarray """ buf = None if isinstance(index, slice): - ...
Only use public interface of Trace in RawTrace
py
diff --git a/vyper/parser/pre_parser.py b/vyper/parser/pre_parser.py index <HASH>..<HASH> 100644 --- a/vyper/parser/pre_parser.py +++ b/vyper/parser/pre_parser.py @@ -66,7 +66,7 @@ def pre_parse(code): class keyword ("contract" or "struct"). """ result = [] - fetch_name = None + previous_keyword = ...
Rename variable in pre_parse for clarity
py
diff --git a/salt/state.py b/salt/state.py index <HASH>..<HASH> 100644 --- a/salt/state.py +++ b/salt/state.py @@ -1795,7 +1795,7 @@ class State(object): continue if (fnmatch.fnmatch(chunk['name'], req_val) or fnmatch.fnmatch(chunk['__id...
check for id requisites in check_requisites
py
diff --git a/billy/bin/commands/dump.py b/billy/bin/commands/dump.py index <HASH>..<HASH> 100644 --- a/billy/bin/commands/dump.py +++ b/billy/bin/commands/dump.py @@ -250,7 +250,7 @@ class DumpJSON(BaseCommand): upload(abbr, args.file, 'json') def dump(self, abbr, filename, validate, schema_dir)...
Allow retries when dumping JSON if the API is being persnickity
py
diff --git a/smartcsv/__init__.py b/smartcsv/__init__.py index <HASH>..<HASH> 100644 --- a/smartcsv/__init__.py +++ b/smartcsv/__init__.py @@ -16,7 +16,7 @@ custom parsing, failure control and nice error messages. """ __title__ = 'smartcsv' -__version__ = '0.2.1' +__version__ = '0.2.2' __build__ = 0x000201 __auth...
Bumped version to <I>
py
diff --git a/auto_ml/utils.py b/auto_ml/utils.py index <HASH>..<HASH> 100644 --- a/auto_ml/utils.py +++ b/auto_ml/utils.py @@ -4,6 +4,9 @@ import os from sklearn.datasets import load_boston from sklearn.model_selection import train_test_split +from sklearn.pipeline import Pipeline +from sklearn.utils.metaestimators...
extends sklearn's Pipeline to handle our own custom functions, particularly predict_uncertainty
py
diff --git a/test/test_fedora/test_server.py b/test/test_fedora/test_server.py index <HASH>..<HASH> 100755 --- a/test/test_fedora/test_server.py +++ b/test/test_fedora/test_server.py @@ -91,6 +91,21 @@ class TestBasicFedoraFunctionality(FedoraTestCase): self.assertTrue(isinstance(obj, MyDigitalObject)) ...
test Repository.infer_object_subtype and best_subtype_for_object
py
diff --git a/synapse/lib/editatom.py b/synapse/lib/editatom.py index <HASH>..<HASH> 100644 --- a/synapse/lib/editatom.py +++ b/synapse/lib/editatom.py @@ -108,6 +108,6 @@ class EditAtom: if prop.univ: univ = snap.model.prop(prop.univ) - await univ.wasSet(self, oldv) + ...
Fix bug in EditAtom which referenced self instead of Node
py
diff --git a/PySimpleGUI.py b/PySimpleGUI.py index <HASH>..<HASH> 100644 --- a/PySimpleGUI.py +++ b/PySimpleGUI.py @@ -1661,6 +1661,8 @@ class Button(Element): root.tk.call('wm', 'iconphoto', root._w, calendar_icon) except: pass + elif self.BType == BUTTON_TYPE_SHOW...
Hooked debugger up to debug button
py
diff --git a/ceph_deploy/tests/test_cli_osd.py b/ceph_deploy/tests/test_cli_osd.py index <HASH>..<HASH> 100644 --- a/ceph_deploy/tests/test_cli_osd.py +++ b/ceph_deploy/tests/test_cli_osd.py @@ -13,7 +13,7 @@ def test_help(tmpdir, cli): assert 'optional arguments' in result -def test_bad_no_conf(tmpdir, cli): ...
[RM-<I>] rename test to be accurate
py
diff --git a/python/pyspark/sql/window.py b/python/pyspark/sql/window.py index <HASH>..<HASH> 100644 --- a/python/pyspark/sql/window.py +++ b/python/pyspark/sql/window.py @@ -60,7 +60,7 @@ class Window(object): @since(1.4) def orderBy(*cols): """ - Creates a :class:`WindowSpec` with the partit...
[SPARK-<I>][PYTHON] Incorrect docstring in Window.order ## What changes were proposed in this pull request? Replaces current docstring ("Creates a :class:`WindowSpec` with the partitioning defined.") with "Creates a :class:`WindowSpec` with the ordering defined." ## How was this patch tested? PySpark unit tests (no...
py
diff --git a/sheetsu/core/core.py b/sheetsu/core/core.py index <HASH>..<HASH> 100644 --- a/sheetsu/core/core.py +++ b/sheetsu/core/core.py @@ -1,6 +1,7 @@ import sys import json import requests +import re from requests.auth import HTTPBasicAuth from sheetsu.exceptions import UnknownRequestMethod @@ -19,7 +20,7 @...
Spreadsheet id may be link to spreadsheet
py
diff --git a/src/wa_kat/rest_api/conspectus.py b/src/wa_kat/rest_api/conspectus.py index <HASH>..<HASH> 100755 --- a/src/wa_kat/rest_api/conspectus.py +++ b/src/wa_kat/rest_api/conspectus.py @@ -48,10 +48,14 @@ def to_json(data): # Variables =================================================================== -CONS...
#<I>: Added variables for english conspectus.
py
diff --git a/src/feat/common/container.py b/src/feat/common/container.py index <HASH>..<HASH> 100644 --- a/src/feat/common/container.py +++ b/src/feat/common/container.py @@ -351,7 +351,7 @@ class ExpDict(ExpBase): - Comparison operations are very expensive. """ - DEFAULT_MAX_SIZE = 1000 + DE...
Tweak default max size of expiration containers to save us some memory.
py
diff --git a/pygccxml/parser/scanner.py b/pygccxml/parser/scanner.py index <HASH>..<HASH> 100644 --- a/pygccxml/parser/scanner.py +++ b/pygccxml/parser/scanner.py @@ -224,7 +224,9 @@ class scanner_t(xml.sax.handler.ContentHandler): comm_line = comm_line.rstrip("\n") comment_text.append...
Ensure default value of "comment" is comment_t class Enforce that the resultant object found in the comment property is a comment_t object.
py
diff --git a/vgpmap_magic.py b/vgpmap_magic.py index <HASH>..<HASH> 100755 --- a/vgpmap_magic.py +++ b/vgpmap_magic.py @@ -106,9 +106,13 @@ def main(): lats,lons,dp,dm,a95=[],[],[],[],[] Pars=[] dates,rlats,rlons=[],[],[] - Results=pmag.get_dictitem(data,'data_type','i','T') # get all site level data ...
fixed bug in vgpmap_magic.py data without data_type=i were ignored.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -18,7 +18,7 @@ URL = 'https://github.com/devxpy/zproc' EMAIL = 'devxpy@gmail.com' AUTHOR = 'Dev Aggarwal' REQUIRES_PYTHON = '>=3' -VERSION = 0.31 +VERSION = '0.1.0' # What packages are required for this module to be exec...
i think i fixed version-ing
py
diff --git a/djangodblog/__init__.py b/djangodblog/__init__.py index <HASH>..<HASH> 100644 --- a/djangodblog/__init__.py +++ b/djangodblog/__init__.py @@ -1 +1 @@ -__version__ = (1, 7, 8, 1) \ No newline at end of file +__version__ = (1, 7, 9) \ No newline at end of file
Increment version to <I>
py