diff
stringlengths
139
3.65k
message
stringlengths
8
627
diff_languages
stringclasses
1 value
diff --git a/pyt/cfg.py b/pyt/cfg.py index <HASH>..<HASH> 100644 --- a/pyt/cfg.py +++ b/pyt/cfg.py @@ -1,5 +1,6 @@ import ast import inspect +import collections from label_visitor import LabelVisitor from vars_visitor import VarsVisitor @@ -17,7 +18,8 @@ def print_CFG(CFG): for x, n in enumerate(CFG.nodes): ...
use namedtuple for returning label and vars for Name nodes
py
diff --git a/datajoint/plugin.py b/datajoint/plugin.py index <HASH>..<HASH> 100644 --- a/datajoint/plugin.py +++ b/datajoint/plugin.py @@ -87,7 +87,12 @@ def override(plugin_type, context, method_list=None): _update_error_stack(module) # override based on plugon preference if meth...
Modify override subset methods to allow plugins to ommit certain functions.
py
diff --git a/test/integration/test_constraints_int.py b/test/integration/test_constraints_int.py index <HASH>..<HASH> 100644 --- a/test/integration/test_constraints_int.py +++ b/test/integration/test_constraints_int.py @@ -53,8 +53,8 @@ TEST_CONFIGS = [ " --transformer-dropout-prepost 0.1 --transformer-preprocess...
2nd constraint integration test passes with more updates. First one still fails
py
diff --git a/axes/conf.py b/axes/conf.py index <HASH>..<HASH> 100644 --- a/axes/conf.py +++ b/axes/conf.py @@ -67,7 +67,7 @@ settings.AXES_LOCKOUT_URL = getattr(settings, "AXES_LOCKOUT_URL", None) settings.AXES_COOLOFF_TIME = getattr(settings, "AXES_COOLOFF_TIME", None) -settings.AXES_VERBOSE = getattr(settings, "...
Set AXES_VERBOSE default to AXES_ENABLED Problem: When `AXES_ENABLED == False` we still see log output because `AXES_VERBOSE == True`. Solution: Change `AXES_VERBOSE` default so that if django-axes is disabled then we don't output to stdout.
py
diff --git a/soco/core.py b/soco/core.py index <HASH>..<HASH> 100755 --- a/soco/core.py +++ b/soco/core.py @@ -344,7 +344,8 @@ class SoCo(_SocoSingletonBase): @property def cross_fade(self): - """ The speaker's cross fade state. True if enabled, False otherwise """ + """ The speaker's cross fa...
Lint line length restriction (Might want to use a widescreen monitor)
py
diff --git a/estnltk/mw_verbs/verbchain_nom_vinf_extender.py b/estnltk/mw_verbs/verbchain_nom_vinf_extender.py index <HASH>..<HASH> 100644 --- a/estnltk/mw_verbs/verbchain_nom_vinf_extender.py +++ b/estnltk/mw_verbs/verbchain_nom_vinf_extender.py @@ -332,7 +332,7 @@ class VerbChainNomVInfExtender: ...
Tiny bugfix (for some clause-final verb chain members that were left undetected)
py
diff --git a/py/h2o_os_util.py b/py/h2o_os_util.py index <HASH>..<HASH> 100644 --- a/py/h2o_os_util.py +++ b/py/h2o_os_util.py @@ -49,7 +49,7 @@ def check_port_group(base_port): # I suppose we should use psutil here. since everyone has it installed? # and it should work on windows? def show_h2o_processes(): - if ...
temporarily disable the psutil usage. apparently psutil changed since I used it last year
py
diff --git a/tests/test_hgvs_validator.py b/tests/test_hgvs_validator.py index <HASH>..<HASH> 100644 --- a/tests/test_hgvs_validator.py +++ b/tests/test_hgvs_validator.py @@ -73,7 +73,7 @@ class Test_HGVSIntrinsicValidator(unittest.TestCase): self.assertTrue(self.validate_int.validate(self.hp.parse_hgvs_varian...
Add the forgetten assertion in the test for validating del length
py
diff --git a/pupa/scrape/popolo.py b/pupa/scrape/popolo.py index <HASH>..<HASH> 100644 --- a/pupa/scrape/popolo.py +++ b/pupa/scrape/popolo.py @@ -121,6 +121,7 @@ class Person(BaseModel, SourceMixin, ContactDetailMixin, LinkMixin, IdentifierMi membership = Membership(person_id=self._id, organization_id=org_id,...
Return the membership from Person#add_term
py
diff --git a/flasgger/base.py b/flasgger/base.py index <HASH>..<HASH> 100644 --- a/flasgger/base.py +++ b/flasgger/base.py @@ -586,12 +586,14 @@ class Swagger(object): schemas = self.schemas[path_key] else: doc = None + definitions = None fo...
Added definitions to parsed_data validation All apispec definitions are injected to schema that is passed to validator. Now handles $ref correctly.
py
diff --git a/pyrogram/client/types/message.py b/pyrogram/client/types/message.py index <HASH>..<HASH> 100644 --- a/pyrogram/client/types/message.py +++ b/pyrogram/client/types/message.py @@ -571,3 +571,39 @@ class Message(Object): raise ValueError("This button is not supported yet") else: ...
Add download() bound method to Message
py
diff --git a/tests/unit/utils/test_thin.py b/tests/unit/utils/test_thin.py index <HASH>..<HASH> 100644 --- a/tests/unit/utils/test_thin.py +++ b/tests/unit/utils/test_thin.py @@ -302,3 +302,20 @@ class SSHThinTestCase(TestCase): tops = thin.get_tops(so_mods='foo,bar') assert len(tops) == len(base_...
Add unit test for thin_sum hashing
py
diff --git a/hdate/hdate_string.py b/hdate/hdate_string.py index <HASH>..<HASH> 100644 --- a/hdate/hdate_string.py +++ b/hdate/hdate_string.py @@ -10,8 +10,8 @@ def hebrew_number(num, hebrew=True, short=False): """Return "Gimatria" number.""" if not hebrew: return str(num) - if num > 10000 or num ...
Bugfix: hebrew number == 0 should raise an error as well
py
diff --git a/tests/utils.py b/tests/utils.py index <HASH>..<HASH> 100644 --- a/tests/utils.py +++ b/tests/utils.py @@ -14,6 +14,9 @@ # Yoda. If not, see <http://www.gnu.org/licenses/gpl-3.0.html>. import mock +import os +import shutil + from mock import Mock from mock import MagicMock from yoda import Config @@ ...
Added Sandbox utility for tests.
py
diff --git a/salt/states/netyang.py b/salt/states/netyang.py index <HASH>..<HASH> 100644 --- a/salt/states/netyang.py +++ b/salt/states/netyang.py @@ -163,6 +163,9 @@ def managed(name, }) log.debug('All good here.') return ret + data = data['to_dict'] + if '_kwargs' in data: + da...
Remove _kwargs from data
py
diff --git a/pythran/typing.py b/pythran/typing.py index <HASH>..<HASH> 100644 --- a/pythran/typing.py +++ b/pythran/typing.py @@ -4,6 +4,15 @@ import operator from tables import type_to_str, operator_to_lambda, modules from passes import global_declarations, constant_value +if not "has_path" in nx.__dict__: + def ...
define has_path in networkx if it is not already defined
py
diff --git a/tests/upload.py b/tests/upload.py index <HASH>..<HASH> 100755 --- a/tests/upload.py +++ b/tests/upload.py @@ -19,14 +19,11 @@ import time #_________________________________________________________________________________________ def get_new_item(): """return an ia item object for an item that does n...
Fixed tests to work with new noboto S3 flow.
py
diff --git a/discord/state.py b/discord/state.py index <HASH>..<HASH> 100644 --- a/discord/state.py +++ b/discord/state.py @@ -973,20 +973,16 @@ class ConnectionState: if self.member_cache_flags.joined: guild._add_member(member) - try: + if guild._member_count is not None: ...
Fix addition TypeError with Guild.member_count
py
diff --git a/pypot/vrep/io.py b/pypot/vrep/io.py index <HASH>..<HASH> 100644 --- a/pypot/vrep/io.py +++ b/pypot/vrep/io.py @@ -253,6 +253,7 @@ class VrepIO(AbstractIO): @vrep_check_errorcode('Cannot get handle for "{collision}"') def _get_collision_handle(self, collision): with self._lock: + ...
add a sleep at the vrep collision handle request
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100755 --- a/setup.py +++ b/setup.py @@ -6,9 +6,12 @@ Flask-Pystmark A Flask extension for Pystmark (a Postmark API library) -Complete documentation: http://flask-pystmark.readthedocs.org/en/latest/ -Project site: https://github.com/xsleonard/flask-pystmark +Li...
update setup.py to refer to dev version
py
diff --git a/pytest_relaxed/raises.py b/pytest_relaxed/raises.py index <HASH>..<HASH> 100644 --- a/pytest_relaxed/raises.py +++ b/pytest_relaxed/raises.py @@ -3,15 +3,17 @@ from decorator import decorator # Thought pytest.raises was like nose.raises, but nooooooo. So let's make it # like that. -def raises(exception...
Fix super dumb `@raises` bug. Also includes: - Rename its posarg to `klass`. Technically backwards incompatible but I seriously doubt anybody cares, esp given the published API is use of posarg, not kwarg. - Display exception dunder-name, not str/repr. Since this code never actually fired until now, again, not re...
py
diff --git a/tests/test_isort.py b/tests/test_isort.py index <HASH>..<HASH> 100644 --- a/tests/test_isort.py +++ b/tests/test_isort.py @@ -3222,7 +3222,7 @@ def test_command_line(tmpdir, capfd, multiprocess: bool) -> None: tmpdir.join("file2.py").read() == "import abc\nimport collections\nimport time\...
Attempt to fix MacOS github action testing
py
diff --git a/pyrogram/client/filters/filters.py b/pyrogram/client/filters/filters.py index <HASH>..<HASH> 100644 --- a/pyrogram/client/filters/filters.py +++ b/pyrogram/client/filters/filters.py @@ -323,7 +323,8 @@ class Filters: else: raise ValueError("Regex filter doesn't work with {}".f...
Fix Filters.regex failing in case the value is None
py
diff --git a/firecloud/fiss.py b/firecloud/fiss.py index <HASH>..<HASH> 100755 --- a/firecloud/fiss.py +++ b/firecloud/fiss.py @@ -1508,8 +1508,7 @@ def main(argv=None): usage=usage, epilog=epilog) # Core Flags parser.add_argument('-u', '--url', dest='api_url', default=No...
now that / is silently ensure to be at end of config.root_url, no need to mention it in help docs
py
diff --git a/kombine/sampler.py b/kombine/sampler.py index <HASH>..<HASH> 100644 --- a/kombine/sampler.py +++ b/kombine/sampler.py @@ -75,7 +75,7 @@ class Sampler(object): self.pool = pool self.processes = processes - if self.processes is not None and self.processes > 1 and self.pool is None:...
Let the pool decide number of processes by default
py
diff --git a/jks/rfc7292.py b/jks/rfc7292.py index <HASH>..<HASH> 100644 --- a/jks/rfc7292.py +++ b/jks/rfc7292.py @@ -86,7 +86,7 @@ def decrypt_PBEWithSHAAnd3KeyTripleDESCBC(data, password_str, salt, iteration_co key = derive_key(hashlib.sha1, PURPOSE_KEY_MATERIAL, password_str, salt, iteration_count, 192//8) ...
jks/rfc<I>.py: Fixed typo
py
diff --git a/jupyterlab_widgets/setup.py b/jupyterlab_widgets/setup.py index <HASH>..<HASH> 100644 --- a/jupyterlab_widgets/setup.py +++ b/jupyterlab_widgets/setup.py @@ -200,6 +200,12 @@ setup_args = dict( 'sdist': js_prerelease(sdist, strict=True), 'jsdeps': NPM, }, + data_files = [( + ...
Add datafiles for jupyterlab_widgets wheel
py
diff --git a/pysd/py_backend/vensim/vensim2py.py b/pysd/py_backend/vensim/vensim2py.py index <HASH>..<HASH> 100644 --- a/pysd/py_backend/vensim/vensim2py.py +++ b/pysd/py_backend/vensim/vensim2py.py @@ -720,7 +720,7 @@ def parse_general_expression(element, namespace=None, subscript_dict=None, macro in_ops = { ...
Recover logical words operators (and/or)
py
diff --git a/ck/kernel.py b/ck/kernel.py index <HASH>..<HASH> 100644 --- a/ck/kernel.py +++ b/ck/kernel.py @@ -6152,11 +6152,17 @@ def compare_dicts(i): if m not in v1: equal='no' break + + if equal=='no': + break else: if...
fixing a bug in comparison of dictionaries
py
diff --git a/tenant_schemas/management/commands/sync_schemas.py b/tenant_schemas/management/commands/sync_schemas.py index <HASH>..<HASH> 100644 --- a/tenant_schemas/management/commands/sync_schemas.py +++ b/tenant_schemas/management/commands/sync_schemas.py @@ -24,6 +24,8 @@ class Command(SyncCommon): for mod...
both methods need clear cache, so do it before calling them
py
diff --git a/submit/admin.py b/submit/admin.py index <HASH>..<HASH> 100644 --- a/submit/admin.py +++ b/submit/admin.py @@ -97,7 +97,7 @@ class SubmissionAdmin(admin.ModelAdmin): def setFullPendingStateAction(self, request, queryset): # do not restart tests for withdrawn solutions, or for solutions in the middle ...
Fixing state checking for full test triggering
py
diff --git a/openupgradelib/openupgrade_merge_records.py b/openupgradelib/openupgrade_merge_records.py index <HASH>..<HASH> 100644 --- a/openupgradelib/openupgrade_merge_records.py +++ b/openupgradelib/openupgrade_merge_records.py @@ -339,8 +339,12 @@ def _adjust_merged_values_orm(env, model_name, record_ids, target_re...
[FIX] merge_records: if merging many2many, avoid warning of bad comparison
py
diff --git a/l20n/ast.py b/l20n/ast.py index <HASH>..<HASH> 100644 --- a/l20n/ast.py +++ b/l20n/ast.py @@ -20,7 +20,7 @@ class Operator(Node): _abstract = True class Identifier(Expression): - name = pyast.field(pyast.re('\w+')) + name = pyast.field(pyast.re('[a-zA-Z]\w*')) class Expander(Node): ex...
Force Identifier to start with a letter and add attributes to macro
py
diff --git a/pyvisa/ctwrapper/highlevel.py b/pyvisa/ctwrapper/highlevel.py index <HASH>..<HASH> 100644 --- a/pyvisa/ctwrapper/highlevel.py +++ b/pyvisa/ctwrapper/highlevel.py @@ -13,6 +13,7 @@ from __future__ import division, unicode_literals, print_function, absolute_import +import logging import warnings fro...
Added backend information to logging
py
diff --git a/tests/unit/test_slipsocket.py b/tests/unit/test_slipsocket.py index <HASH>..<HASH> 100644 --- a/tests/unit/test_slipsocket.py +++ b/tests/unit/test_slipsocket.py @@ -37,7 +37,7 @@ if TRAVIS and sys.version_info[0:2] == (3, 5): i = delegated_methods.index("getsockname") delegated_methods[i] = pyte...
Attempt to filter out failing test on Travis for Python <I>
py
diff --git a/tests/test_core/test_server.py b/tests/test_core/test_server.py index <HASH>..<HASH> 100644 --- a/tests/test_core/test_server.py +++ b/tests/test_core/test_server.py @@ -18,7 +18,7 @@ def test_wrong_arguments(): def test_right_arguments(run_simple): main(["s3"]) func_call = run_simple.call_args[...
Hopefully break build by testing for local only default server
py
diff --git a/buildozer/__init__.py b/buildozer/__init__.py index <HASH>..<HASH> 100644 --- a/buildozer/__init__.py +++ b/buildozer/__init__.py @@ -498,7 +498,8 @@ class Buildozer(object): match = search(regex, data) if not match: raise Exception( - ...
enhance error message when version capture failed. Credits goes to Dabian Snovna
py
diff --git a/anpy/dossier.py b/anpy/dossier.py index <HASH>..<HASH> 100644 --- a/anpy/dossier.py +++ b/anpy/dossier.py @@ -5,6 +5,7 @@ from builtins import map, filter, str import mistune import re +import requests from six.moves.urllib.parse import urljoin from bs4 import BeautifulSoup from operator import item...
Add helper method to build Dossier from url
py
diff --git a/visualops/utils/rpc.py b/visualops/utils/rpc.py index <HASH>..<HASH> 100755 --- a/visualops/utils/rpc.py +++ b/visualops/utils/rpc.py @@ -31,7 +31,7 @@ def _call(url, method, params): ### session operation ### def login(username, password): - params = [username, password] + params = [username, password...
[develop] support relogin
py
diff --git a/claripy/backends/backend_z3.py b/claripy/backends/backend_z3.py index <HASH>..<HASH> 100644 --- a/claripy/backends/backend_z3.py +++ b/claripy/backends/backend_z3.py @@ -1,3 +1,4 @@ +import sys import logging l = logging.getLogger("claripy.backends.backend_z3") @@ -49,6 +50,7 @@ def condom(f): ...
solve the stupid int/long issue in z3
py
diff --git a/openid/test/support.py b/openid/test/support.py index <HASH>..<HASH> 100644 --- a/openid/test/support.py +++ b/openid/test/support.py @@ -30,3 +30,22 @@ class CatchLogs(object): def tearDown(self): oidutil.log = self.old_logger + + def failUnlessLogMatches(self, *prefixes): + """ ...
[project @ Add CatchLogs fail* methods to check log messages]
py
diff --git a/tests/test_logsub.py b/tests/test_logsub.py index <HASH>..<HASH> 100644 --- a/tests/test_logsub.py +++ b/tests/test_logsub.py @@ -16,6 +16,7 @@ import os import tempfile from unittest import TestCase +from c7n.logs_support import _timestamp_from_string from c7n.ufuncs import logsub @@ -41,9 +42,7 ...
use localized timestamp for log comparison test (#<I>) fixes #<I>
py
diff --git a/zipline/pipeline/data/dataset.py b/zipline/pipeline/data/dataset.py index <HASH>..<HASH> 100644 --- a/zipline/pipeline/data/dataset.py +++ b/zipline/pipeline/data/dataset.py @@ -157,7 +157,7 @@ class BoundColumn(LoadableTerm): @property def qualname(self): """ - The fully-qualifie...
DOC: Add missing word in docstring.
py
diff --git a/LiSE/LiSE/tests/test_resume.py b/LiSE/LiSE/tests/test_resume.py index <HASH>..<HASH> 100644 --- a/LiSE/LiSE/tests/test_resume.py +++ b/LiSE/LiSE/tests/test_resume.py @@ -7,7 +7,10 @@ def test_resume(tempdir): with Engine(tempdir) as eng: install(eng) eng.next_turn() + last_bra...
Add another assertion to test_resume
py
diff --git a/gdown/download.py b/gdown/download.py index <HASH>..<HASH> 100644 --- a/gdown/download.py +++ b/gdown/download.py @@ -1,6 +1,5 @@ from __future__ import print_function -import glob import json import os import os.path as osp @@ -201,12 +200,29 @@ def download( output = osp.join(output, filen...
Allow space and quote in the filename
py
diff --git a/LiSE/LiSE/examples/college.py b/LiSE/LiSE/examples/college.py index <HASH>..<HASH> 100644 --- a/LiSE/LiSE/examples/college.py +++ b/LiSE/LiSE/examples/college.py @@ -50,7 +50,7 @@ def install(eng): @go_to_class.prereq def class_in_session(node): - return 8 <= node.character.stat['hour'] ...
Fix some logic problems in the college example It never should have worked
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -9,7 +9,7 @@ except ImportError: print(message, file=sys.stderr) -version = '1.3.6' +version = '2.0.0' install_requires = [
<I> Automatically generated by python-semantic-release
py
diff --git a/librosa/core/spectrum.py b/librosa/core/spectrum.py index <HASH>..<HASH> 100644 --- a/librosa/core/spectrum.py +++ b/librosa/core/spectrum.py @@ -803,6 +803,7 @@ def fmt(y, t_min=1, n_fmt=None, kind='slinear', beta=0.5, over_sample=2, axis=-1 ------ ParameterError if `n_fmt < 1` or `t_mi...
fmt raises an error if input is non-finite
py
diff --git a/categories/__init__.py b/categories/__init__.py index <HASH>..<HASH> 100644 --- a/categories/__init__.py +++ b/categories/__init__.py @@ -1,8 +1,8 @@ __version_info__ = { - 'major': 0, - 'minor': 8, - 'micro': 9, - 'releaselevel': 'final', + 'major': 1, + 'minor': 0, + 'micro': 0, + ...
Version bump to <I>b1
py
diff --git a/lib/aff4.py b/lib/aff4.py index <HASH>..<HASH> 100644 --- a/lib/aff4.py +++ b/lib/aff4.py @@ -2496,13 +2496,16 @@ class AFF4ImageBase(AFF4Stream): return result - def Read(self, length): + def Read(self, length=None): """Read a block of data from the file.""" result = "" # The t...
Changed default behavior of Read to be consistent with normal file object behavior if no size is provided
py
diff --git a/jaraco/util/string.py b/jaraco/util/string.py index <HASH>..<HASH> 100644 --- a/jaraco/util/string.py +++ b/jaraco/util/string.py @@ -7,8 +7,8 @@ import itertools import textwrap import six +from jaraco.functools import compose -from .functools import compose from .exceptions import throws_exc...
Use compose from jaraco.functools.
py
diff --git a/pyads/structs.py b/pyads/structs.py index <HASH>..<HASH> 100644 --- a/pyads/structs.py +++ b/pyads/structs.py @@ -9,7 +9,7 @@ """ import typing -from ctypes import c_byte, Structure, c_ubyte, Union, c_uint16, c_uint32, c_uint64 +from ctypes import Structure, c_ubyte, Union, c_uint16, c_uint32, c_uint64...
refactor: Optimize imports in structs.py
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100755 --- a/setup.py +++ b/setup.py @@ -1,9 +1,11 @@ #! /usr/bin/env python from setuptools import setup +from tools import version_util + setup(name='shaderdef', - version='0.5.2', + version=version_util.load_version_as_string(), descriptio...
Use version/version_util in setup.py
py
diff --git a/chess/__init__.py b/chess/__init__.py index <HASH>..<HASH> 100644 --- a/chess/__init__.py +++ b/chess/__init__.py @@ -1221,7 +1221,7 @@ class BaseBoard: return "".join(builder) - def unicode(self, *, invert_color: bool = False, borders: bool = False, empty_square: str = "⭘") -> str: + de...
Adding flipped option to unicode representation
py
diff --git a/cme/protocols/smb/passpol.py b/cme/protocols/smb/passpol.py index <HASH>..<HASH> 100644 --- a/cme/protocols/smb/passpol.py +++ b/cme/protocols/smb/passpol.py @@ -37,8 +37,8 @@ def convert(low, high, lockout=False): high = abs(high) low = abs(low) - tmp = low + (high)*...
Fix pass policy max password age #<I>
py
diff --git a/ReText/window.py b/ReText/window.py index <HASH>..<HASH> 100644 --- a/ReText/window.py +++ b/ReText/window.py @@ -843,9 +843,9 @@ class ReTextWindow(QMainWindow): if mimetype is None: enabled = True elif markupClass == markups.MarkdownMarkup: - enabled = (mimetype in ("text/x-retext-markdow...
Remove support for old MIME types in export extensions The MIME type for Markdown is documented in RFC <I>. For reStructuredText, see: <URL>
py
diff --git a/monolithe/lib/models/objects.py b/monolithe/lib/models/objects.py index <HASH>..<HASH> 100644 --- a/monolithe/lib/models/objects.py +++ b/monolithe/lib/models/objects.py @@ -85,6 +85,9 @@ class MonolitheObject(object): model_attribute = MonolitheObjectAttribute() model_attribute.f...
Fixed importation of time. close#<I>
py
diff --git a/src/facebook.py b/src/facebook.py index <HASH>..<HASH> 100755 --- a/src/facebook.py +++ b/src/facebook.py @@ -35,7 +35,7 @@ usage of this module might look like this: import cgi import time -import urllib, urllib2 +import urllib import urllib2 import hashlib import hmac @@ -229,13 +229,16 @@ class G...
Added a function to get an app access token
py
diff --git a/dallinger/command_line/docker_ssh.py b/dallinger/command_line/docker_ssh.py index <HASH>..<HASH> 100644 --- a/dallinger/command_line/docker_ssh.py +++ b/dallinger/command_line/docker_ssh.py @@ -294,7 +294,7 @@ def deploy(mode, server, dns_host, config_options, archive_path): # pragma: no for key in ...
Ensure docker AWS config keys are uppercase.
py
diff --git a/PyFunceble.py b/PyFunceble.py index <HASH>..<HASH> 100755 --- a/PyFunceble.py +++ b/PyFunceble.py @@ -2068,6 +2068,7 @@ class Referer(object): "cw", "cy", "dj", + "doosan", "eg", "et", "fk", @@ -3999,7 +4000,7 @@ if __...
Introduction of `doosan` into the list of ignored extensions cf: No whois server.
py
diff --git a/tests/integration/states/file.py b/tests/integration/states/file.py index <HASH>..<HASH> 100644 --- a/tests/integration/states/file.py +++ b/tests/integration/states/file.py @@ -1727,6 +1727,23 @@ class FileTest(integration.ModuleCase, integration.SaltReturnAssertsMixIn): finally: os....
Integration Test for Issue <I> Adds integration test for #<I>
py
diff --git a/tests/util.py b/tests/util.py index <HASH>..<HASH> 100644 --- a/tests/util.py +++ b/tests/util.py @@ -88,7 +88,8 @@ def make_mock_commit(repo, kind='A', path=None, content=None): else: abspath.touch() repo.git.add(str(abspath)) - repo.git.commit(m='Commit {}'.f...
Add explicit author to mock git commits
py
diff --git a/saltcloud/clouds/gogrid.py b/saltcloud/clouds/gogrid.py index <HASH>..<HASH> 100644 --- a/saltcloud/clouds/gogrid.py +++ b/saltcloud/clouds/gogrid.py @@ -124,6 +124,10 @@ def create(vm_): else: log.error('Failed to start Salt on Cloud VM {0}'.format(vm_['name'])) + ret = {} ...
Let gogrid driver use salt outputter
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100755 --- a/setup.py +++ b/setup.py @@ -6,7 +6,7 @@ import sys install_requires = [ - "Jinja2>=2.8", + "Jinja2>=2.7.3", "boto>=2.36.0", "boto3>=1.2.1", "botocore>=1.7.12",
Allow older Jinja2 dep for project compatability (#<I>) In commit <I>abe8de<I>b7ff<I>c<I>d<I>c0d<I>da3f, the Jinja2 dep in setup.py was changed from being unpinned to requiring version <I> or newer. That change was made in response to this issue: <URL>
py
diff --git a/src/Exscript/protocols/telnetlib.py b/src/Exscript/protocols/telnetlib.py index <HASH>..<HASH> 100644 --- a/src/Exscript/protocols/telnetlib.py +++ b/src/Exscript/protocols/telnetlib.py @@ -271,7 +271,7 @@ class Telnet: """ if type(buffer) == type(0): buffer = chr(buffer) - ...
Exscript.protocols.Telnet: fix: don't check unicode for IAC codes.
py
diff --git a/hyperv/neutron/hyperv_neutron_agent.py b/hyperv/neutron/hyperv_neutron_agent.py index <HASH>..<HASH> 100644 --- a/hyperv/neutron/hyperv_neutron_agent.py +++ b/hyperv/neutron/hyperv_neutron_agent.py @@ -338,10 +338,9 @@ networking-plugin-hyperv_agent.html self.a...
Adds trace to the port processing logic LOG.exception will also include the exception's trace. Related blueprint: scale-hyperv-neutron-agent Change-Id: Ib9d6e<I>ee<I>aafa4fc<I>d<I>ecad<I>ef
py
diff --git a/treeherder/etl/bugzilla.py b/treeherder/etl/bugzilla.py index <HASH>..<HASH> 100644 --- a/treeherder/etl/bugzilla.py +++ b/treeherder/etl/bugzilla.py @@ -42,7 +42,10 @@ class BzApiBugProcess(JsonExtractorMixin): limit = 500 bug_list = [] - while True: + # f...
set a maximum number of iterations while fetching bugs
py
diff --git a/salt/cloud/clouds/xen.py b/salt/cloud/clouds/xen.py index <HASH>..<HASH> 100644 --- a/salt/cloud/clouds/xen.py +++ b/salt/cloud/clouds/xen.py @@ -288,7 +288,7 @@ def list_nodes_full(session=None): vms = session.xenapi.VM.get_all() for vm in vms: record = session.xenapi.VM.get_record(vm) ...
removed superfluous-parens on lines <I>,<I>
py
diff --git a/webmentiontools/request.py b/webmentiontools/request.py index <HASH>..<HASH> 100644 --- a/webmentiontools/request.py +++ b/webmentiontools/request.py @@ -74,7 +74,8 @@ def request_post_url(endpoint, source_url, target_url): endpoint, data=payload, allow_redirects=True, - #...
chore(lint): Make flake8 happy.
py
diff --git a/headnode_notifier.py b/headnode_notifier.py index <HASH>..<HASH> 100755 --- a/headnode_notifier.py +++ b/headnode_notifier.py @@ -50,16 +50,19 @@ def send_mail(to_addr, passwd (str): Account password. """ msg = MIMEMultipart() - with open(attach_path, "rb") as fin: - part = MIM...
FIX:Handling no attachment case
py
diff --git a/scripts/example_multiphysics_solver.py b/scripts/example_multiphysics_solver.py index <HASH>..<HASH> 100644 --- a/scripts/example_multiphysics_solver.py +++ b/scripts/example_multiphysics_solver.py @@ -62,7 +62,7 @@ geo.add_model(propname='throat.diffusive_size_factors', # D_eff = Diff.run() # print(f"Ef...
calling phase instead of phases now in multiphysics example
py
diff --git a/pyjokes/pyjokes.py b/pyjokes/pyjokes.py index <HASH>..<HASH> 100644 --- a/pyjokes/pyjokes.py +++ b/pyjokes/pyjokes.py @@ -41,7 +41,7 @@ def get_jokes(language='en', category='neutral'): jokes = all_jokes[language] if category not in jokes: - raise CategoryNotFoundError('No such category ...
Also show language when CategoryNotFoundError is raised, re: #<I>
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -7,7 +7,8 @@ but usually you only need to do the following steps to publish a new package version to PyPI:: # Update the version tag in this file (setup.py) - python setup.py sdist --formats=gztar,zip + python se...
Adapted how-to comment in setup.py to reflect pypi changes
py
diff --git a/gwpy/testing/errors.py b/gwpy/testing/errors.py index <HASH>..<HASH> 100644 --- a/gwpy/testing/errors.py +++ b/gwpy/testing/errors.py @@ -27,6 +27,7 @@ from urllib.error import URLError import pytest NETWORK_ERROR = ( + ConnectionError, socket.timeout, SSLError, URLError,
gwpy.testing: add ConnectionError to network errors list
py
diff --git a/openupgradelib/openupgrade.py b/openupgradelib/openupgrade.py index <HASH>..<HASH> 100644 --- a/openupgradelib/openupgrade.py +++ b/openupgradelib/openupgrade.py @@ -52,9 +52,31 @@ __all__ = [ 'get_legacy_name', 'm2o_to_m2m', 'message', + 'check_values_fields_selection', ] +def check...
[ADD] new function 'check_values_fields_selection' in openupgrade framework [ADD] premigration script for base;
py
diff --git a/main.py b/main.py index <HASH>..<HASH> 100755 --- a/main.py +++ b/main.py @@ -127,7 +127,10 @@ def makeEPUB(document, xml_local, cache_dir, outdirect, log_to): utils.makeEPUBBase(settings.base_epub, settings.css_location) shutil.copytree(settings.base_epub, outdirect) DOI = document.getD...
Adjustments to support handling a new publisher
py
diff --git a/build/build.py b/build/build.py index <HASH>..<HASH> 100755 --- a/build/build.py +++ b/build/build.py @@ -867,7 +867,7 @@ def getRunArgs(heap="$((HEAP))", _type="jar"): def generateRunScript(): args = getRunArgs() - f = open(os.path.join(buildRoot, "run-validator.sh"), 'wb') + f = open(os.pat...
Make `checker.py script` python3 compatible Writing str to a file in binary mode is not allowed in Python 3. The run-validator.sh is a text file so that we should open it in text mode.
py
diff --git a/flask_resty/routing.py b/flask_resty/routing.py index <HASH>..<HASH> 100644 --- a/flask_resty/routing.py +++ b/flask_resty/routing.py @@ -1,4 +1,10 @@ -from werkzeug.routing import RequestSlash, Rule +from werkzeug.routing import Rule + +try: + from werkzeug.routing import RequestPath +except ImportErro...
fix: compatibility with werkzeug <I> (#<I>) * fix: compatibility with werkzeug <I> close #<I> * Fix coverage
py
diff --git a/kubernetes/K8sConfig.py b/kubernetes/K8sConfig.py index <HASH>..<HASH> 100644 --- a/kubernetes/K8sConfig.py +++ b/kubernetes/K8sConfig.py @@ -177,15 +177,15 @@ class K8sConfig(object): except YAMLError as err: raise SyntaxError('K8sConfig: kubeconfig: [ {0} ] is not a valid YAML file:...
Small changes to processing of kubeconfig file.
py
diff --git a/src/toil/batchSystems/mesos/executor.py b/src/toil/batchSystems/mesos/executor.py index <HASH>..<HASH> 100644 --- a/src/toil/batchSystems/mesos/executor.py +++ b/src/toil/batchSystems/mesos/executor.py @@ -98,7 +98,7 @@ class MesosExecutor(Executor): Kill parent task process and all its spawned ch...
Get value of taskId in Mesos' killTask method.
py
diff --git a/ppb/__init__.py b/ppb/__init__.py index <HASH>..<HASH> 100644 --- a/ppb/__init__.py +++ b/ppb/__init__.py @@ -8,7 +8,7 @@ from ppb.sprites import BaseSprite def run(setup: Callable[[BaseScene], None]=None, *, log_level=logging.WARNING, - starting_scene=BaseScene): + starting_scene=BaseSc...
Poke a hole through for Render to receive a window title
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -6,7 +6,7 @@ from distutils.core import setup setup( name='bisheng', version=bisheng.__version__, - url = 'http://github.com/eliangcs/bisheng/', + url='https://github.com/eliangcs/bisheng', description='A...
Update project url in setup.py
py
diff --git a/synapse/lib/stormtypes.py b/synapse/lib/stormtypes.py index <HASH>..<HASH> 100644 --- a/synapse/lib/stormtypes.py +++ b/synapse/lib/stormtypes.py @@ -113,8 +113,8 @@ def fromprim(valu, path=None): if isinstance(valu, StormType): return valu - if isinstance(valu, (tuple, list)): - ...
comment out List() stormtype until we have one...
py
diff --git a/src/rez/pip.py b/src/rez/pip.py index <HASH>..<HASH> 100644 --- a/src/rez/pip.py +++ b/src/rez/pip.py @@ -396,7 +396,7 @@ def pip_install_package(source_name, pip_version=None, python_version=None, # when in fact ../bin seems to be the resulting path after the # installation as su...
fix(rez-pip): ensure the path to bin scripts works cross-platform The wheel RECORD file seems to always list the paths of the installed file in UNIX form which means when checking for bin scripts on Windows through os.sep ("\\") the executables are not handled correctly. Normalize the path to fix the issue. Relates: ...
py
diff --git a/magic.py b/magic.py index <HASH>..<HASH> 100644 --- a/magic.py +++ b/magic.py @@ -160,7 +160,9 @@ if not libmagic or not libmagic._name: # Assumes there will only be one version installed glob.glob('/usr/local/Cellar/libmagic/*/lib/libmagic.dylib'), ...
Added a fallback for Alpine to find library file There are some Linuxes that have libraries search broken. This commit would add a reasonable fallback for these systems. Otherwise python-magic does not work there having "magic" library installed and python-magic from Pypi.
py
diff --git a/validator/sawtooth_validator/journal/completer.py b/validator/sawtooth_validator/journal/completer.py index <HASH>..<HASH> 100644 --- a/validator/sawtooth_validator/journal/completer.py +++ b/validator/sawtooth_validator/journal/completer.py @@ -90,12 +90,15 @@ class Completer: # Tracks the length...
Initialize metrics collector gauge values in completer A newly created Completer without blocks, batches, or seen transactions did not set a numeric gauge value until batches and blocks were added. The default 'nan' value for the gauge resulted in InfluxDB errors on metrics submission.
py
diff --git a/teresa/sync.py b/teresa/sync.py index <HASH>..<HASH> 100755 --- a/teresa/sync.py +++ b/teresa/sync.py @@ -61,11 +61,11 @@ def id3_title_artist(path): def title_artist_or_filename(path): title, artist = id3_title_artist(path) - title.strip() - artist.strip() + + artist = artist.strip() if a...
fix crash when audio artist is None.
py
diff --git a/optimizer.py b/optimizer.py index <HASH>..<HASH> 100644 --- a/optimizer.py +++ b/optimizer.py @@ -411,7 +411,7 @@ class Registers(object): continue if tmp[0] == '(': # (de), (hl), (ix+...), ( - tmp = tmp[0:2] + tmp = tmp[1:-1] ...
bugfix/optimizer Fix value reset on indirect access
py
diff --git a/proto/src/Rammbock.py b/proto/src/Rammbock.py index <HASH>..<HASH> 100644 --- a/proto/src/Rammbock.py +++ b/proto/src/Rammbock.py @@ -181,6 +181,12 @@ class Rammbock(object): else: self._message_in_progress.add(field) + def struct(self, amount, name): + raise Exception("NI...
add keyword stubs for struct and end struct
py
diff --git a/botox/aws.py b/botox/aws.py index <HASH>..<HASH> 100644 --- a/botox/aws.py +++ b/botox/aws.py @@ -224,3 +224,19 @@ class AWS(object): security_groups=groups ).instances[0] return instance + + def get(self, arg): + """ + Return instance object with given EC2 I...
Port over get_instance, rename it to just get()
py
diff --git a/test/interface/reconfigure_stress.py b/test/interface/reconfigure_stress.py index <HASH>..<HASH> 100755 --- a/test/interface/reconfigure_stress.py +++ b/test/interface/reconfigure_stress.py @@ -7,7 +7,7 @@ produces a specific workload instead of a random one.""" from __future__ import print_function -...
Previously, reconfigure_stress.py supported up to <I> servers. Now the limit is <I>*<I>.
py
diff --git a/master/buildbot/changes/p4poller.py b/master/buildbot/changes/p4poller.py index <HASH>..<HASH> 100644 --- a/master/buildbot/changes/p4poller.py +++ b/master/buildbot/changes/p4poller.py @@ -156,6 +156,8 @@ class P4Source(base.PollingChangeSource, util.ComparableMixin): self.use_tickets = use_ticke...
Modified p4poller to throw exception
py
diff --git a/src/setup.py b/src/setup.py index <HASH>..<HASH> 100644 --- a/src/setup.py +++ b/src/setup.py @@ -6,7 +6,7 @@ with open(os.path.join(os.path.dirname(__file__), 'README.txt')) as f: setup( name="pyshark", - version="0.3.6.1", + version="0.3.6.2", packages=find_packages(), package_dat...
Updated setup.py version.
py
diff --git a/dapple/__main__.py b/dapple/__main__.py index <HASH>..<HASH> 100755 --- a/dapple/__main__.py +++ b/dapple/__main__.py @@ -1,3 +1,4 @@ +from __future__ import print_function import os import importlib import dapple @@ -7,16 +8,26 @@ import subprocess import click from . import cli -if __name__ == "__...
Don't automatically create dapple packages when dapple is run.
py
diff --git a/cumulusci/cli/config.py b/cumulusci/cli/config.py index <HASH>..<HASH> 100644 --- a/cumulusci/cli/config.py +++ b/cumulusci/cli/config.py @@ -72,13 +72,12 @@ class CliConfig(object): pass # we don't have osascript, probably. def _get_platform_alert_cmd(self, message): - message ...
Move alert quote escaping to osx only
py
diff --git a/authemail/serializers.py b/authemail/serializers.py index <HASH>..<HASH> 100644 --- a/authemail/serializers.py +++ b/authemail/serializers.py @@ -44,4 +44,4 @@ class EmailChangeVerifySerializer(serializers.Serializer): class UserSerializer(serializers.ModelSerializer): class Meta: model = ge...
Add id field to UserSerializer
py
diff --git a/sirmordred/task_enrich.py b/sirmordred/task_enrich.py index <HASH>..<HASH> 100644 --- a/sirmordred/task_enrich.py +++ b/sirmordred/task_enrich.py @@ -233,6 +233,7 @@ class TaskEnrich(Task): logger.debug("Executing studies for %s: %s" % (self.backend_section, studies)) time.sleep(2) # Wai...
[studies] Include raw backend to studies This code adds the ocean backend as parameter for studies. This modification is required since some studies need access to the raw index (which could be stored in a different machine).
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -1,6 +1,7 @@ #!/usr/bin/env python # Generated by jaraco.develop (https://bitbucket.org/jaraco/jaraco.develop) import io +import sys import setuptools @@ -9,6 +10,11 @@ with io.open('README.txt', encoding='utf-8...
Only require pytest-runner and sphinx when a command indicates it.
py
diff --git a/worldengine/generation.py b/worldengine/generation.py index <HASH>..<HASH> 100644 --- a/worldengine/generation.py +++ b/worldengine/generation.py @@ -150,7 +150,7 @@ def sea_depth(world, sea_level): def next_land_dynamic(ocean, max_radius=5): - next_land = numpy.full(ocean.shape, -1) + ...
changed type of next_land to int
py
diff --git a/clearly/command_line.py b/clearly/command_line.py index <HASH>..<HASH> 100644 --- a/clearly/command_line.py +++ b/clearly/command_line.py @@ -1,9 +1,5 @@ -import logging - import click -logger = logging.getLogger(__name__) - class AliasedGroup(click.Group): """Used to allow calling shorten comma...
remove unneeded logging in command line
py