diff
stringlengths
139
3.65k
message
stringlengths
8
627
diff_languages
stringclasses
1 value
diff --git a/discord/__main__.py b/discord/__main__.py index <HASH>..<HASH> 100644 --- a/discord/__main__.py +++ b/discord/__main__.py @@ -250,8 +250,9 @@ def newcog(parser, args): name = args.class_name else: name = str(directory.stem) - if '-' in name: - ...
Strip both - and _ from newcog class names
py
diff --git a/discord/client.py b/discord/client.py index <HASH>..<HASH> 100644 --- a/discord/client.py +++ b/discord/client.py @@ -143,11 +143,12 @@ class Client: intents: :class:`Intents` The intents that you want to enable for the session. This is a way of disabling and enabling certain gateway...
Some documentation fixes for MemberCacheFlags and Intents
py
diff --git a/kafka/errors.py b/kafka/errors.py index <HASH>..<HASH> 100644 --- a/kafka/errors.py +++ b/kafka/errors.py @@ -87,7 +87,7 @@ class InvalidMessageError(BrokerResponseError): class UnknownTopicOrPartitionError(BrokerResponseError): errno = 3 - message = 'UNKNOWN_TOPIC_OR_PARTITON' + message = 'U...
tweak spelling mistake (#<I>)
py
diff --git a/salt/fileserver/gitfs.py b/salt/fileserver/gitfs.py index <HASH>..<HASH> 100644 --- a/salt/fileserver/gitfs.py +++ b/salt/fileserver/gitfs.py @@ -1168,6 +1168,7 @@ def _file_lists(load, form): ''' Return a dict containing the file lists for files and dirs ''' + load = copy.deepcopy(load) ...
prevent gitfs.py changing load variable that is used by other fs modules too
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -2,7 +2,7 @@ from distutils.core import setup setup( name = 'SimpleHTTPSServer', packages = ['SimpleHTTPSServer'], # this must be the same as the name above - version = '0.5', + version = '0.5.2', description = 'A ...
Update to <I> Fixed setup version
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -39,6 +39,13 @@ building of the binary extension module. """.format( NO_EXTENSION_ENV ) +READTHEDOCS_ENV = "READTHEDOCS" +ON_READTHEDOCS_MESSAGE = """\ +The {} environment variable has been detected, the binary extensio...
Explicitly opting out of binary extension on read the docs.
py
diff --git a/src/pyctools/components/io/dumpmetadata.py b/src/pyctools/components/io/dumpmetadata.py index <HASH>..<HASH> 100644 --- a/src/pyctools/components/io/dumpmetadata.py +++ b/src/pyctools/components/io/dumpmetadata.py @@ -37,5 +37,11 @@ class DumpMetadata(Transformer): self.last_metadata = in_frame.me...
Indent audit wrapped in {} characters
py
diff --git a/pysnmp/smi/mibs/SNMPv2-TC.py b/pysnmp/smi/mibs/SNMPv2-TC.py index <HASH>..<HASH> 100644 --- a/pysnmp/smi/mibs/SNMPv2-TC.py +++ b/pysnmp/smi/mibs/SNMPv2-TC.py @@ -267,7 +267,7 @@ class TextualConvention: else: return base.prettyIn(self, value) - outputValue = octet...
fix to TextualConvention initializer
py
diff --git a/prepro/__init__.py b/prepro/__init__.py index <HASH>..<HASH> 100644 --- a/prepro/__init__.py +++ b/prepro/__init__.py @@ -7,4 +7,3 @@ from id_ import ID from definestable import DefinesTable from macrocall import MacroCall from args import ArgList, Arg -from output import msg, warning, error
Removed unused reference to output package.
py
diff --git a/spyderlib/config/main.py b/spyderlib/config/main.py index <HASH>..<HASH> 100644 --- a/spyderlib/config/main.py +++ b/spyderlib/config/main.py @@ -744,6 +744,7 @@ DEFAULTS = [ # 3. You don't need to touch this value if you're just adding a new option CONF_VERSION = '20.0.0' + # XXX: Previously we h...
remove print shortcut (previous commit started this)
py
diff --git a/DataPanel.py b/DataPanel.py index <HASH>..<HASH> 100644 --- a/DataPanel.py +++ b/DataPanel.py @@ -517,6 +517,7 @@ class DataPanel(Panel.Panel): # update the selected image panel image_panel = self.document_controller.selected_image_panel if image_panel: + ...
Add comment for clarification. svn r<I>
py
diff --git a/oct2py/core.py b/oct2py/core.py index <HASH>..<HASH> 100644 --- a/oct2py/core.py +++ b/oct2py/core.py @@ -278,7 +278,14 @@ class Oct2Py(object): self.logger.debug(resp) if return_ans: - resp = [l for l in resp.splitlines() if not l.startswith('ans =')] + ...
Only replace the last 'ans =' in the text
py
diff --git a/convertbng/util.py b/convertbng/util.py index <HASH>..<HASH> 100644 --- a/convertbng/util.py +++ b/convertbng/util.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- -from ctypes import cdll, c_float, Structure, ARRAY, c_int32 +from ctypes import cdll, c_float, Structure, c_int32 from sys import platform impo...
Remove deprecated ARRAY call
py
diff --git a/distutils/tests/test_install.py b/distutils/tests/test_install.py index <HASH>..<HASH> 100644 --- a/distutils/tests/test_install.py +++ b/distutils/tests/test_install.py @@ -229,6 +229,7 @@ class InstallTestCase( ] assert found == expected + @pytest.mark.xfail(reason="#166") def...
Mark test as xfail for now. Ref pypa/distutils#<I>.
py
diff --git a/hwt/hdl/architecture.py b/hwt/hdl/architecture.py index <HASH>..<HASH> 100755 --- a/hwt/hdl/architecture.py +++ b/hwt/hdl/architecture.py @@ -6,10 +6,6 @@ class Architecture(object): """ def __init__(self, entity): self.entity = entity - if entity: - self.entityName = e...
entity required for architecture (was optional)
py
diff --git a/mixbox/entities.py b/mixbox/entities.py index <HASH>..<HASH> 100644 --- a/mixbox/entities.py +++ b/mixbox/entities.py @@ -264,6 +264,10 @@ class Entity(object): if ns_info: ns_info.collect(self) + # null behavior for classes that inherit from Entity but do not have _binding_c...
Check for `binding_class` before serializing
py
diff --git a/thinc/tests/unit/test_model.py b/thinc/tests/unit/test_model.py index <HASH>..<HASH> 100644 --- a/thinc/tests/unit/test_model.py +++ b/thinc/tests/unit/test_model.py @@ -1,5 +1,10 @@ # encoding: utf8 from __future__ import unicode_literals + +import tempfile + +import os + import pytest from hypothesis...
Add failing tests to show to_disk exploding with python3
py
diff --git a/plans/admin.py b/plans/admin.py index <HASH>..<HASH> 100644 --- a/plans/admin.py +++ b/plans/admin.py @@ -49,7 +49,7 @@ def copy_plan(modeladmin, request, queryset): copy_plan.short_description = _("Make plan copy") class PlanAdmin(OrderedModelAdmin): - search_fields = ('customized__username', 'cust...
Providing more search fields for admin.
py
diff --git a/stellar_sdk/client/requests_client.py b/stellar_sdk/client/requests_client.py index <HASH>..<HASH> 100644 --- a/stellar_sdk/client/requests_client.py +++ b/stellar_sdk/client/requests_client.py @@ -67,7 +67,7 @@ class RequestsClient(BaseSyncClient): backoff_factor=self.backoff_factor, ...
refactor: update the parameters used in Retry. (#<I>)
py
diff --git a/webview/__init__.py b/webview/__init__.py index <HASH>..<HASH> 100755 --- a/webview/__init__.py +++ b/webview/__init__.py @@ -26,6 +26,20 @@ from .localization import localization as original_localization from .wsgi import Routing, StaticFiles, StaticResources +__all__ = ( + # Stuff that's here + ...
Add __all__ to webview
py
diff --git a/tests/test_shorteners.py b/tests/test_shorteners.py index <HASH>..<HASH> 100644 --- a/tests/test_shorteners.py +++ b/tests/test_shorteners.py @@ -214,3 +214,4 @@ class ShortenersTest(unittest.TestCase): def test_none_qrcode(self): shortener = Shortener('TinyurlShortener') self.assert...
Work around the fact that git doesn't register adding a newline at the end of the file
py
diff --git a/spyderlib/widgets/fileswitcher.py b/spyderlib/widgets/fileswitcher.py index <HASH>..<HASH> 100644 --- a/spyderlib/widgets/fileswitcher.py +++ b/spyderlib/widgets/fileswitcher.py @@ -541,16 +541,14 @@ class FileSwitcher(QDialog): results.append((score_value, line, text, rich_text, ...
File switcher: Don't show line number and token for symbols
py
diff --git a/stanfordnlp/pipeline/pos_processor.py b/stanfordnlp/pipeline/pos_processor.py index <HASH>..<HASH> 100644 --- a/stanfordnlp/pipeline/pos_processor.py +++ b/stanfordnlp/pipeline/pos_processor.py @@ -70,14 +70,4 @@ class POSProcessor: preds += self.trainer.predict(b) batch.conll.set(['u...
removed copied code from pos_processor
py
diff --git a/plex/__init__.py b/plex/__init__.py index <HASH>..<HASH> 100644 --- a/plex/__init__.py +++ b/plex/__init__.py @@ -7,5 +7,5 @@ __version__ = '0.6.2' try: from plex.client import Plex -except Exception, ex: +except Exception as ex: log.warn('Unable to import submodules - %s', ex)
Updated "except" statement for python 3+
py
diff --git a/django_socketio/example_project/settings.py b/django_socketio/example_project/settings.py index <HASH>..<HASH> 100644 --- a/django_socketio/example_project/settings.py +++ b/django_socketio/example_project/settings.py @@ -38,7 +38,7 @@ MIDDLEWARE_CLASSES = ( STATIC_URL = "/static/" ROOT_URLCONF = "urls" ...
Fix tests for Django <I>
py
diff --git a/steam/steamid.py b/steam/steamid.py index <HASH>..<HASH> 100644 --- a/steam/steamid.py +++ b/steam/steamid.py @@ -57,6 +57,9 @@ class SteamID(intBase): def __init__(self, *args, **kwargs): pass + def __str__(self): + return str(int(self)) + def __repr__(self): return...
steamid: define __str__ as py<I> maps it __repr__
py
diff --git a/petrel/setup.py b/petrel/setup.py index <HASH>..<HASH> 100644 --- a/petrel/setup.py +++ b/petrel/setup.py @@ -13,7 +13,7 @@ long_description = open(README).read() + '\n\n' PACKAGE = "petrel" -PETREL_VERSION = '0.2' +PETREL_VERSION = '0.3' def get_storm_version(): version = subprocess.check_out...
Change version number to <I> after addition of is_tick_tuple() function
py
diff --git a/src/wormhole/cli/public_relay.py b/src/wormhole/cli/public_relay.py index <HASH>..<HASH> 100644 --- a/src/wormhole/cli/public_relay.py +++ b/src/wormhole/cli/public_relay.py @@ -1,5 +1,5 @@ # This is a relay I run on a personal server. If it gets too expensive to # run, I'll shut it down. -RENDEZVOUS_R...
use new relay URL, for new protocol
py
diff --git a/pingouin/distribution.py b/pingouin/distribution.py index <HASH>..<HASH> 100644 --- a/pingouin/distribution.py +++ b/pingouin/distribution.py @@ -505,6 +505,10 @@ def epsilon(data, correction='gg'): n = data.shape[0] k = data.shape[1] + # Epsilon is always 1 with only two repeated measures. ...
Better handling of two measurements in epsilon and sphericity
py
diff --git a/mt940/models.py b/mt940/models.py index <HASH>..<HASH> 100644 --- a/mt940/models.py +++ b/mt940/models.py @@ -228,7 +228,7 @@ class Transactions(collections.Sequence): # Combine multiple results together as one string, Rabobank has # multiple :86: tags for a single transac...
fixed issue with transaction scoped non-string objects
py
diff --git a/unbabel/xliff_converter.py b/unbabel/xliff_converter.py index <HASH>..<HASH> 100644 --- a/unbabel/xliff_converter.py +++ b/unbabel/xliff_converter.py @@ -57,7 +57,7 @@ def create_trans_unit(key, value): '''%(key,value) def get_dictionary_from_xliff(xliff_text,side="target"): - soup = Beau...
Fixes the BeautifulSoup call. Explicitly defines html.parser as the parser to avoid BeautifulSoup warnings when using this function.
py
diff --git a/video_encoding/files.py b/video_encoding/files.py index <HASH>..<HASH> 100644 --- a/video_encoding/files.py +++ b/video_encoding/files.py @@ -41,9 +41,31 @@ class VideoFile(File): """ if not hasattr(self, '_info_cache'): encoding_backend = get_backend() - try: - ...
:construction: first attempt at using storages
py
diff --git a/mpu/aws.py b/mpu/aws.py index <HASH>..<HASH> 100644 --- a/mpu/aws.py +++ b/mpu/aws.py @@ -13,7 +13,7 @@ from tempfile import mkstemp import boto3 -def list_files(bucket, prefix=None, profile_name=None): +def list_files(bucket, prefix="", profile_name=None): """ List up to 1000 files in a buc...
BUG: Default the prefix of aws.list_files is a string
py
diff --git a/smartcard/scard/__init__.py b/smartcard/scard/__init__.py index <HASH>..<HASH> 100644 --- a/smartcard/scard/__init__.py +++ b/smartcard/scard/__init__.py @@ -1,4 +1 @@ -try: - from scard import * -except: - from smartcard.scard._scard import * +from smartcard.scard.scard import *
Make import of smartcard.scard predictable & fix a pylint bare-except warning Importing smartcard.pyscard should either succeed in using the generated scard.py wrapper, or fail. Silently importing _scard.so in place of the wrapper risks creating hard-to-diagnose heisenbugs.
py
diff --git a/annotypes/_anno.py b/annotypes/_anno.py index <HASH>..<HASH> 100644 --- a/annotypes/_anno.py +++ b/annotypes/_anno.py @@ -61,8 +61,8 @@ def make_repr(inst, attrs): class Anno(object): - def __init__(self, description, typ=None, name=None): - # type: (str, type, str) -> None + def __init__...
Allow Anno.default to be set in constructor
py
diff --git a/uncompyle6/parser.py b/uncompyle6/parser.py index <HASH>..<HASH> 100644 --- a/uncompyle6/parser.py +++ b/uncompyle6/parser.py @@ -209,7 +209,7 @@ class PythonParser(GenericASTBuilder): print("%s%s" % (indent, instructions[i])) raise ParserError(err_token, err_token.offset, sel...
Fix one more call to ParseError
py
diff --git a/master/buildbot/buildslave.py b/master/buildbot/buildslave.py index <HASH>..<HASH> 100644 --- a/master/buildbot/buildslave.py +++ b/master/buildbot/buildslave.py @@ -450,9 +450,9 @@ class AbstractBuildSlave(pb.Avatar, service.MultiService): def sendBuilderList(self): our_builders = self.botma...
re-activate <I>dd<I>aaee3c8b<I>d5a0cb<I>e9fa<I>bbf This was accidentally commented out in e1a<I>cb<I>ccfe5ac<I>aea<I>fd1e<I>fd2e<I>
py
diff --git a/twitcher/owsregistry.py b/twitcher/owsregistry.py index <HASH>..<HASH> 100644 --- a/twitcher/owsregistry.py +++ b/twitcher/owsregistry.py @@ -95,4 +95,11 @@ def includeme(config): def owsregistry(request): adapter = get_adapter_factory(request) return adapter.owsregistry_factory(requ...
recompute OWSRegistry on demand to avoid caching issues with db-session
py
diff --git a/core.py b/core.py index <HASH>..<HASH> 100644 --- a/core.py +++ b/core.py @@ -232,6 +232,9 @@ class Orchestrator(Module): super(Orchestrator, self).__init__(settings, logger) self.on_playing_changed = Event() self.lock = threading.Lock() + self.playing_media = None + self.satisfied_request = Non...
core: orchestrator: don't keel lock while waiting on media
py
diff --git a/pylint/checkers/typecheck.py b/pylint/checkers/typecheck.py index <HASH>..<HASH> 100644 --- a/pylint/checkers/typecheck.py +++ b/pylint/checkers/typecheck.py @@ -487,7 +487,7 @@ accessed. Python regular expressions are accepted.'} if not isinstance(arg, astroid.Starred): conti...
Use safe_infer when inferring a Starred node's value.
py
diff --git a/two_factor/urls.py b/two_factor/urls.py index <HASH>..<HASH> 100644 --- a/two_factor/urls.py +++ b/two_factor/urls.py @@ -17,7 +17,7 @@ core = [ name='setup', ), url( - regex=r'^account/two_factor/qrcode$', + regex=r'^account/two_factor/qrcode/$', view=QRGeneratorV...
Added missing trailing slash
py
diff --git a/internals/transitions.py b/internals/transitions.py index <HASH>..<HASH> 100644 --- a/internals/transitions.py +++ b/internals/transitions.py @@ -86,7 +86,7 @@ class dir_concentration_parameter(dp_concentration_parameter): super(dir_concentration_parameter,self).resample() else: ...
fixed a minor bug where the /L in Dir(alpha/L) was in the wrong place in the concentration parameter resampling code
py
diff --git a/omego/upgrade.py b/omego/upgrade.py index <HASH>..<HASH> 100644 --- a/omego/upgrade.py +++ b/omego/upgrade.py @@ -316,7 +316,7 @@ class WindowsInstall(Install): except AttributeError: with tempfile.NamedTemporaryFile(dir=targetdir) as test: return os.path.exists( - ...
Fix typo in constructing temp file name
py
diff --git a/ddmrp/models/stock_buffer.py b/ddmrp/models/stock_buffer.py index <HASH>..<HASH> 100644 --- a/ddmrp/models/stock_buffer.py +++ b/ddmrp/models/stock_buffer.py @@ -1097,6 +1097,7 @@ class StockBuffer(models.Model): string="Replenishment Location", comodel_name="stock.location", rea...
ddmrp: add index on 'distributed_source_location_id' The filter on 'distributed_source_location_qty' is using a search method querying the 'distributed_source_location_id' field having no index.
py
diff --git a/proliantutils/tests/ilo/test_ris.py b/proliantutils/tests/ilo/test_ris.py index <HASH>..<HASH> 100755 --- a/proliantutils/tests/ilo/test_ris.py +++ b/proliantutils/tests/ilo/test_ris.py @@ -800,7 +800,7 @@ class IloRisTestCase(testtools.TestCase): _uefi_boot_mode_mock.return_value = False ...
Using assertIsNone() instead of assertEqual(None) Instead of using assertEqual(None, ***), developers should use assertIsNone(***). Change-Id: If<I>da3acc<I>fd5e<I>b7d<I>e4f9aebeab<I>e7
py
diff --git a/dju_common/__init__.py b/dju_common/__init__.py index <HASH>..<HASH> 100644 --- a/dju_common/__init__.py +++ b/dju_common/__init__.py @@ -1 +1 @@ -__version__ = '0.3.1' +__version__ = '0.3.2'
Update makemessages commans. Release <I>
py
diff --git a/wright/stage/c.py b/wright/stage/c.py index <HASH>..<HASH> 100644 --- a/wright/stage/c.py +++ b/wright/stage/c.py @@ -62,7 +62,7 @@ int main() { def __call__(self, name, headers=()): source = self.source % (name,) for header in headers: - source = '#include <{}>\n'.format(...
c: pass headers in CheckDefine
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100755 --- a/setup.py +++ b/setup.py @@ -2,7 +2,7 @@ from os.path import exists from setuptools import setup -import debas + setup(name='Satyr', version='0.1', @@ -16,6 +16,7 @@ setup(name='Satyr', long_description=(open('README.rst').read() if ...
added mesos.native to extras
py
diff --git a/sigal/__init__.py b/sigal/__init__.py index <HASH>..<HASH> 100644 --- a/sigal/__init__.py +++ b/sigal/__init__.py @@ -59,7 +59,7 @@ def init_logging(level=logging.INFO): logger.setLevel(level) if level == logging.DEBUG: - formatter = Formatter('%(asctime)s - %(levelname)s - %(message)s')...
Logging - don't show the timae.
py
diff --git a/centinel/primitives/tcpdump.py b/centinel/primitives/tcpdump.py index <HASH>..<HASH> 100644 --- a/centinel/primitives/tcpdump.py +++ b/centinel/primitives/tcpdump.py @@ -31,7 +31,7 @@ class Tcpdump(): # use the centinel configured tcpdump options if available # (if not specified b...
fixed tcpdump bug where doing the wrong check for a config param
py
diff --git a/spyder/widgets/variableexplorer/utils.py b/spyder/widgets/variableexplorer/utils.py index <HASH>..<HASH> 100644 --- a/spyder/widgets/variableexplorer/utils.py +++ b/spyder/widgets/variableexplorer/utils.py @@ -82,9 +82,9 @@ def get_numpy_dtype(obj): # Pandas support #=====================================...
Variable explorer: Add Panda's DatetimeIndex as supported type
py
diff --git a/gimmemotifs/config.py b/gimmemotifs/config.py index <HASH>..<HASH> 100644 --- a/gimmemotifs/config.py +++ b/gimmemotifs/config.py @@ -57,7 +57,10 @@ class MotifConfig: self.config.set("params", k, v) def get_default_params(self): - return dict(self.config.items("params")) + ...
fixed issue with boolean in config file
py
diff --git a/tools/vcrpy/setup.py b/tools/vcrpy/setup.py index <HASH>..<HASH> 100644 --- a/tools/vcrpy/setup.py +++ b/tools/vcrpy/setup.py @@ -24,7 +24,7 @@ class PyTest(TestCommand): install_requires = [ "PyYAML", - "wrapt", + "wrapt<=1.12.1", "six>=1.5", 'contextlib2; python_version=="2.7"', ...
Pin wrapt version to pass on Windows with Python <I>. (#<I>)
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -32,7 +32,8 @@ setup( ] }, install_requires=[ - 'tornado', + 'tornado;python_version>"2.7"', + 'tornado==5.1.1;python_version=="2.7"', 'six', ], license='BSD',
install older version of tornado for <I>
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -24,17 +24,18 @@ setup( packages=find_packages(), install_requires=['Django>=1.8.2', 'cryptography>=0.9'], classifiers=[ - 'Development Status :: 3 - Alpha', 'Environment :: Web Environment', ...
Update Trove classifiers in setup.py.
py
diff --git a/openquake/hazardlib/tests/gsim/check_gsim.py b/openquake/hazardlib/tests/gsim/check_gsim.py index <HASH>..<HASH> 100755 --- a/openquake/hazardlib/tests/gsim/check_gsim.py +++ b/openquake/hazardlib/tests/gsim/check_gsim.py @@ -103,11 +103,6 @@ def check_gsim(gsim_cls, datafile, max_discrep_percentage, debug...
Removes dropped in print statements from check_gsim Former-commit-id: <I>b<I>e4fcfb6f<I>a<I>ac0b8e8be2f<I>c
py
diff --git a/holoviews/core/options.py b/holoviews/core/options.py index <HASH>..<HASH> 100644 --- a/holoviews/core/options.py +++ b/holoviews/core/options.py @@ -126,6 +126,18 @@ class abbreviated_exception(object): raise AbbreviatedException(etype, value, traceback) +@contextmanager +def options_poli...
Added the options_policy context manager
py
diff --git a/telluric/util/local_tile_server.py b/telluric/util/local_tile_server.py index <HASH>..<HASH> 100644 --- a/telluric/util/local_tile_server.py +++ b/telluric/util/local_tile_server.py @@ -44,7 +44,7 @@ class TileServerHandler(tornado.web.RequestHandler): if isinstance(obj.obj, tl.GeoFeature) and...
raster is am method of GeoFeature
py
diff --git a/master/buildbot/changes/gerritchangesource.py b/master/buildbot/changes/gerritchangesource.py index <HASH>..<HASH> 100644 --- a/master/buildbot/changes/gerritchangesource.py +++ b/master/buildbot/changes/gerritchangesource.py @@ -102,12 +102,12 @@ class GerritChangeSource(base.ChangeSource): r...
don't use 'd' for something that's not a dictionary
py
diff --git a/nodeconductor/iaas/backend/openstack.py b/nodeconductor/iaas/backend/openstack.py index <HASH>..<HASH> 100644 --- a/nodeconductor/iaas/backend/openstack.py +++ b/nodeconductor/iaas/backend/openstack.py @@ -277,9 +277,11 @@ class OpenStackBackend(object): nova_quotas[nova_quota_mapping[quot...
Exit early if no quota updates are required - NC-<I>
py
diff --git a/airflow/providers/exasol/hooks/exasol.py b/airflow/providers/exasol/hooks/exasol.py index <HASH>..<HASH> 100644 --- a/airflow/providers/exasol/hooks/exasol.py +++ b/airflow/providers/exasol/hooks/exasol.py @@ -20,7 +20,6 @@ from contextlib import closing from typing import Union, Optional, List, Tuple, An...
Replaced basestring with str in the Exasol hook (#<I>)
py
diff --git a/cqlengine/query.py b/cqlengine/query.py index <HASH>..<HASH> 100644 --- a/cqlengine/query.py +++ b/cqlengine/query.py @@ -1,6 +1,9 @@ import copy from datetime import datetime from uuid import uuid4 +from hashlib import md5 +from time import time +from uuid import uuid1 from cqlengine import BaseContai...
fixing count method Conflicts: cqlengine/query.py
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -15,6 +15,7 @@ from setuptools.command import easy_install install_requires = [ 'click>=6.7', 'pip>=9.0.3', + 'setuptools', ] extras_require = {
Add setuptools as a dependency. If we try to `pip install` something that doesn't have a wheel uploaded, pip will try to `setup.py install` it, which fails on systems that don't already have setuptools installed.
py
diff --git a/polyaxon/sso/wizard.py b/polyaxon/sso/wizard.py index <HASH>..<HASH> 100644 --- a/polyaxon/sso/wizard.py +++ b/polyaxon/sso/wizard.py @@ -24,7 +24,7 @@ class IdentityWizard(Wizard): manager = providers.default_manager def redirect_url(self, request): - associate_url = reverse('sso:create...
Generate passoword based on provider's name
py
diff --git a/scripts/pricefeeds/config-example.py b/scripts/pricefeeds/config-example.py index <HASH>..<HASH> 100644 --- a/scripts/pricefeeds/config-example.py +++ b/scripts/pricefeeds/config-example.py @@ -137,7 +137,7 @@ feedSources["huobi"] = feedsources.Huobi(allowFailure=True) # Default: "latest" # Will fetch...
[Price Feed] Committee Recomended settings 2
py
diff --git a/src/_pytest/terminal.py b/src/_pytest/terminal.py index <HASH>..<HASH> 100644 --- a/src/_pytest/terminal.py +++ b/src/_pytest/terminal.py @@ -849,11 +849,8 @@ class TerminalReporter(object): msg = self._getfailureheadline(rep) if rep.when == "collect": ...
fixup! terminal: summary_errors: replace if with assert
py
diff --git a/docs/conf.py b/docs/conf.py index <HASH>..<HASH> 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -107,7 +107,7 @@ todo_include_todos = False # The theme to use for HTML and HTML Help pages. See the documentation for # a list of builtin themes. -html_theme = 'alabaster' +html_theme = 'default' # The...
Change readthedocs theme to default
py
diff --git a/test/tabletmanager.py b/test/tabletmanager.py index <HASH>..<HASH> 100755 --- a/test/tabletmanager.py +++ b/test/tabletmanager.py @@ -257,9 +257,9 @@ def run_test_vtctl_clone(): tablet_62344.populate('vt_snapshot_test', create_vt_insert_test, populate_vt_insert_test) - tabl...
Fixing a missing database creation command. LGTM Ric.
py
diff --git a/hatemile/util/beautifulsoup/beautifulsouphtmldomelement.py b/hatemile/util/beautifulsoup/beautifulsouphtmldomelement.py index <HASH>..<HASH> 100644 --- a/hatemile/util/beautifulsoup/beautifulsouphtmldomelement.py +++ b/hatemile/util/beautifulsoup/beautifulsouphtmldomelement.py @@ -38,10 +38,10 @@ class Bea...
:recycle: Compare types using isinstance function
py
diff --git a/tabular_predDB/timing_analysis/runtime_scripting.py b/tabular_predDB/timing_analysis/runtime_scripting.py index <HASH>..<HASH> 100644 --- a/tabular_predDB/timing_analysis/runtime_scripting.py +++ b/tabular_predDB/timing_analysis/runtime_scripting.py @@ -142,10 +142,7 @@ if __name__ == '__main__': ...
modify for new HadoopEngine.send_hadoop_command format
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -58,6 +58,7 @@ setup( install_requires=[ 'Click>=3.3', 'rfc3987>=1.3.4', + 'PyYAML>=3.11' ], entry_points=''' [console_scripts]
Add PyYAML dependency (#<I>)
py
diff --git a/lib/gruvi/ssl.py b/lib/gruvi/ssl.py index <HASH>..<HASH> 100644 --- a/lib/gruvi/ssl.py +++ b/lib/gruvi/ssl.py @@ -55,6 +55,7 @@ class SSLSocket(gruvi.Socket): self.ssl_version = ssl_version self.ca_certs = ca_certs self.do_handshake_on_connect = do_handshake_on_connect + s...
Fixed for Python <I>. Python <I> doesn't allow setting the ciphers for an SSLSocket. Remove setting ciphers for now.
py
diff --git a/stored_messages/settings.py b/stored_messages/settings.py index <HASH>..<HASH> 100644 --- a/stored_messages/settings.py +++ b/stored_messages/settings.py @@ -21,6 +21,7 @@ from django.utils import six, importlib from .constants import * USER_SETTINGS = getattr(settings, 'STORED_MESSAGES', None) +MESSAG...
added default for MESSAGE_TAGS settings
py
diff --git a/salt/state.py b/salt/state.py index <HASH>..<HASH> 100644 --- a/salt/state.py +++ b/salt/state.py @@ -2397,9 +2397,13 @@ class BaseHighState(object): self.merge_included_states(highstate, state, errors) for i, error in enumerate(errors[:]): ...
salt.state: fix an edge case of inclusion for error reporting
py
diff --git a/pyschema_extensions/avro_schema_parser.py b/pyschema_extensions/avro_schema_parser.py index <HASH>..<HASH> 100644 --- a/pyschema_extensions/avro_schema_parser.py +++ b/pyschema_extensions/avro_schema_parser.py @@ -96,6 +96,7 @@ class AvroSchemaParser(object): field_dct["__doc__"] = schema_stru...
Adding all parsed schemas to the store. This is needed when wanting to parse multiple schemas referencing each other
py
diff --git a/codecs/proxy.py b/codecs/proxy.py index <HASH>..<HASH> 100644 --- a/codecs/proxy.py +++ b/codecs/proxy.py @@ -8,7 +8,8 @@ from os import path CODECS_DIR = path.expandvars("$sarkCodecs") # Load the codecs based on the filename of the proxy -codec_filename = path.basename(__file__) +name = __name__.split...
BUGFIX: fixed a bug in the proxy codec that causes it to fail if .pyc files exist.
py
diff --git a/indra/sources/cwms/api.py b/indra/sources/cwms/api.py index <HASH>..<HASH> 100644 --- a/indra/sources/cwms/api.py +++ b/indra/sources/cwms/api.py @@ -78,7 +78,8 @@ def process_ekb_file(fname, extract_filter=None, # Process EKB XML file into statements with open(fname, 'rb') as fh: ekb_st...
Propagate grounding mode to EKB processing
py
diff --git a/datadog_checks_dev/datadog_checks/dev/tooling/commands/validate/http.py b/datadog_checks_dev/datadog_checks/dev/tooling/commands/validate/http.py index <HASH>..<HASH> 100644 --- a/datadog_checks_dev/datadog_checks/dev/tooling/commands/validate/http.py +++ b/datadog_checks_dev/datadog_checks/dev/tooling/com...
Include new and legacy openmetrics template in http validation (#<I>) * Include new and legacy wrapper * Fix style
py
diff --git a/phono3py/cui/phono3py_script.py b/phono3py/cui/phono3py_script.py index <HASH>..<HASH> 100644 --- a/phono3py/cui/phono3py_script.py +++ b/phono3py/cui/phono3py_script.py @@ -816,14 +816,17 @@ def init_phph_interaction(phono3py, nac_q_direction=settings.nac_q_direction, constant_averaged_i...
Location of showing NAC info was slightly moved.
py
diff --git a/apitools/base/protorpclite/protojson_test.py b/apitools/base/protorpclite/protojson_test.py index <HASH>..<HASH> 100644 --- a/apitools/base/protorpclite/protojson_test.py +++ b/apitools/base/protorpclite/protojson_test.py @@ -440,7 +440,7 @@ class ProtojsonTest(test_util.TestCase, """Test decoding...
Fix a Python <I> test failure in protojson_test.py. (#<I>) This fixes a test failure caused by an error message changing from "Base<I> decoding error: Incorrect padding" to "Base<I> decoding error: Invalid base<I>-encoded string: number of data characters (<I>) cannot be 1 more than a multiple of 4".
py
diff --git a/instabot/bot/bot_direct.py b/instabot/bot/bot_direct.py index <HASH>..<HASH> 100644 --- a/instabot/bot/bot_direct.py +++ b/instabot/bot/bot_direct.py @@ -21,7 +21,7 @@ def send_message(self, text, user_ids, thread_id=None): delay.message_delay(self) urls = self.extract_urls(text) - item_type...
Fix "link" to "links"
py
diff --git a/regions/core/mask.py b/regions/core/mask.py index <HASH>..<HASH> 100644 --- a/regions/core/mask.py +++ b/regions/core/mask.py @@ -26,6 +26,8 @@ class Mask(object): """ def __init__(self, mask, bbox): + if mask.shape != bbox.shape: + raise ValueError("shape of mask and bounding...
Make sure that bounding box shape matches mask shape
py
diff --git a/ampy/cli.py b/ampy/cli.py index <HASH>..<HASH> 100644 --- a/ampy/cli.py +++ b/ampy/cli.py @@ -246,14 +246,15 @@ def put(local, remote): try: # Create remote parent directory. board_files.mkdir(remote_parent) - # Loop through all the files and pu...
The put method now updates the contents of existing folders instead of completely skipping them.
py
diff --git a/tests/tests.py b/tests/tests.py index <HASH>..<HASH> 100644 --- a/tests/tests.py +++ b/tests/tests.py @@ -1,8 +1,13 @@ #!/usr/bin/python # -*- coding: utf-8 -*- +import sys import unittest -from unittest.mock import patch, mock_open + +if sys.version_info[0] < 3: + import mock +else: + from unit...
python <I> for unittest's mock
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -6,7 +6,7 @@ def read(fname): setup( name='xapian-haystack', - version='1.1.3beta', + version='1.1.4alpha', description="A Xapian backend for Haystack", long_description=read('README.rst'), classif...
Updated version number in setup.py to match the version number in the xapian_backend.py file.
py
diff --git a/spyderlib/widgets/arrayeditor.py b/spyderlib/widgets/arrayeditor.py index <HASH>..<HASH> 100644 --- a/spyderlib/widgets/arrayeditor.py +++ b/spyderlib/widgets/arrayeditor.py @@ -551,7 +551,7 @@ class ArrayEditor(QDialog): self.setLayout(self.layout) self.setWindowIcon(ima.icon('arredit')...
Variable Explorer: Add type name to array editor title
py
diff --git a/scapy.py b/scapy.py index <HASH>..<HASH> 100755 --- a/scapy.py +++ b/scapy.py @@ -21,6 +21,9 @@ # # $Log: scapy.py,v $ +# Revision 1.0.4.10 2006/04/20 09:13:49 pbi +# - fixed SetGen to better test int couples for intervals +# # Revision 1.0.4.9 2006/04/10 05:31:11 pbi # - use None value to specif...
- fixed SetGen to better test int couples for intervals
py
diff --git a/proselint/checks/garner/preferred_forms.py b/proselint/checks/garner/preferred_forms.py index <HASH>..<HASH> 100644 --- a/proselint/checks/garner/preferred_forms.py +++ b/proselint/checks/garner/preferred_forms.py @@ -155,6 +155,8 @@ def check(text): ["Meanwhile,", ["Meantime,"]], ...
Adds daily GMAU on seconded motions
py
diff --git a/cbamf/viz/ilmplots.py b/cbamf/viz/ilmplots.py index <HASH>..<HASH> 100644 --- a/cbamf/viz/ilmplots.py +++ b/cbamf/viz/ilmplots.py @@ -31,7 +31,7 @@ def smile_comparison_plot(state0, state1, stdfrac=0.7): sl = np.s_[s.pad:-s.pad,s.pad:-s.pad,s.pad:-s.pad] diff = -(s.image - s.get_model_ima...
better defaults for ilm plot
py
diff --git a/openquake/calculators/tests/event_based_test.py b/openquake/calculators/tests/event_based_test.py index <HASH>..<HASH> 100644 --- a/openquake/calculators/tests/event_based_test.py +++ b/openquake/calculators/tests/event_based_test.py @@ -245,11 +245,8 @@ class EventBasedTestCase(CalculatorTestCase): d...
Fixed test [skip CI]
py
diff --git a/pypet/pypetlogging.py b/pypet/pypetlogging.py index <HASH>..<HASH> 100644 --- a/pypet/pypetlogging.py +++ b/pypet/pypetlogging.py @@ -109,7 +109,7 @@ LOGGING_DICT = { def _change_logging_kwargs(kwargs): """ Helper function to turn the simple logging kwargs into a `log_config`.""" - log_levels = ...
FIX: Wrong popping of arguments;
py
diff --git a/pypiper/ngstk.py b/pypiper/ngstk.py index <HASH>..<HASH> 100644 --- a/pypiper/ngstk.py +++ b/pypiper/ngstk.py @@ -185,7 +185,12 @@ def count_mapped_reads(file, paired_end=True): return -1 + def sam_conversions(sam, depth=True): + ''' + Convert sam files to bam files, then sort and index them for lat...
comment some ngstk functions
py
diff --git a/tests/test_easyid3.py b/tests/test_easyid3.py index <HASH>..<HASH> 100644 --- a/tests/test_easyid3.py +++ b/tests/test_easyid3.py @@ -37,8 +37,11 @@ class TEasyID3(TestCase): self.id3["artist"] = "baz" self.id3.pprint() - def test_has_key(self): - if not PY3: + def test_in(...
test_easyid3.py: added test for in operator.
py
diff --git a/tests/integration/container_test.py b/tests/integration/container_test.py index <HASH>..<HASH> 100644 --- a/tests/integration/container_test.py +++ b/tests/integration/container_test.py @@ -342,7 +342,6 @@ class CreateContainerTest(api_test.BaseTestCase): BUSYBOX, 'true', host_con...
Dont include mem_swappiness when testing use of str values
py
diff --git a/test/test_GoogleGeocoder.py b/test/test_GoogleGeocoder.py index <HASH>..<HASH> 100644 --- a/test/test_GoogleGeocoder.py +++ b/test/test_GoogleGeocoder.py @@ -1,5 +1,8 @@ +import pytest + from astral import GoogleGeocoder +@pytest.mark.webtest def test_GoogleLocator(): locator = GoogleGeocode...
Marked test so we can skip it.
py
diff --git a/taskw/warrior.py b/taskw/warrior.py index <HASH>..<HASH> 100644 --- a/taskw/warrior.py +++ b/taskw/warrior.py @@ -97,7 +97,7 @@ class TaskWarriorBase(with_metaclass(abc.ABCMeta, object)): else: annotations.append(v) - for key in task.keys(): + for key i...
Fix py3 iterator behavior. This was already committed in another branch, but we have so many flying around now I can't find it. Credit due originally to Adam Coddington, I believe.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -13,7 +13,8 @@ else: exec(open('docker/version.py').read()) -test_requirements = [] +with open('./test-requirements.txt') as test_reqs_txt: + test_requirements = [line for line in test_reqs_txt] with open(requirements...
Correct test requirements in setup.py
py
diff --git a/wakatime/packages/pygments/lexers/javascript.py b/wakatime/packages/pygments/lexers/javascript.py index <HASH>..<HASH> 100644 --- a/wakatime/packages/pygments/lexers/javascript.py +++ b/wakatime/packages/pygments/lexers/javascript.py @@ -37,7 +37,7 @@ class JavascriptLexer(RegexLexer): name = 'JavaS...
support *.mjs as JavaScript
py
diff --git a/awesome/context.py b/awesome/context.py index <HASH>..<HASH> 100644 --- a/awesome/context.py +++ b/awesome/context.py @@ -23,6 +23,14 @@ def consuming(iterator): @contextmanager +def calling(callable, *args, **kwargs): + try: + yield + finally: + callable(*args, **kwargs) + + +@con...
Added a `calling` context manager. The context manager makes sure the function is called with desired arguments when the context iis exited.
py
diff --git a/MAVProxy/mavproxy.py b/MAVProxy/mavproxy.py index <HASH>..<HASH> 100755 --- a/MAVProxy/mavproxy.py +++ b/MAVProxy/mavproxy.py @@ -669,7 +669,7 @@ def main_loop(): rin = [] for master in mpstate.mav_master: - if master.fd is not None: + if master.fd is not None and ...
don't select ports that are dead this fixes a delay when main serial port dead
py