diff
stringlengths
139
3.65k
message
stringlengths
8
627
diff_languages
stringclasses
1 value
diff --git a/salt/modules/network.py b/salt/modules/network.py index <HASH>..<HASH> 100644 --- a/salt/modules/network.py +++ b/salt/modules/network.py @@ -984,7 +984,8 @@ def mod_hostname(hostname): if 'Static hostname' in line[0]: o_hostname = line[1].strip() elif not salt.utils.is_s...
Add NILinuxRT mod_hostname support * Coreutils hostname does not support a -f flag so an error message was printed whenever attempting to set the hostname. Switch to using more pythonic solution that does not have this issue.
py
diff --git a/geomdl/abstract.py b/geomdl/abstract.py index <HASH>..<HASH> 100644 --- a/geomdl/abstract.py +++ b/geomdl/abstract.py @@ -171,6 +171,7 @@ class SplineGeometry(Geometry): def __init__(self, **kwargs): super(SplineGeometry, self).__init__(**kwargs) + self._geometry_type = "spline" # g...
Set default geometry of BSplineGeometry classes as "spline"
py
diff --git a/OpenPNM/Base/__Core__.py b/OpenPNM/Base/__Core__.py index <HASH>..<HASH> 100644 --- a/OpenPNM/Base/__Core__.py +++ b/OpenPNM/Base/__Core__.py @@ -178,7 +178,9 @@ class Core(dict): **'complete'** : Removes all of the above AND sets the 'pore.all' and 'throat.all' labels to zero l...
Update doc string to discourage the use of the 'complete' mode in the clear method.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -56,7 +56,7 @@ install_requires = setup_requires + ['Mako>=1.0.1', 'argparse>=1.3.0', 'decorator>=3.4.2', 'scipy>=0.13.0', - 'weave>0.1...
Weave's setup.py is set to <I>-dev
py
diff --git a/apps/ks.py b/apps/ks.py index <HASH>..<HASH> 100644 --- a/apps/ks.py +++ b/apps/ks.py @@ -473,7 +473,7 @@ def calc(args): output_h = must_open(opts.outfile, "w") print >> output_h, header - work_dir = op.join(os.getcwd(), "syn_analysis") + work_dir = "syn_analysis" mkdir(work_dir) ...
fix issue #4, avoid generating full path so that yn<I> wouldn't crash on long names
py
diff --git a/pricedb/app.py b/pricedb/app.py index <HASH>..<HASH> 100644 --- a/pricedb/app.py +++ b/pricedb/app.py @@ -36,4 +36,5 @@ class PriceDbApplication: header = "symbol,date,value,denom" command = f"insert into price ({header}) values ('{price.symbol}','{date_iso}',{store_value},{store_denom}...
#1 price parsing ready for saving
py
diff --git a/datatables/__init__.py b/datatables/__init__.py index <HASH>..<HASH> 100644 --- a/datatables/__init__.py +++ b/datatables/__init__.py @@ -242,7 +242,7 @@ class DataTables: search_value2 = self.request_values.get( searchableColumnValue % idx) - if search_value2 is ...
Fields with None value should not be filtered if column search is empty
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100755 --- a/setup.py +++ b/setup.py @@ -19,7 +19,7 @@ setup( packages=["jsonget", "jsonget_test"], package_data={"jsonget": ["py.typed"]}, python_requires=">=3.5", - tests_require=["asserts>=0.6, <0.8"], + tests_require=["asserts>=0.6, <0.9"], ...
Fix setup: compatible with asserts <I>
py
diff --git a/epa/gics/gics.py b/epa/gics/gics.py index <HASH>..<HASH> 100644 --- a/epa/gics/gics.py +++ b/epa/gics/gics.py @@ -13,7 +13,12 @@ class GICS(Envirofacts): def __init__(self): super(GICS, self).__init__() self.lookup_table = lookup_table - self.lookup_methods = ['construction'] ...
Added lookup methods for GICS
py
diff --git a/haproxy/logfile.py b/haproxy/logfile.py index <HASH>..<HASH> 100644 --- a/haproxy/logfile.py +++ b/haproxy/logfile.py @@ -82,7 +82,6 @@ class Log(object): """ for line in logfile: - self.total_lines += 1 stripped_line = line.strip() parsed_line = Lin...
Alternative way to calculate `total_lines`
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -8,7 +8,7 @@ with open('requirements.txt') as f: setuptools.setup( name="luthor-for-lex", - version='0.0.13', + version='0.0.14.dev0', author="Troy Larson", author_email="troylar@gmail.com", descri...
Back to development: <I>
py
diff --git a/spotify/client.py b/spotify/client.py index <HASH>..<HASH> 100644 --- a/spotify/client.py +++ b/spotify/client.py @@ -46,6 +46,14 @@ class Client: def __repr__(self): return f"<spotify.Client: {self.http.client_id!r}>" + async def __aenter__(self) -> "Client": + return self + + ...
Add an async context manager to `spotify.Client`
py
diff --git a/OpenSSL/test/test_ssl.py b/OpenSSL/test/test_ssl.py index <HASH>..<HASH> 100644 --- a/OpenSSL/test/test_ssl.py +++ b/OpenSSL/test/test_ssl.py @@ -558,12 +558,14 @@ class ContextTests(TestCase, _LoopbackMixin): """ capath = self.mktemp() makedirs(capath) - # Hash value comp...
Adjust another test to account for another changed hash algorithm in OpenSSL <I>
py
diff --git a/lib/websearch_webinterface.py b/lib/websearch_webinterface.py index <HASH>..<HASH> 100644 --- a/lib/websearch_webinterface.py +++ b/lib/websearch_webinterface.py @@ -68,8 +68,11 @@ websearch_templates = invenio.template.load('websearch') search_results_default_urlargd = websearch_templates.search_result...
Catch exception thrown when retrieving available output formats when mysql is stopped.
py
diff --git a/spyder/plugins/ipythonconsole/tests/test_ipythonconsole.py b/spyder/plugins/ipythonconsole/tests/test_ipythonconsole.py index <HASH>..<HASH> 100644 --- a/spyder/plugins/ipythonconsole/tests/test_ipythonconsole.py +++ b/spyder/plugins/ipythonconsole/tests/test_ipythonconsole.py @@ -303,14 +303,14 @@ def tes...
Testing: Improve test for the automatic backend
py
diff --git a/pymc/distributions.py b/pymc/distributions.py index <HASH>..<HASH> 100755 --- a/pymc/distributions.py +++ b/pymc/distributions.py @@ -328,8 +328,9 @@ def stochastic_from_dist(name, logp, random=None, logp_partial_gradients={}, dty docstr += ' trace=True, rseed=True, doc=None, verbose=None, debug=False...
Modified stochastic_from_dist so that logp with no docstring is allowed.
py
diff --git a/knights/compiler.py b/knights/compiler.py index <HASH>..<HASH> 100644 --- a/knights/compiler.py +++ b/knights/compiler.py @@ -5,7 +5,7 @@ from .parser import Parser from .utils import Helpers -def kompile(src, raw=False, filename='<compiler>'): +def kompile(src, raw=False, filename='<compiler>', **kwa...
Add option to print astor reconstructed source of template
py
diff --git a/great_expectations/cli/cli.py b/great_expectations/cli/cli.py index <HASH>..<HASH> 100644 --- a/great_expectations/cli/cli.py +++ b/great_expectations/cli/cli.py @@ -30,7 +30,7 @@ from .init import ( ) from .util import cli_message from great_expectations.render.view import DefaultJinjaPageView -from gr...
Use heuristic to allow rendering prescriptive suites from CLI
py
diff --git a/lib/qprompt.py b/lib/qprompt.py index <HASH>..<HASH> 100644 --- a/lib/qprompt.py +++ b/lib/qprompt.py @@ -289,10 +289,10 @@ def ask(msg="Enter input", fmt=None, dft=None, vld=None, shw=True, blk=False): msg += " [%s]" % (dft if type(dft) is str else repr(dft)) vld.append(dft) if vld:...
Minor update to how blk is handled in ask.
py
diff --git a/pytablewriter/style/_style.py b/pytablewriter/style/_style.py index <HASH>..<HASH> 100644 --- a/pytablewriter/style/_style.py +++ b/pytablewriter/style/_style.py @@ -240,11 +240,11 @@ class Style: return all( [ - self.align is other.align, - self.font_s...
Fix comparison of Style.__eq__ method
py
diff --git a/codenerix/management/commands/touch.py b/codenerix/management/commands/touch.py index <HASH>..<HASH> 100644 --- a/codenerix/management/commands/touch.py +++ b/codenerix/management/commands/touch.py @@ -113,7 +113,9 @@ class Command(BaseCommand, Debugger): # Ask the user if would really lik...
Compatibility between python2 and python3
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -260,7 +260,7 @@ def get_version_info(): # If this is a release or another kind of source distribution of PyCBC except: - version = '1.6.6' + version = '1.6.7' release = 'True' date ...
Set for <I> release (#<I>)
py
diff --git a/pandoc_fignos.py b/pandoc_fignos.py index <HASH>..<HASH> 100644 --- a/pandoc_fignos.py +++ b/pandoc_fignos.py @@ -35,6 +35,8 @@ import re import functools import itertools +import io +import sys # pylint: disable=import-error import pandocfilters @@ -47,9 +49,13 @@ LABEL_PATTERN = re.compile(r'(fig:...
Perform different handling depending on python 2 or 3.
py
diff --git a/openquake/server/db/actions.py b/openquake/server/db/actions.py index <HASH>..<HASH> 100644 --- a/openquake/server/db/actions.py +++ b/openquake/server/db/actions.py @@ -586,3 +586,18 @@ def get_longest_jobs(db): SELECT id, user_name, julianday(stop_time) - julianday(start_time) AS days FROM job WHERE st...
Added a command oq db find Former-commit-id: 8c<I>b1ca3e<I>e<I>cf<I>cbe1c0c9a<I>cd9
py
diff --git a/looper/models.py b/looper/models.py index <HASH>..<HASH> 100644 --- a/looper/models.py +++ b/looper/models.py @@ -1196,8 +1196,15 @@ class Project(AttributeDict): def make_optarg_text(opt, arg): """ Transform flag/option into CLI-ready text version. """ - return "{} {}".f...
handle non-string argument to pipeline option
py
diff --git a/src/sos/targets.py b/src/sos/targets.py index <HASH>..<HASH> 100644 --- a/src/sos/targets.py +++ b/src/sos/targets.py @@ -434,7 +434,7 @@ class path(type(Path())): return True def fullname(self): - return str(self.expanduser().resolve()) + return os.path.abspath(os.path.ex...
Avoid infinite recursion in resolving fullname under windows
py
diff --git a/pwkit/environments/casa/scripting.py b/pwkit/environments/casa/scripting.py index <HASH>..<HASH> 100644 --- a/pwkit/environments/casa/scripting.py +++ b/pwkit/environments/casa/scripting.py @@ -24,7 +24,7 @@ from ... import PKError, cli, reraise_context from . import CasaEnvironment -casapy_argv = ['c...
pwkit/environments/casa/scripting.py: run "casa" instead of "casapy" CASA <I> starts transitioning to the main user interface being launched with the command "casa" rather than "casapy". I'm not sure for how long this command has been provided, so this change may break backwards compatibility, but I'd rather just comm...
py
diff --git a/pronto/utils/io.py b/pronto/utils/io.py index <HASH>..<HASH> 100644 --- a/pronto/utils/io.py +++ b/pronto/utils/io.py @@ -54,7 +54,7 @@ class EncodedFile(codecs.StreamRecoder): return chunk.replace(b'\r\n', b'\n') def readinto(self, buffer): - chunk = self.read(len(buffer)-1) + ...
Fix `EncodedFile` issue with weird PyPI I/O behaviour
py
diff --git a/djsupervisor/config.py b/djsupervisor/config.py index <HASH>..<HASH> 100644 --- a/djsupervisor/config.py +++ b/djsupervisor/config.py @@ -99,7 +99,7 @@ def get_merged_config(**options): # talk to supervisord. It's passworded based on secret key. # If they have configured a unix socket then use...
ensure username is shorter than 8 chars
py
diff --git a/test/test_cli.py b/test/test_cli.py index <HASH>..<HASH> 100644 --- a/test/test_cli.py +++ b/test/test_cli.py @@ -1,6 +1,7 @@ """Tests for the cli module""" import unittest +from unittest import mock from khard import cli from khard import query @@ -8,6 +9,7 @@ from khard import query from .helper...
Mock config file in cli tests
py
diff --git a/spyderlib/plugins/editor.py b/spyderlib/plugins/editor.py index <HASH>..<HASH> 100644 --- a/spyderlib/plugins/editor.py +++ b/spyderlib/plugins/editor.py @@ -2013,7 +2013,6 @@ class Editor(SpyderPluginWidget): return (fname, wdir, args, interact, debug, python, python_args...
Removed debug print accidently committed with revision c<I>dabdfa
py
diff --git a/moto/sqs/models.py b/moto/sqs/models.py index <HASH>..<HASH> 100644 --- a/moto/sqs/models.py +++ b/moto/sqs/models.py @@ -16,7 +16,7 @@ from .exceptions import ( ) DEFAULT_ACCOUNT_ID = 123456789012 - +DEFAULT_SENDER_ID = "AIDAIT2UOQQY3AUEKVGXU" class Message(object): def __init__(self, message_...
Use a sane aws sender_id from SQS. (#<I>)
py
diff --git a/src/aws_encryption_sdk/identifiers.py b/src/aws_encryption_sdk/identifiers.py index <HASH>..<HASH> 100644 --- a/src/aws_encryption_sdk/identifiers.py +++ b/src/aws_encryption_sdk/identifiers.py @@ -135,6 +135,8 @@ class AuthenticationSuite(Enum): class AlgorithmSuite(Enum): # pylint: disable=too-many-ins...
adding explicit statement about supported AlgorithmSuites
py
diff --git a/lark/exceptions.py b/lark/exceptions.py index <HASH>..<HASH> 100644 --- a/lark/exceptions.py +++ b/lark/exceptions.py @@ -55,7 +55,7 @@ class UnexpectedInput(LarkError): try: parse_fn(malformed) except UnexpectedInput as ut: - if ut....
Improved `match_examples` with `UnexpectedToken.accepts`
py
diff --git a/kafka/coordinator/consumer.py b/kafka/coordinator/consumer.py index <HASH>..<HASH> 100644 --- a/kafka/coordinator/consumer.py +++ b/kafka/coordinator/consumer.py @@ -2,6 +2,7 @@ from __future__ import absolute_import, division import collections import copy +import functools import logging import tim...
Ignore lookup_coordinator result in commit_offsets_async (#<I>)
py
diff --git a/pystache/tests/test_doctests.py b/pystache/tests/test_doctests.py index <HASH>..<HASH> 100644 --- a/pystache/tests/test_doctests.py +++ b/pystache/tests/test_doctests.py @@ -37,6 +37,10 @@ text_file_paths = ['README.rst'] # TODO: find a substitute for the load_tests protocol for Python versions # befor...
Added a TODO re: correcting the test count when running nosetests.
py
diff --git a/pygeotools/lib/timelib.py b/pygeotools/lib/timelib.py index <HASH>..<HASH> 100755 --- a/pygeotools/lib/timelib.py +++ b/pygeotools/lib/timelib.py @@ -9,7 +9,6 @@ import time import numpy as np import matplotlib.dates -import dateutil.parser #Seconds per year spy = 86400.*365.25 @@ -71,6 +70,7 @@ de...
attempt to fix timelib doc generation
py
diff --git a/biomart/dataset.py b/biomart/dataset.py index <HASH>..<HASH> 100644 --- a/biomart/dataset.py +++ b/biomart/dataset.py @@ -145,7 +145,7 @@ class BiomartDataset(object): attribute = biomart.BiomartAttribute(name=name, display_name=line[1]) self._attribute_pages[page].add(att...
Replace hardcoded formatter with a variable
py
diff --git a/great_expectations/cli/datasource.py b/great_expectations/cli/datasource.py index <HASH>..<HASH> 100644 --- a/great_expectations/cli/datasource.py +++ b/great_expectations/cli/datasource.py @@ -265,12 +265,15 @@ def _add_pandas_datasource(context, passthrough_generator_only=True, prompt_for_ if passth...
Stopped adding a passthrough generator to newly added datasources
py
diff --git a/ocrd/ocrd/workspace.py b/ocrd/ocrd/workspace.py index <HASH>..<HASH> 100644 --- a/ocrd/ocrd/workspace.py +++ b/ocrd/ocrd/workspace.py @@ -273,9 +273,6 @@ class Workspace(): 'y': 0, 'w': page_image.width, 'h': page_image.height} - # re...
image_from_page: ensure page_xywh has 'angle'
py
diff --git a/great_expectations/data_context/data_context.py b/great_expectations/data_context/data_context.py index <HASH>..<HASH> 100644 --- a/great_expectations/data_context/data_context.py +++ b/great_expectations/data_context/data_context.py @@ -167,7 +167,7 @@ class DataContext(object): sys.path.append(s...
Absolute path and dir creator in resource writer
py
diff --git a/txtorcon/test/test_fsm.py b/txtorcon/test/test_fsm.py index <HASH>..<HASH> 100644 --- a/txtorcon/test/test_fsm.py +++ b/txtorcon/test/test_fsm.py @@ -67,7 +67,10 @@ class FsmTests(unittest.TestCase): f.write(fsm.dotty()) f.close() try: - subprocess.chec...
temporary fix for pre-<I> Pythons (which lack subprocess.check_output)
py
diff --git a/test/suite/utf-8.py b/test/suite/utf-8.py index <HASH>..<HASH> 100644 --- a/test/suite/utf-8.py +++ b/test/suite/utf-8.py @@ -3,18 +3,18 @@ class Rectangle(Blob): - def __init__(self, width, height, - color='black', emphasis=None, highlight=0): - if width == 0 and...
Reindent pep8 alone did not detect this.
py
diff --git a/salt/modules/dockerng.py b/salt/modules/dockerng.py index <HASH>..<HASH> 100644 --- a/salt/modules/dockerng.py +++ b/salt/modules/dockerng.py @@ -2133,7 +2133,10 @@ def list_containers(**kwargs): ''' ret = set() for item in six.itervalues(ps_(all=kwargs.get('all', False))): - for c_na...
Check Names kwarg is not None
py
diff --git a/uni_form/tests/runtests.py b/uni_form/tests/runtests.py index <HASH>..<HASH> 100755 --- a/uni_form/tests/runtests.py +++ b/uni_form/tests/runtests.py @@ -8,17 +8,15 @@ parent = os.path.dirname(os.path.dirname(os.path.dirname( sys.path.insert(0, parent) -from django.test.simple import run_tests +from d...
Updating runtests to use DjangoTestSuiteRunner
py
diff --git a/vdom/tests/test_core.py b/vdom/tests/test_core.py index <HASH>..<HASH> 100644 --- a/vdom/tests/test_core.py +++ b/vdom/tests/test_core.py @@ -6,17 +6,17 @@ from ..core import _flatten_children, toJSON def test_flatten_children(): # when the first argument is an array, interpret it as the primary ar...
run yapf over the test file
py
diff --git a/docs/conf.py b/docs/conf.py index <HASH>..<HASH> 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -22,9 +22,6 @@ import os sys.path.insert(0, "../") import carrot -from django.conf import settings -if not settings.configured: - settings.configure() # General configuration # ---------------------
Sphinx docs: Remove django dependency when building docs. Thanks jetfar!
py
diff --git a/normalize/property/__init__.py b/normalize/property/__init__.py index <HASH>..<HASH> 100644 --- a/normalize/property/__init__.py +++ b/normalize/property/__init__.py @@ -302,9 +302,11 @@ class LazyProperty(Property): """ if obj is None: return self - value = self.get_d...
LazyProperty should double-check before firing LazyProperty expects that Python itself will short-cut its read when it is not called as SafeLazyProperty; however, if you are using a metaprogramming technique which is calling __get__ directly to get the current value of the attribute, the lazy attribute will fire anywa...
py
diff --git a/tensorboard/plugins/interactive_inference/witwidget/notebook/colab/wit.py b/tensorboard/plugins/interactive_inference/witwidget/notebook/colab/wit.py index <HASH>..<HASH> 100644 --- a/tensorboard/plugins/interactive_inference/witwidget/notebook/colab/wit.py +++ b/tensorboard/plugins/interactive_inference/w...
Fix broken What-If Tool path string (#<I>)
py
diff --git a/dosagelib/plugins/s.py b/dosagelib/plugins/s.py index <HASH>..<HASH> 100644 --- a/dosagelib/plugins/s.py +++ b/dosagelib/plugins/s.py @@ -563,3 +563,19 @@ class SupernormalStep(_BasicScraper): imageSearch = compile(tagre("img", "src", r'(%scomics/[^"]+)' % rurl)) prevSearch = compile(tagre("a", "...
Update s.py Added Sherman's Lagoon, namer is not perfect.
py
diff --git a/src/graphql/execution/execute.py b/src/graphql/execution/execute.py index <HASH>..<HASH> 100644 --- a/src/graphql/execution/execute.py +++ b/src/graphql/execution/execute.py @@ -987,6 +987,8 @@ class ExecutionContext: subfields are not repeatedly calculated, which saves overhead when resolving ...
Add comment to explain why we're using id() for caching
py
diff --git a/liquimigrate/management/commands/liquibase.py b/liquimigrate/management/commands/liquibase.py index <HASH>..<HASH> 100644 --- a/liquimigrate/management/commands/liquibase.py +++ b/liquimigrate/management/commands/liquibase.py @@ -2,6 +2,7 @@ from django.conf import settings from django.core.management.bas...
FIXED: run cmdline than just print them ;)
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -227,7 +227,7 @@ cassandra = [ 'cassandra-driver>=3.13.0,<4', ] celery = [ - 'celery~=5.1,>=5.1.2', + 'celery>=5.2.3', 'flower~=1.0.0', ] cgroups = [
upgrade celery <I> (#<I>)
py
diff --git a/pug/miner/forms.py b/pug/miner/forms.py index <HASH>..<HASH> 100644 --- a/pug/miner/forms.py +++ b/pug/miner/forms.py @@ -25,7 +25,7 @@ class GetLagForm(forms.Form): max_length=256, label='Refurb Account', initial='', - help_text="e.g. 113656, 100479, 105158", + hel...
add help text to suggest strings instead of numbers for accounts and R-codes
py
diff --git a/mlbgame/game.py b/mlbgame/game.py index <HASH>..<HASH> 100644 --- a/mlbgame/game.py +++ b/mlbgame/game.py @@ -159,7 +159,10 @@ class GameBoxScore(object): data.pop('game_id', None) self.innings = [] for x in sorted(data): - result = {'inning':int(x), 'home':int(data[x]...
Fix exception when score is not an int When the home team does not bat in the bottom of the 9th there is an 'x' instead of a number, this patches that bug
py
diff --git a/restless/pyr.py b/restless/pyr.py index <HASH>..<HASH> 100644 --- a/restless/pyr.py +++ b/restless/pyr.py @@ -42,7 +42,7 @@ class PyramidResource(Resource): :param routename_prefix: (Optional) A prefix for the URL's name (for resolving). The default is ``None``, which will autocreate ...
Fixed a documentation typo in the Pyramid code. Fixes #<I>. Thanks for the report, harnash!
py
diff --git a/pymbar/tests/test_mbar.py b/pymbar/tests/test_mbar.py index <HASH>..<HASH> 100644 --- a/pymbar/tests/test_mbar.py +++ b/pymbar/tests/test_mbar.py @@ -109,14 +109,13 @@ def test_ukln(mbar_and_test_kln): free_energies_almost_equal(fe, fe_sigma, test.analytical_free_energies()) -def test_duplicate_st...
Fix tests (we need caplog instead of capsys now)
py
diff --git a/tests/plots/test_declarative.py b/tests/plots/test_declarative.py index <HASH>..<HASH> 100644 --- a/tests/plots/test_declarative.py +++ b/tests/plots/test_declarative.py @@ -468,7 +468,6 @@ def test_declarative_barb_options(): @needs_cartopy def test_declarative_barb_earth_relative(): """Test making...
Remove unneeded numpy imports in declarative tests
py
diff --git a/py3status/modules/arch_updates.py b/py3status/modules/arch_updates.py index <HASH>..<HASH> 100644 --- a/py3status/modules/arch_updates.py +++ b/py3status/modules/arch_updates.py @@ -114,7 +114,7 @@ class Py3status: pending_updates = b"" try: - pending_updates = str(subprocess...
Fix usage of cower in arch_updates module There is no `-b` flag, using it leads to zero results.
py
diff --git a/elyzer/__main__.py b/elyzer/__main__.py index <HASH>..<HASH> 100644 --- a/elyzer/__main__.py +++ b/elyzer/__main__.py @@ -4,10 +4,15 @@ from elyzer import stepWise, getAnalyzer def parse_args(): parser = argparse.ArgumentParser() - parser.add_argument('--es', type=str) - parser.add_argument('...
Helps with command line parsing Previously, missing CLI args threw an unhelpful Python exception, so I've indicated which arguments are required, which can be defaulted, and added help text whet teh user types `elyzer --help`
py
diff --git a/src/foremast/elb/create_elb.py b/src/foremast/elb/create_elb.py index <HASH>..<HASH> 100644 --- a/src/foremast/elb/create_elb.py +++ b/src/foremast/elb/create_elb.py @@ -204,7 +204,8 @@ class SpinnakerELB: policyname_tmp = "{0}-{1}-{2}-{3}" if sticky_type == 'app': ...
Fixed invalid app cookie stickiness policy names -Some JS libraries ship with dots by default in their cookie name, this at least strips it out.
py
diff --git a/datapackage/datapackage.py b/datapackage/datapackage.py index <HASH>..<HASH> 100644 --- a/datapackage/datapackage.py +++ b/datapackage/datapackage.py @@ -172,18 +172,7 @@ class DataPackage(object): not end with a slash the last piece of the URI will be replaced with the descriptor URN. ...
Just use urlparse.urljoin The path locality check was reversed, so ``urlparse.urljoin`` was being used for local paths, and remote URIs were not working at all because ``os.path.join`` was being used for them. Just use ``urlparse.urljoin``.
py
diff --git a/howdoi/howdoi.py b/howdoi/howdoi.py index <HASH>..<HASH> 100755 --- a/howdoi/howdoi.py +++ b/howdoi/howdoi.py @@ -653,10 +653,9 @@ def _sanity_check(engine, test_query=None): except AssertionError as exc: if engine == 'google': raise GoogleValidationError from exc - elif e...
fix some pylint warnings
py
diff --git a/django_su/tests/test_views.py b/django_su/tests/test_views.py index <HASH>..<HASH> 100644 --- a/django_su/tests/test_views.py +++ b/django_su/tests/test_views.py @@ -1,11 +1,15 @@ from django.conf import settings from django.contrib import auth -from django.core.urlresolvers import reverse from django.t...
Fix for relocation of django.core.urlresolvers -> django.urls in Django 2
py
diff --git a/pymagicc/io.py b/pymagicc/io.py index <HASH>..<HASH> 100644 --- a/pymagicc/io.py +++ b/pymagicc/io.py @@ -963,7 +963,8 @@ class _TempOceanLayersOutReader(_Reader): class _BinData(object): def __init__(self, filepath): # read the entire file into memory - self.data = open(filepath, "rb...
Ensure that the open file is explicitly closed once read
py
diff --git a/shutit_srv.py b/shutit_srv.py index <HASH>..<HASH> 100644 --- a/shutit_srv.py +++ b/shutit_srv.py @@ -230,9 +230,9 @@ def shutit_reset(): for module_id in shutit.shutit_map: ORIG_MOD_CFG[module_id] = STATUS['cfg'][module_id] = shutit.cfg[module_id] # Add in core sections - for module_id in ['rep...
Start trying to patch up shutit_srv
py
diff --git a/lib/ansiblelint/utils.py b/lib/ansiblelint/utils.py index <HASH>..<HASH> 100644 --- a/lib/ansiblelint/utils.py +++ b/lib/ansiblelint/utils.py @@ -207,6 +207,8 @@ def play_children(basedir, item, parent_type, playbook_dir): 'roles': _roles_children, 'dependencies': _roles_children, ...
Add include_tasks and import_tasks to delegate map
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 @@ -3588,7 +3588,7 @@ class AtlasZonefileCrawler( threading.Thread ): zonefile_hashes = filter( lambda zfh: zfh is not None, zonefile_hashes ) log.de...
don't ask for zonefiles more than once
py
diff --git a/tests/integration/states/pip.py b/tests/integration/states/pip.py index <HASH>..<HASH> 100644 --- a/tests/integration/states/pip.py +++ b/tests/integration/states/pip.py @@ -18,6 +18,7 @@ from salttesting import skipIf from salttesting.helpers import ( destructiveTest, ensure_in_syspath, + re...
Cleaner and actual fix for the failing weird pip test for CentOS 5
py
diff --git a/master/buildbot/worker/docker.py b/master/buildbot/worker/docker.py index <HASH>..<HASH> 100644 --- a/master/buildbot/worker/docker.py +++ b/master/buildbot/worker/docker.py @@ -37,6 +37,7 @@ try: from docker import client from docker.errors import NotFound _hush_pyflakes = [docker, client] ...
Add version check that we have <I> or better
py
diff --git a/cocaine/services/base.py b/cocaine/services/base.py index <HASH>..<HASH> 100644 --- a/cocaine/services/base.py +++ b/cocaine/services/base.py @@ -168,10 +168,10 @@ class AbstractService(object): def _chunk(self, method_id, session, *args): log.debug('sending chunk [%d, %d, %s]', method_id, ...
Low-level method 'send_data' has now private access attribute (virtually, of course). Because it is private by design.
py
diff --git a/graphenecommon/blockchain.py b/graphenecommon/blockchain.py index <HASH>..<HASH> 100644 --- a/graphenecommon/blockchain.py +++ b/graphenecommon/blockchain.py @@ -90,6 +90,11 @@ class Blockchain(AbstractBlockchainInstanceProvider): self.get_current_block_num(), blockchain_instance=self.blockcha...
Move getting of block interval into separate method Non-bitshares networks can have different way of obtaining block interval, this change easies overriding of it.
py
diff --git a/src/nupic/algorithms/anomaly_likelihood.py b/src/nupic/algorithms/anomaly_likelihood.py index <HASH>..<HASH> 100644 --- a/src/nupic/algorithms/anomaly_likelihood.py +++ b/src/nupic/algorithms/anomaly_likelihood.py @@ -395,7 +395,7 @@ class AnomalyLikelihood(object): def estimateAnomalyLikelihoods(anom...
averagingWindow size updated to improve HTM scores for RES-<I>
py
diff --git a/porespy/metrics/__funcs__.py b/porespy/metrics/__funcs__.py index <HASH>..<HASH> 100644 --- a/porespy/metrics/__funcs__.py +++ b/porespy/metrics/__funcs__.py @@ -75,7 +75,7 @@ def representative_elementary_volume(im, npoints=1000): return profile -def porosity_profile(im, axis): +def porosity_prof...
Tweaked porosity_profile to accept an pct argument to control how porosity is returned (fraction or percent)
py
diff --git a/tests/test.py b/tests/test.py index <HASH>..<HASH> 100644 --- a/tests/test.py +++ b/tests/test.py @@ -99,6 +99,8 @@ class CryptTests(unittest.TestCase): @patch("pysswords.db.database.create_keyring", new=mock_create_keyring) class DatabaseTests(unittest.TestCase): + __name__ = "DatabaseTests" + ...
Add __name__ variable for testing mocks for python2
py
diff --git a/pytelemetry/test/test_typing.py b/pytelemetry/test/test_typing.py index <HASH>..<HASH> 100644 --- a/pytelemetry/test/test_typing.py +++ b/pytelemetry/test/test_typing.py @@ -41,7 +41,8 @@ def test_unexisting_type(): t = transportMock() c = Pytelemetry(t) - c.publish('sometopic',12,'int323') ...
Updated test to check for IndexError exception
py
diff --git a/jsonrpcclient/server.py b/jsonrpcclient/server.py index <HASH>..<HASH> 100644 --- a/jsonrpcclient/server.py +++ b/jsonrpcclient/server.py @@ -11,8 +11,10 @@ from jsonrpcclient import exceptions from jsonrpcclient import logger -DEFAULT_HTTP_HEADER = {'Content-Type': 'application/json; charset=utf-8'} ...
Default http header changed to Content-Type and Accept both application/json
py
diff --git a/argh/dispatching.py b/argh/dispatching.py index <HASH>..<HASH> 100644 --- a/argh/dispatching.py +++ b/argh/dispatching.py @@ -104,7 +104,7 @@ def dispatch(parser, argv=None, add_help_command=True, if pre_call: # XXX undocumented because I'm unsure if it's OK # Actually used in real p...
Update comments: link to #<I>
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -90,7 +90,6 @@ setup( 'grpcio==1.7.0', 'grpcio-tools==1.7.0', 'python-gflags==3.1.2', - 'six==1.11.0', ], # List additional groups of dependencies here (e.g. development
Removed unused "six" dependency.
py
diff --git a/django_extensions/admin/widgets.py b/django_extensions/admin/widgets.py index <HASH>..<HASH> 100644 --- a/django_extensions/admin/widgets.py +++ b/django_extensions/admin/widgets.py @@ -3,7 +3,10 @@ from django import forms from django.conf import settings from django.contrib.admin.sites import site fro...
add support for truncate_words in django <= <I>
py
diff --git a/project_tmpl/start_project.py b/project_tmpl/start_project.py index <HASH>..<HASH> 100755 --- a/project_tmpl/start_project.py +++ b/project_tmpl/start_project.py @@ -72,13 +72,7 @@ def main(repl, dest, templ_dir): ] subprocess.call([';'.join(create_env_cmds)], env=os.environ, executable='/bin/bas...
Don't really need to install calloway, installing all the requirements will suffice
py
diff --git a/curtsies/events.py b/curtsies/events.py index <HASH>..<HASH> 100644 --- a/curtsies/events.py +++ b/curtsies/events.py @@ -129,11 +129,11 @@ def get_key(bytes_, encoding, keynames='curses', full=False): def key_name(): if keynames == 'curses': - return CURSES_NAMES.get(seq, seq) +...
always return events as unicode strings
py
diff --git a/ags_publishing_tools/MapServicePublisher.py b/ags_publishing_tools/MapServicePublisher.py index <HASH>..<HASH> 100644 --- a/ags_publishing_tools/MapServicePublisher.py +++ b/ags_publishing_tools/MapServicePublisher.py @@ -3,6 +3,7 @@ import argparse import arcrest from arcrest.manageags import AGSAdminis...
Changes to use Portal url Uses the portal url for token, and requests the list of hosted servers from the portal administration endpoint. BPFG-<I>
py
diff --git a/zhue/model/hueobject.py b/zhue/model/hueobject.py index <HASH>..<HASH> 100644 --- a/zhue/model/hueobject.py +++ b/zhue/model/hueobject.py @@ -10,10 +10,9 @@ class HueApiResponse(object): def factory(json): if type(json) is list and len(json) > 0: if 'error' in json[0]: - ...
Use success message part for creating the response
py
diff --git a/paystackapi/invoice.py b/paystackapi/invoice.py index <HASH>..<HASH> 100644 --- a/paystackapi/invoice.py +++ b/paystackapi/invoice.py @@ -66,3 +66,16 @@ class Invoice(PayStackBase): Json data from paystack API. """ return cls().requests.get('paymentrequest/verify/{invoice...
Add send_notification method to invoice class
py
diff --git a/pre_commit/make_archives.py b/pre_commit/make_archives.py index <HASH>..<HASH> 100644 --- a/pre_commit/make_archives.py +++ b/pre_commit/make_archives.py @@ -47,6 +47,8 @@ def make_archive(name, repo, ref, destdir): local['git']('checkout', ref) # We don't want the '.git' directory ...
Add a comment about why we exclude .git
py
diff --git a/tests/unit/modules/kubernetes_test.py b/tests/unit/modules/kubernetes_test.py index <HASH>..<HASH> 100644 --- a/tests/unit/modules/kubernetes_test.py +++ b/tests/unit/modules/kubernetes_test.py @@ -5,11 +5,10 @@ # Import Python Libs from __future__ import absolute_import -import os # Import Salt Tes...
Fixed imports for pytest Imports now match the new test-suite introduced in <I>.
py
diff --git a/bigchaindb/backend/mongodb/connection.py b/bigchaindb/backend/mongodb/connection.py index <HASH>..<HASH> 100644 --- a/bigchaindb/backend/mongodb/connection.py +++ b/bigchaindb/backend/mongodb/connection.py @@ -76,17 +76,17 @@ class MongoDBConnection(Connection): attempt += 1 try...
Checking for replica set is now within try..except
py
diff --git a/s3conf/client.py b/s3conf/client.py index <HASH>..<HASH> 100644 --- a/s3conf/client.py +++ b/s3conf/client.py @@ -2,13 +2,12 @@ import logging import subprocess import shlex import os -from shutil import rmtree import click from click.exceptions import UsageError import click_log -from . import s...
print existing sections when required and not provided
py
diff --git a/djangomarkup/processors.py b/djangomarkup/processors.py index <HASH>..<HASH> 100644 --- a/djangomarkup/processors.py +++ b/djangomarkup/processors.py @@ -13,7 +13,7 @@ def markdown(src, **kwargs): except ImportError: raise ProcessorConfigurationError(u"markdown nor markdown2 found") ...
Use code-friendly extra in markdown.
py
diff --git a/xbee1.py b/xbee1.py index <HASH>..<HASH> 100644 --- a/xbee1.py +++ b/xbee1.py @@ -30,7 +30,7 @@ class XBee1(XBee): # ... # } api_commands = {"at": - [{'name':'id', 'len':1, 'default':'\x88'}, + [{'name':'id', 'l...
Fixed bug with at_command API command specification
py
diff --git a/fireplace/card.py b/fireplace/card.py index <HASH>..<HASH> 100644 --- a/fireplace/card.py +++ b/fireplace/card.py @@ -458,14 +458,6 @@ class Hero(Character): amount = new_amount return super()._hit(source, amount) - def attack(self, target): - ret = super().attack(target) - if self.controller.we...
Use Weapon.events to lose durability on hero attack
py
diff --git a/src/toil/batchSystems/slurm.py b/src/toil/batchSystems/slurm.py index <HASH>..<HASH> 100644 --- a/src/toil/batchSystems/slurm.py +++ b/src/toil/batchSystems/slurm.py @@ -101,9 +101,9 @@ class SlurmBatchSystem(AbstractGridEngineBatchSystem): '-S', '1970-01-01'] # override start time lim...
Add split() to allow looping over lines and remove calling decode() on a string. (#<I>)
py
diff --git a/tests/davclient.py b/tests/davclient.py index <HASH>..<HASH> 100644 --- a/tests/davclient.py +++ b/tests/davclient.py @@ -376,3 +376,25 @@ class DAVClient(object): res.body)) if status != res.status: raise AppError("Bad response: %s (not %s)" % (full_status, stat...
Added checkMultiStatusResponse()
py
diff --git a/openquake/commonlib/calc.py b/openquake/commonlib/calc.py index <HASH>..<HASH> 100644 --- a/openquake/commonlib/calc.py +++ b/openquake/commonlib/calc.py @@ -566,9 +566,9 @@ class EBRupture(object): attrs['mesh_spacing'] = surface.surfaces[0].mesh_spacing else: attrs['mes...
Small renaming [skip CI]
py
diff --git a/holoviews/plotting/bokeh/callbacks.py b/holoviews/plotting/bokeh/callbacks.py index <HASH>..<HASH> 100644 --- a/holoviews/plotting/bokeh/callbacks.py +++ b/holoviews/plotting/bokeh/callbacks.py @@ -1,5 +1,5 @@ from collections import defaultdict -from bokeh.models import CustomJS +from bokeh.models import...
Fix for Position and Tap stream on categorical axes (#<I>)
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -9,7 +9,7 @@ if ver < (3, 5, 2): setup( name='multio', - description='mulio - an unified async library for curio and trio', + description='multio - an unified async library for curio and trio', license='MIT'...
Add 'Framework :: Trio' classifier And fix a typo while we're at it.
py
diff --git a/tcex/profile/migrate.py b/tcex/profile/migrate.py index <HASH>..<HASH> 100644 --- a/tcex/profile/migrate.py +++ b/tcex/profile/migrate.py @@ -229,7 +229,7 @@ class Migrate: if 'stage' not in profile_data.keys(): profile_data['stage'] = {'kvstore': {}} if 'kvstore' not in prof...
Fixing the creation of the 'kvstore' in staged data
py
diff --git a/LiSE/LiSE/character.py b/LiSE/LiSE/character.py index <HASH>..<HASH> 100644 --- a/LiSE/LiSE/character.py +++ b/LiSE/LiSE/character.py @@ -875,7 +875,11 @@ class FacadeEntity(MutableMapping, Signal): raise KeyError("{} has been masked.".format(k)) if k in self._patch: retu...
In Facade, prevent mutable objects from writing to the Character Completely untested.
py
diff --git a/mousedb/wsgi.py b/mousedb/wsgi.py index <HASH>..<HASH> 100644 --- a/mousedb/wsgi.py +++ b/mousedb/wsgi.py @@ -1,11 +1,9 @@ import os import sys -os.environ['DJANGO_SETTINGS_MODULE'] = 'mousedb.settings' +sys.path.append('/var/www/internal/mousedb') -sys.path.append('C:/Documents and Settings/davebrid...
Updated wsgi.py
py