diff
stringlengths
139
3.65k
message
stringlengths
8
627
diff_languages
stringclasses
1 value
diff --git a/salt/modules/kvm_hyper.py b/salt/modules/kvm_hyper.py index <HASH>..<HASH> 100644 --- a/salt/modules/kvm_hyper.py +++ b/salt/modules/kvm_hyper.py @@ -49,7 +49,10 @@ def __virtual__(): return False if not os.path.exists('/proc/modules'): return False - if 'kvm_' not in salt.utils.f...
Fail gracefully as non-privileged user
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -31,7 +31,7 @@ setup( # Versions should comply with PEP440. For a discussion on single-sourcing # the version across setup.py and the project code, see # https://packaging.python.org/en/latest/single_source_ver...
version bump for bugfixes, advanced regressor scoring, and removing subpredictors
py
diff --git a/subliminal/subtitle.py b/subliminal/subtitle.py index <HASH>..<HASH> 100644 --- a/subliminal/subtitle.py +++ b/subliminal/subtitle.py @@ -51,7 +51,14 @@ class Subtitle(object): encodings.append('windows-1255') elif self.language.alpha3 == 'tur': encodings.extend(['iso-885...
Adding support to proper decode Polish and Bulgarian
py
diff --git a/src/schedulingitem.py b/src/schedulingitem.py index <HASH>..<HASH> 100644 --- a/src/schedulingitem.py +++ b/src/schedulingitem.py @@ -591,9 +591,9 @@ class SchedulingItem(Item): notifications.append(n) #print "DBG: Create a new notification from :", n.id, n.type,...
* Fixed a small bug in create_notification which could fill up an array with unused crap
py
diff --git a/_msvccompiler.py b/_msvccompiler.py index <HASH>..<HASH> 100644 --- a/_msvccompiler.py +++ b/_msvccompiler.py @@ -207,10 +207,10 @@ class MSVCCompiler(CCompiler) : ] self.ldflags_shared = [ - '/nologo', '/DLL', '/INCREMENTAL:NO' + '/nologo', '/DLL', '/INCREMENTAL:N...
Update default msvccompiler link options to match the options used for core builds. This ensures that wheels will work when moved to machines that have the same subset of the MSVC libraries as a regular CPython install. Specifically, vcruntime##0.dll may not be installed, and should not be a dependency.
py
diff --git a/keyring/backends/chainer.py b/keyring/backends/chainer.py index <HASH>..<HASH> 100644 --- a/keyring/backends/chainer.py +++ b/keyring/backends/chainer.py @@ -5,6 +5,7 @@ discover passwords in each. from .. import backend from ..util import properties +from . import fail class ChainerBackend(backen...
Make explicit the relationship between chainer priority and fail priority.
py
diff --git a/spyder/plugins/console/tests/test_plugin.py b/spyder/plugins/console/tests/test_plugin.py index <HASH>..<HASH> 100644 --- a/spyder/plugins/console/tests/test_plugin.py +++ b/spyder/plugins/console/tests/test_plugin.py @@ -17,6 +17,7 @@ except ImportError: from mock import Mock # Python 2 # Third p...
Testing: Check that code completion is working in the internal console
py
diff --git a/pymongo/pool.py b/pymongo/pool.py index <HASH>..<HASH> 100644 --- a/pymongo/pool.py +++ b/pymongo/pool.py @@ -21,9 +21,13 @@ import threading try: import ssl + from ssl import SSLError _HAVE_SNI = getattr(ssl, 'HAS_SNI', False) except ImportError: _HAVE_SNI = False + class SSLError...
PYTHON-<I> SSL timeouts should raise NetworkTimeout, not AutoReconnect
py
diff --git a/linkcheck/checker/telneturl.py b/linkcheck/checker/telneturl.py index <HASH>..<HASH> 100644 --- a/linkcheck/checker/telneturl.py +++ b/linkcheck/checker/telneturl.py @@ -23,6 +23,11 @@ from . import urlbase from .. import log, LOG_CHECK +def encode(s, encoding="iso-8859-1", errors="ignore"): + """E...
Encode user and password for telnet connection.
py
diff --git a/_pydevd_bundle/pydevd_plugin_utils.py b/_pydevd_bundle/pydevd_plugin_utils.py index <HASH>..<HASH> 100644 --- a/_pydevd_bundle/pydevd_plugin_utils.py +++ b/_pydevd_bundle/pydevd_plugin_utils.py @@ -7,7 +7,8 @@ from _pydevd_bundle.pydevd_constants import * # @UnusedWildImport def load_plugins(package): ...
Fix template debugging: change path to plugins
py
diff --git a/PyFunceble/cli/system/launcher.py b/PyFunceble/cli/system/launcher.py index <HASH>..<HASH> 100644 --- a/PyFunceble/cli/system/launcher.py +++ b/PyFunceble/cli/system/launcher.py @@ -771,14 +771,15 @@ class SystemLauncher(SystemBase): try: self.print_home_ascii() - self.mi...
Do not start the migrator when test subject is not a file.
py
diff --git a/config_resolver.py b/config_resolver.py index <HASH>..<HASH> 100644 --- a/config_resolver.py +++ b/config_resolver.py @@ -96,7 +96,7 @@ class Config(object, SafeConfigParser): if self.config: LOG.debug('Returning cached config instance. Use ' '``reload=True`` to a...
Don't expose the config object on reload.
py
diff --git a/hwt/synthesizer/rtlLevel/netlist.py b/hwt/synthesizer/rtlLevel/netlist.py index <HASH>..<HASH> 100644 --- a/hwt/synthesizer/rtlLevel/netlist.py +++ b/hwt/synthesizer/rtlLevel/netlist.py @@ -13,7 +13,7 @@ from hwt.synthesizer.assigRenderer import renderIfTree from hwt.synthesizer.exceptions import SigLvlCo...
RtlNetlist mark constants on synthesis
py
diff --git a/pyinfra/api/facts.py b/pyinfra/api/facts.py index <HASH>..<HASH> 100644 --- a/pyinfra/api/facts.py +++ b/pyinfra/api/facts.py @@ -21,7 +21,7 @@ from paramiko import SSHException from pyinfra import logger from .ssh import run_shell_command -from .util import underscore, make_hash, get_arg_value +from ....
Remove su_user/sudo_user/sudo kwargs from `get_facts` as unused.
py
diff --git a/phoopy/yaml/yaml_parser.py b/phoopy/yaml/yaml_parser.py index <HASH>..<HASH> 100644 --- a/phoopy/yaml/yaml_parser.py +++ b/phoopy/yaml/yaml_parser.py @@ -1,10 +1,10 @@ -import yaml +from yaml import load, Loader from os import path class YamlParser(object): def parse(self, file_path, result=None...
stop using deprecated way of yaml.load
py
diff --git a/tests.py b/tests.py index <HASH>..<HASH> 100644 --- a/tests.py +++ b/tests.py @@ -9,7 +9,7 @@ class APITest(TestCase): config.api_key = 'sk_23a00c357cb44c358' self.test_user = { 'credentials': { - 'username': '!bjDTCAdtQRldwG67secVBBHc3ifmyhcqfJzvFLFF', + ...
fix tests: use email instead of username
py
diff --git a/src/pybel/manager/cache.py b/src/pybel/manager/cache.py index <HASH>..<HASH> 100644 --- a/src/pybel/manager/cache.py +++ b/src/pybel/manager/cache.py @@ -535,9 +535,14 @@ class CacheManager(BaseCacheManager): network = models.Network(blob=graph_bytes, **graph.document) for key, url in g...
Don't make namespace links unless you're storing parts References #<I> @LeKono needs attention
py
diff --git a/aftership/__init__.py b/aftership/__init__.py index <HASH>..<HASH> 100644 --- a/aftership/__init__.py +++ b/aftership/__init__.py @@ -1,11 +1,16 @@ -import requests import json import time import threading +import requests __author__ = 'Fedor Korshunov <mail@fedor.cc>' +class AftershipRequestExce...
Exceptions raise on error response from aftership API
py
diff --git a/dbaas_zabbix/provider.py b/dbaas_zabbix/provider.py index <HASH>..<HASH> 100755 --- a/dbaas_zabbix/provider.py +++ b/dbaas_zabbix/provider.py @@ -124,7 +124,7 @@ class ZabbixProvider(object): "address" : instance.address, "port" : "80", "regexp" : "WORKING...
Add / in the monitor uri
py
diff --git a/src/pycut.py b/src/pycut.py index <HASH>..<HASH> 100644 --- a/src/pycut.py +++ b/src/pycut.py @@ -168,7 +168,8 @@ class Model: elif self.modelparams['type'] == 'stored': # Classifer is trained before segmentation and stored to pickle import pickle - mdl_file = ...
mdl_file moved to params
py
diff --git a/nion/swift/Workspace.py b/nion/swift/Workspace.py index <HASH>..<HASH> 100644 --- a/nion/swift/Workspace.py +++ b/nion/swift/Workspace.py @@ -65,7 +65,7 @@ class Workspace: visible_panels = [] if self.workspace_id == "library": - visible_panels = ["toolbar-panel", "data-panel...
Remove reference to panel that no longer exists.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100755 --- a/setup.py +++ b/setup.py @@ -111,7 +111,7 @@ setup( license="MIT", cmdclass={"install": PostInstallCommand, "bdist_wheel": bdist_wheel}, classifiers=[ - "Development Status :: 3 - Alpha", + "Development Status :: 5 - Producti...
Change PyPI dev status to "Production/Stable" (#<I>) py-spy works well, so mark it as stable.
py
diff --git a/astrobase/lcdb.py b/astrobase/lcdb.py index <HASH>..<HASH> 100644 --- a/astrobase/lcdb.py +++ b/astrobase/lcdb.py @@ -74,7 +74,7 @@ def LOGEXCEPTION(message): # get the current module's path modpath = os.path.abspath(os.path.dirname(__file__)) -CONF_FILE = os.path.join(modpath,'lcdb.conf') +CONF_FILE =...
lcdb.py now looks in astrobase.conf
py
diff --git a/gbdxtools/vectors.py b/gbdxtools/vectors.py index <HASH>..<HASH> 100644 --- a/gbdxtools/vectors.py +++ b/gbdxtools/vectors.py @@ -414,8 +414,7 @@ class Vectors(object): return 'false'; def _polygon_coords(self, g): - c = map(list, list(g.exterior.coords))[:-1] - # UL, UR, ...
fix for indexing the map method in python3
py
diff --git a/airflow/providers/google/cloud/operators/gcs.py b/airflow/providers/google/cloud/operators/gcs.py index <HASH>..<HASH> 100644 --- a/airflow/providers/google/cloud/operators/gcs.py +++ b/airflow/providers/google/cloud/operators/gcs.py @@ -174,7 +174,7 @@ class GCSCreateBucketOperator(BaseOperator): class...
Fix typo in a docstring (#<I>) This PR fixes a typo in a docstring to GCSListObjectsOperator class.
py
diff --git a/cumulusci/tasks/metadeploy.py b/cumulusci/tasks/metadeploy.py index <HASH>..<HASH> 100644 --- a/cumulusci/tasks/metadeploy.py +++ b/cumulusci/tasks/metadeploy.py @@ -1,6 +1,7 @@ from pathlib import Path import json import os +import re import requests from cumulusci.core.config import BaseProjectCon...
fix overeager match for package install labels
py
diff --git a/tests/test_systemlog.py b/tests/test_systemlog.py index <HASH>..<HASH> 100644 --- a/tests/test_systemlog.py +++ b/tests/test_systemlog.py @@ -1,14 +1,15 @@ from unittest import TestCase, skipIf from mock import patch, call -from ntfy.backends.systemlog import notify - try: import syslog sysl...
Import the systemlog backend only when supported.
py
diff --git a/phy/utils/tests/test_array.py b/phy/utils/tests/test_array.py index <HASH>..<HASH> 100644 --- a/phy/utils/tests/test_array.py +++ b/phy/utils/tests/test_array.py @@ -64,6 +64,11 @@ def test_chunk(): data = np.random.randn(200, 4) chunks = chunk_bounds(data.shape[0], 100, overlap=20) + with r...
Added a few tests for array utils.
py
diff --git a/src/sos/Matlab/kernel.py b/src/sos/Matlab/kernel.py index <HASH>..<HASH> 100644 --- a/src/sos/Matlab/kernel.py +++ b/src/sos/Matlab/kernel.py @@ -126,9 +126,11 @@ class sos_Matlab: def get_vars(self, names): for name in names: + #Fix me if name.startswith('_'): - ...
Message showed in jupyter after using %get, but cannot find the variable in Matlab #<I>
py
diff --git a/txdbus/protocol.py b/txdbus/protocol.py index <HASH>..<HASH> 100644 --- a/txdbus/protocol.py +++ b/txdbus/protocol.py @@ -91,11 +91,6 @@ class BasicDBusProtocol(protocol.Protocol): if self._client: # DBus specification requires that clients send a null byte upon connection ...
Removed client side portion of credential passing from client protocol. This conflicted with the file descriptor passing implementation in Twisted <I>
py
diff --git a/mediasync/urls.py b/mediasync/urls.py index <HASH>..<HASH> 100644 --- a/mediasync/urls.py +++ b/mediasync/urls.py @@ -1,9 +1,16 @@ from django.conf import settings from django.conf.urls.defaults import * -if (settings.DEBUG): - from mediasync import backends - client = backends.client() - urlp...
when DEBUG = False, redirect local media URLs to remote
py
diff --git a/django_extensions/management/commands/runserver_plus.py b/django_extensions/management/commands/runserver_plus.py index <HASH>..<HASH> 100644 --- a/django_extensions/management/commands/runserver_plus.py +++ b/django_extensions/management/commands/runserver_plus.py @@ -87,8 +87,7 @@ class Command(BaseComma...
check for django.contrib.staticfiles in INSTALLED_APPS before serving static
py
diff --git a/landslide/generator.py b/landslide/generator.py index <HASH>..<HASH> 100644 --- a/landslide/generator.py +++ b/landslide/generator.py @@ -314,7 +314,7 @@ class Generator: """ try: f = tempfile.NamedTemporaryFile(delete=False, suffix='.html') - f.write(html.encode('...
restored html writing using declared encoding, the unicode problems have been solved in commit 6f<I>ebb<I>b6b<I>a3a7b
py
diff --git a/airtest/core/android/android.py b/airtest/core/android/android.py index <HASH>..<HASH> 100644 --- a/airtest/core/android/android.py +++ b/airtest/core/android/android.py @@ -211,18 +211,19 @@ class Android(Device): """ return self.adb.install_app(filepath, replace=replace, install_options...
add install_options to android.install_multiple_app (cherry picked from commit d<I>ccb<I>cbde<I>fec<I>f<I>be<I>d)
py
diff --git a/MAVProxy/modules/lib/mavmemlog.py b/MAVProxy/modules/lib/mavmemlog.py index <HASH>..<HASH> 100644 --- a/MAVProxy/modules/lib/mavmemlog.py +++ b/MAVProxy/modules/lib/mavmemlog.py @@ -11,6 +11,7 @@ class mavmemlog(mavutil.mavfile): self._count = 0 self.rewind() self._flightmodes = ...
mavmemlog: copy mav_type from source mavfile object
py
diff --git a/atlassian/confluence.py b/atlassian/confluence.py index <HASH>..<HASH> 100644 --- a/atlassian/confluence.py +++ b/atlassian/confluence.py @@ -58,7 +58,7 @@ class Confluence(AtlassianRestAPI): :param title: title :return: """ - return self.get_page_by_title(space, title).ge...
Make more comfortable get_page_id behaviour If get_pade_id exec with wrong id parameter, don't raise 'AttributeError: 'NoneType' object has no attribute 'get''
py
diff --git a/angr/path.py b/angr/path.py index <HASH>..<HASH> 100644 --- a/angr/path.py +++ b/angr/path.py @@ -313,6 +313,9 @@ class Path(object): def addr(self): return self.state.se.any_int(self.state.regs.ip) + def __len__(self): + return self.length + @property def addr_trace(sel...
Added __len__ to path because we should have standardized interfaces...
py
diff --git a/yotta/lib/settings.py b/yotta/lib/settings.py index <HASH>..<HASH> 100755 --- a/yotta/lib/settings.py +++ b/yotta/lib/settings.py @@ -66,6 +66,12 @@ class _JSONConfigParser(object): self.configs[fn] = ordered_json.load(fn) except IOError: self.configs[fn] = Or...
handle syntax errors in settings files more gracefully
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 @@ -142,10 +142,10 @@ producing too small PoEs.''' """ dic = {} imtls = self.o...
Fixed disaggregation [skip hazardlib] Former-commit-id: 2c<I>e<I>f<I>b<I>c<I>bd<I>c1db<I>bfed4
py
diff --git a/webdriver_test_tools/version.py b/webdriver_test_tools/version.py index <HASH>..<HASH> 100644 --- a/webdriver_test_tools/version.py +++ b/webdriver_test_tools/version.py @@ -1 +1 @@ -__version__ = '0.6.1' +__version__ = '0.6.2'
Bumped version to <I>
py
diff --git a/src/idp_test/check.py b/src/idp_test/check.py index <HASH>..<HASH> 100644 --- a/src/idp_test/check.py +++ b/src/idp_test/check.py @@ -479,13 +479,13 @@ class VerifyFunctionality(Check): self._status = CRITICAL return {} - def _binding_support(self, conv, request, binding): + def _...
Entity type has to be defined.
py
diff --git a/examples/djopenid/consumer/views.py b/examples/djopenid/consumer/views.py index <HASH>..<HASH> 100644 --- a/examples/djopenid/consumer/views.py +++ b/examples/djopenid/consumer/views.py @@ -168,7 +168,7 @@ def finishOpenID(request): {'error': 'OpenID authentication failed.'}, co...
[project @ Update Django demo RP code to use getDisplayIdentifier()]
py
diff --git a/floyd/model/resource.py b/floyd/model/resource.py index <HASH>..<HASH> 100644 --- a/floyd/model/resource.py +++ b/floyd/model/resource.py @@ -5,11 +5,11 @@ from floyd.model.base import BaseModel class ResourceSchema(Schema): id = fields.Str() uri = fields.Str() - state = fields.Str() + sta...
make output command work with running job's output
py
diff --git a/gwpy/io/datafind.py b/gwpy/io/datafind.py index <HASH>..<HASH> 100755 --- a/gwpy/io/datafind.py +++ b/gwpy/io/datafind.py @@ -236,8 +236,7 @@ def find_frametype(channel, gpstime=None, frametype_match=None, try: connection = reconnect(connection) path = _find_l...
gwpy.io: corrected pep8 issue
py
diff --git a/tests/test_astroid.py b/tests/test_astroid.py index <HASH>..<HASH> 100644 --- a/tests/test_astroid.py +++ b/tests/test_astroid.py @@ -6,8 +6,6 @@ from astroid.node_classes import NodeNG from asttokens import ASTTokens from . import test_mark_tokens -import six -import pytest class TestAstroid(test...
Remove test_complex_numbers override
py
diff --git a/docs/conf.py b/docs/conf.py index <HASH>..<HASH> 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -37,10 +37,15 @@ extensions = [ ] intersphinx_mapping = { - 'sympy': ('http://docs.sympy.org/latest', None), - 'python': ('https://docs.python.org/3', None), - ...
nitpick ignore module refs for now, and updated the build directory in conf so it is not scanned.
py
diff --git a/experiments/training_helpers.py b/experiments/training_helpers.py index <HASH>..<HASH> 100644 --- a/experiments/training_helpers.py +++ b/experiments/training_helpers.py @@ -222,9 +222,9 @@ def train_model_with_synthetic_data( # if the contribution of synthetic samples is less than a # th...
stop using synth data after decay drop to less than <I>th of total sample weight
py
diff --git a/py3status/modules/clock.py b/py3status/modules/clock.py index <HASH>..<HASH> 100644 --- a/py3status/modules/clock.py +++ b/py3status/modules/clock.py @@ -264,10 +264,15 @@ class Py3status: timezone=timezone, timezone_unclear=timezone_unclear, ...
fix for clock module due to returned composite
py
diff --git a/amaascore/books/book.py b/amaascore/books/book.py index <HASH>..<HASH> 100644 --- a/amaascore/books/book.py +++ b/amaascore/books/book.py @@ -16,7 +16,7 @@ class Book(AMaaSModel): return ['positions'] def __init__(self, asset_manager_id, book_id=None, book_type='Trading', book_status='Activ...
AMAAS-<I> - Remove default close_time and timezone values, as there aren't really any sensible defaults. Plus it means they get set on Counterparty books, which doesn't really make sense.
py
diff --git a/angr/analyses/reaching_definitions/reaching_definitions.py b/angr/analyses/reaching_definitions/reaching_definitions.py index <HASH>..<HASH> 100644 --- a/angr/analyses/reaching_definitions/reaching_definitions.py +++ b/angr/analyses/reaching_definitions/reaching_definitions.py @@ -133,7 +133,11 @@ class Re...
RDA: Handle the case where a block does not exist on CFG.
py
diff --git a/scripts/publicNames.py b/scripts/publicNames.py index <HASH>..<HASH> 100644 --- a/scripts/publicNames.py +++ b/scripts/publicNames.py @@ -11,7 +11,9 @@ EXCLUDE_DIRS = [ # with "clients" or "girder" or "plugins" '^(?!(clients|girder|plugins|pytest_girder))', # Exclude plugin tests - 'plugi...
Fixes #<I>. Fix public names script It was attempting to recurse into .egg directories that now reside inside plugins. Also, it was finding some python files that for some reason ship inside of the vtk.js npm package, so I've globally excluded node_modules/ from being parsed.
py
diff --git a/src/landslide/macro.py b/src/landslide/macro.py index <HASH>..<HASH> 100644 --- a/src/landslide/macro.py +++ b/src/landslide/macro.py @@ -138,7 +138,7 @@ class EmbedImagesMacro(Macro): encoded_url = u"data:%s;base64,%s" % (mime_type, encoded_image) - content = content.replace(im...
match with src= on embedded image replacements so it works with rst docs who auto add an alt text equal to the src text
py
diff --git a/generic_aggregation/utils.py b/generic_aggregation/utils.py index <HASH>..<HASH> 100644 --- a/generic_aggregation/utils.py +++ b/generic_aggregation/utils.py @@ -23,6 +23,8 @@ def gfk_expression(qs_model, gfk_field): if pk_field_type == 'serial': pk_field_type = 'integer' + elif pk_f...
Fixing issue #3 regarding failure casting PKs w/mysql
py
diff --git a/src/satosa/consent.py b/src/satosa/consent.py index <HASH>..<HASH> 100644 --- a/src/satosa/consent.py +++ b/src/satosa/consent.py @@ -144,8 +144,7 @@ class ConsentModule(object): """ state = context.state if not self.enabled: - satosa_logging(logger, logging.INFO, "Con...
Call callback function directly if consent isn't enabled.
py
diff --git a/examples/RDS_VPC.py b/examples/RDS_VPC.py index <HASH>..<HASH> 100644 --- a/examples/RDS_VPC.py +++ b/examples/RDS_VPC.py @@ -107,7 +107,7 @@ mydb = t.add_resource(DBInstance( EngineVersion="5.5", MasterUsername=Ref(dbuser), MasterUserPassword=Ref(dbpassword), - DBSubnetGroupName=Ref(myvp...
Use subnet group for param, not vpc securitygroup
py
diff --git a/fbmq/fbmq.py b/fbmq/fbmq.py index <HASH>..<HASH> 100644 --- a/fbmq/fbmq.py +++ b/fbmq/fbmq.py @@ -182,7 +182,9 @@ def event_parser(messaging=None): elif 'payment' in messaging: event_type = PaymentEvent elif 'policy-enforcement' in messaging: - # must be modified later!!!!!!!!!! +...
Modify Code for policy_enforcement
py
diff --git a/pyinfra/cli.py b/pyinfra/cli.py index <HASH>..<HASH> 100644 --- a/pyinfra/cli.py +++ b/pyinfra/cli.py @@ -19,8 +19,9 @@ from importlib import import_module # py2/3 switcheroo try: + from StringIO import StringIO from cStringIO import OutputType, InputType - io_bases = (OutputType, InputType)...
Improve the CLI's JSON encoder.
py
diff --git a/salt/utils/__init__.py b/salt/utils/__init__.py index <HASH>..<HASH> 100644 --- a/salt/utils/__init__.py +++ b/salt/utils/__init__.py @@ -16,6 +16,7 @@ import hashlib import imp import json import logging +import numbers import os import pprint import random @@ -2020,6 +2021,12 @@ def compare_version...
logging(cmp_version): output assertion Log error. The integer comparison is Python 3 compatible and ripped from [1]. This will catch incorrectly implemented version comparison functions. [1] <URL>
py
diff --git a/ns1/__init__.py b/ns1/__init__.py index <HASH>..<HASH> 100644 --- a/ns1/__init__.py +++ b/ns1/__init__.py @@ -503,7 +503,11 @@ class NS1: import ns1.ipam reservation = ns1.ipam.Reservation( - self.config, scopegroup_id, address_id, options=dhcp_options, mac=mac + s...
fix linting in changed file
py
diff --git a/hive/consumer/consumer.py b/hive/consumer/consumer.py index <HASH>..<HASH> 100644 --- a/hive/consumer/consumer.py +++ b/hive/consumer/consumer.py @@ -60,7 +60,15 @@ class Consumer: #set public ip if available if self.public_ip: ...
aggressive error handling for critical part of consumer close #<I>
py
diff --git a/dvc/cli.py b/dvc/cli.py index <HASH>..<HASH> 100644 --- a/dvc/cli.py +++ b/dvc/cli.py @@ -785,7 +785,11 @@ def parse_args(argv=None): cwd = os.curdir path = os.path.join(cwd, 'Dvcfile') if not os.path.exists(path): - parser.error("default target '{}' does not exist...
dvc: print command specific help Fixes #<I>
py
diff --git a/tests/test_cli.py b/tests/test_cli.py index <HASH>..<HASH> 100644 --- a/tests/test_cli.py +++ b/tests/test_cli.py @@ -129,14 +129,18 @@ class TestLoginUtils(unittest.TestCase): login(args) login_.assert_not_called() - def test_cli_login_no_password(self, getpass_, login_): + @mock...
Fix `test_cli` failing when already logged in
py
diff --git a/openstack_dashboard/dashboards/project/instances/workflows/update_instance.py b/openstack_dashboard/dashboards/project/instances/workflows/update_instance.py index <HASH>..<HASH> 100644 --- a/openstack_dashboard/dashboards/project/instances/workflows/update_instance.py +++ b/openstack_dashboard/dashboards/...
Wording for Security Groups is incorrect The wording on the Security Groups tab for the Edit Instance window is wrong. This patch Correcting it. Current string: 'Add and remove security groups to this project ...' New string : 'Add and remove security groups to this instance ...' Change-Id: I<I>d3afb<I>d<I>a<I>dacd...
py
diff --git a/drivers/python_raw/setup.py b/drivers/python_raw/setup.py index <HASH>..<HASH> 100644 --- a/drivers/python_raw/setup.py +++ b/drivers/python_raw/setup.py @@ -6,7 +6,7 @@ setup( description="Python package for python_raw driver in Wappalyzer bundle", author="smant", author_email="TBA", - u...
Point setup.py to primary repo
py
diff --git a/grove/fermion_transforms/jwtransform.py b/grove/fermion_transforms/jwtransform.py index <HASH>..<HASH> 100644 --- a/grove/fermion_transforms/jwtransform.py +++ b/grove/fermion_transforms/jwtransform.py @@ -24,7 +24,7 @@ class JWTransform(object): """ Jordan-Wigner object the appropriate Pauli ope...
PR <I> Removing boson optional argument from the `create` and `kill` methods.
py
diff --git a/pages/admin/actions.py b/pages/admin/actions.py index <HASH>..<HASH> 100644 --- a/pages/admin/actions.py +++ b/pages/admin/actions.py @@ -2,10 +2,10 @@ from django.utils.translation import ugettext_lazy as _ from django.http import HttpResponse from django.utils import simplejson from django.core.serial...
use render_to_response for better compatibility
py
diff --git a/cbamf/logger.py b/cbamf/logger.py index <HASH>..<HASH> 100644 --- a/cbamf/logger.py +++ b/cbamf/logger.py @@ -204,13 +204,19 @@ def add_handler(log, name='console-color', level='info', formatter='standard', * handler.setFormatter(logging.Formatter(formatters[formatter])) log.addHandler(handler) ...
sanitize verbosity to allowed values
py
diff --git a/ccmlib/cmds/cluster_cmds.py b/ccmlib/cmds/cluster_cmds.py index <HASH>..<HASH> 100644 --- a/ccmlib/cmds/cluster_cmds.py +++ b/ccmlib/cmds/cluster_cmds.py @@ -490,6 +490,11 @@ class ClusterStartCmd(Cmd): profile_options = {} if self.options.profile_options: ...
Cleans up CLI start command * Adds proper exit codes * Adds warning when user tries to start unpopulated cluster
py
diff --git a/simple_history/models.py b/simple_history/models.py index <HASH>..<HASH> 100644 --- a/simple_history/models.py +++ b/simple_history/models.py @@ -65,6 +65,10 @@ class HistoricalRecords(object): # existing one must be replaced with an IntegerField. field.__class__ = models....
do not history files, just path, cause a copy of the original file
py
diff --git a/numina/core/reciperesult.py b/numina/core/reciperesult.py index <HASH>..<HASH> 100644 --- a/numina/core/reciperesult.py +++ b/numina/core/reciperesult.py @@ -87,6 +87,12 @@ class RecipeResultType(MapStoreType): def exclude(cls, name, value): return isinstance(value, Product) + @classmeth...
Use key as product.dest if product.dest is None
py
diff --git a/tornado/ioloop.py b/tornado/ioloop.py index <HASH>..<HASH> 100644 --- a/tornado/ioloop.py +++ b/tornado/ioloop.py @@ -224,7 +224,14 @@ class IOLoop(object): try: event_pairs = self._impl.poll(poll_timeout) except Exception, e: - if hasattr(e, 'errno...
Check for EINTR in a more flexible way for compatibility with older pythons and poll implementations. Original commit: <URL>
py
diff --git a/lib/py/src/transport/TTransport.py b/lib/py/src/transport/TTransport.py index <HASH>..<HASH> 100644 --- a/lib/py/src/transport/TTransport.py +++ b/lib/py/src/transport/TTransport.py @@ -289,3 +289,25 @@ class TFramedTransport(TTransportBase, CReadableTransport): prefix += self.__rbuf.getvalue() ...
python: Add TFileObjectTransport TFileObjectTransport is a Thrift transport that wraps a Python-style file-like object. This is necessary to add methods like isOpen and readAll. git-svn-id: <URL>
py
diff --git a/firefed/feature/places.py b/firefed/feature/places.py index <HASH>..<HASH> 100644 --- a/firefed/feature/places.py +++ b/firefed/feature/places.py @@ -27,14 +27,14 @@ class History(Feature): def run(self): entries = self.load_sqlite('places.sqlite', 'moz_places', HistoryEntry) + # Fil...
Sort history list and filter entries without visits
py
diff --git a/tests/test_gnupg.py b/tests/test_gnupg.py index <HASH>..<HASH> 100644 --- a/tests/test_gnupg.py +++ b/tests/test_gnupg.py @@ -841,7 +841,7 @@ authentication.""" msg = """If you have something that you don't want anyone to know, maybe you shouldn't be doing it in the first place. - Eric Schmidt,...
Change unittest for symmetric encryption to include correct boolean options.
py
diff --git a/examples/outlier_detection.py b/examples/outlier_detection.py index <HASH>..<HASH> 100644 --- a/examples/outlier_detection.py +++ b/examples/outlier_detection.py @@ -64,14 +64,15 @@ if __name__ == '__main__': print(bro_matrix.shape) # Train/fit and Predict anomalous instances using the ...
a bit of cleanup on the outlier detection example
py
diff --git a/fabfile.py b/fabfile.py index <HASH>..<HASH> 100644 --- a/fabfile.py +++ b/fabfile.py @@ -175,7 +175,7 @@ def upload(): print("Result: %s" % json.dumps(result, indent=2)) print("Upload new base zip file.") - result = github.downloads_put(dl_base, git_hash) + result = github.downloads_...
Fabric: Bug. Need base zip file name, not dict.
py
diff --git a/Algorithmia/algorithm.py b/Algorithmia/algorithm.py index <HASH>..<HASH> 100644 --- a/Algorithmia/algorithm.py +++ b/Algorithmia/algorithm.py @@ -98,20 +98,17 @@ class Algorithm(object): # Get all versions of the algorithm, with the given filters def versions(self, limit=None, marker=None, publis...
Refactor & simplify logic in .versions() under .algo()
py
diff --git a/moto/s3/responses.py b/moto/s3/responses.py index <HASH>..<HASH> 100644 --- a/moto/s3/responses.py +++ b/moto/s3/responses.py @@ -1482,7 +1482,7 @@ S3_ALL_BUCKETS = """<ListAllMyBucketsResult xmlns="http://s3.amazonaws.com/doc/2 {% for bucket in buckets %} <Bucket> <Name>{{ bucket.name...
Change S3 S3_ALL_BUCKETS response to return bucket creation_date in iso format.
py
diff --git a/gooey/gui/application.py b/gooey/gui/application.py index <HASH>..<HASH> 100644 --- a/gooey/gui/application.py +++ b/gooey/gui/application.py @@ -24,6 +24,8 @@ def run(build_spec): def build_app(build_spec): app = wx.App(False) + # use actual program name instead of script file name in macOS menu...
Use program_name instead of script file name in macOS menu
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -5,7 +5,7 @@ from setuptools import setup, find_packages setup( name = 'parsec', - version = '3.9', + version = '3.10', description = 'parser combinator.', long_description = 'A universal Python parser ...
Upgrade version to <I>.
py
diff --git a/rw/db.py b/rw/db.py index <HASH>..<HASH> 100644 --- a/rw/db.py +++ b/rw/db.py @@ -210,12 +210,17 @@ class Document(dict): return '<%s %s>' % (self.__class__.__name__, ' '.join('%s=%s' % item for item in self.items())) - @gen.coroutine - def save(self, callback=...
rename and cleanup rw.db
py
diff --git a/werkzeug/security.py b/werkzeug/security.py index <HASH>..<HASH> 100644 --- a/werkzeug/security.py +++ b/werkzeug/security.py @@ -13,7 +13,6 @@ import hmac import posixpath from random import SystemRandom -from werkzeug.exceptions import BadRequest from werkzeug._compat import xrange, PY2, text_type, ...
Removed unnessary import and added support for hmac.digest_compare
py
diff --git a/src/app/actions/peptable/model_qvals.py b/src/app/actions/peptable/model_qvals.py index <HASH>..<HASH> 100644 --- a/src/app/actions/peptable/model_qvals.py +++ b/src/app/actions/peptable/model_qvals.py @@ -26,7 +26,7 @@ def fit_linear_model(fn, scorecol, qvalcol, qvalthreshold): if qval > qvalthre...
Demand <I> values for linear fit of q-values, rather than 2
py
diff --git a/juicer/admin/JuicerAdmin.py b/juicer/admin/JuicerAdmin.py index <HASH>..<HASH> 100644 --- a/juicer/admin/JuicerAdmin.py +++ b/juicer/admin/JuicerAdmin.py @@ -48,6 +48,8 @@ class JuicerAdmin(object): Create repository in specified environments """ + name = name.lower() + ...
Enforce lowercase reponames and usernames.
py
diff --git a/claripy/frontends/replacement_frontend.py b/claripy/frontends/replacement_frontend.py index <HASH>..<HASH> 100644 --- a/claripy/frontends/replacement_frontend.py +++ b/claripy/frontends/replacement_frontend.py @@ -18,7 +18,7 @@ class ReplacementFrontend(ConstrainedFrontend): self._replacements = {...
changed the default for invalidate_cache and replace for replacements
py
diff --git a/pulsar/managers/util/job_script/__init__.py b/pulsar/managers/util/job_script/__init__.py index <HASH>..<HASH> 100644 --- a/pulsar/managers/util/job_script/__init__.py +++ b/pulsar/managers/util/job_script/__init__.py @@ -39,10 +39,10 @@ def job_script(template=DEFAULT_JOB_FILE_TEMPLATE, **kwds): True...
Fix doctest for changes to job script.
py
diff --git a/tensor2tensor/models/research/next_frame_sv2p.py b/tensor2tensor/models/research/next_frame_sv2p.py index <HASH>..<HASH> 100644 --- a/tensor2tensor/models/research/next_frame_sv2p.py +++ b/tensor2tensor/models/research/next_frame_sv2p.py @@ -557,7 +557,8 @@ class NextFrameStochastic(next_frame.NextFrameBas...
fixing visualization bug on resolutions other than <I>x<I> PiperOrigin-RevId: <I>
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -13,7 +13,7 @@ def read(*parts): return codecs.open(os.path.join(os.path.abspath(os.path.dirname(__file__)), *parts), 'r').read() setup(name="hitchserve", - version="0.4.1", + version="0.4.2", descript...
RELEASE : Bumped version.
py
diff --git a/neutronclient/neutron/v2_0/__init__.py b/neutronclient/neutron/v2_0/__init__.py index <HASH>..<HASH> 100644 --- a/neutronclient/neutron/v2_0/__init__.py +++ b/neutronclient/neutron/v2_0/__init__.py @@ -341,8 +341,11 @@ class NeutronCommand(command.OpenStackCommand): def __init__(self, app, app_args)...
Make compatible with Cliff (<I>) The most recent version of cliff changes the way formatters work. This temporarily disables the custom formatter to get the gate working again. Partial-Bug: #<I> Change-Id: Id0fe9ca3ddf<I>a<I>f<I>de4cbe4cadb<I>
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -7,8 +7,10 @@ Versatile HTTP traffic mocking and expectations made easy in Python. :copyright: (c) 2016 Tomas Aparicio :license: MIT """ + import os import sys +import codecs from setuptools import setup, find_packages ...
fix(setup.py): force utf-8 encoding
py
diff --git a/salt/transport/zeromq.py b/salt/transport/zeromq.py index <HASH>..<HASH> 100644 --- a/salt/transport/zeromq.py +++ b/salt/transport/zeromq.py @@ -207,10 +207,12 @@ class AsyncZeroMQReqChannel(salt.transport.client.ReqChannel): @property def master_uri(self): - return _get_master_uri(self...
HACK: directly return the master_uri when master_ip is not in the opts (though I don't know how it can't be, but be it)
py
diff --git a/xmltodict.py b/xmltodict.py index <HASH>..<HASH> 100755 --- a/xmltodict.py +++ b/xmltodict.py @@ -29,7 +29,7 @@ except NameError: # pragma no cover _unicode = str __author__ = 'Martin Blech' -__version__ = '0.8.1' +__version__ = '0.8.2' __license__ = 'MIT' class ParsingInterrupted(Exception): p...
Bumped version number to <I>
py
diff --git a/spacy/tests/vocab/test_flag_features.py b/spacy/tests/vocab/test_flag_features.py index <HASH>..<HASH> 100644 --- a/spacy/tests/vocab/test_flag_features.py +++ b/spacy/tests/vocab/test_flag_features.py @@ -41,3 +41,18 @@ def test_is_digit(words): assert not is_digit(words[7]) assert not is_digit(...
* Add stubs to test is_bracket/is_quote/is_left_punct/is_right_punct functions
py
diff --git a/salt/utils/dns.py b/salt/utils/dns.py index <HASH>..<HASH> 100644 --- a/salt/utils/dns.py +++ b/salt/utils/dns.py @@ -1,7 +1,10 @@ # -*- coding: utf-8 -*- -import itertools # pylint: disable=W0403 +# Import python libs +from __future__ import absolute_import +import itertools +# Import salt libs imp...
Use absolute imports in salt.utils.dns (#<I>) Resolves #<I>.
py
diff --git a/nion/swift/model/DisplayItem.py b/nion/swift/model/DisplayItem.py index <HASH>..<HASH> 100644 --- a/nion/swift/model/DisplayItem.py +++ b/nion/swift/model/DisplayItem.py @@ -911,14 +911,6 @@ class DisplayItem(Observable.Observable, Persistence.PersistentObject): self.about_to_cascade_delete_event....
Make default about_to_be_removed apply to items and relationships.
py
diff --git a/projects/tables.py b/projects/tables.py index <HASH>..<HASH> 100644 --- a/projects/tables.py +++ b/projects/tables.py @@ -101,7 +101,9 @@ class DeploymentTable(PaginateTable): class StageHostTable(tables.Table): - + """ + This table lists the Stage->Host through table records + """ actio...
Added a docstring for the stage host table since that table is for a through model.
py
diff --git a/src/_pytest/runner.py b/src/_pytest/runner.py index <HASH>..<HASH> 100644 --- a/src/_pytest/runner.py +++ b/src/_pytest/runner.py @@ -423,6 +423,7 @@ class SetupState: needed_collectors = colitem.listchain() for col in needed_collectors[len(self.stack) :]: self.stack.append(c...
runner: make sure SetupState._finalizers is always set for a node in the stack This makes the stack <-> _finalizers correspondence clearer.
py
diff --git a/slave/cryomagnetics.py b/slave/cryomagnetics.py index <HASH>..<HASH> 100644 --- a/slave/cryomagnetics.py +++ b/slave/cryomagnetics.py @@ -17,7 +17,7 @@ class UnitFloat(Float): representation, it will get stripped. """ - def _convert(self, value): + def __convert__(self, value): "...
Fixed bug due to renaming of the conversion hook to __convert__().
py
diff --git a/restclients_core/tests/models/test_base.py b/restclients_core/tests/models/test_base.py index <HASH>..<HASH> 100644 --- a/restclients_core/tests/models/test_base.py +++ b/restclients_core/tests/models/test_base.py @@ -1,6 +1,7 @@ from unittest import TestCase from restclients_core import models from dat...
Adding a test to verify the leak is fixed
py
diff --git a/test.py b/test.py index <HASH>..<HASH> 100644 --- a/test.py +++ b/test.py @@ -8,4 +8,5 @@ def test(new_status): if __name__ == "__main__": with SpotifyLocal() as s: - s.on_track_change(callback=test) + s.on_change_status += test + s.listen_for_events()
changed test.py to use new callback registering scheme
py