diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/chat_example.py b/chat_example.py
index <HASH>..<HASH> 100644
--- a/chat_example.py
+++ b/chat_example.py
@@ -3,22 +3,30 @@ from terrabot.events import Events
import threading
-bot = TerraBot('127.0.0.1', protocol=155)
-eventm = bot.event_manager
+bot = TerraBot('127.0.0.1')
+event = bot.get_event_man... | Improved the chat example a bit | py |
diff --git a/metaknowledge/bin/metaknowledgeCLI.py b/metaknowledge/bin/metaknowledgeCLI.py
index <HASH>..<HASH> 100644
--- a/metaknowledge/bin/metaknowledgeCLI.py
+++ b/metaknowledge/bin/metaknowledgeCLI.py
@@ -259,7 +259,7 @@ def getThresholds(clargs, grph):
('5', "Remove nodes below some degree"),
('6', "Re... | replaced deprecated networkx function | py |
diff --git a/owncloud/owncloud.py b/owncloud/owncloud.py
index <HASH>..<HASH> 100644
--- a/owncloud/owncloud.py
+++ b/owncloud/owncloud.py
@@ -184,7 +184,7 @@ class Client():
self.__session.verify = self.__verify_certs
self.__session.auth = (user_id, password)
# TODO: use another path to prev... | Added index.php to the request url | py |
diff --git a/git/remote.py b/git/remote.py
index <HASH>..<HASH> 100644
--- a/git/remote.py
+++ b/git/remote.py
@@ -122,14 +122,14 @@ class PushInfoList(IterableList):
def __init__(self) -> None:
super().__init__('push_infos')
- self.exception = None
+ self.error = None
- def raise_on_... | Rename exception to error, raise_on_error to raise_if_error | py |
diff --git a/spikeylab/gui/stim/component_detail.py b/spikeylab/gui/stim/component_detail.py
index <HASH>..<HASH> 100644
--- a/spikeylab/gui/stim/component_detail.py
+++ b/spikeylab/gui/stim/component_detail.py
@@ -126,7 +126,7 @@ class ComponentAttributerChecker(QtGui.QFrame):
for i in range(layout.count()):
... | cast to python string for compatability | py |
diff --git a/pylimit/pyratelimit.py b/pylimit/pyratelimit.py
index <HASH>..<HASH> 100644
--- a/pylimit/pyratelimit.py
+++ b/pylimit/pyratelimit.py
@@ -75,9 +75,9 @@ class PyRateLimit(object):
connection.zadd(namespace, current_time, current_time)
else:
current_count = 1 # initialize... | Let redis count element Instead of receiving all results assign to the requested key | py |
diff --git a/src/jobTreeSlave.py b/src/jobTreeSlave.py
index <HASH>..<HASH> 100644
--- a/src/jobTreeSlave.py
+++ b/src/jobTreeSlave.py
@@ -64,6 +64,13 @@ def loadPickleFile(pickleFile):
fileHandle.close()
return i
+def nextOpenDescriptor():
+ """Gets the number of the next available file descriptor.
... | Added logging message to debug leaking file descriptors. | py |
diff --git a/testing/code/test_source.py b/testing/code/test_source.py
index <HASH>..<HASH> 100644
--- a/testing/code/test_source.py
+++ b/testing/code/test_source.py
@@ -374,10 +374,7 @@ def test_getfslineno():
fspath, lineno = getfslineno(f)
- fname = __file__
- fname = fname[:fname.find('.py')] + '.py... | fix test to work on jython and cpy --HG-- branch : trunk | py |
diff --git a/sphinx_autobuild/__init__.py b/sphinx_autobuild/__init__.py
index <HASH>..<HASH> 100755
--- a/sphinx_autobuild/__init__.py
+++ b/sphinx_autobuild/__init__.py
@@ -28,6 +28,12 @@ __version__ = '0.5.0'
__url__ = 'https://github.com/GaretJax/sphinx-autobuild'
+DEFAULT_IGNORE_REGEX = [
+ r'__pycache__/.... | Add some regexes to ignore by default | py |
diff --git a/ucoinpy/api/bma/__init__.py b/ucoinpy/api/bma/__init__.py
index <HASH>..<HASH> 100644
--- a/ucoinpy/api/bma/__init__.py
+++ b/ucoinpy/api/bma/__init__.py
@@ -127,10 +127,6 @@ class API(object):
response = yield from asyncio.wait_for(
aiohttp.post(self.reverse_url(path), data=kwargs, h... | No not throw exception when POSTING | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -6,10 +6,13 @@
# General Public License version 3 (LGPLv3) as published by the Free
# Software Foundation. See the file README for copying conditions.
-from ez_setup import use_setuptools
-use_setuptools()
+try:
+ from ... | Fixing a bug on setup.py. | py |
diff --git a/gkeepapi/__init__.py b/gkeepapi/__init__.py
index <HASH>..<HASH> 100644
--- a/gkeepapi/__init__.py
+++ b/gkeepapi/__init__.py
@@ -3,7 +3,7 @@
.. moduleauthor:: Kai <z@kwi.li>
"""
-__version__ = '0.11.13'
+__version__ = '0.11.14'
import logging
import re
@@ -181,7 +181,7 @@ class API(object):
... | Issue #<I>: Work around blacklisting issue | py |
diff --git a/bin/dat2tdv.py b/bin/dat2tdv.py
index <HASH>..<HASH> 100644
--- a/bin/dat2tdv.py
+++ b/bin/dat2tdv.py
@@ -9,6 +9,9 @@ if __name__ == "__main__":
try:
with open(sys.argv[1], "rb") as _in_file:
_log = cPickle.load(_in_file)
- _log.write_to_file(format=CAN.LOG... | Removed references to non-existent "options" variable Fixed a crash when converting a log file in the current directory | py |
diff --git a/blockstack/blockstackd.py b/blockstack/blockstackd.py
index <HASH>..<HASH> 100644
--- a/blockstack/blockstackd.py
+++ b/blockstack/blockstackd.py
@@ -2037,6 +2037,17 @@ def load_expected_snapshots( snapshots_path ):
snapshots_path = os.path.expanduser(snapshots_path)
expected_snapshots = {}
... | extract snapshots from chainstate db as well as legacy snapshots JSON | py |
diff --git a/pynlpl/tests/folia.py b/pynlpl/tests/folia.py
index <HASH>..<HASH> 100755
--- a/pynlpl/tests/folia.py
+++ b/pynlpl/tests/folia.py
@@ -1973,6 +1973,7 @@ class Test4Edit(unittest.TestCase):
"""Edit Check - Altering word text"""
#Important note: directly altering text is usually bad practi... | added some notes for test<I>a and test<I>b | py |
diff --git a/vexbot/adapters/messaging.py b/vexbot/adapters/messaging.py
index <HASH>..<HASH> 100644
--- a/vexbot/adapters/messaging.py
+++ b/vexbot/adapters/messaging.py
@@ -22,16 +22,15 @@ class _HeartbeatReciever:
def __init__(self, messaging, loop):
self.messaging = messaging
self._heart_beat... | small fixes to heartbeats time recording | py |
diff --git a/openid/server/server.py b/openid/server/server.py
index <HASH>..<HASH> 100644
--- a/openid/server/server.py
+++ b/openid/server/server.py
@@ -382,10 +382,6 @@ class CheckIDRequest(OpenIDRequest):
'identity',
'return_to',
]
- optional = [
- 'trust_roo... | [project @ server.server.CheckIDRequest.fromQuery: simplify a bit.] | py |
diff --git a/striplog/striplog.py b/striplog/striplog.py
index <HASH>..<HASH> 100644
--- a/striplog/striplog.py
+++ b/striplog/striplog.py
@@ -550,7 +550,8 @@ class Striplog(object):
null=None,
ignore=None,
source=None,
- stop=None):
+ ... | more flexible load from csv | py |
diff --git a/inplaceeditform/fields.py b/inplaceeditform/fields.py
index <HASH>..<HASH> 100644
--- a/inplaceeditform/fields.py
+++ b/inplaceeditform/fields.py
@@ -90,7 +90,8 @@ class BaseAdaptorField(object):
return self.empty_value()
def empty_value(self):
- return getattr(settings, 'INPLACEEDIT... | Fixes #<I> Now the texts are translatables | py |
diff --git a/tests/integration/states/archive.py b/tests/integration/states/archive.py
index <HASH>..<HASH> 100644
--- a/tests/integration/states/archive.py
+++ b/tests/integration/states/archive.py
@@ -119,6 +119,24 @@ class ArchiveTest(integration.ModuleCase,
self._check_ext_remove(ARCHIVE_DIR, UNTAR_FILE)... | Add integration test for archive.extracted with user/group set to root | py |
diff --git a/docs/conf.py b/docs/conf.py
index <HASH>..<HASH> 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -34,7 +34,6 @@
extensions = [
'sphinx.ext.autodoc',
'sphinx.ext.autosectionlabel',
- 'sphinxcontrib.asyncio',
]
# Add any paths that contain templates here, relative to this directory. | Remove sphinxcontrib.asyncio from docs build - Broken for newer sphinx versions | py |
diff --git a/src/python/pants/backend/core/tasks/confluence_publish.py b/src/python/pants/backend/core/tasks/confluence_publish.py
index <HASH>..<HASH> 100644
--- a/src/python/pants/backend/core/tasks/confluence_publish.py
+++ b/src/python/pants/backend/core/tasks/confluence_publish.py
@@ -41,7 +41,7 @@ class Confluenc... | get the name right, no stray quote mark, sheesh Testing Done: monkey-patched in Twitter's pants. hand-copied over. what coudl go wrong? Bugs closed: <I> Reviewed at <URL> | py |
diff --git a/trezorlib/pinmatrix.py b/trezorlib/pinmatrix.py
index <HASH>..<HASH> 100644
--- a/trezorlib/pinmatrix.py
+++ b/trezorlib/pinmatrix.py
@@ -7,7 +7,7 @@ from PyQt4.QtCore import QObject, SIGNAL, QRegExp, Qt
class PinButton(QPushButton):
def __init__(self, password, encoded_value):
- super(PinBu... | Added '?' to pinmatrix | py |
diff --git a/ipyrad/assemble/clustmap_across.py b/ipyrad/assemble/clustmap_across.py
index <HASH>..<HASH> 100644
--- a/ipyrad/assemble/clustmap_across.py
+++ b/ipyrad/assemble/clustmap_across.py
@@ -136,7 +136,7 @@ class Step6:
if self.data.populations:
self.cgroups = {}
for idx, val ... | Fix step 6 with pop_assign_file | py |
diff --git a/matrix_client/client.py b/matrix_client/client.py
index <HASH>..<HASH> 100644
--- a/matrix_client/client.py
+++ b/matrix_client/client.py
@@ -251,7 +251,6 @@ class MatrixClient(object):
def add_leave_listener(self, callback):
""" Add a listener that will send a callback when the client has ... | Remove cpy/pst leftover in add_leave_listener() Removed " \n an invite request." from "MatrixClient.add_leave_listener()" docstring. Looks like a leftover from copying/pasting from MatrixClient.add_invite_listener() docstring | py |
diff --git a/taxi/timesheet/__init__.py b/taxi/timesheet/__init__.py
index <HASH>..<HASH> 100644
--- a/taxi/timesheet/__init__.py
+++ b/taxi/timesheet/__init__.py
@@ -112,7 +112,7 @@ class Timesheet(object):
def continue_entry(self, date, end_time, description=None):
try:
entry = self.entries... | Fix stop command when no activity is in progress | py |
diff --git a/tests/test_annex.py b/tests/test_annex.py
index <HASH>..<HASH> 100644
--- a/tests/test_annex.py
+++ b/tests/test_annex.py
@@ -1,8 +1,3 @@
-import json
-
-import falcon
-import pytest
-
from .dataset_fixtures import *
from datalad_service.common.annex import create_file_obj | Cleanup extra imports in create_file_obj test. | py |
diff --git a/vyked/jsonprotocol.py b/vyked/jsonprotocol.py
index <HASH>..<HASH> 100644
--- a/vyked/jsonprotocol.py
+++ b/vyked/jsonprotocol.py
@@ -16,6 +16,7 @@ class JSONProtocol(asyncio.Protocol):
self._connected = False
self._transport = None
self._obj_streamer = None
+ self._pendin... | Fix bug where pending data list was null | py |
diff --git a/src/ocrmypdf/pdfa.py b/src/ocrmypdf/pdfa.py
index <HASH>..<HASH> 100644
--- a/src/ocrmypdf/pdfa.py
+++ b/src/ocrmypdf/pdfa.py
@@ -131,6 +131,7 @@ def _encode_ascii(s: str) -> str:
'(': '',
')': '',
'\\': '',
+ '\0': ''
})
return s.translate(trans).encode('ascii',... | Ghostscript: fix issues in strict ASCII implementation | py |
diff --git a/mtcnn/__init__.py b/mtcnn/__init__.py
index <HASH>..<HASH> 100644
--- a/mtcnn/__init__.py
+++ b/mtcnn/__init__.py
@@ -24,4 +24,4 @@
#SOFTWARE.
__author__ = "Iván de Paz Centeno"
-__version__= "0.0.7"
+__version__= "0.0.8" | Changed to version <I> | py |
diff --git a/identify/identify.py b/identify/identify.py
index <HASH>..<HASH> 100644
--- a/identify/identify.py
+++ b/identify/identify.py
@@ -24,6 +24,7 @@ ALL_TAGS = {DIRECTORY, SYMLINK, FILE, EXECUTABLE, NON_EXECUTABLE, TEXT, BINARY}
ALL_TAGS.update(*extensions.EXTENSIONS.values())
ALL_TAGS.update(*extensions.NAME... | Make ALL_TAGS a frozenset | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -21,7 +21,7 @@ requirements = [
"beautifulsoup4>=4.6.3",
"pressurecooker>=0.0.27",
"selenium==3.0.1",
- "youtube-dl",
+ "youtube-dl>=2020.03.24",
"html5lib",
"cachecontrol==0.12.0",
"lockfil... | Bump youtube_dl version number; pip was having trouble | py |
diff --git a/openquake/calculators/event_based.py b/openquake/calculators/event_based.py
index <HASH>..<HASH> 100644
--- a/openquake/calculators/event_based.py
+++ b/openquake/calculators/event_based.py
@@ -386,7 +386,7 @@ def get_ruptures_by_grp(dstore):
ruptures_by_grp = AccumDict(accum=[])
for grp in dstor... | Cleanup [skip CI] | py |
diff --git a/winrm/transport.py b/winrm/transport.py
index <HASH>..<HASH> 100644
--- a/winrm/transport.py
+++ b/winrm/transport.py
@@ -146,6 +146,8 @@ class Transport(object):
session = requests.Session()
session.verify = self.server_cert_validation == 'validate'
+ if session.verify and self.... | pass ca_trust_path to requests module | py |
diff --git a/geocoder/tamu.py b/geocoder/tamu.py
index <HASH>..<HASH> 100644
--- a/geocoder/tamu.py
+++ b/geocoder/tamu.py
@@ -7,6 +7,7 @@ from __future__ import absolute_import
from geocoder.base import Base
from geocoder.keys import tamu_key
+
class Tamu(Base):
"""
TAMU Geocoding Services
@@ -27,7 +28,... | make pep8 happy @DenisCarrier not sure if you prefer to break long url or use #noqa? | py |
diff --git a/tests/test_cmd2.py b/tests/test_cmd2.py
index <HASH>..<HASH> 100644
--- a/tests/test_cmd2.py
+++ b/tests/test_cmd2.py
@@ -1288,6 +1288,20 @@ def test_multiline_complete_statement_with_unclosed_quotes(multiline_app):
assert statement.multiline_command == 'orate'
assert statement.terminator == ';'
... | Added unit test for _input_line_to_statement | py |
diff --git a/tests/integration/standard/test_connection.py b/tests/integration/standard/test_connection.py
index <HASH>..<HASH> 100644
--- a/tests/integration/standard/test_connection.py
+++ b/tests/integration/standard/test_connection.py
@@ -143,7 +143,7 @@ class HeartbeatTest(unittest.TestCase):
for conn in ... | Tweaking heartbeat timeout test to not fail with protocol v2 | py |
diff --git a/salt/cloud/utils/__init__.py b/salt/cloud/utils/__init__.py
index <HASH>..<HASH> 100644
--- a/salt/cloud/utils/__init__.py
+++ b/salt/cloud/utils/__init__.py
@@ -550,13 +550,19 @@ def deploy_script(host, port=22, timeout=900, username='root',
root_cmd(subsys_command, tty, sudo, **kwargs)
... | Make sure that tmp_dir is owned by sudo user | py |
diff --git a/marathon_acme/cli.py b/marathon_acme/cli.py
index <HASH>..<HASH> 100644
--- a/marathon_acme/cli.py
+++ b/marathon_acme/cli.py
@@ -102,7 +102,7 @@ def main(reactor, raw_args=sys.argv[1:]):
('group', args.group),
('endpoint-description', endpoint_description),
]
- log_args = ["{}='{... | Tweak startup log format to use repr | py |
diff --git a/horizon/utils/secret_key.py b/horizon/utils/secret_key.py
index <HASH>..<HASH> 100644
--- a/horizon/utils/secret_key.py
+++ b/horizon/utils/secret_key.py
@@ -13,6 +13,7 @@
# under the License.
+import logging
import os
import random
import string
@@ -32,8 +33,12 @@ def generate_key(key_length=64... | Add warning when falling back to insecure key generation When secret_key.py generates the key, it silently regresses when SystemRandom isn't present. We need the reversion for non-production environments, but we need to warn in environments when SystemRandom isn't being used. See the bug report for more details. Ch... | py |
diff --git a/spyder/workers/updates.py b/spyder/workers/updates.py
index <HASH>..<HASH> 100644
--- a/spyder/workers/updates.py
+++ b/spyder/workers/updates.py
@@ -56,9 +56,12 @@ class WorkerUpdates(QObject):
if 'dev' in version:
return (False, latest_release)
+ # Filter releases
... | Updates: Try to work with updates for beta versions | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -19,7 +19,7 @@ if sys.version_info[:2] < (2, 7):
setup(
name='django-local-settings',
- version='1.0a9',
+ version='1.0a10',
author='Wyatt Baldwin',
author_email='wyatt.baldwin@pdx.edu',
url='https... | Prepare release <I>a<I> | py |
diff --git a/tests/schemas.py b/tests/schemas.py
index <HASH>..<HASH> 100644
--- a/tests/schemas.py
+++ b/tests/schemas.py
@@ -2,8 +2,9 @@ from marshmallow import Schema, fields
class PetSchema(Schema):
- id = fields.Int(dump_only=True)
- name = fields.Str()
+ description = dict(id="Pet id", name="Pet nam... | test(schemas): add additional fields in PetSchema for test Deprecated and allowEmptyValue keyword is not supported yet. And the better way maybe is to provide different function of schema2fiels for different version, respectively. | py |
diff --git a/nes_py/_app/play_human.py b/nes_py/_app/play_human.py
index <HASH>..<HASH> 100644
--- a/nes_py/_app/play_human.py
+++ b/nes_py/_app/play_human.py
@@ -78,7 +78,9 @@ def play(env, transpose=True, fps=30, callback=None, plot_reward=False, nop_=0):
running = True
env_done = True
# setup the scre... | allow resizable play window | py |
diff --git a/salt/cloud/clouds/vsphere.py b/salt/cloud/clouds/vsphere.py
index <HASH>..<HASH> 100644
--- a/salt/cloud/clouds/vsphere.py
+++ b/salt/cloud/clouds/vsphere.py
@@ -367,6 +367,9 @@ def _deploy(vm_):
),
'sudo_password': config.get_cloud_config_value(
'sudo_password', vm_, __opts_... | adding key_filename param to vsphere provider | py |
diff --git a/networking_arista/ml2/mechanism_arista.py b/networking_arista/ml2/mechanism_arista.py
index <HASH>..<HASH> 100644
--- a/networking_arista/ml2/mechanism_arista.py
+++ b/networking_arista/ml2/mechanism_arista.py
@@ -396,7 +396,10 @@ class AristaDriver(driver_api.MechanismDriver):
If this port was th... | Use original_binding_levels when current binding_levels is not set The binding_levels may be cleared when update_port is called (e.g. in case of deleting a baremetal instance). In such a case, original_binding_levels can be used to get required binding levels. Change-Id: Ibab2c9d<I>c<I>ce0b9d<I>fdafaf0aadf8c9 | py |
diff --git a/route.py b/route.py
index <HASH>..<HASH> 100644
--- a/route.py
+++ b/route.py
@@ -107,9 +107,10 @@ def validate(command, func):
def unpack(prefix, command, params, message):
try:
route = get_route(command)
+ return route.command.upper(), route.unpack(prefix, params, message)
exce... | Temporarily suppress unpack errors in route | py |
diff --git a/photutils/segmentation/tests/test_deblend.py b/photutils/segmentation/tests/test_deblend.py
index <HASH>..<HASH> 100644
--- a/photutils/segmentation/tests/test_deblend.py
+++ b/photutils/segmentation/tests/test_deblend.py
@@ -206,3 +206,9 @@ class TestDeblendSources:
with catch_warnings(NoDetectio... | Add test for deblend_sources | py |
diff --git a/juju/model.py b/juju/model.py
index <HASH>..<HASH> 100644
--- a/juju/model.py
+++ b/juju/model.py
@@ -1521,7 +1521,7 @@ class Model:
if raw:
return result_status
-
+
result_str = self._print_status_model(result_status)
result_str += '\n'
result_str... | Changes for lint. | py |
diff --git a/librosa/core/constantq.py b/librosa/core/constantq.py
index <HASH>..<HASH> 100644
--- a/librosa/core/constantq.py
+++ b/librosa/core/constantq.py
@@ -124,10 +124,10 @@ def cqt(y, sr=22050, hop_length=512, fmin=None, n_bins=84,
tuning = estimate_tuning(y=y, sr=sr)
# First thing, get the fmin... | no reason to generate an extra cqt frequency | py |
diff --git a/synapse/tests/test_cryotank.py b/synapse/tests/test_cryotank.py
index <HASH>..<HASH> 100644
--- a/synapse/tests/test_cryotank.py
+++ b/synapse/tests/test_cryotank.py
@@ -230,3 +230,12 @@ class CryoTest(SynTest):
# ensure dmon cell processes are fini'd
for celldir, proc in dmon.cellprocs.i... | Adds test for timing out while starting a CryoUser session | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -14,7 +14,6 @@ setup(name='mmpy',
package_dir={'mmpy':'src'},
provides=['mmpy'],
license='ISCL',
- requires=['simplejson'],
install_requires=['simplejson'],
classifiers=['Development Sta... | remove the requires= keyword per @mattjeffery's suggestion | py |
diff --git a/actstream/models.py b/actstream/models.py
index <HASH>..<HASH> 100644
--- a/actstream/models.py
+++ b/actstream/models.py
@@ -179,9 +179,3 @@ model_stream = Action.objects.model_actions
any_stream = Action.objects.any
followers = Follow.objects.followers
following = Follow.objects.following
-
-
-if djan... | remove less then <I> monkey path from models | py |
diff --git a/see.py b/see.py
index <HASH>..<HASH> 100644
--- a/see.py
+++ b/see.py
@@ -68,8 +68,8 @@ def see(obj):
('__pow__', '**'),
('__ipow__', '**='),
('__lshift__', '<<'),
- ('__rshift__', '>>'),
('__ilshift__', '<<='),
+ ('__rshift__', '>>'),
('__irshift_... | swapped positions of <<= and >> | py |
diff --git a/mongu.py b/mongu.py
index <HASH>..<HASH> 100644
--- a/mongu.py
+++ b/mongu.py
@@ -72,8 +72,9 @@ class Model(ObjectDict):
def by_id(cls, oid):
"""Find a model object by its ``ObjectId``,
``oid`` can be string or ObjectId"""
- if oid:
- return cls.from_dict(cls.collec... | fix `by_id` can not return None bug | py |
diff --git a/test/test_search_server_coarse.py b/test/test_search_server_coarse.py
index <HASH>..<HASH> 100644
--- a/test/test_search_server_coarse.py
+++ b/test/test_search_server_coarse.py
@@ -54,7 +54,6 @@ class SearchServerTestCaseCoarse(unittest.TestCase):
def test_coarse_6(self):
results_6 = self.he... | Fix bad test that checks for hits in agg query | py |
diff --git a/shinken/webui/plugins/depgraph/depgraph.py b/shinken/webui/plugins/depgraph/depgraph.py
index <HASH>..<HASH> 100644
--- a/shinken/webui/plugins/depgraph/depgraph.py
+++ b/shinken/webui/plugins/depgraph/depgraph.py
@@ -79,7 +79,12 @@ def get_depgraph_widget():
search = app.request.GET.get('search', '')... | Fix : webui widget depgraph was buggy when there was no localhost object, so it took first found host. | py |
diff --git a/hwt/interfaces/agents/handshaked.py b/hwt/interfaces/agents/handshaked.py
index <HASH>..<HASH> 100644
--- a/hwt/interfaces/agents/handshaked.py
+++ b/hwt/interfaces/agents/handshaked.py
@@ -92,4 +92,4 @@ class HandshakeSyncAgent(HandshakedAgent):
pass
def doRead(self, s):
- raise Not... | read time in monitor of HandshakeSyncAgent | py |
diff --git a/vtki/plotting.py b/vtki/plotting.py
index <HASH>..<HASH> 100644
--- a/vtki/plotting.py
+++ b/vtki/plotting.py
@@ -54,6 +54,7 @@ rcParams = {
'position_y' : 0.02,
},
'show_edges' : False,
+ 'lighting': True,
}
def set_plot_theme(theme):
@@ -438,7 +439,7 @@ class BasePlotter(object)... | Add rcParam for lighting | py |
diff --git a/JSAnimation/examples.py b/JSAnimation/examples.py
index <HASH>..<HASH> 100644
--- a/JSAnimation/examples.py
+++ b/JSAnimation/examples.py
@@ -30,8 +30,9 @@ def lorenz_animation(N_trajectories=20, rseed=1, frames=200, interval=30):
from mpl_toolkits.mplot3d import Axes3D
from matplotlib.colors imp... | [py3k] removed use of tuple unpacking (see PEP <I>) | py |
diff --git a/openquake/qa_tests_data/event_based/case_8/__init__.py b/openquake/qa_tests_data/event_based/case_8/__init__.py
index <HASH>..<HASH> 100644
--- a/openquake/qa_tests_data/event_based/case_8/__init__.py
+++ b/openquake/qa_tests_data/event_based/case_8/__init__.py
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
# v... | Fixed copyright [skip CI] | py |
diff --git a/salt/modules/kubernetes.py b/salt/modules/kubernetes.py
index <HASH>..<HASH> 100644
--- a/salt/modules/kubernetes.py
+++ b/salt/modules/kubernetes.py
@@ -49,6 +49,7 @@ from salt.exceptions import CommandExecutionError
from salt.ext.six import iteritems
import salt.utils
import salt.utils.templates
+from... | Added pylint-disable statements and import for salt.ext.six.moves.range | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -4,7 +4,7 @@ from setuptools import setup
setup(
name='sphinx-git',
description='git Changelog for Sphinx',
- version='5',
+ version='6',
author='Daniel Watkins',
author_email='daniel@daniel-watkins.... | Bump to v6 (for development). | py |
diff --git a/astrobase/varclass/fakelcrecovery.py b/astrobase/varclass/fakelcrecovery.py
index <HASH>..<HASH> 100644
--- a/astrobase/varclass/fakelcrecovery.py
+++ b/astrobase/varclass/fakelcrecovery.py
@@ -986,9 +986,11 @@ def get_recovered_variables_for_magbin(simbasedir,
# this is the index of the matching ... | fakelcrecovery: working on per magbin recovery stats | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -18,7 +18,7 @@ setup(
url = "https://github.com/Baguage/django-auth-pubtkt",
packages=['django_auth_pubtkt', 'tests'],
long_description=read('README'),
- install_requires=[" M2Crypto"],
+ install_requires=... | Added Django as a dependency | py |
diff --git a/openquake/hazardlib/__init__.py b/openquake/hazardlib/__init__.py
index <HASH>..<HASH> 100644
--- a/openquake/hazardlib/__init__.py
+++ b/openquake/hazardlib/__init__.py
@@ -26,5 +26,5 @@ from openquake.hazardlib import (
tom, near_fault)
# the version is managed by packager.sh with a sed
-__versio... | update development version to <I> | py |
diff --git a/pymola/backends/casadi/api.py b/pymola/backends/casadi/api.py
index <HASH>..<HASH> 100644
--- a/pymola/backends/casadi/api.py
+++ b/pymola/backends/casadi/api.py
@@ -125,16 +125,11 @@ def _save_model(model_folder: str, model_name: str, model: Model):
library_name = '{}_{}'.format(model_name, o)
... | Included Jacobian information in generated code Note that this commit requires CasADi at revision <I>fd4c or newer (Sep <I>, <I>) | py |
diff --git a/nationstates/NSback/__init__.py b/nationstates/NSback/__init__.py
index <HASH>..<HASH> 100644
--- a/nationstates/NSback/__init__.py
+++ b/nationstates/NSback/__init__.py
@@ -1,7 +1,7 @@
import requests
-try:
+if __name__ == "__main__":
import bs4parser
-except:
+else:
from . import bs4parser | Removed Try/except from nationstates/NSback/__init__.py | py |
diff --git a/bypy.py b/bypy.py
index <HASH>..<HASH> 100755
--- a/bypy.py
+++ b/bypy.py
@@ -1566,11 +1566,14 @@ class ByPy(object):
def __get_json(self, r, defaultec = ERequestFailed):
try:
j = r.json()
+ self.pd("Website returned JSON: {}".foramt(j))
if 'error_code' in j:
return j['error_code']
... | Trivial: Add in more printing for JSON response | py |
diff --git a/ishell/console.py b/ishell/console.py
index <HASH>..<HASH> 100644
--- a/ishell/console.py
+++ b/ishell/console.py
@@ -100,7 +100,8 @@ class Console:
break
else:
self.walk_and_run(input_)
- except KeyboardInterrupt:
+ except (K... | Fixes #9, print 'exit' and exit cleanly on KeyboardInterrupt or EOFError | py |
diff --git a/bika/lims/content/sample.py b/bika/lims/content/sample.py
index <HASH>..<HASH> 100644
--- a/bika/lims/content/sample.py
+++ b/bika/lims/content/sample.py
@@ -333,7 +333,7 @@ class Sample(BaseFolder, HistoryAwareMixin):
ar_ids = [AR.id for AR in ARs if AR.id.startswith(prefix)]
ar_ids.sort... | Secondary AR ID generation handles new AR ids | py |
diff --git a/chess/gaviota.py b/chess/gaviota.py
index <HASH>..<HASH> 100644
--- a/chess/gaviota.py
+++ b/chess/gaviota.py
@@ -131,7 +131,7 @@ class NativeTablebases(object):
pliestomate = ctypes.c_uint()
if not wdl_only:
ret = self.libgtb.tb_probe_hard(stm, ep_square, castling, c_ws, c_b... | Python 2: Never return longs as DTMs | py |
diff --git a/api/models.py b/api/models.py
index <HASH>..<HASH> 100644
--- a/api/models.py
+++ b/api/models.py
@@ -188,10 +188,9 @@ class Formation(UuidAuditedModel):
return
def destroy(self, *args, **kwargs):
- app_tasks = [tasks.destroy_app.si(a) for a in self.app_set.all()]
node_tasks... | Removed ref to obsolete app_tasks in formation.destroy. | py |
diff --git a/openfisca_web_api/controllers.py b/openfisca_web_api/controllers.py
index <HASH>..<HASH> 100644
--- a/openfisca_web_api/controllers.py
+++ b/openfisca_web_api/controllers.py
@@ -26,9 +26,12 @@
"""Root controllers"""
+from __future__ import division
+
import collections
import copy
import datetime
+... | Use CPU count to measure serveur load. | py |
diff --git a/src/hupper/reloader.py b/src/hupper/reloader.py
index <HASH>..<HASH> 100644
--- a/src/hupper/reloader.py
+++ b/src/hupper/reloader.py
@@ -167,6 +167,11 @@ class Reloader(object):
pass
else:
self.monitor.add_path(path)
+ except KeyboardInterr... | add a delay before killing the server due to a SIGINT fixes #<I> | py |
diff --git a/split_folders/split.py b/split_folders/split.py
index <HASH>..<HASH> 100644
--- a/split_folders/split.py
+++ b/split_folders/split.py
@@ -130,7 +130,7 @@ def split_files(files, split_train, split_val, use_test):
"""Splits the files along the provided indices
"""
files_train = files[:split_tr... | fix for 1 file going missing everytime ;) | py |
diff --git a/tests/float/cmath_fun_special.py b/tests/float/cmath_fun_special.py
index <HASH>..<HASH> 100644
--- a/tests/float/cmath_fun_special.py
+++ b/tests/float/cmath_fun_special.py
@@ -29,4 +29,4 @@ for f_name, f, test_vals in functions:
print(f_name)
for val in test_vals:
ret = f(val)
- ... | tests/float: Fix cmath_fun_special for MICROPY_FLOAT_IMPL_FLOAT. When the unix and windows ports use MICROPY_FLOAT_IMPL_FLOAT instead of MICROPY_FLOAT_IMPL_DOUBLE, the test output has for example complex(-<I>, <I>) instead of the expected complex(-<I>, <I>). Use one decimal place less for the output printing to fix t... | py |
diff --git a/test/test_http_client.py b/test/test_http_client.py
index <HASH>..<HASH> 100644
--- a/test/test_http_client.py
+++ b/test/test_http_client.py
@@ -47,6 +47,10 @@ class Test_Alignak_Http_Client(unittest.TestCase):
self.__thread.join(15)
if self.__thread.isAlive():
p... | Enh: Test - Try to shutdown thread | py |
diff --git a/satpy/readers/yaml_reader.py b/satpy/readers/yaml_reader.py
index <HASH>..<HASH> 100644
--- a/satpy/readers/yaml_reader.py
+++ b/satpy/readers/yaml_reader.py
@@ -171,15 +171,15 @@ class AbstractYAMLReader(six.with_metaclass(ABCMeta, object)):
def select_files_from_pathnames(self, filenames):
... | Fix bug in FileYAMLReader when filenames are provided | py |
diff --git a/salt/engines/stalekey.py b/salt/engines/stalekey.py
index <HASH>..<HASH> 100644
--- a/salt/engines/stalekey.py
+++ b/salt/engines/stalekey.py
@@ -40,6 +40,7 @@ log = logging.getLogger(__name__)
def __virtual__():
if not __opts__.get('minion_data_cache'):
return (False, 'stalekey engine requi... | Stop returning `None` Prevents: ``` <I>:<I>:<I>,<I> [salt.loader :<I>][WARNING ] salt.loaded.int.engines.stalekey.__virtual__() is wrongly returning `None`. It should either return `True`, `False` or a new name. If you're the developer of the module 'stalekey', please fix this. ``` | py |
diff --git a/telethon/client/auth.py b/telethon/client/auth.py
index <HASH>..<HASH> 100644
--- a/telethon/client/auth.py
+++ b/telethon/client/auth.py
@@ -155,7 +155,7 @@ class AuthMethods:
'not login to the bot account using the provided '
'bot_token (it may not be usi... | Fix warning when using formatted phones in start (#<I>) | py |
diff --git a/netmiko/ssh_dispatcher.py b/netmiko/ssh_dispatcher.py
index <HASH>..<HASH> 100644
--- a/netmiko/ssh_dispatcher.py
+++ b/netmiko/ssh_dispatcher.py
@@ -110,12 +110,12 @@ CLASS_MAPPER_BASE = {
}
FILE_TRANSFER_MAP = {
- 'arista_eos': AristaFileTransfer,
+# 'arista_eos': AristaFileTransfer,
'cisc... | Arista and Juniper SCP is not fully implemented | py |
diff --git a/src/techbubbleiotjumpwaymqtt/application.py b/src/techbubbleiotjumpwaymqtt/application.py
index <HASH>..<HASH> 100644
--- a/src/techbubbleiotjumpwaymqtt/application.py
+++ b/src/techbubbleiotjumpwaymqtt/application.py
@@ -149,7 +149,7 @@ class JumpWayPythonMQTTApplicationConnection():
return False
e... | Update application.py Line <I>: changed var name from "deviceDataTopic" to "deviceWarningTopic" | py |
diff --git a/tweepy/streaming.py b/tweepy/streaming.py
index <HASH>..<HASH> 100644
--- a/tweepy/streaming.py
+++ b/tweepy/streaming.py
@@ -153,8 +153,10 @@ class Stream(object):
delimited_string = c
# read rest of delimiter length..
+ d = ''
while d != '\n' and self.r... | Update tweepy/streaming.py | py |
diff --git a/pykeepass/entry.py b/pykeepass/entry.py
index <HASH>..<HASH> 100644
--- a/pykeepass/entry.py
+++ b/pykeepass/entry.py
@@ -34,17 +34,17 @@ class Entry(BaseElement):
password = xmlfactory.create_password_element(password)
times = xmlfactory.create_times_element(expires, expiration)
... | Don't override arg vars | py |
diff --git a/tests/test.py b/tests/test.py
index <HASH>..<HASH> 100755
--- a/tests/test.py
+++ b/tests/test.py
@@ -12,13 +12,7 @@ sys.path.insert(0, pkg_root)
import dss # noqa
-class TestRequest:
- def call(self, method, path, json={}, headers={}, **kwargs):
- headers = [(k, v) for k, v in headers.items... | Remove unused test fixture (#<I>) | py |
diff --git a/tests/test_alldiff.py b/tests/test_alldiff.py
index <HASH>..<HASH> 100644
--- a/tests/test_alldiff.py
+++ b/tests/test_alldiff.py
@@ -1,8 +1,12 @@
-import networkx
-from networkx.algorithms import bipartite
-from pyscipopt import Model, Conshdlr, SCIP_RESULT, SCIP_PARAMEMPHASIS, SCIP_PARAMSETTING
-from typ... | skip failing "test" for alldiff example | py |
diff --git a/bin/summit.py b/bin/summit.py
index <HASH>..<HASH> 100755
--- a/bin/summit.py
+++ b/bin/summit.py
@@ -325,6 +325,10 @@ def event(options, session):
print_exception(action, e)
sys.exit(1)
+ print_status(action, r, options)
+ print_response(r, options)
+ exit_... | Missing print and exit functions after event poll(). | py |
diff --git a/src/parse_mapqtl_file.py b/src/parse_mapqtl_file.py
index <HASH>..<HASH> 100644
--- a/src/parse_mapqtl_file.py
+++ b/src/parse_mapqtl_file.py
@@ -26,9 +26,11 @@
import logging
import os
try:
- from pymq2 import read_input_file, MQ2Exception, MQ2NoMatrixException
+ from pymq2 import (read_input_fil... | Raise the MQ2NoSuchSessionException when the session asked isn't part of the data provided | py |
diff --git a/src/hypercorn/protocol/h2.py b/src/hypercorn/protocol/h2.py
index <HASH>..<HASH> 100755
--- a/src/hypercorn/protocol/h2.py
+++ b/src/hypercorn/protocol/h2.py
@@ -213,12 +213,13 @@ class H2Protocol:
await self.stream_buffers[event.stream_id].drain()
elif isinstance(event, Strea... | Emit a goaway for HTTP/2 for a graceful shutdown This ensures that when the server is terminated and it is idle the HTTP/2 connection is closed by sending a GOAWAY frame to the client. | py |
diff --git a/dallinger/deployment.py b/dallinger/deployment.py
index <HASH>..<HASH> 100644
--- a/dallinger/deployment.py
+++ b/dallinger/deployment.py
@@ -74,6 +74,7 @@ def new_webbrowser_profile():
def _local_root_files():
"""Return an iterable of filenames which should be copied from the
experiment root di... | Switch to allow-list paradigm for copying local experiment files | py |
diff --git a/glue/lal.py b/glue/lal.py
index <HASH>..<HASH> 100644
--- a/glue/lal.py
+++ b/glue/lal.py
@@ -387,7 +387,7 @@ class CacheEntry(object):
Returns a string, with the format of a line in a LAL cache,
containing the contents of this cache entry.
"""
- if self.segment != None:
+ if self.segment is not... | Replace != with "is not" in a comparison to None. | py |
diff --git a/kana2/store.py b/kana2/store.py
index <HASH>..<HASH> 100644
--- a/kana2/store.py
+++ b/kana2/store.py
@@ -6,8 +6,7 @@ from . import Post, info, utils
POST_USABLE_FUNCTIONS = [
"get_all", "get_extra", "get_media", "get_artcom", "get_notes",
- "set_paths", "write", "load",
- "verify_media", "ve... | Fix Store.merge() only merging the first arg | py |
diff --git a/androguard/core/bytecodes/dvm.py b/androguard/core/bytecodes/dvm.py
index <HASH>..<HASH> 100644
--- a/androguard/core/bytecodes/dvm.py
+++ b/androguard/core/bytecodes/dvm.py
@@ -2740,11 +2740,17 @@ class EncodedField:
:rtype: string
"""
if self.access_flags_string is None:
- ... | fix bug where field with no defined access string would print 0x0 | py |
diff --git a/ecell4/deprecated.py b/ecell4/deprecated.py
index <HASH>..<HASH> 100644
--- a/ecell4/deprecated.py
+++ b/ecell4/deprecated.py
@@ -16,7 +16,11 @@ def deprecated(suggest=None):
doc = "[Deprecated]\n"
else:
doc = "[Deprecated] Use '" + suggest + "' instead.\n"
- wrapp... | fix: Check whether the original docstring is not None when deprecated | py |
diff --git a/tests/test_simple.py b/tests/test_simple.py
index <HASH>..<HASH> 100644
--- a/tests/test_simple.py
+++ b/tests/test_simple.py
@@ -484,4 +484,18 @@ class TestSimple(TestCase):
}
self.assertEqual(result, expected)
+ def test_unicode_strings(self):
+ result = parse("select '0:普通,... | Enable test_issue<I>, test already passes | py |
diff --git a/pipeline_live/data/sources/iex.py b/pipeline_live/data/sources/iex.py
index <HASH>..<HASH> 100644
--- a/pipeline_live/data/sources/iex.py
+++ b/pipeline_live/data/sources/iex.py
@@ -9,7 +9,7 @@ from .util import (
def list_symbols():
return [
- symbol['symbol'] for symbol in refdata.get_iex_... | fixing iex load_symbols get_iex_symbols returns symbols that are not eligible for api access. The get_symbols method should play nice with all IEX api endpoints. | py |
diff --git a/lib/webinterface_handler.py b/lib/webinterface_handler.py
index <HASH>..<HASH> 100644
--- a/lib/webinterface_handler.py
+++ b/lib/webinterface_handler.py
@@ -30,8 +30,16 @@ import os
import urlparse
import base64
+# The following mod_python imports are done separately in a particular
+# order (util fir... | When importing mod_python stuff, import util first (before publisher), fixing some weird publisher importing problems. See the code comment for more. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -100,5 +100,6 @@ setuptools.setup(
"requests"
],
url="https://github.com/CellProfiler/prokaryote",
- version=version
+ version=version,
+ zip_safe = False
) | Flailing - guess what, pip decided to install as zipped egg, lot of good that does! | py |
diff --git a/test/jupyter/test_jupyter_convert.py b/test/jupyter/test_jupyter_convert.py
index <HASH>..<HASH> 100644
--- a/test/jupyter/test_jupyter_convert.py
+++ b/test/jupyter/test_jupyter_convert.py
@@ -21,6 +21,7 @@
#
import os
+import sys
import unittest
import shutil
import subprocess
@@ -87,6 +88,7 @@ re... | Disable pdf test under windows because of lack of xelatex | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.