diff
stringlengths
139
3.65k
message
stringlengths
8
627
diff_languages
stringclasses
1 value
diff --git a/elasticapm/transport/http.py b/elasticapm/transport/http.py index <HASH>..<HASH> 100644 --- a/elasticapm/transport/http.py +++ b/elasticapm/transport/http.py @@ -31,6 +31,7 @@ # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. import hashlib +import json import re import ssl @@...
be a bit more careful with decoding the APM Server get_config response to JSON (#<I>) apparently, there are still cases where the answer could be invalid JSON, see <URL>
py
diff --git a/scripts/lib/mha_vip_helper.py b/scripts/lib/mha_vip_helper.py index <HASH>..<HASH> 100644 --- a/scripts/lib/mha_vip_helper.py +++ b/scripts/lib/mha_vip_helper.py @@ -19,6 +19,8 @@ class MHA_VIP_helper(object): cmd = "%s %s -t -q %s@%s \"%s\"" % (MHA_config_helper.SSH, ssh_options, ...
Add debug message before execution of VIP change commands
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -33,7 +33,7 @@ tests_require = [ install_requires = [ "BeautifulSoup>=3.2.1", "boto3>=1.4.4,<1.5.0", - "djangorestframework==3.1.3", + "djangorestframework==3.2.5", "mistune>0.7,<0.9", "python-dateut...
py3(drf): bump djangorestframework to <I>.x (#<I>)
py
diff --git a/bugwarrior/command.py b/bugwarrior/command.py index <HASH>..<HASH> 100644 --- a/bugwarrior/command.py +++ b/bugwarrior/command.py @@ -128,5 +128,7 @@ def set(target, username): @click.command() def uda(): conf = load_config() + print "# Bugwarrior UDAs" for uda in get_defined_udas_as_strings...
Also add markers so users will find it easier to know which UDAs were generated by Bugwarrior.
py
diff --git a/pyparsing/__init__.py b/pyparsing/__init__.py index <HASH>..<HASH> 100644 --- a/pyparsing/__init__.py +++ b/pyparsing/__init__.py @@ -105,7 +105,7 @@ __version__ = "{}.{}.{}".format(*__version_info__[:3]) + ( ), "", )[__version_info__.release_level == "final"] -__version_time__ = "23 October 202...
update version timestamp; prep for release
py
diff --git a/src/remote_pdb.py b/src/remote_pdb.py index <HASH>..<HASH> 100644 --- a/src/remote_pdb.py +++ b/src/remote_pdb.py @@ -108,7 +108,7 @@ class RemotePdb(Pdb): def set_trace(self, frame=None): if frame is None: - frame = sys._getframe(1).f_back + frame = sys._getframe().f_...
Correctly set the frame to start tracing from.
py
diff --git a/pycoin/cmds/coinc.py b/pycoin/cmds/coinc.py index <HASH>..<HASH> 100755 --- a/pycoin/cmds/coinc.py +++ b/pycoin/cmds/coinc.py @@ -42,6 +42,14 @@ def coinc(args, parser): compiled_script = script_tools.compile(arg) print(b2h(compiled_script)) + address_p2s = network.ui.address_for...
Add some extra output to coinc.
py
diff --git a/rinoh/frontend/rst/nodes.py b/rinoh/frontend/rst/nodes.py index <HASH>..<HASH> 100644 --- a/rinoh/frontend/rst/nodes.py +++ b/rinoh/frontend/rst/nodes.py @@ -135,6 +135,11 @@ class Line(NestedElement): style='line block line') +class Doctest_Block(CustomElement): + def p...
Support reStructuredText doctest blocks
py
diff --git a/discord/member.py b/discord/member.py index <HASH>..<HASH> 100644 --- a/discord/member.py +++ b/discord/member.py @@ -125,3 +125,11 @@ class Member(User): return Colour.default() color = colour + + @property + def mention(self): + if self.nick: + return '<@!{}>'....
Member.mention now uses nickname hint if needed.
py
diff --git a/GitHubCity.py b/GitHubCity.py index <HASH>..<HASH> 100755 --- a/GitHubCity.py +++ b/GitHubCity.py @@ -65,9 +65,22 @@ class GitHubCity: a new instance of GithubCity class """ + if type(city)!="str": + raise Exception("City is not a str") self._city = city +...
Adding exceptions to constructor. No more for now #<I>
py
diff --git a/src/python/grpcio_tests/tests/unit/_dns_resolver_test.py b/src/python/grpcio_tests/tests/unit/_dns_resolver_test.py index <HASH>..<HASH> 100644 --- a/src/python/grpcio_tests/tests/unit/_dns_resolver_test.py +++ b/src/python/grpcio_tests/tests/unit/_dns_resolver_test.py @@ -50,7 +50,11 @@ class DNSResolverT...
fix python dns resolver tests on kokoro MacService (#<I>)
py
diff --git a/dbt/task/deps.py b/dbt/task/deps.py index <HASH>..<HASH> 100644 --- a/dbt/task/deps.py +++ b/dbt/task/deps.py @@ -1,4 +1,5 @@ import os +import errno import re import yaml import pprint @@ -46,13 +47,20 @@ class DepsTask: def __pull_deps_recursive(self, repos): for repo in repos: - ...
show a useful error message and exit(1) if a dependency has no dbt_project.yml file
py
diff --git a/neomodel/util.py b/neomodel/util.py index <HASH>..<HASH> 100644 --- a/neomodel/util.py +++ b/neomodel/util.py @@ -192,10 +192,10 @@ class Database(local): try: # Retrieve the data - start = time.clock() + start = time.time() response = session.run(...
Update util.py To overcome the deprecation warning provided by time library.
py
diff --git a/make_release.py b/make_release.py index <HASH>..<HASH> 100644 --- a/make_release.py +++ b/make_release.py @@ -102,4 +102,4 @@ if token: response = requests.post(releases_url, json=release, headers={'Authorization': 'token ' + token}) print(response.status_code, response.text) -run(['python', 's...
Remove legacy 'register' call during release
py
diff --git a/eventsourcing/__init__.py b/eventsourcing/__init__.py index <HASH>..<HASH> 100644 --- a/eventsourcing/__init__.py +++ b/eventsourcing/__init__.py @@ -1 +1 @@ -__version__ = "9.2.6" +__version__ = "9.2.7"
Increased version number to <I>.
py
diff --git a/searx/engines/startpage.py b/searx/engines/startpage.py index <HASH>..<HASH> 100644 --- a/searx/engines/startpage.py +++ b/searx/engines/startpage.py @@ -1,6 +1,6 @@ from urllib import quote from lxml import html -from urlparse import urljoin +from urlparse import urljoin, urlparse from cgi import escap...
[fix] sanitize results
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -70,14 +70,14 @@ def setup_package(): 'Topic :: Scientific/Engineering :: GIS', 'License :: OSI Approved :: BSD License', 'Programming Language :: Python', - 'Programming Langu...
updating supported Python versions in setup.py
py
diff --git a/pysos/main.py b/pysos/main.py index <HASH>..<HASH> 100755 --- a/pysos/main.py +++ b/pysos/main.py @@ -245,9 +245,12 @@ def sos_config(args, workflow_args): values = [] for v in args.__set_config__[1:]: try: - v = eval(v) + v_val = eval(v) + ...
Treat objects that cannot be saved in yaml as string
py
diff --git a/calloway/apps/custom_registration/backends/email/__init__.py b/calloway/apps/custom_registration/backends/email/__init__.py index <HASH>..<HASH> 100644 --- a/calloway/apps/custom_registration/backends/email/__init__.py +++ b/calloway/apps/custom_registration/backends/email/__init__.py @@ -23,15 +23,14 @@ c...
Added an expire date when a user registers, and other minor syntax fixes
py
diff --git a/mobly/base_test.py b/mobly/base_test.py index <HASH>..<HASH> 100644 --- a/mobly/base_test.py +++ b/mobly/base_test.py @@ -187,12 +187,6 @@ class BaseTestClass(object): called. """ self.current_test_name = test_name - try: - # Write test start token to adb log if...
Remove sl4a log lines from base_test. (#<I>)
py
diff --git a/holoviews/__init__.py b/holoviews/__init__.py index <HASH>..<HASH> 100644 --- a/holoviews/__init__.py +++ b/holoviews/__init__.py @@ -1,6 +1,6 @@ from __future__ import print_function, absolute_import -import os, pydoc, io +import os, io import numpy as np # noqa (API import) import param @@ -85,7 +...
Fixed missing pydoc (#<I>)
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -23,7 +23,7 @@ if sys.argv[-1] == "publish": required = [ "pip>=18.0", "certifi", - "setuptools>=36.2.1", + "setuptools==60.10.0", "virtualenv-clone>=0.2.5", "virtualenv" ]
Attempt to pin setuptools to fix failing test.
py
diff --git a/tmuxp/cli.py b/tmuxp/cli.py index <HASH>..<HASH> 100644 --- a/tmuxp/cli.py +++ b/tmuxp/cli.py @@ -399,7 +399,11 @@ def command_load(args): """Load a session from a tmuxp session file.""" if isinstance(args.config, list): - args.config = ' '.join(args.config) + for config in args.c...
Allow multiple configuration files on command line Fixes tony/tmuxp#<I> as far as I'm concerned
py
diff --git a/test_isort.py b/test_isort.py index <HASH>..<HASH> 100644 --- a/test_isort.py +++ b/test_isort.py @@ -1499,3 +1499,11 @@ def test_top_of_line_comments(): 'import logging\n') output = SortImports(file_contents=test_input).output assert output.startswith('# -*- coding: utf-8 -*-...
Add test for issue #<I>
py
diff --git a/explorer/forms.py b/explorer/forms.py index <HASH>..<HASH> 100644 --- a/explorer/forms.py +++ b/explorer/forms.py @@ -4,6 +4,7 @@ from django.forms.widgets import CheckboxInput, Select import app_settings from explorer.models import Query, MSG_FAILED_BLACKLIST +from explorer.app_settings import EXPLORE...
default to correct connection on the query form
py
diff --git a/alerta/common/transform.py b/alerta/common/transform.py index <HASH>..<HASH> 100644 --- a/alerta/common/transform.py +++ b/alerta/common/transform.py @@ -1,5 +1,6 @@ import os +import sys import re import fnmatch import yaml @@ -10,15 +11,24 @@ from alerta.common import log as logging CONF = config....
bugfix: load yaml config for transformers
py
diff --git a/manticore/native/cpu/x86.py b/manticore/native/cpu/x86.py index <HASH>..<HASH> 100644 --- a/manticore/native/cpu/x86.py +++ b/manticore/native/cpu/x86.py @@ -583,7 +583,7 @@ class AMD64RegFile(RegisterFile): self._cache.pop(affected, None) def read(self, name): - name = self._ali...
Symbolic memory model bugfixes (#<I>) * Apply returned operands from memory read callbacks * Limit memory callbacks in favor of pluggable memory model * Support len() in bytes for bitvectors * Rolled back changes to read_int * Fix misdirected imports in logging module * Add docstring * Update express...
py
diff --git a/pgmpy/base/DAG.py b/pgmpy/base/DAG.py index <HASH>..<HASH> 100644 --- a/pgmpy/base/DAG.py +++ b/pgmpy/base/DAG.py @@ -723,7 +723,7 @@ class DAG(nx.DiGraph): # down -> from child to parent active_trails = {} - for start in variables if isinstance(variables, (list, tuple)) else [va...
Allow tuple as variable name in DAG.active_trail_nodes
py
diff --git a/filestack/filestack_client.py b/filestack/filestack_client.py index <HASH>..<HASH> 100644 --- a/filestack/filestack_client.py +++ b/filestack/filestack_client.py @@ -1,4 +1,4 @@ -from filestack.config import API_URL, HEADERS, STORE_PATH, FILE_PATH +from filestack.config import API_URL, HEADERS, STORE_PATH,...
restrict CommonMixin methods on client
py
diff --git a/datajoint/relational_operand.py b/datajoint/relational_operand.py index <HASH>..<HASH> 100644 --- a/datajoint/relational_operand.py +++ b/datajoint/relational_operand.py @@ -193,7 +193,7 @@ class RelationalOperand(metaclass=abc.ABCMeta): repr_string += ' '.join(['+' + '-'*(width-2) + '+' for _ in ...
bug fix: replaced rel.count with len(rel)
py
diff --git a/dallinger/command_line.py b/dallinger/command_line.py index <HASH>..<HASH> 100755 --- a/dallinger/command_line.py +++ b/dallinger/command_line.py @@ -304,6 +304,8 @@ def debug(verbose, bot): ready = True break + epipe = 0 + participant = None if ready: host =...
add code to correctly exit debug mode after running experiment
py
diff --git a/holoviews/plotting/bokeh/__init__.py b/holoviews/plotting/bokeh/__init__.py index <HASH>..<HASH> 100644 --- a/holoviews/plotting/bokeh/__init__.py +++ b/holoviews/plotting/bokeh/__init__.py @@ -2,7 +2,8 @@ from ...core import Store, Overlay, NdOverlay, Layout, AdjointLayout, GridSpace from ...element impo...
Added ItemTable to bokeh backend
py
diff --git a/alphatwirl/heppyresult/ComponentLoop.py b/alphatwirl/heppyresult/ComponentLoop.py index <HASH>..<HASH> 100644 --- a/alphatwirl/heppyresult/ComponentLoop.py +++ b/alphatwirl/heppyresult/ComponentLoop.py @@ -7,6 +7,7 @@ class ComponentLoop(object): self.reader = reader self.heppyResult = he...
extract DatasetLoop from ComponentLoop
py
diff --git a/scvelo/preprocessing/__init__.py b/scvelo/preprocessing/__init__.py index <HASH>..<HASH> 100644 --- a/scvelo/preprocessing/__init__.py +++ b/scvelo/preprocessing/__init__.py @@ -49,14 +49,14 @@ def read_loom_layers(file_name, backup_url=None): return adata -def recipe_velocity(adata, min_counts=10...
add n_neighbors attr to recipe_velocity
py
diff --git a/mutagen/id3.py b/mutagen/id3.py index <HASH>..<HASH> 100644 --- a/mutagen/id3.py +++ b/mutagen/id3.py @@ -58,7 +58,10 @@ class ID3(mutagen.Metadata): def fullread(self, size): try: if size > self.__filesize or size < 0: - raise EOFError, 'requested %#x of %#x (%s)'...
Be verbose about reading more than the file's size if PRINT_ERRORS.
py
diff --git a/spyder/widgets/sourcecode/base.py b/spyder/widgets/sourcecode/base.py index <HASH>..<HASH> 100644 --- a/spyder/widgets/sourcecode/base.py +++ b/spyder/widgets/sourcecode/base.py @@ -799,7 +799,7 @@ class TextEditBaseWidget(QPlainTextEdit, BaseEditMixin): cur_pos = prev_pos = cursor.position() ...
Adds comment to explain the current behaviour.
py
diff --git a/trezor_agent/gpg/encode.py b/trezor_agent/gpg/encode.py index <HASH>..<HASH> 100644 --- a/trezor_agent/gpg/encode.py +++ b/trezor_agent/gpg/encode.py @@ -52,7 +52,6 @@ class HardwareSigner(object): def close(self): """Close the connection to the device.""" - self.client_wrapper.conne...
gpg: don't clear the session after PIN is entered This would allow single PIN entry when running multiple GPG commands.
py
diff --git a/nistbeacon/__init__.py b/nistbeacon/__init__.py index <HASH>..<HASH> 100644 --- a/nistbeacon/__init__.py +++ b/nistbeacon/__init__.py @@ -1,3 +1,4 @@ from nistbeacon.nistbeacon import NistBeacon +from nistbeacon.nistbeaconvalue import NistBeaconValue __version__ = '0.6.0'
We can import from init making it easier to use
py
diff --git a/xenon/__init__.py b/xenon/__init__.py index <HASH>..<HASH> 100644 --- a/xenon/__init__.py +++ b/xenon/__init__.py @@ -1,4 +1,5 @@ from .context import (Xenon) +from .proto import (xenon_pb2 as Messages) __version__ = "2.0.0-alpha" -__all__ = ['Xenon'] +__all__ = ['Xenon', 'Messages']
add import xenon_pb2 as Messages to __init__, so that messages can be generated independent of server instance
py
diff --git a/tests/test_concrete.py b/tests/test_concrete.py index <HASH>..<HASH> 100644 --- a/tests/test_concrete.py +++ b/tests/test_concrete.py @@ -218,6 +218,25 @@ class TestPattern2Re(unittest.TestCase): ('some?file*.txt', True), ('some?filename.txt', False), (...
Adds more tests for '**'
py
diff --git a/sdk/core/azure-core/azure/core/_version.py b/sdk/core/azure-core/azure/core/_version.py index <HASH>..<HASH> 100644 --- a/sdk/core/azure-core/azure/core/_version.py +++ b/sdk/core/azure-core/azure/core/_version.py @@ -9,4 +9,4 @@ # regenerated. # ----------------------------------------------------------...
update version number (#<I>)
py
diff --git a/rinoh/layout.py b/rinoh/layout.py index <HASH>..<HASH> 100644 --- a/rinoh/layout.py +++ b/rinoh/layout.py @@ -168,7 +168,7 @@ class ContainerBase(FlowableTarget): def check_overflow(self): for child in self.children: child.check_overflow() - if self.chain and self.cursor >...
Fix reflow on Float placement
py
diff --git a/trollimage/xrimage.py b/trollimage/xrimage.py index <HASH>..<HASH> 100644 --- a/trollimage/xrimage.py +++ b/trollimage/xrimage.py @@ -299,7 +299,7 @@ class XRImage(object): if "start_time" in data.attrs: stime = data.attrs['start_time'] stime_str =...
Fix typo in xrimage This is what I get for using the github editor
py
diff --git a/splunklib/modularinput/event.py b/splunklib/modularinput/event.py index <HASH>..<HASH> 100755 --- a/splunklib/modularinput/event.py +++ b/splunklib/modularinput/event.py @@ -63,7 +63,7 @@ class Event(object): self.host = host self.index = index self.source = source - self....
Fix casing issue with sourcetypes, addresses DVPL-<I>
py
diff --git a/git/remote.py b/git/remote.py index <HASH>..<HASH> 100644 --- a/git/remote.py +++ b/git/remote.py @@ -255,7 +255,7 @@ class FetchInfo(object): return True - def __init__(self, ref: SymbolicReference, flags: Set[int], note: str = '', old_commit: Optional[Commit] = None, + def __init__(sel...
change a type (Commit) to a forward ref
py
diff --git a/sos/JavaScript/kernel.py b/sos/JavaScript/kernel.py index <HASH>..<HASH> 100644 --- a/sos/JavaScript/kernel.py +++ b/sos/JavaScript/kernel.py @@ -56,7 +56,7 @@ def _JS_repr(obj): numpy.float64, numpy.matrixlib.defmatrix.matrix, numpy.ndarray)): return json.dumps(obj.tolist()) ...
Document the support for JavaScript language #<I>
py
diff --git a/telethon/telegram_bare_client.py b/telethon/telegram_bare_client.py index <HASH>..<HASH> 100644 --- a/telethon/telegram_bare_client.py +++ b/telethon/telegram_bare_client.py @@ -1,6 +1,7 @@ import logging import os import threading +import warnings from datetime import timedelta, datetime from hashlib...
Warn users on .add_update_handler if no workers are running (#<I>)
py
diff --git a/tcex/testing/test_case_playbook.py b/tcex/testing/test_case_playbook.py index <HASH>..<HASH> 100644 --- a/tcex/testing/test_case_playbook.py +++ b/tcex/testing/test_case_playbook.py @@ -107,5 +107,6 @@ class TestCasePlaybook(TestCasePlaybookCommon): """Run after each test method runs.""" ...
allowing the ability to stage case_management data for testing purposes
py
diff --git a/python/mxnet/test_utils.py b/python/mxnet/test_utils.py index <HASH>..<HASH> 100644 --- a/python/mxnet/test_utils.py +++ b/python/mxnet/test_utils.py @@ -1911,12 +1911,15 @@ def chi_square_check(generator, buckets, probs, nsamples=1000000): if continuous_dist: sample_bucket_ids = np.searchsor...
Chi_square_check for discrete distribution fix (#<I>) * check for bucket instead of index * enumerate instead of range(len()) * count instead of sum to solve attribute error * revert to sum * seperate discrete and continuous * Trigger CI
py
diff --git a/test/test_path.py b/test/test_path.py index <HASH>..<HASH> 100644 --- a/test/test_path.py +++ b/test/test_path.py @@ -6,8 +6,8 @@ from math import sqrt, pi # Internal dependencies from svgpathtools import * -# A note left from the svg.path tools module: -# ------------------------------------------- +#...
minor change to in-line comments Note only is this true of tests left from svg.path but also those written by me.
py
diff --git a/peri/fft.py b/peri/fft.py index <HASH>..<HASH> 100644 --- a/peri/fft.py +++ b/peri/fft.py @@ -100,6 +100,15 @@ if hasfftw: @atexit.register def goodbye(): save_wisdom(conf.get_wisdom()) + + # need to provide a function which conditionally normalizes the result of + # an ifft becaus...
fft: adding fftnorm function so that fftw and numpy normalization are equal
py
diff --git a/sphinx/source/docs/user_guide/source_examples/styling_glyph_hover.py b/sphinx/source/docs/user_guide/source_examples/styling_glyph_hover.py index <HASH>..<HASH> 100644 --- a/sphinx/source/docs/user_guide/source_examples/styling_glyph_hover.py +++ b/sphinx/source/docs/user_guide/source_examples/styling_glyp...
better formatter example for docs
py
diff --git a/airflow/providers/google/cloud/example_dags/example_mlengine.py b/airflow/providers/google/cloud/example_dags/example_mlengine.py index <HASH>..<HASH> 100644 --- a/airflow/providers/google/cloud/example_dags/example_mlengine.py +++ b/airflow/providers/google/cloud/example_dags/example_mlengine.py @@ -172,7...
Improve example DAG for ML Engine (#<I>)
py
diff --git a/salt/states/dockerng.py b/salt/states/dockerng.py index <HASH>..<HASH> 100644 --- a/salt/states/dockerng.py +++ b/salt/states/dockerng.py @@ -2151,7 +2151,7 @@ def volume_present(name, driver=None, driver_opts=None): return ret # volume exits, check if driver is the same. volume = vo...
don't delete existing Docker volume if driver unspecified Before, if the driver parameter wasn't specified, the dockerng state module's volume_present() function would try to delete the volume and recreate it. Now it simply ignores the existing volume's driver setting and returns success. Note that this change assum...
py
diff --git a/dedupe/training.py b/dedupe/training.py index <HASH>..<HASH> 100644 --- a/dedupe/training.py +++ b/dedupe/training.py @@ -508,10 +508,9 @@ def dominators(match_cover, total_cover, comparison=False): def _count_elements(mapping, iterable): 'Tally elements from the iterable.' - mapping = collectio...
correct api for _count_elements
py
diff --git a/services/datalad/datalad_service/common/s3.py b/services/datalad/datalad_service/common/s3.py index <HASH>..<HASH> 100644 --- a/services/datalad/datalad_service/common/s3.py +++ b/services/datalad/datalad_service/common/s3.py @@ -76,7 +76,7 @@ def setup_s3_sibling(dataset_path, realm): """Add a siblin...
fix: Ignore return status for initremote Reverts this behavior to <I>
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -9,7 +9,7 @@ setup( name='sphinxcontrib-traceability', version='0.1.0', url='https://github.com/ociu/sphinx-traceability-extension', - license='GNU GENERAL PUBLIC LICENSE', + license='GNU General Public Li...
Minor correction to make PyPi registration work
py
diff --git a/bedup/tracking.py b/bedup/tracking.py index <HASH>..<HASH> 100644 --- a/bedup/tracking.py +++ b/bedup/tracking.py @@ -434,12 +434,17 @@ def dedup_tracked(sess, volset): tt.notify( 'Potential space gain: pass 1 %d, pass 2 %d pass 3 %d' % ( space_gain1, space_gain2, spa...
Don't clear updates when there's been an error.
py
diff --git a/alignak/worker.py b/alignak/worker.py index <HASH>..<HASH> 100644 --- a/alignak/worker.py +++ b/alignak/worker.py @@ -322,7 +322,7 @@ class Worker(object): else: return 0 - def work(self, slave_q, returns_queue, control_q): # pragma: not with unit tests... + def work(self, sl...
Fix no cover pragma in worker
py
diff --git a/flaskext/sqlalchemy.py b/flaskext/sqlalchemy.py index <HASH>..<HASH> 100644 --- a/flaskext/sqlalchemy.py +++ b/flaskext/sqlalchemy.py @@ -533,8 +533,6 @@ class SQLAlchemy(object): app.config.setdefault('SQLALCHEMY_POOL_TIMEOUT', None) app.config.setdefault('SQLALCHEMY_POOL_RECYCLE', None)...
Don't assign app to self, that is not supported
py
diff --git a/salt/output/highstate.py b/salt/output/highstate.py index <HASH>..<HASH> 100644 --- a/salt/output/highstate.py +++ b/salt/output/highstate.py @@ -85,6 +85,14 @@ def output(data): The HighState Outputter is only meant to be used with the state.highstate function, or a function that returns highsta...
Fix orchestrate outputter when retcode is appended to orchestrate run Fixes #<I> Refs #<I>, #<I>, and #<I>
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -13,7 +13,7 @@ setup( author="R. Kevin Nelson", author_email="kevin@rkn.la", description="Pale is a framework for crafting HTTP APIs.", - license="Copyright 2015-present, Loudr.fm. All rights reserved.", + ...
Update setup.py to reference MIT license
py
diff --git a/safe/impact_statistics/postprocessor_manager.py b/safe/impact_statistics/postprocessor_manager.py index <HASH>..<HASH> 100644 --- a/safe/impact_statistics/postprocessor_manager.py +++ b/safe/impact_statistics/postprocessor_manager.py @@ -23,6 +23,7 @@ from collections import OrderedDict from qgis.core imp...
Rename Null value for attribute's value in aggregation layer.
py
diff --git a/scvelo/plotting/scatter.py b/scvelo/plotting/scatter.py index <HASH>..<HASH> 100644 --- a/scvelo/plotting/scatter.py +++ b/scvelo/plotting/scatter.py @@ -612,8 +612,9 @@ def scatter( if isinstance(kwargs["s"], np.ndarray): # sort sizes if array-type kwargs["s"...
allow marker passed through kwargs
py
diff --git a/aioftp/client.py b/aioftp/client.py index <HASH>..<HASH> 100644 --- a/aioftp/client.py +++ b/aioftp/client.py @@ -1081,6 +1081,7 @@ class Client(BaseClient): port, self.loop, self.create_connection, + self.ssl, ) return reader, writer
client: add missed ssl context
py
diff --git a/assess_autoload_credentials.py b/assess_autoload_credentials.py index <HASH>..<HASH> 100755 --- a/assess_autoload_credentials.py +++ b/assess_autoload_credentials.py @@ -34,10 +34,10 @@ def assess_autoload_credentials(juju_bin): for scenario_name, scenario_setup in test_scenarios: log.info(...
Rename test method as per projects naming convention.
py
diff --git a/i3ipc.py b/i3ipc.py index <HASH>..<HASH> 100644 --- a/i3ipc.py +++ b/i3ipc.py @@ -120,7 +120,7 @@ class _PubSub(object): self._subscriptions = [] def subscribe(self, detailed_event, handler): - event = detailed_event.replace('_', '-') + event = detailed_event.replace('-', '_')...
bugfix: use underscore as canonical event name When determining the canonical event name for internal use, always use underscore in place of dashes to be consistent with the ipc api. The user should still be able to pass dashes in place of underscore for consistency with the old glib api.
py
diff --git a/pyang/plugins/jtox.py b/pyang/plugins/jtox.py index <HASH>..<HASH> 100644 --- a/pyang/plugins/jtox.py +++ b/pyang/plugins/jtox.py @@ -59,7 +59,7 @@ def process_children(node, parent): if ch.keyword in ["choice", "case"]: process_children(ch, parent) continue - ndat...
jtox plugin: make node prefix into a dictionary key.
py
diff --git a/canary/api.py b/canary/api.py index <HASH>..<HASH> 100644 --- a/canary/api.py +++ b/canary/api.py @@ -146,6 +146,17 @@ class Api: }, ) + def get_latest_entries(self, location_id): + entries = self.get_entries(location_id) + entries_by_device_uuid = {} + + for...
feat: add get latest entry for each device gets the latest entry by device
py
diff --git a/doapi/tag.py b/doapi/tag.py index <HASH>..<HASH> 100644 --- a/doapi/tag.py +++ b/doapi/tag.py @@ -71,12 +71,14 @@ class Tag(Resource): self.doapi_manager.request(self.url, method='DELETE') def add(self, *resources): - res = [r if isinstance(r, dict) else r._taggable() for r in resour...
Tag.add: Pass all non-taggables through unchanged
py
diff --git a/salt/daemons/flo/core.py b/salt/daemons/flo/core.py index <HASH>..<HASH> 100644 --- a/salt/daemons/flo/core.py +++ b/salt/daemons/flo/core.py @@ -496,7 +496,7 @@ class SaltLoadPillar(ioflo.base.deeding.Deed): ''' # default master is the first remote # this default destination wil...
Fixed invalid yard value in pillar route
py
diff --git a/salt/grains/core.py b/salt/grains/core.py index <HASH>..<HASH> 100644 --- a/salt/grains/core.py +++ b/salt/grains/core.py @@ -42,7 +42,7 @@ from distro import linux_distribution from salt.ext import six from salt.ext.six.moves import range -from multiprocessing.dummy import Pool as ThreadPool +from mul...
Use ThreadPool from multiprocessing.pool to avoid leakings
py
diff --git a/xclim/testing/_utils.py b/xclim/testing/_utils.py index <HASH>..<HASH> 100644 --- a/xclim/testing/_utils.py +++ b/xclim/testing/_utils.py @@ -154,14 +154,14 @@ def open_dataset( raise -def list_datasets(branch="main"): +def list_datasets(github_repo="Ouranosinc/xclim-testdata", branch="main"):...
add repo arg and more doc
py
diff --git a/contrib/bzr_buildbot.py b/contrib/bzr_buildbot.py index <HASH>..<HASH> 100755 --- a/contrib/bzr_buildbot.py +++ b/contrib/bzr_buildbot.py @@ -209,7 +209,7 @@ if DEFINE_POLLER: compare_attrs = ['url'] def __init__(self, url, poll_interval=10*60, blame_merge_author=False, - ...
Support categories from BzrPoller
py
diff --git a/src/fileseq/all.py b/src/fileseq/all.py index <HASH>..<HASH> 100644 --- a/src/fileseq/all.py +++ b/src/fileseq/all.py @@ -151,7 +151,7 @@ class FrameSet(object): if not _f: return self.__set.update(_f) - self.__list.extend(_f) + self.__list+=_f def __...
Use the += operator instead of extend.
py
diff --git a/chainerui/models/argument.py b/chainerui/models/argument.py index <HASH>..<HASH> 100644 --- a/chainerui/models/argument.py +++ b/chainerui/models/argument.py @@ -29,11 +29,11 @@ class Argument(DB_BASE): arguments = [] if isinstance(json.loads(self.data), dict): - for item in ...
add cast to string to deal with NaN/Inf
py
diff --git a/PyFunceble/checker/availability/extra_rules.py b/PyFunceble/checker/availability/extra_rules.py index <HASH>..<HASH> 100644 --- a/PyFunceble/checker/availability/extra_rules.py +++ b/PyFunceble/checker/availability/extra_rules.py @@ -97,7 +97,7 @@ class ExtraRulesHandler: r"\.wix\.com$": [(sel...
Switched the <I> to <I> at weebly.com My tor browser got the <I> response code, while pyfunceble gets the <I> code, leaving me to change it to <I>
py
diff --git a/telethon/utils.py b/telethon/utils.py index <HASH>..<HASH> 100644 --- a/telethon/utils.py +++ b/telethon/utils.py @@ -649,8 +649,8 @@ def _get_extension(file): kind = imghdr.what(io.BytesIO(file)) return ('.' + kind) if kind else '' elif isinstance(file, io.IOBase) and file.seekable(...
ValueError fix for IOBase files (#<I>)
py
diff --git a/salt/states/pkg.py b/salt/states/pkg.py index <HASH>..<HASH> 100644 --- a/salt/states/pkg.py +++ b/salt/states/pkg.py @@ -363,8 +363,9 @@ def installed( Multiple Package Installation Options: (not supported in Windows or pkgng) pkgs - A list of packages to install from a software reposit...
Updated the pkg state docs since I swapped the pkgs and names definitions when adding names a few nights ago.
py
diff --git a/openquake/calculators/classical.py b/openquake/calculators/classical.py index <HASH>..<HASH> 100644 --- a/openquake/calculators/classical.py +++ b/openquake/calculators/classical.py @@ -164,6 +164,7 @@ class PSHACalculator(base.HazardCalculator): else: tiles = [self.sitecol] ...
Fixed the maxweight logic [skip hazardlib] [demos] Former-commit-id: <I>fb<I>e1d<I>a<I>bb<I>f<I>aed4b<I>b9a
py
diff --git a/cms_search/search_indexes.py b/cms_search/search_indexes.py index <HASH>..<HASH> 100644 --- a/cms_search/search_indexes.py +++ b/cms_search/search_indexes.py @@ -60,7 +60,6 @@ def page_index_factory(language_code): site_id = indexes.IntegerField(stored=True, indexed=True, model_attr='site_id') ...
removes print statement /me hides in a corner in shame
py
diff --git a/bot/multithreading/scheduler.py b/bot/multithreading/scheduler.py index <HASH>..<HASH> 100644 --- a/bot/multithreading/scheduler.py +++ b/bot/multithreading/scheduler.py @@ -44,6 +44,14 @@ class SchedulerApi: return self.immediate_worker return worker + def new_worker(self, name:...
Add a new_worker function to Scheduler that creates and starts a new worker
py
diff --git a/glue/pipeline.py b/glue/pipeline.py index <HASH>..<HASH> 100644 --- a/glue/pipeline.py +++ b/glue/pipeline.py @@ -867,7 +867,10 @@ class AnalysisJob: @param cp: ConfigParser object that contains the configuration for this job. """ self.__cp = cp - self.__channel = string.strip(self.__cp.g...
added a set_channel method to AnalysisJob
py
diff --git a/petl/test/io/test_json.py b/petl/test/io/test_json.py index <HASH>..<HASH> 100644 --- a/petl/test/io/test_json.py +++ b/petl/test/io/test_json.py @@ -177,4 +177,4 @@ def test_fromdicts_header_does_not_raise(): {'foo': 'b', 'bar': 2}, {'foo': 'c', 'bar': 2}] actual = fromdicts...
don't need to compare actual header, only make sure it doesn't raise
py
diff --git a/packages/snet_cli/snet_cli/mpe_client_command.py b/packages/snet_cli/snet_cli/mpe_client_command.py index <HASH>..<HASH> 100644 --- a/packages/snet_cli/snet_cli/mpe_client_command.py +++ b/packages/snet_cli/snet_cli/mpe_client_command.py @@ -129,7 +129,8 @@ class MPEClientCommand(MPEChannelCommand): ...
added snet-payment-mpe-address in paid call in snet-cli
py
diff --git a/fingerprint/detect.py b/fingerprint/detect.py index <HASH>..<HASH> 100644 --- a/fingerprint/detect.py +++ b/fingerprint/detect.py @@ -857,7 +857,7 @@ class IontFingerprinter(object): js_base['signatures_count'] = sig_cnt js_base['packets_count'] = len(packets) js_base['keys_count...
pgp signature keys duplicity removal
py
diff --git a/bcbio/bam/fastq.py b/bcbio/bam/fastq.py index <HASH>..<HASH> 100644 --- a/bcbio/bam/fastq.py +++ b/bcbio/bam/fastq.py @@ -153,6 +153,12 @@ def downsample(f1, f2, data, N): outf1 = os.path.splitext(f1)[0] + ".subset" + os.path.splitext(f1)[1] outf2 = os.path.splitext(f2)[0] + ".subset" + os.path.s...
Added memoization to FASTQ downsampling.
py
diff --git a/jobtastic/tests/test_broker_fallbacks.py b/jobtastic/tests/test_broker_fallbacks.py index <HASH>..<HASH> 100644 --- a/jobtastic/tests/test_broker_fallbacks.py +++ b/jobtastic/tests/test_broker_fallbacks.py @@ -5,6 +5,7 @@ import mock from celery import states +from celery._state import get_current_app...
Removed a no longer valid comment and pulled up an import.
py
diff --git a/siphon/tests/test_catalog.py b/siphon/tests/test_catalog.py index <HASH>..<HASH> 100644 --- a/siphon/tests/test_catalog.py +++ b/siphon/tests/test_catalog.py @@ -176,6 +176,16 @@ def test_datasets_nearest_time(): @recorder.use_cassette('top_level_20km_rap_catalog') +def test_datasets_nearest_time_30()...
Add test for regex fix in #<I>
py
diff --git a/angr/analyses/cfg.py b/angr/analyses/cfg.py index <HASH>..<HASH> 100644 --- a/angr/analyses/cfg.py +++ b/angr/analyses/cfg.py @@ -579,14 +579,6 @@ class CFG(Analysis, CFGBase): ) else: sim_run = self._project.sim_run(current_entry.state) - except ZeroDi...
Removed the exception handler for ZeroDivisionError in CFG. It's already caught somewhere else.
py
diff --git a/openquake/calculators/ebrisk.py b/openquake/calculators/ebrisk.py index <HASH>..<HASH> 100644 --- a/openquake/calculators/ebrisk.py +++ b/openquake/calculators/ebrisk.py @@ -61,9 +61,10 @@ def _calc(computers, events, min_iml, rlzs_by_gsim, weights, for c in computers: with mon_haz: ...
Stored the number of sites affected by each contributing ruptures Former-commit-id: 4cc<I>fe8cc0e4a<I>aaf<I>eeab<I>cf4ced1a<I> [formerly be<I>cfba<I>b4fc1d<I>f<I>ef<I>d] Former-commit-id: a<I>f<I>ede<I>d<I>d<I>e7e6
py
diff --git a/aaf2/cfb.py b/aaf2/cfb.py index <HASH>..<HASH> 100644 --- a/aaf2/cfb.py +++ b/aaf2/cfb.py @@ -882,6 +882,17 @@ class CompoundFileBinary(object): self.write_fat() self.write_minifat() self.write_dir_entries() + + # Truncate file to the last free sector + for i,v in e...
truncate file to last free sector
py
diff --git a/cmsplugin_cascade/widgets.py b/cmsplugin_cascade/widgets.py index <HASH>..<HASH> 100644 --- a/cmsplugin_cascade/widgets.py +++ b/cmsplugin_cascade/widgets.py @@ -190,7 +190,7 @@ class ColorPickerWidget(widgets.MultiWidget): html += format_html('<div class="sibling-field">{0}</div>', self.widgets[0...
For colors, rename disabled -> inherit
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100755 --- a/setup.py +++ b/setup.py @@ -34,7 +34,7 @@ config_pxd_file = opj(cythonize_dir, "src", "config.pxd") if not os.path.isfile(config_pxd_file): import subprocess subprocess.check_call(["make", "configure"]) - subprocess.check_call(["./configur...
Explicitly run "sh"
py
diff --git a/j/AK.py b/j/AK.py index <HASH>..<HASH> 100755 --- a/j/AK.py +++ b/j/AK.py @@ -301,7 +301,7 @@ class AppWindow(w): if get_debug == "yes" or options.debug: settings.set_property("enable-developer-extras", True) - settings.set_property("enable-write-console-messages-to-s...
always output to stdout
py
diff --git a/tests/integration/modules/test_mac_service.py b/tests/integration/modules/test_mac_service.py index <HASH>..<HASH> 100644 --- a/tests/integration/modules/test_mac_service.py +++ b/tests/integration/modules/test_mac_service.py @@ -197,11 +197,12 @@ class MacServiceModuleTest(ModuleCase): self.asser...
Fix mac service.disable tests
py
diff --git a/atmos/equations.py b/atmos/equations.py index <HASH>..<HASH> 100644 --- a/atmos/equations.py +++ b/atmos/equations.py @@ -110,11 +110,11 @@ quantities = { }, 'lat': { 'name': 'latitude', - 'units': 'degrees N', + 'units': 'degrees', }, 'lon': { 'name': 'l...
changed quantity units to be compatible with pint
py
diff --git a/py/ai/h2o/sparkling/FrameConversions.py b/py/ai/h2o/sparkling/FrameConversions.py index <HASH>..<HASH> 100644 --- a/py/ai/h2o/sparkling/FrameConversions.py +++ b/py/ai/h2o/sparkling/FrameConversions.py @@ -15,7 +15,6 @@ # limitations under the License. # -from h2o.backend import H2OConnection from h2o...
[SW-<I>] Remove unused method in PySpakrling (#<I>)
py
diff --git a/abodepy/event_controller.py b/abodepy/event_controller.py index <HASH>..<HASH> 100644 --- a/abodepy/event_controller.py +++ b/abodepy/event_controller.py @@ -142,7 +142,7 @@ class AbodeEventController(object): device = self._abode.get_device(devid, True) if not device: - _LOG...
Changed warning to debug statement.
py
diff --git a/mistletoe/block_token.py b/mistletoe/block_token.py index <HASH>..<HASH> 100644 --- a/mistletoe/block_token.py +++ b/mistletoe/block_token.py @@ -226,8 +226,13 @@ class Paragraph(BlockToken): and not CodeFence.start(next_line) and not Quote.start(next_line)): ...
only 1-indexed ordered lists can interrupt paragraphs
py