diff
stringlengths
139
3.65k
message
stringlengths
8
627
diff_languages
stringclasses
1 value
diff --git a/simplesqlite/loader/spreadsheet/gsloader.py b/simplesqlite/loader/spreadsheet/gsloader.py index <HASH>..<HASH> 100644 --- a/simplesqlite/loader/spreadsheet/gsloader.py +++ b/simplesqlite/loader/spreadsheet/gsloader.py @@ -8,6 +8,7 @@ from __future__ import absolute_import import dataproperty +from six....
Improve python 2/3 compatibility
py
diff --git a/acme_tiny.py b/acme_tiny.py index <HASH>..<HASH> 100755 --- a/acme_tiny.py +++ b/acme_tiny.py @@ -63,12 +63,12 @@ def get_crt(account_key, csr, acme_dir, log=LOGGER, CA=DEFAULT_CA, disable_check # helper function - poll until complete def _poll_until_not(url, pending_statuses, err_msg): - ...
addresses #<I> where @nuxi points out a situation where polling may hang indefinitely
py
diff --git a/graphite_beacon/alerts.py b/graphite_beacon/alerts.py index <HASH>..<HASH> 100644 --- a/graphite_beacon/alerts.py +++ b/graphite_beacon/alerts.py @@ -270,9 +270,10 @@ class URLAlert(BaseAlert): else: self.waiting = True try: - response = yield self.client.f...
Added support for url-checking on urls with invalid SSL certificates. Checking can be disabled by setting "validate_cert": false
py
diff --git a/test/spambl_test.py b/test/spambl_test.py index <HASH>..<HASH> 100644 --- a/test/spambl_test.py +++ b/test/spambl_test.py @@ -13,7 +13,6 @@ from itertools import combinations, product, chain from collections import namedtuple -from urlparse import urlparse from requests.exceptions import HTTPError, I...
Remove spambl_test.get_redirect_urls function The function is no longer used.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -27,5 +27,6 @@ setup(name='nodemcu-uploader', 'console_scripts': [ 'nodemcu-uploader=nodemcu_uploader.main:main_func' ] - } + }, + zip_safe=False )
Avoid distributing the package in zip form
py
diff --git a/salt/netapi/rest_tornado/saltnado_websockets.py b/salt/netapi/rest_tornado/saltnado_websockets.py index <HASH>..<HASH> 100644 --- a/salt/netapi/rest_tornado/saltnado_websockets.py +++ b/salt/netapi/rest_tornado/saltnado_websockets.py @@ -304,7 +304,7 @@ import logging logger = logging.getLogger() -cla...
Quiet two pylint errors about missing __init__ method
py
diff --git a/interest/processor.py b/interest/processor.py index <HASH>..<HASH> 100644 --- a/interest/processor.py +++ b/interest/processor.py @@ -1,5 +1,5 @@ import asyncio -from aiohttp.web import Response +from aiohttp.web import StreamResponse from .middleware import Middleware @@ -39,11 +39,11 @@ class Proce...
replaced Response check by StreamResponse check
py
diff --git a/src/diamond/utils/log.py b/src/diamond/utils/log.py index <HASH>..<HASH> 100644 --- a/src/diamond/utils/log.py +++ b/src/diamond/utils/log.py @@ -10,7 +10,9 @@ import os class DebugFormatter(logging.Formatter): def __init__(self, fmt=None): if fmt is None: - fmt = '%(created)s\t[%...
Add the process PID in the logs
py
diff --git a/packaging/create-linux-packages.py b/packaging/create-linux-packages.py index <HASH>..<HASH> 100755 --- a/packaging/create-linux-packages.py +++ b/packaging/create-linux-packages.py @@ -56,7 +56,7 @@ def test_package(distro_image, package_directory, install_command): run([ "docker", "run", ...
python silly python strings and lists... oh my
py
diff --git a/source/rafcon/mvc/models/config_model.py b/source/rafcon/mvc/models/config_model.py index <HASH>..<HASH> 100644 --- a/source/rafcon/mvc/models/config_model.py +++ b/source/rafcon/mvc/models/config_model.py @@ -102,6 +102,8 @@ class ConfigModel(ModelMT): state_machine_refresh_required = Tru...
ConfigModel: Clear preliminary_config on apply When the preliminary config is applied, the preliminary_config dict is now cleared. Thereby, the "Apply" button in the ConfigController should get deactivated when clicking it.
py
diff --git a/LiSE/core.py b/LiSE/core.py index <HASH>..<HASH> 100644 --- a/LiSE/core.py +++ b/LiSE/core.py @@ -623,6 +623,8 @@ class Engine(object): @tick.setter def tick(self, v): """Update gorm's ``rev``, and call listeners""" + if not isinstance(v, int): + raise TypeError("tick m...
Tick must be integer so check it At some point, tick did indeed get set to a string, and I don't know why or how or where. Maybe this will help me find out, next time.
py
diff --git a/cli_toolkit/ip_packager/packager.py b/cli_toolkit/ip_packager/packager.py index <HASH>..<HASH> 100755 --- a/cli_toolkit/ip_packager/packager.py +++ b/cli_toolkit/ip_packager/packager.py @@ -85,7 +85,7 @@ class Packager(object): self.mkAutoGui() c = Component() - c._files ...
sort files for component.xml to make it more git friendly
py
diff --git a/uw_gradepage/__init__.py b/uw_gradepage/__init__.py index <HASH>..<HASH> 100644 --- a/uw_gradepage/__init__.py +++ b/uw_gradepage/__init__.py @@ -6,9 +6,11 @@ from uw_gradepage.dao import GradePage_DAO from restclients_core.exceptions import DataFailureException import json +GradePageDao = GradePage_DA...
made dao a singleton
py
diff --git a/troposphere/firehose.py b/troposphere/firehose.py index <HASH>..<HASH> 100644 --- a/troposphere/firehose.py +++ b/troposphere/firehose.py @@ -170,7 +170,7 @@ class ExtendedS3DestinationConfiguration(AWSProperty): 'CloudWatchLoggingOptions': (CloudWatchLoggingOptions, False), 'CompressionF...
Prefix is still required in ExtendedS3DestinationConfiguration
py
diff --git a/hcalendar/__init__.py b/hcalendar/__init__.py index <HASH>..<HASH> 100644 --- a/hcalendar/__init__.py +++ b/hcalendar/__init__.py @@ -22,6 +22,10 @@ def get_version(): return ''.join(vers) __version__ = get_version() -__all__ = ['hCalendar'] -from .hcalendar import hCalendar +try: + from .hcal...
Ignore ImportError within package init and setup script
py
diff --git a/depot/yum/filelists.py b/depot/yum/filelists.py index <HASH>..<HASH> 100644 --- a/depot/yum/filelists.py +++ b/depot/yum/filelists.py @@ -27,6 +27,32 @@ class YumFileListsPackage(YumData): self.pkgid = pkgid self.name = name self.arch = arch + self.files = [] + + def ve...
Working parser for file lists.
py
diff --git a/examples/confluence/confluence_attach_file.py b/examples/confluence/confluence_attach_file.py index <HASH>..<HASH> 100644 --- a/examples/confluence/confluence_attach_file.py +++ b/examples/confluence/confluence_attach_file.py @@ -7,7 +7,6 @@ import logging # https://pypi.org/project/python-magic/ impor...
[Examples] Build warnings fixed: Unused import and variable removed. (#<I>)
py
diff --git a/jsonrpcclient/server.py b/jsonrpcclient/server.py index <HASH>..<HASH> 100644 --- a/jsonrpcclient/server.py +++ b/jsonrpcclient/server.py @@ -64,7 +64,7 @@ class Server(object): Calls a procedure on another server. Raises JsonRpcClientError: On any error caught. """ - logg...
Changed a log entry from debug to info.
py
diff --git a/salt/modules/iptables.py b/salt/modules/iptables.py index <HASH>..<HASH> 100644 --- a/salt/modules/iptables.py +++ b/salt/modules/iptables.py @@ -79,7 +79,7 @@ def version(family='ipv4'): return out[1] -def build_rule(command=None, position='', full=None, family='ipv4', +def build_rule(table=None,...
re-removed :/
py
diff --git a/djcelery/tests/test_schedulers.py b/djcelery/tests/test_schedulers.py index <HASH>..<HASH> 100644 --- a/djcelery/tests/test_schedulers.py +++ b/djcelery/tests/test_schedulers.py @@ -102,9 +102,9 @@ class test_ModelEntry(unittest.TestCase): def test_from_entry(self): name = 'interval-vs-cron...
Fix next id call in test_from_entry (#<I>) * Fix next id call in test_from_entry * Fix PEP8
py
diff --git a/neo4j/v1/session.py b/neo4j/v1/session.py index <HASH>..<HASH> 100644 --- a/neo4j/v1/session.py +++ b/neo4j/v1/session.py @@ -518,6 +518,7 @@ class Transaction(object): return self def __exit__(self, exc_type, exc_value, traceback): + self.success = False if exc_type else True ...
Tx success set in __exit__
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -28,7 +28,7 @@ setup_params = dict( 'jaraco.util', ], setup_requires=[ - 'hgtools', + 'hgtools<8', 'pytest-runner', ], )
Pin against hgtools 8
py
diff --git a/libagent/gpg/__init__.py b/libagent/gpg/__init__.py index <HASH>..<HASH> 100644 --- a/libagent/gpg/__init__.py +++ b/libagent/gpg/__init__.py @@ -195,8 +195,8 @@ fi '--import-ownertrust', f.name])) # Load agent and make sure it responds with the new identity - ...
gpg: --homedir should come before --list-secret-keys
py
diff --git a/glad/__init__.py b/glad/__init__.py index <HASH>..<HASH> 100644 --- a/glad/__init__.py +++ b/glad/__init__.py @@ -1,3 +1,3 @@ -__version__ = '0.1.10a0' +__version__ = '0.1.11a0'
setup: Bumped version: <I>a0.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -31,6 +31,7 @@ setup( 'Programming Language :: Python :: 3.3', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', + 'Programming Language :: Python :: 3.6', ...
Compatibility with Python <I>
py
diff --git a/astroid/objects.py b/astroid/objects.py index <HASH>..<HASH> 100644 --- a/astroid/objects.py +++ b/astroid/objects.py @@ -317,11 +317,14 @@ node_classes.Dict.__bases__ = (node_classes.NodeNG, DictInstance) class Property(scoped_nodes.FunctionDef): """Class representing a Python property""" + @de...
Deprecate passing ``doc`` to ``Property`` (#<I>)
py
diff --git a/bebop/connection.py b/bebop/connection.py index <HASH>..<HASH> 100644 --- a/bebop/connection.py +++ b/bebop/connection.py @@ -6,15 +6,6 @@ Created on Feb 18, 2011 #@todo: rewrite pysolr import pysolr -try: - from gevent import monkey - monkey.patch_all() -except ImportError: - try: - im...
[fix] being a good neighbor and not monkey patching socket, doesn't work when you have gevent installed but are using a threaded server
py
diff --git a/tensorflow_probability/__init__.py b/tensorflow_probability/__init__.py index <HASH>..<HASH> 100644 --- a/tensorflow_probability/__init__.py +++ b/tensorflow_probability/__init__.py @@ -53,7 +53,7 @@ def _ensure_tf_install(): # pylint: disable=g-statement-before-imports # # Update this whenever we n...
Bump TF version dependency from <I> to <I> PiperOrigin-RevId: <I>
py
diff --git a/src/scs_core/data/message_queue.py b/src/scs_core/data/message_queue.py index <HASH>..<HASH> 100644 --- a/src/scs_core/data/message_queue.py +++ b/src/scs_core/data/message_queue.py @@ -6,6 +6,8 @@ Created on 27 Sep 2018 https://eli.thegreenplace.net/2012/01/04/shared-counter-with-pythons-multiprocessing/...
Added sleep to MessageQueue run loop.
py
diff --git a/book/sqmc/sqmc_as_dim_grows.py b/book/sqmc/sqmc_as_dim_grows.py index <HASH>..<HASH> 100644 --- a/book/sqmc/sqmc_as_dim_grows.py +++ b/book/sqmc/sqmc_as_dim_grows.py @@ -37,7 +37,7 @@ from particles import kalman from particles import state_space_models as ssms #parameter values -alpha0 = 0.4 +alpha0 ...
fix issues with plot for sqmc chapter
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -5,7 +5,7 @@ setup( version='4.4.13', packages=['zxcvbn'], url='https://github.com/dwolfhub/zxcvbn-python', - download_url='https://github.com/dwolfhub/zxcvbn-python/tarball/4.4.13', + download_url='https:...
fixing download_url in setup.py
py
diff --git a/pubsub/tests/unit/pubsub_v1/subscriber/test_streaming_pull_manager.py b/pubsub/tests/unit/pubsub_v1/subscriber/test_streaming_pull_manager.py index <HASH>..<HASH> 100644 --- a/pubsub/tests/unit/pubsub_v1/subscriber/test_streaming_pull_manager.py +++ b/pubsub/tests/unit/pubsub_v1/subscriber/test_streaming_p...
Fix path for patch of 'bidi' elements. (#<I>) Closes #<I>.
py
diff --git a/command/build_ext.py b/command/build_ext.py index <HASH>..<HASH> 100644 --- a/command/build_ext.py +++ b/command/build_ext.py @@ -155,6 +155,7 @@ class build_ext (Command): # also Python's library directory must be appended to library_dirs if os.name == 'nt': self.library_dir...
A-ha! Read Thomas' patch a little more carefully and figured it out: the 'implib_dir' attribute is back (only on NT, of course).
py
diff --git a/ella/newman/options.py b/ella/newman/options.py index <HASH>..<HASH> 100644 --- a/ella/newman/options.py +++ b/ella/newman/options.py @@ -431,11 +431,14 @@ class NewmanInlineFormSet(BaseInlineFormSet): else: qs = self.model._default_manager.get_query_set() # categ...
NewmanInlineFormSet -- category field detection changed
py
diff --git a/openpyscad/base.py b/openpyscad/base.py index <HASH>..<HASH> 100644 --- a/openpyscad/base.py +++ b/openpyscad/base.py @@ -89,7 +89,7 @@ class _BaseObject(with_metaclass(MetaObject, ModifierMixin, object)): if val is None: return None try: - if isinstance(val, (str,...
Delete unicode which is a keyword in Python2
py
diff --git a/tests/test_live_server.py b/tests/test_live_server.py index <HASH>..<HASH> 100755 --- a/tests/test_live_server.py +++ b/tests/test_live_server.py @@ -82,3 +82,33 @@ class TestLiveServer: result = appdir.runpytest('-v', '--no-start-live-server') result.stdout.fnmatch_lines(['*PASSED*']) ...
Ensure the live server can handle concurrent requests, as per #<I>
py
diff --git a/tests/tuning/test_tunable.py b/tests/tuning/test_tunable.py index <HASH>..<HASH> 100644 --- a/tests/tuning/test_tunable.py +++ b/tests/tuning/test_tunable.py @@ -298,17 +298,17 @@ class TestTunable(TestCase): # setup # Values have been changed to ensure that each one of them is being ca...
fix test failing in python <I>
py
diff --git a/bolt/spark/statcounter.py b/bolt/spark/statcounter.py index <HASH>..<HASH> 100644 --- a/bolt/spark/statcounter.py +++ b/bolt/spark/statcounter.py @@ -15,7 +15,7 @@ # limitations under the License. # -# This file is ported from spark/util/StatCounter.scala, but is modified to use ndarrays +# This file i...
Changed comment in StatsCounter
py
diff --git a/wagtailmodeladmin/middleware.py b/wagtailmodeladmin/middleware.py index <HASH>..<HASH> 100644 --- a/wagtailmodeladmin/middleware.py +++ b/wagtailmodeladmin/middleware.py @@ -1,4 +1,4 @@ -from urlparse import urlparse +from django.utils.six.moves.urllib.parse import urlparse from django.http import HttpRes...
Correct python 3> incompatibility import in middleware
py
diff --git a/salt/modules/ipset.py b/salt/modules/ipset.py index <HASH>..<HASH> 100644 --- a/salt/modules/ipset.py +++ b/salt/modules/ipset.py @@ -15,6 +15,7 @@ else: import salt.ext.ipaddress as ipaddress from salt.ext.six.moves import range # pylint: disable=import-error,redefined-builtin + # Fix included i...
Pylint complained abount number of blank lines
py
diff --git a/spacy/tokens/printers.py b/spacy/tokens/printers.py index <HASH>..<HASH> 100644 --- a/spacy/tokens/printers.py +++ b/spacy/tokens/printers.py @@ -8,7 +8,7 @@ from ..symbols import HEAD, TAG, DEP, ENT_IOB, ENT_TYPE def merge_ents(doc): """Helper: merge adjacent entities into single tokens; modifies th...
Use correct, non-deprecated merge syntax (resolves #<I>)
py
diff --git a/python-package/xgboost/training.py b/python-package/xgboost/training.py index <HASH>..<HASH> 100644 --- a/python-package/xgboost/training.py +++ b/python-package/xgboost/training.py @@ -39,7 +39,7 @@ def _configure_custom_metric( ) if feval is not None and custom_metric is not None: ...
Fix typo (#<I>)
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -3,7 +3,7 @@ from setuptools import setup, find_packages setup(name='django-locksmith', - version='0.7.3', + version='0.7.4', description='Django apps for API authentication and centralized authorization',...
Added .txt to setup.py.
py
diff --git a/openquake/calculators/reportwriter.py b/openquake/calculators/reportwriter.py index <HASH>..<HASH> 100644 --- a/openquake/calculators/reportwriter.py +++ b/openquake/calculators/reportwriter.py @@ -54,7 +54,8 @@ def count_eff_ruptures(sources, srcfilter, gsims, monitor): for src in sources: s...
Added rupture.serial for debugging purposes in the reportwriter Former-commit-id: <I>d<I>f4bf6b<I>a2c<I>e8ff<I>c7d<I>ed
py
diff --git a/src/hamster/client.py b/src/hamster/client.py index <HASH>..<HASH> 100644 --- a/src/hamster/client.py +++ b/src/hamster/client.py @@ -111,7 +111,9 @@ class Storage(gobject.GObject): """returns facts of the current date, respecting hamster midnight hamster midnight is stored in gconf, a...
checking out current day in the trophies
py
diff --git a/asv/console.py b/asv/console.py index <HASH>..<HASH> 100644 --- a/asv/console.py +++ b/asv/console.py @@ -278,7 +278,9 @@ class Log(object): color_print('·' * self._indent, end='') color_print(' ', end='') - if record.levelno < logging.DEBUG: + if hasattr(record, 'color'):...
console.Log: support coloring log entries
py
diff --git a/src/cobra/test/test_flux_analysis/test_parsimonious.py b/src/cobra/test/test_flux_analysis/test_parsimonious.py index <HASH>..<HASH> 100644 --- a/src/cobra/test/test_flux_analysis/test_parsimonious.py +++ b/src/cobra/test/test_flux_analysis/test_parsimonious.py @@ -1,6 +1,7 @@ """Test functionalities of p...
update: improve typing annotation in test_parsimonious.py
py
diff --git a/discord/ext/commands/formatter.py b/discord/ext/commands/formatter.py index <HASH>..<HASH> 100644 --- a/discord/ext/commands/formatter.py +++ b/discord/ext/commands/formatter.py @@ -160,7 +160,7 @@ class HelpFormatter: try: commands = self.command.commands if not self.is_cog() else se...
[commands] Make HelpFormatter ignore hidden commands for max_width.
py
diff --git a/test/integration/base.py b/test/integration/base.py index <HASH>..<HASH> 100644 --- a/test/integration/base.py +++ b/test/integration/base.py @@ -439,7 +439,7 @@ class DBTIntegrationTest(unittest.TestCase): args = ["run"] if strict: - args = ["--single-threaded", "--stric...
ugh, forgot to remove this I guess
py
diff --git a/pyads/testserver.py b/pyads/testserver.py index <HASH>..<HASH> 100644 --- a/pyads/testserver.py +++ b/pyads/testserver.py @@ -817,10 +817,10 @@ class AdvancedHandler(AbstractHandler): # type: () -> bytes """Handle read-state request.""" logger.info("Command received: ...
Fix read_state of AdvancedHandler
py
diff --git a/hangups/__main__.py b/hangups/__main__.py index <HASH>..<HASH> 100644 --- a/hangups/__main__.py +++ b/hangups/__main__.py @@ -79,7 +79,7 @@ class HangupsClient(object): self.channel_session_id = None @gen.coroutine - def on_message_received(self, conversation_id, message): + def on_me...
Rename on_message_received to be consistent
py
diff --git a/tests/test_13_validate.py b/tests/test_13_validate.py index <HASH>..<HASH> 100644 --- a/tests/test_13_validate.py +++ b/tests/test_13_validate.py @@ -56,7 +56,11 @@ def test_valid_non_negative_integer(): def test_valid_string(): assert valid_string(u'example') - raises(NotValid, 'valid_string("0...
Fix validate test fail due to bytes/hex change In python3 we don't have the same freedom with hex decoding that we had before. This test is less elegant now, but still readable.
py
diff --git a/galpy/orbit/OrbitTop.py b/galpy/orbit/OrbitTop.py index <HASH>..<HASH> 100644 --- a/galpy/orbit/OrbitTop.py +++ b/galpy/orbit/OrbitTop.py @@ -1367,7 +1367,9 @@ class OrbitTop(object): and self._integrate_t_asQuantity \ and not nu.all(t == self.t): warn...
When asking for the orbit at the exact times at which it was integrated, just return the orbit rather than interpolating (<I>x faster)
py
diff --git a/src/samples/glfw/hellovr_glfw.py b/src/samples/glfw/hellovr_glfw.py index <HASH>..<HASH> 100644 --- a/src/samples/glfw/hellovr_glfw.py +++ b/src/samples/glfw/hellovr_glfw.py @@ -432,7 +432,7 @@ class CMainApplication(object): self.hand[Right].show_controller = True do_hide, hide_device =...
Fix typo so "hide controller" would work when pressing app menu button.
py
diff --git a/malcolm/modules/pmac/util.py b/malcolm/modules/pmac/util.py index <HASH>..<HASH> 100644 --- a/malcolm/modules/pmac/util.py +++ b/malcolm/modules/pmac/util.py @@ -108,6 +108,13 @@ def points_joined(axis_mapping, point, next_point): for axis_name in axis_mapping: if point.upper[axis_name] != ne...
Added point delay check to the test for joined points.
py
diff --git a/xdis/magics.py b/xdis/magics.py index <HASH>..<HASH> 100755 --- a/xdis/magics.py +++ b/xdis/magics.py @@ -305,10 +305,10 @@ add_canonic_versions("3.0 3.0.0 3.0.1", "3.0a5") add_canonic_versions("3.1 3.1.0 3.1.1 3.1.2 3.1.3 3.1.4 3.1.5", "3.1a0+") add_canonic_versions("3.2 3.2.0 3.2.1 3.2.2 3.2.3 3.2.4 3....
Remove extra "'s added by blacken reformatting
py
diff --git a/factory/declarations.py b/factory/declarations.py index <HASH>..<HASH> 100644 --- a/factory/declarations.py +++ b/factory/declarations.py @@ -722,11 +722,11 @@ class PostGenerationMethodCall(PostGenerationDeclaration): def call(self, instance, step, context): if not context.value_provided: ...
Using tuple literals in PostGenerationMethodCall Faster instantiation and more readable.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -9,6 +9,14 @@ try: except: pass +# Dirty hack to get version number from django_ses/__init__.py - we can't +# import it as it depends on boto and boto isn't installed until this +# file is read +init = os.path.join(os...
Get version number w/o importing
py
diff --git a/doc/conf.py b/doc/conf.py index <HASH>..<HASH> 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -63,7 +63,7 @@ copyright = u'2015, Jeong-Yoon Lee' # The short X.Y version. version = '0.3' # The full version, including alpha/beta/rc tags. -release = '0.3.6' +release = '0.3.7' # The language for content a...
update version no in package docs
py
diff --git a/c4r/mqtt_client.py b/c4r/mqtt_client.py index <HASH>..<HASH> 100644 --- a/c4r/mqtt_client.py +++ b/c4r/mqtt_client.py @@ -59,8 +59,8 @@ class MqttApi(object): self.__client.loop_stop() self.__client.disconnect() - def publish_config(self, config): - self.__publish('config', co...
Don't shadow config from outer scope
py
diff --git a/photutils/segmentation/core.py b/photutils/segmentation/core.py index <HASH>..<HASH> 100644 --- a/photutils/segmentation/core.py +++ b/photutils/segmentation/core.py @@ -545,10 +545,15 @@ class SegmentationImage: """ labels = np.atleast_1d(labels) - for label in labels: - ...
Significantly improve performance of segmentation relabeling
py
diff --git a/polysquare_setuptools_lint/__init__.py b/polysquare_setuptools_lint/__init__.py index <HASH>..<HASH> 100644 --- a/polysquare_setuptools_lint/__init__.py +++ b/polysquare_setuptools_lint/__init__.py @@ -397,7 +397,7 @@ def _get_cache_dir(candidate): import distutils.command.build # suppress(import-err...
polysquarelint: Get absolute path to cache dir
py
diff --git a/validator/outputhandlers/shellcolors.py b/validator/outputhandlers/shellcolors.py index <HASH>..<HASH> 100644 --- a/validator/outputhandlers/shellcolors.py +++ b/validator/outputhandlers/shellcolors.py @@ -61,6 +61,7 @@ class OutputHandler: rany = text.rfind("<<") # Put in the e...
Fixed minor CLI bug with percent signs in color mode.
py
diff --git a/hmmlearn/base.py b/hmmlearn/base.py index <HASH>..<HASH> 100644 --- a/hmmlearn/base.py +++ b/hmmlearn/base.py @@ -68,6 +68,17 @@ class _BaseHMM(BaseEstimator): startprob, 't' for transmat, and other characters for subclass-specific emmission parameters. Defaults to all parameters...
Update to docstring Updated docstring to reflect addition of new attributes to BaseHMM
py
diff --git a/pyrogram/connection/connection.py b/pyrogram/connection/connection.py index <HASH>..<HASH> 100644 --- a/pyrogram/connection/connection.py +++ b/pyrogram/connection/connection.py @@ -36,7 +36,7 @@ class Connection: 4: TCPIntermediateO } - def __init__(self, dc_id: int, test_mode: bool, ip...
Use TCPAbridged (async) connection mode
py
diff --git a/openquake/calculators/base.py b/openquake/calculators/base.py index <HASH>..<HASH> 100644 --- a/openquake/calculators/base.py +++ b/openquake/calculators/base.py @@ -115,7 +115,7 @@ class BaseCalculator(with_metaclass(abc.ABCMeta)): self.pre_execute() result = self.execute() ...
Passed exports to Calculator.export
py
diff --git a/test/test_collection.py b/test/test_collection.py index <HASH>..<HASH> 100644 --- a/test/test_collection.py +++ b/test/test_collection.py @@ -1047,7 +1047,7 @@ class TestCollection(unittest.TestCase): None, db.test.update({"_id": id}, {"$inc": {"x": 1}}, w=0)) if v19: - s...
Fix test_safe_update for mongo <I> nightly.
py
diff --git a/ELiDE/ELiDE/screen.py b/ELiDE/ELiDE/screen.py index <HASH>..<HASH> 100644 --- a/ELiDE/ELiDE/screen.py +++ b/ELiDE/ELiDE/screen.py @@ -213,12 +213,7 @@ class MainScreen(Screen): self._old_character = self.character if '_kv' in self.character.stat: self.kv = self.character.stat...
Trigger full update on new character; get rid of _pull_kv I'll need to copy kv in manually later
py
diff --git a/docs/source/conf.py b/docs/source/conf.py index <HASH>..<HASH> 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -34,7 +34,6 @@ sys.path.insert(0, os.path.abspath('.')) extensions = [ 'sphinx.ext.autodoc', 'sphinx.ext.todo', - 'sphinx.ext.viewcode', 'sphinx.ext.doctest', ...
sphinx - disable view extension
py
diff --git a/parsl/execution_provider/execution_provider_base.py b/parsl/execution_provider/execution_provider_base.py index <HASH>..<HASH> 100644 --- a/parsl/execution_provider/execution_provider_base.py +++ b/parsl/execution_provider/execution_provider_base.py @@ -31,10 +31,11 @@ class ExecutionProvider(metaclass=ABC...
Adding an abstract method : status() required for all execution providers
py
diff --git a/scripts/plink_to_vcf.py b/scripts/plink_to_vcf.py index <HASH>..<HASH> 100644 --- a/scripts/plink_to_vcf.py +++ b/scripts/plink_to_vcf.py @@ -99,7 +99,7 @@ def fix_vcf_line(parts, ref_base): # reference is on alternate strand elif ref_base != ref and complements.get(ref) == ref_base: var...
Handle complements for multiallelic SNPs. Fixes #<I>
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -48,6 +48,11 @@ setup( long_description=open("README.rst").read(), license=twine.__license__, url=twine.__uri__, + project_urls={ + 'Packaging tutorial': 'https://packaging.python.org/tutorials/distrib...
Add project URLs to setup.py for PyPI
py
diff --git a/sphinxcontrib/katex.py b/sphinxcontrib/katex.py index <HASH>..<HASH> 100644 --- a/sphinxcontrib/katex.py +++ b/sphinxcontrib/katex.py @@ -24,7 +24,7 @@ from sphinx.ext.mathbase import get_node_equation_number __version__ = '0.1.5' -katex_version = '0.9.0-alpha2' +katex_version = '0.9.0' filename_css ...
Switch to KaTeX <I>
py
diff --git a/storage/google/cloud/storage/blob.py b/storage/google/cloud/storage/blob.py index <HASH>..<HASH> 100644 --- a/storage/google/cloud/storage/blob.py +++ b/storage/google/cloud/storage/blob.py @@ -548,7 +548,7 @@ class Blob(_PropertyMixin): with open(filename, 'wb') as file_obj: ...
Remove unused var (flake8 warning) (#<I>)
py
diff --git a/salt/modules/file.py b/salt/modules/file.py index <HASH>..<HASH> 100644 --- a/salt/modules/file.py +++ b/salt/modules/file.py @@ -2758,14 +2758,20 @@ def get_managed( # Copy the file to the minion and templatize it sfn = '' source_sum = {} + urlparsed_source = _urlparse(source) # if ...
Add support for sources of managed files to be local
py
diff --git a/lib/websearch_regression_tests.py b/lib/websearch_regression_tests.py index <HASH>..<HASH> 100644 --- a/lib/websearch_regression_tests.py +++ b/lib/websearch_regression_tests.py @@ -867,6 +867,7 @@ class WebSearchTestSearch(unittest.TestCase): unexpected_text=une...
BibIndex: new regression tests * Adds tests for remove_stopwords, remove_html_markup, remove_latex_markup. * Refactors other tests in bibindexadmin_regression_tests.py.
py
diff --git a/distutils/tests/test_bdist_wininst.py b/distutils/tests/test_bdist_wininst.py index <HASH>..<HASH> 100644 --- a/distutils/tests/test_bdist_wininst.py +++ b/distutils/tests/test_bdist_wininst.py @@ -1,7 +1,5 @@ """Tests for distutils.command.bdist_wininst.""" -import sys -import platform -import unittest +...
Prefer pytest for skip
py
diff --git a/redisdb/tests/test_e2e.py b/redisdb/tests/test_e2e.py index <HASH>..<HASH> 100644 --- a/redisdb/tests/test_e2e.py +++ b/redisdb/tests/test_e2e.py @@ -78,6 +78,7 @@ def test_e2e_v_3_2(dd_agent_check, master_instance): aggregator.assert_metric('redis.clients.biggest_input_buf', count=2, tags=tags) ...
Add missing assertion (#<I>)
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -7,7 +7,7 @@ license: GNU-GPL2 from setuptools import setup setup(name='pyprofiler', - version='27', + version='28', description='Profiler utility for python, graphical and textual, whole program or segmen...
pip Wednesday <I> March <I> (week:<I> day:<I>), <I>:<I>:<I>
py
diff --git a/gns3server/controller/__init__.py b/gns3server/controller/__init__.py index <HASH>..<HASH> 100644 --- a/gns3server/controller/__init__.py +++ b/gns3server/controller/__init__.py @@ -154,6 +154,7 @@ class Controller: self.remove_project(project) await self.load_projects() + ...
Launch projects marked for auto open after SIGHUP is received
py
diff --git a/describe/value/mixins.py b/describe/value/mixins.py index <HASH>..<HASH> 100644 --- a/describe/value/mixins.py +++ b/describe/value/mixins.py @@ -140,6 +140,7 @@ class PropertyMixin(object): def get(self): "Alias to invoke, but implies reading an attribute (instead of a method)." ret...
Added getting alias to get. Since invoking is an alias to invoke.
py
diff --git a/master/setup.py b/master/setup.py index <HASH>..<HASH> 100755 --- a/master/setup.py +++ b/master/setup.py @@ -416,17 +416,9 @@ if 'a' in version or 'b' in version: if LooseVersion(pip_dist.version) < LooseVersion('1.4'): raise RuntimeError(VERSION_MSG) -if sys.version_info[:2] == (2...
Don't check for python <I> in master `setup.py`. We don't support that version anyway.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -33,7 +33,7 @@ setup( 'pandas', 'pyyaml', 'scikit-learn', - 'torch == 0.4.1', + 'torch == 1.0', 'torchvision', 'torchtext', 'tqdm'
Upgrade python in setup.py to the new stable <I> version.
py
diff --git a/PySimpleGUI.py b/PySimpleGUI.py index <HASH>..<HASH> 100644 --- a/PySimpleGUI.py +++ b/PySimpleGUI.py @@ -1,7 +1,7 @@ #!/usr/bin/python3 -version = __version__ = "4.51.2.2 Unreleased" +version = __version__ = "4.51.2.3 Unreleased" _change_log = """ @@ -16,6 +16,8 @@ _change_log = """ ...
Fox for non-blocking windows support of the control click grab anywhere
py
diff --git a/rosetta/poutil.py b/rosetta/poutil.py index <HASH>..<HASH> 100644 --- a/rosetta/poutil.py +++ b/rosetta/poutil.py @@ -1,5 +1,5 @@ from datetime import datetime -from django.conf import settings +from django.conf import settings, ENVIRONMENT_VARIABLE from rosetta.conf import settings as rosetta_settings ...
Guess SETTINGS_MODULE is is set to None (in tests) When testing and using override_settings(), SETTINGS_MODULE is reset, so in case it is set to None, we try to guess it via the DJANGO_SETTINGS_MODULE env var.
py
diff --git a/tests/unit/test_futures.py b/tests/unit/test_futures.py index <HASH>..<HASH> 100644 --- a/tests/unit/test_futures.py +++ b/tests/unit/test_futures.py @@ -501,7 +501,7 @@ class TestBoundedExecutor(unittest.TestCase): self.assert_submit_would_block(second_task) def test_executor_clears_capaci...
Reduce chance of race condition in tests When adding a done callback to a future, it will execute immediately *in the current thread* if the future is marked as done. This means that you can have callbacks occuring simultaneously. We had a test that was relying on a pair of callbacks being ran one at a time and in ord...
py
diff --git a/master/buildbot/changes/gitpoller.py b/master/buildbot/changes/gitpoller.py index <HASH>..<HASH> 100644 --- a/master/buildbot/changes/gitpoller.py +++ b/master/buildbot/changes/gitpoller.py @@ -196,6 +196,7 @@ class GitPoller(base.ChangeSource): commit_timestamp = None # use current time ...
Gitpoller should set revision on new Change objects
py
diff --git a/mapchete/io/_path.py b/mapchete/io/_path.py index <HASH>..<HASH> 100644 --- a/mapchete/io/_path.py +++ b/mapchete/io/_path.py @@ -51,7 +51,7 @@ def path_exists(path): elif path.startswith("s3://"): bucket = get_boto3_bucket(path.split("/")[2]) key = "/".join(path.split("/")[3:]) - ...
update indexes on remote TileDirectories (#<I>) * handle path of tile not provided in output_tiles
py
diff --git a/validator/testcases/installrdf.py b/validator/testcases/installrdf.py index <HASH>..<HASH> 100644 --- a/validator/testcases/installrdf.py +++ b/validator/testcases/installrdf.py @@ -209,12 +209,12 @@ def _test_name(err, value): err.metadata["name"] = value if ff_pattern.match(value): - ...
Changed trademark error to warning for bug <I>
py
diff --git a/ayrton/functions.py b/ayrton/functions.py index <HASH>..<HASH> 100644 --- a/ayrton/functions.py +++ b/ayrton/functions.py @@ -260,6 +260,8 @@ client.close () # 45" self.result_channel.bind (('', port)) self.result_channel.l...
[*] make sure bash finishes in the _debug remotes.
py
diff --git a/tika/tika.py b/tika/tika.py index <HASH>..<HASH> 100644 --- a/tika/tika.py +++ b/tika/tika.py @@ -242,7 +242,9 @@ def callServer(verb, serverEndpoint, service, data, headers, verbose=Verbose, ti if verb not in httpVerbs: die('Tika Server call must be one of %s' % str(httpVerbs.keys())) v...
- fix for #<I>: from_file methods broke after UTF-8 fix. This closes #<I> thanks to Paul Tunison for discovering.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -30,7 +30,7 @@ if exists(join(SERVER, 'static', 'js')): shutil.rmtree(join(SERVER, 'static', 'js')) os.mkdir(join(SERVER, 'static', 'js')) shutil.copy(APP, join(SERVER, 'static/js')) -shutil.copytree(join(JSBUILD, 'js',...
don't copy unnecessary files from bokehjs
py
diff --git a/tools/fontbakery-fix-nameids.py b/tools/fontbakery-fix-nameids.py index <HASH>..<HASH> 100644 --- a/tools/fontbakery-fix-nameids.py +++ b/tools/fontbakery-fix-nameids.py @@ -1,6 +1,7 @@ #!/usr/bin/env python import argparse import os +import tabulate from fontTools import ttLib @@ -52,5 +53,4 @@ if...
Put tabulate import to top of file
py
diff --git a/labm8/py/sqlutil.py b/labm8/py/sqlutil.py index <HASH>..<HASH> 100644 --- a/labm8/py/sqlutil.py +++ b/labm8/py/sqlutil.py @@ -931,6 +931,10 @@ class BufferedDatabaseWriter(threading.Thread): self.max_buffer_size = max_buffer_size self.max_buffer_length = max_buffer_length + # Counters. + ...
Add flush and failure counters to db writer.
py
diff --git a/cumulusci/utils/yaml/cumulusci_yml.py b/cumulusci/utils/yaml/cumulusci_yml.py index <HASH>..<HASH> 100644 --- a/cumulusci/utils/yaml/cumulusci_yml.py +++ b/cumulusci/utils/yaml/cumulusci_yml.py @@ -98,10 +98,10 @@ class Git(CCIDictModel): class ApexDoc(CCIDictModel): - homepage: str - banner: st...
Make ApexDoc more flexible.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -2,7 +2,7 @@ from setuptools import setup setup( name='appdaemontestframework', - version='2.1.0', + version='2.1.1', description='Clean, human-readable tests for Appdaemon', long_description='See: http...
Release <I>: POSSIBLE BREAKING CHANGE: Patched 'hass_functions' now return 'None' by default
py
diff --git a/dipper/sources/OMIM.py b/dipper/sources/OMIM.py index <HASH>..<HASH> 100644 --- a/dipper/sources/OMIM.py +++ b/dipper/sources/OMIM.py @@ -470,14 +470,14 @@ class OMIM(Source): # add the alternate labels and includes as synonyms for label in other_labels: - model.a...
correct oboInOwl labels. hasDbXref is odd in that dipper only passes it on, does not create any itself
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -11,11 +11,10 @@ except ImportError: from distutils.core import setup packages = [ - 'stegano', - 'stegano.exif' + 'stegano' ] -requires = ['pillow'] +requires = ['pillow', 'piexif'] with open('README.rs...
Updated setup.py according to the recent changes.
py
diff --git a/simplefix/parser.py b/simplefix/parser.py index <HASH>..<HASH> 100644 --- a/simplefix/parser.py +++ b/simplefix/parser.py @@ -227,9 +227,8 @@ class FixParser(object): # skipcq: PYL-R0205 return None # Look for checksum. - if self.stop_tag is not None: - if self.pa...
Merge 'if' statements. Deepsource wants this. Not sure if this is actually interpretted more efficiently or if it's just "better".
py
diff --git a/salt/master.py b/salt/master.py index <HASH>..<HASH> 100644 --- a/salt/master.py +++ b/salt/master.py @@ -302,8 +302,9 @@ class AESFuncs(object): os.remove(tmp_pub) if pub.public_decrypt(token, 5) == 'salt': return True - log.error('Salt minion claiming to be {0} has a...
Fix syntax error by applying format() to juxtapose-concatenated strings rather that trying to juxtapose-concatenate the result of format() and a string
py