diff
stringlengths
139
3.65k
message
stringlengths
8
627
diff_languages
stringclasses
1 value
diff --git a/src/infi/docopt_completion/bash.py b/src/infi/docopt_completion/bash.py index <HASH>..<HASH> 100644 --- a/src/infi/docopt_completion/bash.py +++ b/src/infi/docopt_completion/bash.py @@ -2,7 +2,7 @@ from .common import CompletionGenerator import os import string -FILE_TEMPLATE = """{0}\ncomplete -F _{1}...
bash: use default completion in case our reply is empty. Fix #<I>
py
diff --git a/examples/ethane.py b/examples/ethane.py index <HASH>..<HASH> 100755 --- a/examples/ethane.py +++ b/examples/ethane.py @@ -6,7 +6,7 @@ from foyer.tests.utils import get_fn mol2_path = get_fn('ethane.mol2') untyped_ethane = pmd.load_file(mol2_path, structure=True) oplsaa = Forcefield(name='oplsaa') -ethan...
Outputting references for ethane example
py
diff --git a/fatbotslim/handlers.py b/fatbotslim/handlers.py index <HASH>..<HASH> 100644 --- a/fatbotslim/handlers.py +++ b/fatbotslim/handlers.py @@ -132,11 +132,11 @@ class CommandHandler(BaseHandler): def __init__(self): self.commands = { - PRIVMSG: self._dispatch, - NOTICE: sel...
rename CommandHandler._dispatch to CommandHandler._dispatch_trigger
py
diff --git a/pyipmi/picmg.py b/pyipmi/picmg.py index <HASH>..<HASH> 100644 --- a/pyipmi/picmg.py +++ b/pyipmi/picmg.py @@ -38,6 +38,7 @@ class Picmg: req.option = option rsp = self.send_message(req) check_completion_code(rsp.completion_code) + return rsp.rsp_data def fru_control...
picmg: Return data in fru_control_diagnostic_interrupt function This function now returns the additional response bytes provided (if any).
py
diff --git a/lago/plugins/vm.py b/lago/plugins/vm.py index <HASH>..<HASH> 100644 --- a/lago/plugins/vm.py +++ b/lago/plugins/vm.py @@ -542,7 +542,6 @@ class VMPlugin(plugins.Plugin): def alive(self): return self.state() == 'running' - @check_alive def ssh_reachable(self, tries=None, propagate_fa...
Don't use check_alive decorator in ssh_reachable check_alive decorator raise RuntimeError if the vm is not running. The API of ssh_reachable defines that "False" should be returned if the vm is not ssh reachable (which is the case when the vm is not running).
py
diff --git a/src/edeposit/amqp/storage/__init__.py b/src/edeposit/amqp/storage/__init__.py index <HASH>..<HASH> 100644 --- a/src/edeposit/amqp/storage/__init__.py +++ b/src/edeposit/amqp/storage/__init__.py @@ -9,6 +9,10 @@ import structures from structures import Publication from structures import DBPublication +f...
#4: SaveRequest, SearchResult and SearchRequest imported at top level.
py
diff --git a/python_utils/__about__.py b/python_utils/__about__.py index <HASH>..<HASH> 100644 --- a/python_utils/__about__.py +++ b/python_utils/__about__.py @@ -1,5 +1,5 @@ __package_name__ = 'python-utils' -__version__ = '2.5.3' +__version__ = '2.5.4' __author__ = 'Rick van Hattem' __author_email__ = 'Wolph@wol.p...
Incrementing version to <I>
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100755 --- a/setup.py +++ b/setup.py @@ -26,7 +26,7 @@ setup( platforms='any', install_requires=[ 'Flask>=0.9', - 'python-socketio>=2.1.0' + 'python-socketio>=4.0.0' ], tests_require=[ 'coverage'
updated python-socketio min version requirement to <I> (#<I>)
py
diff --git a/pysparkling/rdd.py b/pysparkling/rdd.py index <HASH>..<HASH> 100644 --- a/pysparkling/rdd.py +++ b/pysparkling/rdd.py @@ -842,24 +842,18 @@ class RDD(object): Number of elements to return. :returns: - Elements of the dataset. + Elements of the dataset in a list...
simplifying take(n) and add allowLocal=True
py
diff --git a/redongo/redongo_client.py b/redongo/redongo_client.py index <HASH>..<HASH> 100644 --- a/redongo/redongo_client.py +++ b/redongo/redongo_client.py @@ -5,7 +5,10 @@ from utils import cipher_utils from utils import serializer_utils import client_exceptions import exceptions -import ujson +try: + im...
added try exception when import ujson
py
diff --git a/rqalpha/utils/package_helper.py b/rqalpha/utils/package_helper.py index <HASH>..<HASH> 100644 --- a/rqalpha/utils/package_helper.py +++ b/rqalpha/utils/package_helper.py @@ -26,4 +26,4 @@ def import_mod(mod_name): system_log.error("Mod Import Error: {}", mod_name) system_log.error(e) ...
raise exception when import mod fail rather than hide it
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -35,7 +35,7 @@ setup( name='sultan', description='Command and Rule over your Shell', long_description=LONG_DESCRIPTION, - version='0.1.10', + version='0.1.11', author='David Daniel', author_email...
Bumped up the version to <I>
py
diff --git a/pushover.py b/pushover.py index <HASH>..<HASH> 100644 --- a/pushover.py +++ b/pushover.py @@ -218,7 +218,7 @@ class Client: """ valid_keywords = ["title", "priority", "sound", "callback", "timestamp", "url", "url_title", "device", - "ret...
Enable HTML Message Support Enable HTML Message Support as described in <URL>
py
diff --git a/normalize/identity.py b/normalize/identity.py index <HASH>..<HASH> 100644 --- a/normalize/identity.py +++ b/normalize/identity.py @@ -16,7 +16,7 @@ def record_id(object_, type_=None, selector=None): key_vals = list() pk_cols = type_.primary_key - if selector and pk_cols and not all(pk_cols.n...
Fix list comprehension How this even worked at all for the tests already is beyond my own comprehension.
py
diff --git a/openquake/engine/engine.py b/openquake/engine/engine.py index <HASH>..<HASH> 100644 --- a/openquake/engine/engine.py +++ b/openquake/engine/engine.py @@ -88,7 +88,7 @@ def expose_outputs(dstore): dskeys.add('uhs') # export them if 'hmaps' in dskeys and not oq.hazard_maps: dskeys.rem...
Fixed export of realizations Former-commit-id: d9b<I>d6bd<I>be8ed5d<I>ff5b5a7d<I>
py
diff --git a/tldap/manager.py b/tldap/manager.py index <HASH>..<HASH> 100644 --- a/tldap/manager.py +++ b/tldap/manager.py @@ -360,7 +360,6 @@ class ManyToManyDescriptor(object): lm.clear(commit=False) for v in value: lm.add(value, commit=False) - instance.save() ...
Don't committ in __set__, caller can do that.
py
diff --git a/raiden/network/proxies/token_network.py b/raiden/network/proxies/token_network.py index <HASH>..<HASH> 100644 --- a/raiden/network/proxies/token_network.py +++ b/raiden/network/proxies/token_network.py @@ -1456,6 +1456,8 @@ class TokenNetwork: msg = ( f"The provided lo...
Consistency changes. The smart contract uses the arguments participant and partner differently for the function `getChannelParticipantInfo` and `unlock`. This changes the proxy to use a consistent order of argument in the Python, the idea is to reduce confusion. On future versions of the smart contracts the parameter...
py
diff --git a/allegedb/allegedb/__init__.py b/allegedb/allegedb/__init__.py index <HASH>..<HASH> 100644 --- a/allegedb/allegedb/__init__.py +++ b/allegedb/allegedb/__init__.py @@ -492,10 +492,13 @@ class ORM(object): self._childbranch = defaultdict(set) """Immediate children of a branch""" sel...
Document a few internals just so I don't forget
py
diff --git a/tests/run_doctests.py b/tests/run_doctests.py index <HASH>..<HASH> 100755 --- a/tests/run_doctests.py +++ b/tests/run_doctests.py @@ -1,9 +1,7 @@ #!/usr/bin/env python -import os, sys -sys.path.append(os.path.abspath(os.path.dirname(__file__) + '/../src/')) - import doctest +import sys modules = [ ...
run_docstests.py relies on pyws being installed (at least in development mode)
py
diff --git a/safe/impact_functions/generic/classified_polygon_building/metadata_definitions.py b/safe/impact_functions/generic/classified_polygon_building/metadata_definitions.py index <HASH>..<HASH> 100644 --- a/safe/impact_functions/generic/classified_polygon_building/metadata_definitions.py +++ b/safe/impact_functio...
Add building type postprocessor to volcanic ash impact function (i.e. Generic)
py
diff --git a/imhotep/tools.py b/imhotep/tools.py index <HASH>..<HASH> 100644 --- a/imhotep/tools.py +++ b/imhotep/tools.py @@ -36,11 +36,14 @@ class Tool(object): """ retval = defaultdict(lambda: defaultdict(list)) - extensions = ' -o '.join(['-name "*%s"' % ext for ext in - ...
Updated tool filename finder to be more selective Now it will only run tools on altered files rather than every file.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100755 --- a/setup.py +++ b/setup.py @@ -45,7 +45,7 @@ env_marker_below_38 = "python_version < '3.8'" minimal_requirements = [ "click==7.*", - "h11>=0.8,<0.10", + "h11>=0.8,<0.11", "typing-extensions;" + env_marker_below_38, ]
Upgrade maximum h<I> dependency version to <I> (#<I>) The h<I> Changelog for <I> only include those items: - Drop support for Python <I>. - Support Python <I>. - Make error messages returned by match failures less ambiguous (#<I>).
py
diff --git a/docs/conf.py b/docs/conf.py index <HASH>..<HASH> 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -27,6 +27,7 @@ class Mock(object): MOCK_MODULES = ['notmuch', 'notmuch.globals', 'twisted', 'twisted.internet', + 'twisted.internet.defer', 'urwid', 'argparse...
added build-dummy for twisted.internet.defer
py
diff --git a/napalm_yang/parsers/xml.py b/napalm_yang/parsers/xml.py index <HASH>..<HASH> 100644 --- a/napalm_yang/parsers/xml.py +++ b/napalm_yang/parsers/xml.py @@ -11,7 +11,7 @@ class XMLParser(BaseParser): xml = etree.fromstring(mapping["from"]) for element in xml.xpath(mapping["xpath"]): - ...
Some devices format the output and add newlines
py
diff --git a/lettuce_webdriver/parallel_runner.py b/lettuce_webdriver/parallel_runner.py index <HASH>..<HASH> 100644 --- a/lettuce_webdriver/parallel_runner.py +++ b/lettuce_webdriver/parallel_runner.py @@ -127,13 +127,16 @@ class ParallelRunner(object): return processes = Pool(processes=self.pa...
Use imap_unordered for more opportunistic scheduling, prompt reporting.
py
diff --git a/master/buildbot/config.py b/master/buildbot/config.py index <HASH>..<HASH> 100644 --- a/master/buildbot/config.py +++ b/master/buildbot/config.py @@ -15,9 +15,10 @@ from __future__ import with_statement -import re import os +import re import sys +import warnings from buildbot.util import safeTransl...
Add warning about absolute builddir. Refs #<I>.
py
diff --git a/restclients/dao_implementation/sws.py b/restclients/dao_implementation/sws.py index <HASH>..<HASH> 100644 --- a/restclients/dao_implementation/sws.py +++ b/restclients/dao_implementation/sws.py @@ -60,7 +60,7 @@ class File(object): elif attr["Value"] == "week": ...
Fix a bug in dao_implementation/sws - the notice date attribute can be specific date
py
diff --git a/python/test/dev/modules.py b/python/test/dev/modules.py index <HASH>..<HASH> 100644 --- a/python/test/dev/modules.py +++ b/python/test/dev/modules.py @@ -90,3 +90,10 @@ test_load_caffe = Module( "test.load_caffe_test" ] ) + +test_tensorflow = Module( + name="tensorflow_test", + python_...
refine tensorflow support doc (#<I>) * refine tensorflow support * meet review * add tensorflow saver to python api and refine docs
py
diff --git a/amazon/api.py b/amazon/api.py index <HASH>..<HASH> 100644 --- a/amazon/api.py +++ b/amazon/api.py @@ -331,7 +331,9 @@ class AmazonProduct(object): self.api = api self.parent = None if 'region' in kwargs: - if kwargs['region'] != "US": + if kwargs['region'] =...
Fixed UK TLD from amazon.uk/ to amazon.co.uk/
py
diff --git a/ontospy/__init__.py b/ontospy/__init__.py index <HASH>..<HASH> 100755 --- a/ontospy/__init__.py +++ b/ontospy/__init__.py @@ -42,8 +42,15 @@ from .core.util import printDebug # *** # =========== +import socket +hostname = socket.gethostname() +if hostname in ("L7898", "Tartaruga"): + GLOBAL_DISABLE_...
GLOBAL_DISABLE_CACHE extra safety
py
diff --git a/armstrong/dev/tests/utils/base.py b/armstrong/dev/tests/utils/base.py index <HASH>..<HASH> 100644 --- a/armstrong/dev/tests/utils/base.py +++ b/armstrong/dev/tests/utils/base.py @@ -16,6 +16,7 @@ except ImportError: class ArmstrongTestCase(DjangoTestCase): if fudge: def setUp(self): + ...
Call `super()` on ArmstrongTestCase. A good idea, but not strictly necessary as DjangoTestCase doesn't have its own `setUp()` method.
py
diff --git a/modopt/opt/__init__.py b/modopt/opt/__init__.py index <HASH>..<HASH> 100644 --- a/modopt/opt/__init__.py +++ b/modopt/opt/__init__.py @@ -27,6 +27,6 @@ References """ -__all__ = ['cost', 'gradient', 'linear', 'algorithms', 'proximity', 'reweight'] +__all__ = ['cost', 'gradient', 'linear', 'algorithms'...
Modifying init to add metrics file
py
diff --git a/ptpython/key_bindings.py b/ptpython/key_bindings.py index <HASH>..<HASH> 100644 --- a/ptpython/key_bindings.py +++ b/ptpython/key_bindings.py @@ -157,13 +157,26 @@ def load_python_bindings(key_bindings_manager, settings, add_buffer, close_curre IsPythonBufferFocussed() & IsMultiline()) de...
Improved behaviour of the enter key: always return the value when pressing enter twice at the end of the input. (We will probably make this configurable later on.)
py
diff --git a/salt/modules/status.py b/salt/modules/status.py index <HASH>..<HASH> 100644 --- a/salt/modules/status.py +++ b/salt/modules/status.py @@ -132,7 +132,7 @@ def procs(): uind = 0 pind = 0 cind = 0 - plines = __salt__['cmd.run'](__grains__['ps']).splitlines() + plines = __salt__['cmd.run']...
Fixed the 'status.procs' and 'status.pid' functions for openvzhn environments. In openvzhn environments, running the 'ps' grain requires python_shell=True. This may also be true of environments where the 'ps' grain has been customized.
py
diff --git a/leaflet_storage/base_models.py b/leaflet_storage/base_models.py index <HASH>..<HASH> 100644 --- a/leaflet_storage/base_models.py +++ b/leaflet_storage/base_models.py @@ -224,7 +224,8 @@ class BaseFeature(NamedModel): max_length=32, blank=True, null=True, - verbose_name=_("...
Add a help_text to BaseFeature.color (cf #<I>)
py
diff --git a/ella/core/cache/utils.py b/ella/core/cache/utils.py index <HASH>..<HASH> 100644 --- a/ella/core/cache/utils.py +++ b/ella/core/cache/utils.py @@ -119,6 +119,17 @@ def get_cached_objects(pks, model=None, timeout=CACHE_TIMEOUT, missing=RAISE): ct, pk = lookup[k] to_get.setdefault(ct...
when multi-fetching Publishables, fetch individual content types
py
diff --git a/unit_lookup_table.py b/unit_lookup_table.py index <HASH>..<HASH> 100644 --- a/unit_lookup_table.py +++ b/unit_lookup_table.py @@ -100,7 +100,6 @@ default_unit_symbol_lut = { "angstrom": (cm_per_ang, dimensions.length), "Jy": (jansky_cgs, dimensions.specific_flux), "beam": (1.0, dimensions.di...
Massive refactoring of the FITS frontend. Everything has been subsumed into one FITSDataset class, which checks for files of the form (RA,Dec,?) and sets up the world coordinates accordingly. The FITS plotting classes have been made subclasses of their PlotWindow counterparts, but they need more work. --HG-- branch : ...
py
diff --git a/tutorials/mnist_tutorial_tf.py b/tutorials/mnist_tutorial_tf.py index <HASH>..<HASH> 100644 --- a/tutorials/mnist_tutorial_tf.py +++ b/tutorials/mnist_tutorial_tf.py @@ -95,9 +95,9 @@ def mnist_tutorial(train_start=0, train_end=60000, test_start=0, 'filename': filename } ckpt = tf.train....
fix case where ckpt is None
py
diff --git a/tests/test_basic.py b/tests/test_basic.py index <HASH>..<HASH> 100644 --- a/tests/test_basic.py +++ b/tests/test_basic.py @@ -66,7 +66,7 @@ class Location3(properties.HasProperties): class SomeOptions(APrimitive): - color = properties.Color("My color") + color = properties.Color("My color", defa...
Repeated properties test-fail
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 setup( name="drench", - version="0.0.9", + version="0.0.10", install_requires=['bitarray>=0.8.1', 'requests>=2.0.0'], packages=['drench'],
Updated setup to most recent version no.
py
diff --git a/gwpy/plotter/utils.py b/gwpy/plotter/utils.py index <HASH>..<HASH> 100644 --- a/gwpy/plotter/utils.py +++ b/gwpy/plotter/utils.py @@ -88,4 +88,3 @@ def marker_cycle(markers=None): return itertools.cycle(markers) else: return itertools.cycle(('o', 'x', '+', '^', 'D', 'H', '1')) -
plotter.utils: removed blank line
py
diff --git a/luigi/hadoop.py b/luigi/hadoop.py index <HASH>..<HASH> 100644 --- a/luigi/hadoop.py +++ b/luigi/hadoop.py @@ -158,7 +158,9 @@ def run_and_track_hadoop_job(arglist): logger.info(' '.join(arglist)) def track_process(arglist): - proc = subprocess.Popen(arglist, stdout=subprocess.PIPE, stder...
Fixed a potential deadlock if there's too much data on stdout <URL>
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100755 --- a/setup.py +++ b/setup.py @@ -29,7 +29,7 @@ from setuptools import setup from pygerrit import __version__ -REQUIRES = ['paramiko==1.11.0', 'pycrypto==2.3', 'requests==1.2.3'] +REQUIRES = ['paramiko==1.11.0', 'pycrypto==2.3', 'requests==2.0.1'] d...
Bump to requests <I> also in setup.py Change-Id: I<I>e0c<I>b<I>ef<I>f<I>f1c<I>ca6d7b4
py
diff --git a/verisure/session.py b/verisure/session.py index <HASH>..<HASH> 100644 --- a/verisure/session.py +++ b/verisure/session.py @@ -91,6 +91,7 @@ class Session(object): self._request_cookies = None # The login with stored cookies failed, try to get a new one + last_exception = None...
Raise on login error, after all attempts are exhausted (#<I>)
py
diff --git a/third_party/tvcm/third_party/beautifulsoup/polymer_soup.py b/third_party/tvcm/third_party/beautifulsoup/polymer_soup.py index <HASH>..<HASH> 100644 --- a/third_party/tvcm/third_party/beautifulsoup/polymer_soup.py +++ b/third_party/tvcm/third_party/beautifulsoup/polymer_soup.py @@ -8,4 +8,4 @@ import Beauti...
Fixed tab button style by allowing arbitrary nesting inside the <template> tag
py
diff --git a/autolab_core/rigid_transformations.py b/autolab_core/rigid_transformations.py index <HASH>..<HASH> 100644 --- a/autolab_core/rigid_transformations.py +++ b/autolab_core/rigid_transformations.py @@ -608,7 +608,7 @@ class RigidTransform(object): @staticmethod def core_q_to_ros_q(q_core): "...
Fix typo in ros quaternion calculation
py
diff --git a/tenant_schemas/urlresolvers.py b/tenant_schemas/urlresolvers.py index <HASH>..<HASH> 100644 --- a/tenant_schemas/urlresolvers.py +++ b/tenant_schemas/urlresolvers.py @@ -6,7 +6,13 @@ from tenant_schemas.utils import clean_tenant_url def reverse(viewname, urlconf=None, args=None, kwargs=None, current_a...
explicitly pass kwargs to django reverse
py
diff --git a/scripts/favourite_accounts.py b/scripts/favourite_accounts.py index <HASH>..<HASH> 100644 --- a/scripts/favourite_accounts.py +++ b/scripts/favourite_accounts.py @@ -8,7 +8,8 @@ from gnucash_portfolio import BookAggregate from piecash import Account book = BookAggregate() -favorites = book.accounts.get...
sorting fav accounts in output
py
diff --git a/derpibooru/image.py b/derpibooru/image.py index <HASH>..<HASH> 100644 --- a/derpibooru/image.py +++ b/derpibooru/image.py @@ -51,7 +51,7 @@ class Image(object): def __str__(self): - return "Image({0})".format(self.id_number) + return "Image({0})".format(self.id) @property def tags(self...
Replace another instance of id_number with id
py
diff --git a/salt/config.py b/salt/config.py index <HASH>..<HASH> 100644 --- a/salt/config.py +++ b/salt/config.py @@ -324,7 +324,7 @@ DEFAULT_MINION_OPTS = { 'auth_timeout': 60, 'random_master': False, 'minion_floscript': os.path.join(FLO_DIR, 'minion.flo'), - 'ioflo_verbose': 3, + 'ioflo_verbose'...
set ioflo verbose to 0, the noise is no longer needed by default
py
diff --git a/aldryn_apphooks_config/utils.py b/aldryn_apphooks_config/utils.py index <HASH>..<HASH> 100644 --- a/aldryn_apphooks_config/utils.py +++ b/aldryn_apphooks_config/utils.py @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- from app_data import AppDataContainer, app_registry from cms.apphook_pool import apphook_pool ...
Add checks to get_app_instance to avoid Resolver<I> even if namespace does not exists
py
diff --git a/waybackpack/session.py b/waybackpack/session.py index <HASH>..<HASH> 100644 --- a/waybackpack/session.py +++ b/waybackpack/session.py @@ -10,13 +10,16 @@ class Session(object): self.user_agent = user_agent def get(self, url, **kwargs): - headers = { "User-Agent": self.user_agent } + ...
Add stream=True to requests params
py
diff --git a/myElsClient.py b/myElsClient.py index <HASH>..<HASH> 100644 --- a/myElsClient.py +++ b/myElsClient.py @@ -61,6 +61,7 @@ class elsEntity: self.uri = URI # modifier functions + @abstractmethod def update(self, myElsClient, payloadType): """Fetches the latest data for this ent...
Add reading author name from API response; abstract read method in elsEntity root class.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -29,7 +29,7 @@ setuptools.setup( 'sqlserver_pymssql', ], install_requires=[ - 'Django >=1.7, <1.8', + 'Django', 'django-mssql', 'pymssql', ],
Do not enforce the Django version. This regularly trips up users. Better rely on documentation.
py
diff --git a/examples/app/weather/main.py b/examples/app/weather/main.py index <HASH>..<HASH> 100644 --- a/examples/app/weather/main.py +++ b/examples/app/weather/main.py @@ -53,8 +53,7 @@ def update_plot(attrname, old, new): plot.title.text = "Weather data for " + cities[city]['title'] src = get_dataset(df...
removed unnecessary for loop on source data update (#<I>) * removed unnecessary for loop on source data update * tabs -> spaces * remove bad indent
py
diff --git a/blockstack/lib/atlas.py b/blockstack/lib/atlas.py index <HASH>..<HASH> 100644 --- a/blockstack/lib/atlas.py +++ b/blockstack/lib/atlas.py @@ -62,7 +62,7 @@ from .storage import * MIN_ATLAS_VERSION = "0.14.0" PEER_LIFETIME_INTERVAL = 3600 # 1 hour -PEER_PING_INTERVAL = 60 # 1 minute +PEER_PING_I...
get new zonefile vectors once every <I> minutes
py
diff --git a/multiqc/multiqc.py b/multiqc/multiqc.py index <HASH>..<HASH> 100644 --- a/multiqc/multiqc.py +++ b/multiqc/multiqc.py @@ -356,7 +356,6 @@ def run( stderr=True, highlight=False, force_terminal=util_functions.force_term_colors(), - force_interactive=False if no_ansi else Non...
Revert setting force_interactive flag for rich with --no-ansi
py
diff --git a/src/feat/database/query.py b/src/feat/database/query.py index <HASH>..<HASH> 100644 --- a/src/feat/database/query.py +++ b/src/feat/database/query.py @@ -74,8 +74,8 @@ class Field(object): # If the row emitted the link with _id=doc_id this value is used, # otherwise the id of the emiting ...
Fix parsing a view index in a specific case.
py
diff --git a/matplotlib2tikz.py b/matplotlib2tikz.py index <HASH>..<HASH> 100644 --- a/matplotlib2tikz.py +++ b/matplotlib2tikz.py @@ -826,7 +826,7 @@ def _draw_line2d(data, obj): else: for (x, y) in zip(xdata, ydata): content.append('(%.15g,%.15g)\n' % (x, y)) - content.append('\n};\n') +...
remove superfluous newline in cooridinates
py
diff --git a/tools/TestScriptDoc/testscriptdoc_xmlformatter.py b/tools/TestScriptDoc/testscriptdoc_xmlformatter.py index <HASH>..<HASH> 100644 --- a/tools/TestScriptDoc/testscriptdoc_xmlformatter.py +++ b/tools/TestScriptDoc/testscriptdoc_xmlformatter.py @@ -249,7 +249,8 @@ class PythonDocGenerator: testScript...
issue #<I> - fix os detection
py
diff --git a/qa_tests/_utils.py b/qa_tests/_utils.py index <HASH>..<HASH> 100644 --- a/qa_tests/_utils.py +++ b/qa_tests/_utils.py @@ -13,6 +13,7 @@ # You should have received a copy of the GNU Affero General Public License # along with OpenQuake. If not, see <http://www.gnu.org/licenses/>. +import nrml import un...
qa_tests/_utils: Added a utility method to validate NRML/XML artifacts against the schema. Former-commit-id: aeaad1f<I>e<I>a3e6eecac<I>bba0b<I>dd9a6c
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -53,7 +53,11 @@ setup( install_requires=[ "%s >= 1.10.0" % dnspython, ], - tests_require=["testtools >= 0.9.21", "testscenarios >= 0.3"], + tests_require=[ + "coverage", + "testtools >= 0...
Add coverage to the tests_require array
py
diff --git a/pyminifier/pyminifier.py b/pyminifier/pyminifier.py index <HASH>..<HASH> 100755 --- a/pyminifier/pyminifier.py +++ b/pyminifier/pyminifier.py @@ -309,14 +309,17 @@ def main(): except Exception as err: print("Error reading %s:" % options.prepend) print(err) - # Automati...
be flexible about obfuscations with nolatin
py
diff --git a/src/collectors/postgres/postgres.py b/src/collectors/postgres/postgres.py index <HASH>..<HASH> 100644 --- a/src/collectors/postgres/postgres.py +++ b/src/collectors/postgres/postgres.py @@ -199,7 +199,9 @@ class QueryStats(object): return datname def fetch(self, pg_version): - if flo...
PostgresqlCollector: fix WalSegmentStats for Postgres <I> (directory has been renamed)
py
diff --git a/astral/test/test_AstralGeocoder.py b/astral/test/test_AstralGeocoder.py index <HASH>..<HASH> 100644 --- a/astral/test/test_AstralGeocoder.py +++ b/astral/test/test_AstralGeocoder.py @@ -49,6 +49,12 @@ def test_Adelaide(): db = AstralGeocoder() _city = db['Adelaide'] +def test_CandianCities()...
Added test for a Candian city.
py
diff --git a/Tank/stepper/stepper.py b/Tank/stepper/stepper.py index <HASH>..<HASH> 100644 --- a/Tank/stepper/stepper.py +++ b/Tank/stepper/stepper.py @@ -24,10 +24,12 @@ class AmmoFactory(object): ) def __len__(self): - # FIXME: wrong ammo count when loop_limit is set - lp_len = len(self....
test if LP has length before asking
py
diff --git a/word2vec/scripts_interface.py b/word2vec/scripts_interface.py index <HASH>..<HASH> 100644 --- a/word2vec/scripts_interface.py +++ b/word2vec/scripts_interface.py @@ -141,11 +141,14 @@ def run_cmd(command, verbose=False): proc = subprocess.Popen(command, stdout=subprocess.PIPE, ...
Update scripts_interface.py (#<I>) Python3: When reading stdout line by line from the subprocess, the overwriting character '\r' is not registered. Overwriting doesn't work in visualizing the training progress. This maybe not optimal as the error line can not be found by keyword 'ERROR:' as in the actual version.
py
diff --git a/ddg.py b/ddg.py index <HASH>..<HASH> 100644 --- a/ddg.py +++ b/ddg.py @@ -355,7 +355,7 @@ class DDG(object): # Expand the current SimRun successors = self._cfg.get_successors(run) - pending_exits = new_run.exits() + pending_exits = new_run.flat_exits() ...
Using flat_exit() to replace exit() in DDG.
py
diff --git a/sos/policies/redhat.py b/sos/policies/redhat.py index <HASH>..<HASH> 100644 --- a/sos/policies/redhat.py +++ b/sos/policies/redhat.py @@ -144,7 +144,7 @@ class RedHatPolicy(LinuxPolicy): self._in_container = True if ENV_HOST_SYSROOT in os.environ: self._host_sysroot =...
[redhat] fix RH containers without sysroot Attempting to run sosreport in a container currently will always traceback unless ENV_HOST_SYSROOT is set to '/'. Allow default NoneType sysroot to function as well. Resolves: #<I>
py
diff --git a/bot/action/standard/about.py b/bot/action/standard/about.py index <HASH>..<HASH> 100644 --- a/bot/action/standard/about.py +++ b/bot/action/standard/about.py @@ -42,6 +42,17 @@ class AboutAction(Action): self.donation_addresses ) + def __about_message(self, info: ProjectInfo): + ...
Create a __about_message method that creates an about message from a ProjectInfo instance
py
diff --git a/plenum/common/util.py b/plenum/common/util.py index <HASH>..<HASH> 100644 --- a/plenum/common/util.py +++ b/plenum/common/util.py @@ -5,6 +5,7 @@ import inspect import itertools import json import logging +from logging.handlers import TimedRotatingFileHandler import math import os import random @@ -2...
switch on file log rotation; make logs to be printed to file and stdout
py
diff --git a/dbkit.py b/dbkit.py index <HASH>..<HASH> 100644 --- a/dbkit.py +++ b/dbkit.py @@ -107,7 +107,7 @@ def connect(module, *args, **kwargs): conn = module.connect(*args, **kwargs) return Context(module, conn) -@contextmanager +@contextlib.contextmanager def transaction(): """ Sets up a co...
Decorated transaction() properly. I am a bad, bad man.
py
diff --git a/python/mxnet/numpy/random.py b/python/mxnet/numpy/random.py index <HASH>..<HASH> 100644 --- a/python/mxnet/numpy/random.py +++ b/python/mxnet/numpy/random.py @@ -267,7 +267,7 @@ def lognormal(mean=0.0, sigma=1.0, size=None, dtype=None, device=None, out=None) .. [1] Limpert, E., Stahel, W. A., and Abbt...
Fix broken web link (#<I>) Merging to unblock CI - my concerns can be discussed in issue if necessary
py
diff --git a/elasticsearch/connection/base.py b/elasticsearch/connection/base.py index <HASH>..<HASH> 100644 --- a/elasticsearch/connection/base.py +++ b/elasticsearch/connection/base.py @@ -81,7 +81,7 @@ class Connection(object): if body: body = body.decode('utf-8') - logger.info('> %s',...
Body in the logs should be debug-level Fixes #<I>, thanks traxair!
py
diff --git a/prawcore/auth.py b/prawcore/auth.py index <HASH>..<HASH> 100644 --- a/prawcore/auth.py +++ b/prawcore/auth.py @@ -35,7 +35,7 @@ class Authenticator(object): return response def authorize_url(self, duration, scopes, state): - """Return URL the used out-of-band to grant access to your ...
Fix transposed words in authorize_url docstring.
py
diff --git a/c4r/lib.py b/c4r/lib.py index <HASH>..<HASH> 100644 --- a/c4r/lib.py +++ b/c4r/lib.py @@ -101,5 +101,6 @@ pool = Pool(processes=1, initializer=init_worker) def process_variables(variables): for name, value in variables.iteritems(): - if 'bind' in value and hasattr(value['bind'], '__call__'):...
process_variables refactory
py
diff --git a/scapy/tools/automotive/obdscanner.py b/scapy/tools/automotive/obdscanner.py index <HASH>..<HASH> 100755 --- a/scapy/tools/automotive/obdscanner.py +++ b/scapy/tools/automotive/obdscanner.py @@ -107,8 +107,7 @@ def main(): raise SystemExit if channel is None or \ - bitrate is None...
Add files via upload (#<I>) Fixed OBD input param set
py
diff --git a/signals.py b/signals.py index <HASH>..<HASH> 100644 --- a/signals.py +++ b/signals.py @@ -33,32 +33,6 @@ before_handle_user_exception = _signals.signal( This signal is sent right before user exception handler is called. """ -webcoll_after_webpage_cache_update = _signals.signal( - 'webcoll-after-webp...
base: webcoll signals removal * INCOMPATIBLE Removes webcoll signals.
py
diff --git a/Lib/fontbakery/specifications/general.py b/Lib/fontbakery/specifications/general.py index <HASH>..<HASH> 100644 --- a/Lib/fontbakery/specifications/general.py +++ b/Lib/fontbakery/specifications/general.py @@ -164,18 +164,21 @@ def com_google_fonts_check_fontbakery_version(): try: import subproce...
fix crash on check/fontbakery_version (issue #<I>)
py
diff --git a/dataviews/plots.py b/dataviews/plots.py index <HASH>..<HASH> 100644 --- a/dataviews/plots.py +++ b/dataviews/plots.py @@ -967,10 +967,9 @@ class CoordinateGridPlot(OverlayPlot): def __init__(self, grid, **kwargs): if not isinstance(grid, CoordinateGrid): raise Exception("Coordina...
Simplified constructor of CoordinateGridPlot
py
diff --git a/windpowerlib/wind_speed.py b/windpowerlib/wind_speed.py index <HASH>..<HASH> 100644 --- a/windpowerlib/wind_speed.py +++ b/windpowerlib/wind_speed.py @@ -147,9 +147,9 @@ def v_wind_hellman(v_wind, v_wind_height, hub_height, hellman_exp=None, """ if hellman_exp is None: - try: + if...
Change try statement to if statement in v_wind_hellman
py
diff --git a/moneywagon/services.py b/moneywagon/services.py index <HASH>..<HASH> 100644 --- a/moneywagon/services.py +++ b/moneywagon/services.py @@ -1794,6 +1794,7 @@ class NeoCrypto(BitpayInsight): protocol = "https" domain = "insight.neocrypto.io" api_tag = 'insight-api' + name = "Neocrypt" cla...
added name to neocrypt service
py
diff --git a/cherrypy/lib/static.py b/cherrypy/lib/static.py index <HASH>..<HASH> 100644 --- a/cherrypy/lib/static.py +++ b/cherrypy/lib/static.py @@ -85,6 +85,13 @@ def serve_fileobj(fileobj, content_type=None, disposition=None, name=None): to "<disposition>; filename=<name>". If name is None, 'filename' will ...
Added a cautionary note to the docstring for serve_fileobj(), regarding the seek() performed on the file object when the request has a 'Range' header, and how this may result in incorrect behavior.
py
diff --git a/discord/appinfo.py b/discord/appinfo.py index <HASH>..<HASH> 100644 --- a/discord/appinfo.py +++ b/discord/appinfo.py @@ -87,6 +87,16 @@ class AppInfo: this field will be the URL slug that links to the store page .. versionadded:: 1.3 + + terms_of_service_url: Optional[:class:`st...
Add privacy policy and tos fields to AppInfo
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -1,14 +1,23 @@ #! /usr/bin/env python +import sys + from setuptools import find_packages, setup + +# Very old versions of setuptools do not support the python version +# specifier syntax, so logic must be defined in code (...
Add support for very old versions of setuptools The syntax "fastnumbers >= <I>; python_version > <I>" is "new" in the sense that there are still OSs (like CentOS) that use still have setuptools versions installed that do not support it. The solution is to selectively add the dependency using logic rather than declara...
py
diff --git a/productmd/composeinfo.py b/productmd/composeinfo.py index <HASH>..<HASH> 100644 --- a/productmd/composeinfo.py +++ b/productmd/composeinfo.py @@ -577,6 +577,8 @@ class VariantBase(productmd.common.MetadataBase): def _validate_variants(self): for variant_id in self: variant = self...
Fix validation for top-level Variant UIDs with dashes Dash (-) is removed from variant.id in this case. See <URL>
py
diff --git a/lib/svtplay_dl/service/dplay.py b/lib/svtplay_dl/service/dplay.py index <HASH>..<HASH> 100644 --- a/lib/svtplay_dl/service/dplay.py +++ b/lib/svtplay_dl/service/dplay.py @@ -62,11 +62,12 @@ class Dplay(Service): show = match.group(1) season = jsondata["data"]["attributes"]["seasonNumber"]...
dplay: add name of the episode in the filename fixes: #<I>
py
diff --git a/sqlserver/base.py b/sqlserver/base.py index <HASH>..<HASH> 100644 --- a/sqlserver/base.py +++ b/sqlserver/base.py @@ -27,7 +27,15 @@ DatabaseError = pytds.DatabaseError IntegrityError = pytds.IntegrityError -_SUPPORTED_OPTIONS = ['failover_partner'] +_SUPPORTED_OPTIONS = [ + 'dsn', 'timeout', + ...
Add support for all kwargs in pytds.connect (#<I>)
py
diff --git a/bigquery/client.py b/bigquery/client.py index <HASH>..<HASH> 100644 --- a/bigquery/client.py +++ b/bigquery/client.py @@ -761,8 +761,7 @@ class BigQueryClient(object): return response except HttpError as e: - logging.error('Problem with BigQuery insertAll: {0}' - ...
Updated logging in push_rows exception handler to use logging.exception so that the full stack trace is returned.
py
diff --git a/src/custodia/client.py b/src/custodia/client.py index <HASH>..<HASH> 100644 --- a/src/custodia/client.py +++ b/src/custodia/client.py @@ -12,9 +12,11 @@ import requests from requests.adapters import HTTPAdapter from requests.compat import unquote, urlparse +# requests 2.18 no longer vendors urllib3 # ...
Document requests <I> behavor change Also enable pylint's import-error checker after the block.
py
diff --git a/pymysql/connections.py b/pymysql/connections.py index <HASH>..<HASH> 100644 --- a/pymysql/connections.py +++ b/pymysql/connections.py @@ -575,8 +575,9 @@ class Connection(object): self.host_info = "socket %s:%d" % (self.host, self.port) if DEBUG: print('connected u...
Setting SO_KEEPALIVE only for TCP (#<I>)
py
diff --git a/smartcard/pcsc/PCSCReaderGroups.py b/smartcard/pcsc/PCSCReaderGroups.py index <HASH>..<HASH> 100644 --- a/smartcard/pcsc/PCSCReaderGroups.py +++ b/smartcard/pcsc/PCSCReaderGroups.py @@ -112,5 +112,5 @@ class PCSCReaderGroups(readergroups): readergroups.__init__(self, initlist) if __name__ == '_...
PCSCReaderGroups.py: fix sample code The sample code returned the PCSCReaderGroups(). We now return the PCSCReaderGroups().getreadergroups() list.
py
diff --git a/karaage/people/views/profile.py b/karaage/people/views/profile.py index <HASH>..<HASH> 100644 --- a/karaage/people/views/profile.py +++ b/karaage/people/views/profile.py @@ -239,9 +239,8 @@ def password_request(request): post_reset_redirect = reverse('kg_profile_reset_done') if request.method =...
Allow resetting locked passwords The fact that we got pass the @login_required decorator means that the user was in fact able to login successfully (e.g. via shibboleth) and should still be allowed to reset their password despite the fact it is locked. Fixes #<I>. Change-Id: Ia<I>eeee<I>bfddf6d<I>bcde9b<I>c0dcd7b<I>
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -19,7 +19,7 @@ setup(name='hdf5storage', author_email='fnordsie at gmail dt com', url='https://github.com/frejanordsiek/hdf5storage', packages=['hdf5storage'], - requires=['numpy', 'h5py (>= 2.1)'], +...
s/requires/install_requires
py
diff --git a/push_notifications/fields.py b/push_notifications/fields.py index <HASH>..<HASH> 100644 --- a/push_notifications/fields.py +++ b/push_notifications/fields.py @@ -46,7 +46,7 @@ class HexIntegerField(with_metaclass(models.SubfieldBase, models.BigIntegerField return self.__class__.__name__ def get_prep...
use '==' for comparison against empty string instead of 'is'
py
diff --git a/test/test_topology.py b/test/test_topology.py index <HASH>..<HASH> 100644 --- a/test/test_topology.py +++ b/test/test_topology.py @@ -265,7 +265,9 @@ class TestSingleServerTopology(TopologyTest): def test(): t.request_check_all() # We didn't forget prior average: .8 * 105...
Race in test_round_trip_time.
py
diff --git a/duolingo.py b/duolingo.py index <HASH>..<HASH> 100644 --- a/duolingo.py +++ b/duolingo.py @@ -221,6 +221,21 @@ class Duolingo(object): return True except AlreadyHaveStoreItemException: return False + + def buy_weekend_amulet(self): + """ + figure ...
Update duolingo.py Adding buy weekend amulet feature
py
diff --git a/volapi/volapi.py b/volapi/volapi.py index <HASH>..<HASH> 100644 --- a/volapi/volapi.py +++ b/volapi/volapi.py @@ -41,7 +41,7 @@ from .utils import delayed_close, html_to_text, random_id, to_json LOGGER = logging.getLogger(__name__) -__version__ = "5.1.0" +__version__ = "5.2.0" MAX_UNACKED = 10 BAS...
Add owner and Creation time to config (#7)
py
diff --git a/salt/cloud/clouds/gce.py b/salt/cloud/clouds/gce.py index <HASH>..<HASH> 100644 --- a/salt/cloud/clouds/gce.py +++ b/salt/cloud/clouds/gce.py @@ -25,10 +25,11 @@ Setting up Service Account Authentication: - Create or navigate to your desired Project. - Make sure Google Compute Engine service is enabl...
Fixed the setup instructions Fixed the instructions in the code to match the website (<URL>).
py
diff --git a/mitogen/master.py b/mitogen/master.py index <HASH>..<HASH> 100644 --- a/mitogen/master.py +++ b/mitogen/master.py @@ -1279,7 +1279,8 @@ class Router(mitogen.parent.Router): self.broker.defer(stream.on_disconnect, self.broker) def disconnect_all(self): - for stream in self._stream_by_...
since correctly detecting python3 now, makes 'def disconnect_all()' python3-safe
py