diff
stringlengths
139
3.65k
message
stringlengths
8
627
diff_languages
stringclasses
1 value
diff --git a/setuptools/build_meta.py b/setuptools/build_meta.py index <HASH>..<HASH> 100644 --- a/setuptools/build_meta.py +++ b/setuptools/build_meta.py @@ -171,11 +171,9 @@ def build_sdist(sdist_directory, config_settings=None): config_settings = _fix_config(config_settings) sdist_directory = os.path.abspa...
build_meta sdist directory delegate to --dist-dir
py
diff --git a/test/file_test.py b/test/file_test.py index <HASH>..<HASH> 100644 --- a/test/file_test.py +++ b/test/file_test.py @@ -23,6 +23,7 @@ import os import random import shutil import unittest +import mock import luigi.format from luigi import File @@ -165,7 +166,8 @@ class FileTest(unittest.TestCase): ...
Override default encoding to utf8 in test that assumes unicode compatible Previously the `test_unicode` test would fail on machines with ascii (or similar) as the default locale encoding
py
diff --git a/h11/tests/test_io.py b/h11/tests/test_io.py index <HASH>..<HASH> 100644 --- a/h11/tests/test_io.py +++ b/h11/tests/test_io.py @@ -455,6 +455,12 @@ def test_ChunkedReader() -> None: [Data(data=b"xxxxx"), EndOfMessage()], ) + t_body_reader( + ChunkedReader, + b"5 \r\n0123...
Add a test for <I>ec<I>d<I>aacbff8fbc0fc1af7e<I>dd<I>d<I> This ensures that additional whitespace in the chunked header is parsed without error.
py
diff --git a/pyemma/coordinates/data/feature_reader.py b/pyemma/coordinates/data/feature_reader.py index <HASH>..<HASH> 100644 --- a/pyemma/coordinates/data/feature_reader.py +++ b/pyemma/coordinates/data/feature_reader.py @@ -224,6 +224,8 @@ class FeatureReader(ReaderInterface): self._logger.debug('cl...
[coordinates] fix in feature reader: close trajectory files when all data has been read
py
diff --git a/gwpy/segments/flag.py b/gwpy/segments/flag.py index <HASH>..<HASH> 100644 --- a/gwpy/segments/flag.py +++ b/gwpy/segments/flag.py @@ -650,9 +650,7 @@ class DataQualityFlag(object): name += ':%d' % int(veto.version) except TypeError: pass - if veto.end_time == 0: - ...
gwpy.segments: don't modify incoming VetoDef in DataQualityFlag.from_veto_def
py
diff --git a/tests/test_io.py b/tests/test_io.py index <HASH>..<HASH> 100644 --- a/tests/test_io.py +++ b/tests/test_io.py @@ -95,24 +95,6 @@ class SocketPollerMixin(object): sock.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1) assert sock.getsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR) - ...
OSes seem to have (sometimes internally) inconsistent ideas of what socket shutdown should do
py
diff --git a/pysos/actions.py b/pysos/actions.py index <HASH>..<HASH> 100644 --- a/pysos/actions.py +++ b/pysos/actions.py @@ -673,7 +673,8 @@ def JavaScript(script, **kwargs): @SoS_Action(run_mode='run') def R(script, **kwargs): - return SoS_ExecuteScript(script, 'Rscript', '.R').run(**kwargs) + return SoS_E...
Add plot packages to default Rscript calls
py
diff --git a/python/ray/tests/test_reference_counting.py b/python/ray/tests/test_reference_counting.py index <HASH>..<HASH> 100644 --- a/python/ray/tests/test_reference_counting.py +++ b/python/ray/tests/test_reference_counting.py @@ -231,10 +231,14 @@ def test_feature_flag(shutdown_only): self.large_objec...
Fix flaky test test_feature_flag (#<I>)
py
diff --git a/salt/modules/gpg.py b/salt/modules/gpg.py index <HASH>..<HASH> 100644 --- a/salt/modules/gpg.py +++ b/salt/modules/gpg.py @@ -629,7 +629,7 @@ def export_key(keyids=None, secret=False, user=None): if isinstance(keyids, string_types): keyids = keyids.split(',') - return gpg.export_keys(key...
Adding secret to the call to gpg.export_keys to export secret keys.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100755 --- a/setup.py +++ b/setup.py @@ -21,8 +21,6 @@ except ImportError as exp: setuptools = None from distutils.core import setup -sys.path.insert(0, os.path.dirname(os.path.abspath(__file__))) - import distutilazy import distutilazy.clean import d...
Remove adding setup.py to sys path PYTHONPATH env should be used instead
py
diff --git a/superset/cli.py b/superset/cli.py index <HASH>..<HASH> 100755 --- a/superset/cli.py +++ b/superset/cli.py @@ -46,7 +46,12 @@ feature_flags.update(config.FEATURE_FLAGS) feature_flags_func = config.GET_FEATURE_FLAGS_FUNC if feature_flags_func: # pylint: disable=not-callable - feature_flags = featur...
fix: handle context-dependent feature flags in CLI (#<I>)
py
diff --git a/salt/master.py b/salt/master.py index <HASH>..<HASH> 100644 --- a/salt/master.py +++ b/salt/master.py @@ -1243,7 +1243,7 @@ class AESFuncs(TransportMethods): "_handle_minion_event", "_return", "_syndic_return", - "minion_runner", + "_minion_runner", "pub_re...
revert _minion_runner correction for PR submission
py
diff --git a/tests/test_rationals.py b/tests/test_rationals.py index <HASH>..<HASH> 100644 --- a/tests/test_rationals.py +++ b/tests/test_rationals.py @@ -40,6 +40,19 @@ class RationalsTestCase(unittest.TestCase): strategies.integers(min_value=2) ) @settings(max_examples=50) + def testConvert(self,...
Also test conversion between bases of Radix values.
py
diff --git a/src/wormhole/servers/transit_server.py b/src/wormhole/servers/transit_server.py index <HASH>..<HASH> 100644 --- a/src/wormhole/servers/transit_server.py +++ b/src/wormhole/servers/transit_server.py @@ -20,7 +20,12 @@ class TransitConnection(protocol.Protocol): def dataReceived(self, data): ...
transit_relay: add Producer/Consumer flow control This limits the buffering to about <I>MB (per connection*direction). Previously, if the sender had more bandwidth than the receiver, the transit relay would buffer the entire file. With this change, the sender will be throttled to match the receiver's downstream speed.
py
diff --git a/cc/tasks.py b/cc/tasks.py index <HASH>..<HASH> 100644 --- a/cc/tasks.py +++ b/cc/tasks.py @@ -151,7 +151,7 @@ def refill_addresses_queue(): pass -@shared_task(throws=(socket_error,)) +@shared_task() def process_withdraw_transactions(ticker=None): if not ticker: for c...
do not ignore socket errors on sendmany
py
diff --git a/graphtools/graphs.py b/graphtools/graphs.py index <HASH>..<HASH> 100644 --- a/graphtools/graphs.py +++ b/graphtools/graphs.py @@ -689,6 +689,9 @@ class TraditionalGraph(DataGraph): elif self.precomputed is "adjacency": # need to set diagonal to one to make it an affinity matrix ...
handle precomputed lil, dok, dia matrices
py
diff --git a/ccxt/exchange.py b/ccxt/exchange.py index <HASH>..<HASH> 100644 --- a/ccxt/exchange.py +++ b/ccxt/exchange.py @@ -258,6 +258,8 @@ class Exchange (object): def handle_response(self, url, method='GET', headers=None, body=None): try: + if (type(body) is not str) or (len(body) < 2): ...
handle empty responses in python
py
diff --git a/tests/test_items/test_calendaritems.py b/tests/test_items/test_calendaritems.py index <HASH>..<HASH> 100644 --- a/tests/test_items/test_calendaritems.py +++ b/tests/test_items/test_calendaritems.py @@ -231,6 +231,10 @@ class CalendarTest(CommonItemTest): list(self.test_folder.view(start=start - da...
Add coverage of _rinse_item()
py
diff --git a/pydriller/domain/commit.py b/pydriller/domain/commit.py index <HASH>..<HASH> 100644 --- a/pydriller/domain/commit.py +++ b/pydriller/domain/commit.py @@ -554,6 +554,33 @@ class Commit: return len(self._c_object.parents) > 1 @property + def insertions(self) -> str: + """ + R...
Update commit.py Added insertions/deletions/lines properities for easy commit info collection From phrase the gitpython classgit.util.Stats(total, files) it could give the data we need <URL>
py
diff --git a/safe_qgis/widgets/dock.py b/safe_qgis/widgets/dock.py index <HASH>..<HASH> 100644 --- a/safe_qgis/widgets/dock.py +++ b/safe_qgis/widgets/dock.py @@ -428,7 +428,7 @@ class Dock(QtGui.QDockWidget, Ui_DockBase): self.tr('Ready'), **PROGRESS_UPDATE_STYLE) myNotes = m.Paragraph(self.tr( ...
small cosmetic change to make the GUI consistent
py
diff --git a/tests/test_invenio_admin.py b/tests/test_invenio_admin.py index <HASH>..<HASH> 100644 --- a/tests/test_invenio_admin.py +++ b/tests/test_invenio_admin.py @@ -101,15 +101,15 @@ def test_admin_view_authenticated(app): # Model view res = client.get("/admin/testmodel/", follow_redirects=False...
fix location url changed, only path is returned now
py
diff --git a/tests/lax_test.py b/tests/lax_test.py index <HASH>..<HASH> 100644 --- a/tests/lax_test.py +++ b/tests/lax_test.py @@ -496,7 +496,7 @@ class LaxTest(jtu.JaxTestCase): jnp_fun = partial(lax.conv_general_dilated, window_strides=(), padding='VALID', dimension_numbers=('NC', 'IO', 'N...
Adjust tolerance for LaxTest.testConv0DIsDot. (#<I>) This was failing on TPU.
py
diff --git a/pymatgen/io/xtb/tests/test_inputs.py b/pymatgen/io/xtb/tests/test_inputs.py index <HASH>..<HASH> 100644 --- a/pymatgen/io/xtb/tests/test_inputs.py +++ b/pymatgen/io/xtb/tests/test_inputs.py @@ -41,4 +41,6 @@ class TestCRESTInput(PymatgenTest): cin = CRESTInput(molecule=mol, constraints=constraints...
Fix input test Updated with constraints as static method
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100755 --- a/setup.py +++ b/setup.py @@ -19,7 +19,7 @@ history = open('HISTORY.rst').read().replace('.. :changelog:', '') setup( name='dbaas_credentials', - version='1.1.14', + version='1.1.15', description='A credential manager for DBaaS integrat...
new release (<I>) with volume provider
py
diff --git a/soco/music_services/music_service.py b/soco/music_services/music_service.py index <HASH>..<HASH> 100644 --- a/soco/music_services/music_service.py +++ b/soco/music_services/music_service.py @@ -230,10 +230,14 @@ class MusicServiceSoapClient: # </detail> auth_token = exc.de...
Check for empty token refresh to avoid exceptions (#<I>)
py
diff --git a/allennlp/training/trainer.py b/allennlp/training/trainer.py index <HASH>..<HASH> 100644 --- a/allennlp/training/trainer.py +++ b/allennlp/training/trainer.py @@ -500,7 +500,7 @@ class Trainer: for name, param in self._model.named_parameters(): param_updates[name].sub_(...
fixing a bug in trainer for histograms (#<I>) otherwise it would raise an error in line <I> (expected object of type torch.FloatTensor but found type torch.cuda.FloatTensor for argument #2 'other')
py
diff --git a/salt/client/mixins.py b/salt/client/mixins.py index <HASH>..<HASH> 100644 --- a/salt/client/mixins.py +++ b/salt/client/mixins.py @@ -208,8 +208,15 @@ class SyncClientMixin(object): # from that since the caller knows what is an arg vs a kwarg, but # while we make the transition we...
Backwards compatibility with args as well. With format_call you can pass in positional args as kwargs with the key being the name of the variable in the function call.
py
diff --git a/user_sessions/models.py b/user_sessions/models.py index <HASH>..<HASH> 100644 --- a/user_sessions/models.py +++ b/user_sessions/models.py @@ -21,7 +21,7 @@ class Session(models.Model): session_key = models.CharField(_('session key'), max_length=40, primary_key=True)...
Fixed upstream typo Thanks Kunda for the report!
py
diff --git a/tests/integration/interaction/test_hover.py b/tests/integration/interaction/test_hover.py index <HASH>..<HASH> 100644 --- a/tests/integration/interaction/test_hover.py +++ b/tests/integration/interaction/test_hover.py @@ -25,7 +25,7 @@ def test_hover_changes_color(output_file_url, selenium, screenshot): ...
Deliberately fail the hover test So we can check output on travis
py
diff --git a/src/rez/cli/env.py b/src/rez/cli/env.py index <HASH>..<HASH> 100644 --- a/src/rez/cli/env.py +++ b/src/rez/cli/env.py @@ -20,7 +20,7 @@ def setup_parser(parser): "standard startup scripts, if possible") parser.add_argument("--norc", action="store_true", ...
-changed rez-env to accept nargs(+) for --command, so it's possible to pass whitespace-separated args to the command
py
diff --git a/modernrpc/core.py b/modernrpc/core.py index <HASH>..<HASH> 100644 --- a/modernrpc/core.py +++ b/modernrpc/core.py @@ -182,7 +182,7 @@ def get_all_methods(entry_point=ALL, protocol=ALL): ] -def rpc_method(**kwargs): +def rpc_method(name=None, entry_point=ALL, protocol=ALL): """ Decorator ...
Fixed definition of rpc_method decorator
py
diff --git a/kubespawner/spawner.py b/kubespawner/spawner.py index <HASH>..<HASH> 100644 --- a/kubespawner/spawner.py +++ b/kubespawner/spawner.py @@ -1133,13 +1133,6 @@ class KubeSpawner(Spawner): profile_form_template = Unicode( """ - <script> - // JupyterHub 0.8 applied form-control ind...
Cleanup JS patch of JupyterHub <I> HTML not needed in <I>+
py
diff --git a/examples/python/led.py b/examples/python/led.py index <HASH>..<HASH> 100755 --- a/examples/python/led.py +++ b/examples/python/led.py @@ -22,11 +22,11 @@ from __future__ import print_function # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. import time -from upm import pyupm_led as led...
pyupm_led: Fixed example for led This commit fixes issue <I>. Updated the example to use pyupm_led as the module name (and skip the local module rename).
py
diff --git a/spyder/app/tests/test_mainwindow.py b/spyder/app/tests/test_mainwindow.py index <HASH>..<HASH> 100644 --- a/spyder/app/tests/test_mainwindow.py +++ b/spyder/app/tests/test_mainwindow.py @@ -3306,10 +3306,10 @@ def test_varexp_cleared_after_kernel_restart(main_window, qtbot): @pytest.mark.slow @flaky(ma...
Testing: Improve name and docstring of a test
py
diff --git a/cyphi/subsystem.py b/cyphi/subsystem.py index <HASH>..<HASH> 100644 --- a/cyphi/subsystem.py +++ b/cyphi/subsystem.py @@ -19,13 +19,8 @@ from .utils import (marginalize_out, emd, hamming_emd, max_entropy_distribution, from .models import Cut, Mip, Part, Mice, Concept -# TODO remove -DEBUG = False -def...
Remove dprint, make null cut a Cut
py
diff --git a/pyinfra/modules/init.py b/pyinfra/modules/init.py index <HASH>..<HASH> 100644 --- a/pyinfra/modules/init.py +++ b/pyinfra/modules/init.py @@ -96,7 +96,7 @@ def d( ]) elif distro == 'Gentoo': - commands.append('rc-update add apache2 default') + c...
Fix issue with Gentoo service enable name!
py
diff --git a/visidata/loaders/mysql.py b/visidata/loaders/mysql.py index <HASH>..<HASH> 100644 --- a/visidata/loaders/mysql.py +++ b/visidata/loaders/mysql.py @@ -83,7 +83,8 @@ class MyTablesSheet(Sheet): table_name ) as column_count where - t.table_...
[loaders] Fixed mysql loader duplicating tables for each database The current implementation duplicates the tables of the database you selected for all available databases because of a wrong join. So if I have 2 databases A (containing table a1 and a2) and B (containing table b1 and b2) and I open visidata on database...
py
diff --git a/tensorlayer/files.py b/tensorlayer/files.py index <HASH>..<HASH> 100644 --- a/tensorlayer/files.py +++ b/tensorlayer/files.py @@ -607,12 +607,17 @@ def assign_params(sess, params, network): Parameters ---------- - sess : TensorFlow Session + sess : TensorFlow Session. Automatically run wh...
fix #<I>: assign ops could run manually to prevent memory leaks
py
diff --git a/toytree/Coords.py b/toytree/Coords.py index <HASH>..<HASH> 100644 --- a/toytree/Coords.py +++ b/toytree/Coords.py @@ -5,7 +5,7 @@ A class object for generating and storing Toytree plotting coordinates. """ import numpy as np -# from .utils import ToyTreeError +from .utils import ToytreeError class...
fix for toytreeError syntaxerror
py
diff --git a/moto/core/models.py b/moto/core/models.py index <HASH>..<HASH> 100644 --- a/moto/core/models.py +++ b/moto/core/models.py @@ -229,10 +229,7 @@ class InstanceTrackerMeta(type): @six.add_metaclass(InstanceTrackerMeta) class BaseModel(object): def __new__(cls, *args, **kwargs): - if six.PY2: - ...
fix warning on py2 as well object takes no constructor argument whatever the python version. we simplify the code to not use constructor arguments
py
diff --git a/rauth/service.py b/rauth/service.py index <HASH>..<HASH> 100644 --- a/rauth/service.py +++ b/rauth/service.py @@ -273,12 +273,14 @@ class OAuth2Service(Request): :param authorize_url: Authorize endpoint. :param access_token: An access token, defaults to None. ''' - def __init__(self, name...
moving closer toward <I> spec compatibility; fixing #<I>
py
diff --git a/jarn/mkrelease/configparser.py b/jarn/mkrelease/configparser.py index <HASH>..<HASH> 100644 --- a/jarn/mkrelease/configparser.py +++ b/jarn/mkrelease/configparser.py @@ -37,6 +37,7 @@ class ConfigParser(_BaseParser, object): self.warnings = [] self.warn_func = warn_func self.raw ...
Keep track of fatal errors occurring in read.
py
diff --git a/tests/test_camera.py b/tests/test_camera.py index <HASH>..<HASH> 100644 --- a/tests/test_camera.py +++ b/tests/test_camera.py @@ -56,7 +56,9 @@ def test_distance(camera): assert np.isclose(camera.distance, np.linalg.norm(focal_point - position, ord=2), rtol=1e-8) distance = np.random.random() ...
decrease tol for camera test due to MacOS (#<I>) * decrease tol for camera test due to MacOS * Update tests/test_camera.py * Update tests/test_camera.py
py
diff --git a/entei.py b/entei.py index <HASH>..<HASH> 100755 --- a/entei.py +++ b/entei.py @@ -2,7 +2,6 @@ import json -import mmap from sys import argv @@ -47,7 +46,7 @@ def tokenize(template): } try: - mmap.mmap(template.fileno()) + template = template.read() except AttributeE...
mmap does not actually work like that. - Remove mmap - Just load the entire file into memory (should be fine)
py
diff --git a/tests/url_store.py b/tests/url_store.py index <HASH>..<HASH> 100644 --- a/tests/url_store.py +++ b/tests/url_store.py @@ -6,7 +6,7 @@ import pytest class UrlStore(object): def test_url_for_for_generates_url_for(self, store, key, value): store.put(key, value) - assert isinstance(store....
Do not rely on isinstance/basestring tests.
py
diff --git a/puzzle/models/case.py b/puzzle/models/case.py index <HASH>..<HASH> 100644 --- a/puzzle/models/case.py +++ b/puzzle/models/case.py @@ -6,10 +6,13 @@ class Case(DotDict): """Case representation.""" def __init__(self, case_id, name=None, variant_source=None, variant_type='snv', var...
Refractored puzzle/models/case. fix #<I>
py
diff --git a/tests.py b/tests.py index <HASH>..<HASH> 100644 --- a/tests.py +++ b/tests.py @@ -1,3 +1,5 @@ +from __future__ import print_function + import codecs import doctest import locale @@ -893,7 +895,10 @@ class VCSHelper(object): stdout, stderr = p.communicate() rc = p.wait() if std...
Unbreak Python <I>, as per usual
py
diff --git a/integration/sawtooth_integration/tests/node_controller.py b/integration/sawtooth_integration/tests/node_controller.py index <HASH>..<HASH> 100644 --- a/integration/sawtooth_integration/tests/node_controller.py +++ b/integration/sawtooth_integration/tests/node_controller.py @@ -143,7 +143,7 @@ def validator...
Add key to poet command in validator args Previously this depended on the hard-coded string and the default poet behavior resolving to the same location.
py
diff --git a/jsonrpc/site.py b/jsonrpc/site.py index <HASH>..<HASH> 100644 --- a/jsonrpc/site.py +++ b/jsonrpc/site.py @@ -1,3 +1,4 @@ +import datetime, decimal from functools import wraps from uuid import uuid1 from jsonrpc._json import loads, dumps @@ -146,14 +147,12 @@ class JSONRPCSite(object): R = apply_...
only try default when it doesn't match one of the build in supported types
py
diff --git a/irc/server.py b/irc/server.py index <HASH>..<HASH> 100755 --- a/irc/server.py +++ b/irc/server.py @@ -54,12 +54,12 @@ import re import six from six.moves import socketserver -from . import client +import irc.client from . import logging as log_util from . import events from . import buffer -SRV_WE...
Use irc.client in its fully qualified namespace to avoid conflation with other 'client' variables in methods.
py
diff --git a/pypeerassets/provider/explorer.py b/pypeerassets/provider/explorer.py index <HASH>..<HASH> 100644 --- a/pypeerassets/provider/explorer.py +++ b/pypeerassets/provider/explorer.py @@ -106,8 +106,25 @@ class Explorer(Provider): return self.ext_fetch('listunspent/' + address)['unspent_outputs'] - ...
provider.Explorer: implement select_inputs
py
diff --git a/faradayio_cli/faradayio_cli.py b/faradayio_cli/faradayio_cli.py index <HASH>..<HASH> 100644 --- a/faradayio_cli/faradayio_cli.py +++ b/faradayio_cli/faradayio_cli.py @@ -100,6 +100,7 @@ def main(): # loop infinitely until KeyboardInterrupt, then clear() event, exit thread try: while True...
Added comment to while loop waiting for keyboard exit per #8
py
diff --git a/claripy/vsa/strided_interval.py b/claripy/vsa/strided_interval.py index <HASH>..<HASH> 100644 --- a/claripy/vsa/strided_interval.py +++ b/claripy/vsa/strided_interval.py @@ -1618,8 +1618,8 @@ class StridedInterval(BackendObject): ret = StridedInterval.empty(self.bits) for si in splitted...
fix the bitwise Not strided interval operation so that it properly calculates upper and lower bounds
py
diff --git a/validator/sawtooth_validator/networking/interconnect.py b/validator/sawtooth_validator/networking/interconnect.py index <HASH>..<HASH> 100644 --- a/validator/sawtooth_validator/networking/interconnect.py +++ b/validator/sawtooth_validator/networking/interconnect.py @@ -524,8 +524,9 @@ class _SendReceive(ob...
Iterate over tasks via a copy on thread stop Since `all_tasks` can be modified concurrently, this list should be copied to avoid concurrent modification errors.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -96,7 +96,7 @@ cmdclass = {'build_ext': Gmpy2Build} setup( name="gmpy2", - version="2.1.0a5", + version="2.1.0b1", author="Case Van Horsen", author_email="casevh@gmail.com", cmdclass=cmdclass,
Final update for setup.py.
py
diff --git a/expynent/patterns.py b/expynent/patterns.py index <HASH>..<HASH> 100644 --- a/expynent/patterns.py +++ b/expynent/patterns.py @@ -285,4 +285,5 @@ PHONE_NUMBER = { r'(?P<phoneline0>\d{3})[\s-]?(?P<phoneline1>\d{4})', # RegEx pattern to match Spanish phone numbers 'ES': r'^(?:\+34|0)\d{9...
added regex for phone number in Taiwan
py
diff --git a/tests/test_core.py b/tests/test_core.py index <HASH>..<HASH> 100644 --- a/tests/test_core.py +++ b/tests/test_core.py @@ -226,7 +226,9 @@ class TestSoco: # restore original value moco_zgs.speaker_info = old mocr.get.assert_called_once_with( - 'http://' + IP_ADDR + ':14...
Fix tests after bad merge of adding timeout options to get_speaker_info
py
diff --git a/src/edeposit/amqp/aleph/export.py b/src/edeposit/amqp/aleph/export.py index <HASH>..<HASH> 100755 --- a/src/edeposit/amqp/aleph/export.py +++ b/src/edeposit/amqp/aleph/export.py @@ -213,17 +213,4 @@ def _sendPostDict(post_dict): def exportEPublication(epub): post_dict = PostData(epub).get_POST_data...
Module cleaned from balast code, which was there for testing purposes.
py
diff --git a/airflow/cli/cli_parser.py b/airflow/cli/cli_parser.py index <HASH>..<HASH> 100644 --- a/airflow/cli/cli_parser.py +++ b/airflow/cli/cli_parser.py @@ -725,7 +725,7 @@ ARG_NAMESPACE = Arg( # jobs check ARG_JOB_TYPE_FILTER = Arg( ('--job-type',), - choices=('BackfillJob', 'LocalTaskJob', 'SchedulerJ...
Add TriggererJob to jobs check command (#<I>)
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100755 --- a/setup.py +++ b/setup.py @@ -1,8 +1,14 @@ #! /usr/bin/env python +import sys from distutils.core import setup +if 'upload' in sys.argv: + if '--sign' not in sys.argv and sys.argv[1:] != ['upload', '--help']: + raise SystemExit('Refusing...
Add a signature check to setup.py upload. --HG-- branch : <I>
py
diff --git a/pavement.py b/pavement.py index <HASH>..<HASH> 100644 --- a/pavement.py +++ b/pavement.py @@ -33,3 +33,6 @@ def clean(): p.rmtree() else: p.remove() + for p in path(__file__).abspath().parent.walkfiles(): + if p.endswith(".pyc") or p.endswith(".pyo")...
kill .pycs and .pyos in paver clean
py
diff --git a/src/transformers/models/longformer/modeling_longformer.py b/src/transformers/models/longformer/modeling_longformer.py index <HASH>..<HASH> 100755 --- a/src/transformers/models/longformer/modeling_longformer.py +++ b/src/transformers/models/longformer/modeling_longformer.py @@ -1786,6 +1786,7 @@ class Longf...
Return global attentions (see #<I>) (#<I>)
py
diff --git a/malcolm/modules/ADMerlin/parts/merlin_driver_part.py b/malcolm/modules/ADMerlin/parts/merlin_driver_part.py index <HASH>..<HASH> 100644 --- a/malcolm/modules/ADMerlin/parts/merlin_driver_part.py +++ b/malcolm/modules/ADMerlin/parts/merlin_driver_part.py @@ -1,4 +1,4 @@ -from annotypes import add_call_types...
Fixed import for annotypes in merlin part
py
diff --git a/suds/sax/date.py b/suds/sax/date.py index <HASH>..<HASH> 100644 --- a/suds/sax/date.py +++ b/suds/sax/date.py @@ -46,7 +46,9 @@ class Date(UnicodeMixin): @raise ValueError: When I{value} is invalid. """ - if isinstance(value, datetime.date): + if isinstance(value, datetime...
store datetime.date in Date objects when given datetime.datetime Fixes a test where such a Date object was getting converted to a string as if it were a DateTime instance.
py
diff --git a/cobe/irc.py b/cobe/irc.py index <HASH>..<HASH> 100644 --- a/cobe/irc.py +++ b/cobe/irc.py @@ -61,7 +61,7 @@ class CobeBot(irc.IRCClient): self.say(channel, "%s: %s" % (user, reply)) def nickChanged(self, nick): - log.msg("nick changed to %s", nick) + log.msg("nick changed ...
Fix usage of log.msg, which doesn't take a format string
py
diff --git a/exporters/svn-fast-export.py b/exporters/svn-fast-export.py index <HASH>..<HASH> 100755 --- a/exporters/svn-fast-export.py +++ b/exporters/svn-fast-export.py @@ -123,9 +123,9 @@ def export_revision(rev, repo, fs, pool): # Do the recursive crawl. if props.has_key('svn:author'): - author =...
Changing authors to be from SF instead of localhost
py
diff --git a/examples/xdamage.py b/examples/xdamage.py index <HASH>..<HASH> 100644 --- a/examples/xdamage.py +++ b/examples/xdamage.py @@ -70,7 +70,7 @@ def checkExt(disp): sys.exit(1) else: r = disp.damage_query_version() - print('DAMAGE version %d.%d'.format(r.major_version, r.minor_...
correcting the usage of string format command
py
diff --git a/espressif/efuse/esp32c3/mem_definition.py b/espressif/efuse/esp32c3/mem_definition.py index <HASH>..<HASH> 100644 --- a/espressif/efuse/esp32c3/mem_definition.py +++ b/espressif/efuse/esp32c3/mem_definition.py @@ -109,10 +109,6 @@ class EfuseDefineFields(EfuseFieldsBase): ("DIS_FORCE_DOWNLOAD", ...
espefuse(esp<I>c3): Del JTAG_SEL_ENABLE because it is non-functional The JTAG_SEL_ENABLE fuse is intended to enable the bootstrap pin GPIO<I> to switch between JTAG from GPIO pads and JTAG from the USB-serial-JTAG converter. However, due to a hardware bug, that bootstrap pin will always be read as 0 on startup, always...
py
diff --git a/epdb/epdb.py b/epdb/epdb.py index <HASH>..<HASH> 100755 --- a/epdb/epdb.py +++ b/epdb/epdb.py @@ -33,7 +33,6 @@ import tempfile import traceback try: - sys.path.append('/home/dbc/rpl/hg/telnet') import telnetserver import telnetclient hasTelnet = True @@ -746,7 +745,7 @@ class Epdb(pd...
remove dependence on telnet package, and work even if sys.stdin is not of type file
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -1,4 +1,4 @@ -from distutils.core import setup, Extension +from setuptools import setup setup (name = 'pyFluidSynth', version = '1.2.5',
Fix setup.py Use setuptools instead of distutils. distutils can't handle package dependencies, while setuptools can.
py
diff --git a/tls/tests/test_remote.py b/tls/tests/test_remote.py index <HASH>..<HASH> 100644 --- a/tls/tests/test_remote.py +++ b/tls/tests/test_remote.py @@ -236,6 +236,7 @@ def test_cert_expired(aggregator, instance_remote_cert_expired): aggregator.assert_all_metrics_covered() +@pytest.mark.skip(reason="expi...
Skip intermediate certificates test (#<I>)
py
diff --git a/pyramid_reactor/tests.py b/pyramid_reactor/tests.py index <HASH>..<HASH> 100644 --- a/pyramid_reactor/tests.py +++ b/pyramid_reactor/tests.py @@ -73,6 +73,15 @@ class BaseTestCase(unittest.TestCase): self.session.flush() return user + def _addGroup(self, group_name=u'group', descript...
added test for by_group_name method of GroupMixin
py
diff --git a/holoviews/plotting/mpl/element.py b/holoviews/plotting/mpl/element.py index <HASH>..<HASH> 100644 --- a/holoviews/plotting/mpl/element.py +++ b/holoviews/plotting/mpl/element.py @@ -461,6 +461,7 @@ class ColorbarPlot(ElementPlot): cax = cbar.ax self._adjust_cbar(cbar, label, dim) ...
Added colorbar to plot handles on ColorbarPlot
py
diff --git a/estnltk/layer/layer.py b/estnltk/layer/layer.py index <HASH>..<HASH> 100644 --- a/estnltk/layer/layer.py +++ b/estnltk/layer/layer.py @@ -387,17 +387,19 @@ class Layer: raise AttributeError(key) super().__setattr__(key, value) + def __iter__(self): + return iter(self.span_...
added Layer.__iter__, rearranged Layer.__getitem__, hope that this improves performance a bit
py
diff --git a/patroni/api.py b/patroni/api.py index <HASH>..<HASH> 100644 --- a/patroni/api.py +++ b/patroni/api.py @@ -229,6 +229,7 @@ class RestApiHandler(BaseHTTPRequestHandler): END, pg_xlog_location_diff(pg_last_xlog_receive_location(),...
Include timestamp of last replayed location in api call.
py
diff --git a/octodns/manager.py b/octodns/manager.py index <HASH>..<HASH> 100644 --- a/octodns/manager.py +++ b/octodns/manager.py @@ -99,7 +99,7 @@ class Manager(object): self.include_meta = include_meta or manager_config.get('include_meta', Fa...
Fixes a typo in log
py
diff --git a/grove/bernstein_vazirani/bernstein_vazirani.py b/grove/bernstein_vazirani/bernstein_vazirani.py index <HASH>..<HASH> 100644 --- a/grove/bernstein_vazirani/bernstein_vazirani.py +++ b/grove/bernstein_vazirani/bernstein_vazirani.py @@ -73,7 +73,6 @@ def unitary_function(vec_a, b): return np.kron(SWA...
Removed unused index_lists.
py
diff --git a/etrago/tools/utilities.py b/etrago/tools/utilities.py index <HASH>..<HASH> 100644 --- a/etrago/tools/utilities.py +++ b/etrago/tools/utilities.py @@ -366,7 +366,7 @@ def results_to_csv(network, path): network.export_to_csv_folder(path) data = pd.read_csv(os.path.join(path, 'network.csv')) da...
Fix leading index field in csv export The panadas to_csv-function includes the indices. Which led to a leading and a missing header in each file. We don't need those and can ommit them.
py
diff --git a/AWSScout2/__listall__.py b/AWSScout2/__listall__.py index <HASH>..<HASH> 100644 --- a/AWSScout2/__listall__.py +++ b/AWSScout2/__listall__.py @@ -51,7 +51,7 @@ def main(): # Create a ruleset with only whatever rules were specified... if args.config: rule_filename = args.confi...
Ensure config args from the CLI are passed to the ruleset in ListAll
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -2,7 +2,7 @@ from setuptools import setup, find_packages from codecs import open from os import path -__version__ = '0.6.0' +__version__ = '0.6.1' here = path.abspath(path.dirname(__file__))
bump up version to <I>
py
diff --git a/pysnmp/hlapi/asyncore/cmdgen.py b/pysnmp/hlapi/asyncore/cmdgen.py index <HASH>..<HASH> 100644 --- a/pysnmp/hlapi/asyncore/cmdgen.py +++ b/pysnmp/hlapi/asyncore/cmdgen.py @@ -31,7 +31,6 @@ class UsmUserData: securityLevel='noAuthNoPriv' securityModel=3 mpModel=2 - authProtocol = privProtoc...
snmpv3 protocols can't be None
py
diff --git a/alburnum/maas/utils/auth.py b/alburnum/maas/utils/auth.py index <HASH>..<HASH> 100644 --- a/alburnum/maas/utils/auth.py +++ b/alburnum/maas/utils/auth.py @@ -84,10 +84,14 @@ def obtain_token(url, username, password, *, insecure=False): response.raise_for_status() # Request a new API tok...
Work with Django's updated CSRF middleware.
py
diff --git a/src/build.py b/src/build.py index <HASH>..<HASH> 100755 --- a/src/build.py +++ b/src/build.py @@ -22,6 +22,11 @@ else: ANDROID = 'android' ANT = 'ant' +#if ANDROIDSDK is on path, use android from this path +ANDROIDSDK = os.environ.get('ANDROIDSDK') +if ANDROIDSDK: + ANDROID = os.path.join(AN...
Use android executable inside $ANDROIDSDK if its defined. catch OSError for File not found when trying to execute android or ant.
py
diff --git a/workflows/services/common_service.py b/workflows/services/common_service.py index <HASH>..<HASH> 100644 --- a/workflows/services/common_service.py +++ b/workflows/services/common_service.py @@ -157,6 +157,10 @@ class CommonService(object): root_logger.setLevel(logging.WARN) root_logger.addHandler...
Set service logger to info level by default
py
diff --git a/tests/collection.py b/tests/collection.py index <HASH>..<HASH> 100644 --- a/tests/collection.py +++ b/tests/collection.py @@ -285,6 +285,7 @@ class ValuesListTest(CollectionBaseTest): Boat.collection().values_list('foo') class BoatWithSet(Boat): + namespace = Boat.namespa...
Add namespace for new models in tests
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -3,9 +3,9 @@ from distutils.core import setup setup( name = 'cudnn-python-wrappers', py_modules = ['libcudnn'], - version = '1.0', + version = '2.0b', license = 'MIT', - description = 'Python wrappers ...
Updated version to <I>b
py
diff --git a/pymysql/tests/test_basic.py b/pymysql/tests/test_basic.py index <HASH>..<HASH> 100644 --- a/pymysql/tests/test_basic.py +++ b/pymysql/tests/test_basic.py @@ -91,8 +91,20 @@ class TestConversion(base.PyMySQLTestCase): finally: c.execute("drop table test_dict") - def test_blob(self...
Add binary field type test to basic tests (#<I>)
py
diff --git a/torchvision/datasets/caltech.py b/torchvision/datasets/caltech.py index <HASH>..<HASH> 100644 --- a/torchvision/datasets/caltech.py +++ b/torchvision/datasets/caltech.py @@ -44,7 +44,7 @@ class Caltech101(VisionDataset): os.path.join(root, "caltech101"), transform=transform, target_transform=t...
fix target_type selection for Caltech<I> (#<I>)
py
diff --git a/spacy/cli/ud_run_test.py b/spacy/cli/ud_run_test.py index <HASH>..<HASH> 100644 --- a/spacy/cli/ud_run_test.py +++ b/spacy/cli/ud_run_test.py @@ -20,6 +20,8 @@ from ..matcher import Matcher from .. import displacy from collections import defaultdict, Counter from timeit import default_timer as timer +Fu...
Avoid importing fused token symbol in ud-run-test, untl that's added
py
diff --git a/gspread/models.py b/gspread/models.py index <HASH>..<HASH> 100644 --- a/gspread/models.py +++ b/gspread/models.py @@ -666,7 +666,9 @@ class Worksheet(object): }] } - return self.spreadsheet.batch_update(body) + response = self.spreadsheet.batch_update(body) + se...
Fix Worksheet.title being out of sync after using update_title
py
diff --git a/dusty/constants.py b/dusty/constants.py index <HASH>..<HASH> 100644 --- a/dusty/constants.py +++ b/dusty/constants.py @@ -46,7 +46,7 @@ SYSTEM_DEPENDENCY_VERSIONS = { 'virtualbox': '4.3.26', 'boot2docker': '1.7.0', 'docker': '1.7.0', - 'docker-compose': '1.3.0' + 'docker-compose': '1.3...
expect version <I> fo docker-compose
py
diff --git a/examples/phylesystem/count_trees.py b/examples/phylesystem/count_trees.py index <HASH>..<HASH> 100644 --- a/examples/phylesystem/count_trees.py +++ b/examples/phylesystem/count_trees.py @@ -4,7 +4,7 @@ from peyotl.nexson_syntax import extract_tree_nexson import sys try: phylsys = Phylesystem() -exce...
Oops. this time it really is a better error exit message
py
diff --git a/docs/examples/multiplexing_client.py b/docs/examples/multiplexing_client.py index <HASH>..<HASH> 100644 --- a/docs/examples/multiplexing_client.py +++ b/docs/examples/multiplexing_client.py @@ -112,11 +112,16 @@ class ProxyingFactory(protocol.ServerFactory): class ProxyingAMPProtocol(amp.AMP): + ""...
Better docstrings for the multiplexing client
py
diff --git a/workalendar/tests/test_europe.py b/workalendar/tests/test_europe.py index <HASH>..<HASH> 100644 --- a/workalendar/tests/test_europe.py +++ b/workalendar/tests/test_europe.py @@ -649,6 +649,7 @@ class FranceAlsaceMoselleTest(FranceTest): def test_business_days_computations(self): super().test_...
Added labour day tests for Georgia + updated Christmas test
py
diff --git a/syncthing/syncthing.py b/syncthing/syncthing.py index <HASH>..<HASH> 100644 --- a/syncthing/syncthing.py +++ b/syncthing/syncthing.py @@ -3,6 +3,7 @@ # # Created by: Blake on 5/7/2015 at 12:59 PM +import os import re import inspect from functools import wraps @@ -10,8 +11,11 @@ from functools import...
Changed SyncthingType to check the api documentation cache for REST API markdown files before downloading the latest documentation from github.
py
diff --git a/growler/router.py b/growler/router.py index <HASH>..<HASH> 100644 --- a/growler/router.py +++ b/growler/router.py @@ -78,6 +78,7 @@ class Router(MiddlewareChain): all = partialmethod(_add_route, HTTPMethod.ALL) get = partialmethod(_add_route, HTTPMethod.GET) post = partialmethod(_add_route, ...
Router: Added missing "put" HTTP verb
py
diff --git a/genmodel/manager.py b/genmodel/manager.py index <HASH>..<HASH> 100644 --- a/genmodel/manager.py +++ b/genmodel/manager.py @@ -243,7 +243,7 @@ def run_job(job_description, job_id, job_name, labeled_data_fname, playbook_fnam /etc/ansible/digital_ocean.py -e \ hosts_string={}...
just use subprocess call not get output
py
diff --git a/savannaclient/api/client.py b/savannaclient/api/client.py index <HASH>..<HASH> 100644 --- a/savannaclient/api/client.py +++ b/savannaclient/api/client.py @@ -53,7 +53,8 @@ class Client(object): token=input_auth_token, ...
Enforce keystone service endpoint URL for auth It's needed to guarantee that the same level (public/private/admin) will be used for tenants/tokens ops inside the savanna client. Change-Id: I<I>be<I>c<I>bceaab5eb<I>aa3
py
diff --git a/genomepy/genome.py b/genomepy/genome.py index <HASH>..<HASH> 100644 --- a/genomepy/genome.py +++ b/genomepy/genome.py @@ -281,14 +281,14 @@ class Genome(Fasta): Ns as values """ if not self._gap_sizes: - gap_file = self.filename + ".sizes" + gaps_file = ...
fix #<I> (#<I>)
py
diff --git a/neo/Prompt/Commands/Wallet.py b/neo/Prompt/Commands/Wallet.py index <HASH>..<HASH> 100644 --- a/neo/Prompt/Commands/Wallet.py +++ b/neo/Prompt/Commands/Wallet.py @@ -10,11 +10,34 @@ from neo.Prompt.Utils import get_asset_id, get_from_addr, get_arg from neocore.Fixed8 import Fixed8 from neocore.UInt160 im...
Update Wallet.py for CreateAddress
py