diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/salesforce/tests/test_integration.py b/salesforce/tests/test_integration.py
index <HASH>..<HASH> 100644
--- a/salesforce/tests/test_integration.py
+++ b/salesforce/tests/test_integration.py
@@ -610,6 +610,8 @@ class BasicSOQLTest(TestCase):
# Id of completely deleted item or fake but valid item.
Cont... | Restrict unimportant messages in test_double_delete. | py |
diff --git a/_pydevd_bundle/pydevd_comm.py b/_pydevd_bundle/pydevd_comm.py
index <HASH>..<HASH> 100644
--- a/_pydevd_bundle/pydevd_comm.py
+++ b/_pydevd_bundle/pydevd_comm.py
@@ -1165,7 +1165,6 @@ class InternalEvaluateExpression(InternalThreadCommand):
dbg.writer.add_command(cmd)
except:
... | "Show value tooltip on code selection" option raises exceptions (PY-<I>) Do not print evaluation's exception traceback to output console (cherry picked from commit accb<I>e) | py |
diff --git a/source/rafcon/utils/storage_utils.py b/source/rafcon/utils/storage_utils.py
index <HASH>..<HASH> 100644
--- a/source/rafcon/utils/storage_utils.py
+++ b/source/rafcon/utils/storage_utils.py
@@ -85,7 +85,7 @@ def write_dict_to_json(dictionary, path, **kwargs):
:param dictionary: The dictionary to get s... | Remove obsolete nested_jsonobjects argument The new version <I> of python-jsonconversion refactors the encoding and no longer uses the nested_jsonobjects flag. | py |
diff --git a/pymc/blocking.py b/pymc/blocking.py
index <HASH>..<HASH> 100644
--- a/pymc/blocking.py
+++ b/pymc/blocking.py
@@ -80,11 +80,10 @@ class DictToVarBijection(object):
def rmap(self, apt):
dpt = self.dpt.copy()
- if self.idx:
- dvar = dpt[self.var].copy()
- dvar[... | leads to errors if value is an array and the replacement value is a scalar | py |
diff --git a/dock/core.py b/dock/core.py
index <HASH>..<HASH> 100644
--- a/dock/core.py
+++ b/dock/core.py
@@ -164,7 +164,11 @@ class DockerTasker(object):
""" pull image from registry """
print "pull: image = '%s', registry = '%s'" % (image, registry)
registry_uri = create_image_repo_name(im... | insecure_registry is not backward compat arg | py |
diff --git a/aiorpcx/session.py b/aiorpcx/session.py
index <HASH>..<HASH> 100644
--- a/aiorpcx/session.py
+++ b/aiorpcx/session.py
@@ -179,6 +179,10 @@ class SessionBase(asyncio.Protocol):
self.errors += 1
if self.errors >= self.max_errors:
# Don't await self.close() because that is self-... | Add SessionBase._close() Use it for the case where self.transport is None | py |
diff --git a/install.py b/install.py
index <HASH>..<HASH> 100644
--- a/install.py
+++ b/install.py
@@ -340,7 +340,7 @@ def install(inst, version):
commit = latest_commit(version)
print('Installing commit', commit)
subprocess.check_call([pycmd, '-m', 'pip', 'install',
- ... | Made sure the latest commit of a branch is downloaded | py |
diff --git a/devtools/proxy.py b/devtools/proxy.py
index <HASH>..<HASH> 100755
--- a/devtools/proxy.py
+++ b/devtools/proxy.py
@@ -264,7 +264,7 @@ async def finish(app, srvs, handler):
for srv in srvs:
srv.close()
- await handler.finish_connections()
+ await handler.shutdown()
for srv in sr... | Replace deprecated finish_connections to shutdown | py |
diff --git a/tests/conftest.py b/tests/conftest.py
index <HASH>..<HASH> 100644
--- a/tests/conftest.py
+++ b/tests/conftest.py
@@ -1,3 +1,4 @@
+import os
import json
@@ -7,3 +8,5 @@ def pytest_assertrepr_compare(config, op, left, right):
a.write(json.dumps(left, indent=4, sort_keys=True))
wit... | [enh] better debug output for tests | py |
diff --git a/synapse/tests/test_cortex.py b/synapse/tests/test_cortex.py
index <HASH>..<HASH> 100644
--- a/synapse/tests/test_cortex.py
+++ b/synapse/tests/test_cortex.py
@@ -2217,6 +2217,8 @@ class CortexTest(s_t_utils.SynTest):
await core.storm('[ inet:dns:a=(woot.com, 1.2.3.4) inet:dns:a=(vertex.link,... | added unit test for explicit 0 check | py |
diff --git a/aiodocker/docker.py b/aiodocker/docker.py
index <HASH>..<HASH> 100644
--- a/aiodocker/docker.py
+++ b/aiodocker/docker.py
@@ -72,8 +72,16 @@ class Docker:
docker_host = "unix://" + str(sockpath)
break
if docker_host is None and sys.platform == "win32":
- ... | Make a test on windows pipe more robust | py |
diff --git a/topydo/lib/Config.py b/topydo/lib/Config.py
index <HASH>..<HASH> 100644
--- a/topydo/lib/Config.py
+++ b/topydo/lib/Config.py
@@ -111,7 +111,7 @@ class _Config:
self.config = {}
- self.cp = configparser.ConfigParser()
+ self.cp = configparser.RawConfigParser()
for sect... | Don't use interpolation when parsing configuration With interpolation turned on we couldn't properly use '%' in list_format strings. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -14,13 +14,13 @@
# You should have received a copy of the GNU Lesser General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# GNU Lesser General Public License version 3 (see the file... | Fixed install process to read from README.md | py |
diff --git a/starlette/status.py b/starlette/status.py
index <HASH>..<HASH> 100644
--- a/starlette/status.py
+++ b/starlette/status.py
@@ -5,6 +5,7 @@ And RFC 6585 - https://tools.ietf.org/html/rfc6585
And RFC 4918 - https://tools.ietf.org/html/rfc4918
And RFC 8470 - https://tools.ietf.org/html/rfc8470
And RFC 2324 ... | Add <I> Already Reported status code (#<I>) | py |
diff --git a/lineage/ensembl.py b/lineage/ensembl.py
index <HASH>..<HASH> 100644
--- a/lineage/ensembl.py
+++ b/lineage/ensembl.py
@@ -8,8 +8,7 @@ References
----------
..[1] Yates et. al. (doi:10.1093/bioinformatics/btu613),
http://europepmc.org/search/?query=DOI:10.1093/bioinformatics/btu613
-..[2] Cunningham et... | Update reference for Ensembl data usage | py |
diff --git a/chat/indico_chat/controllers/logs.py b/chat/indico_chat/controllers/logs.py
index <HASH>..<HASH> 100644
--- a/chat/indico_chat/controllers/logs.py
+++ b/chat/indico_chat/controllers/logs.py
@@ -114,6 +114,7 @@ class RHChatManageEventAttachLogs(RHChatManageEventRetrieveLogsBase):
... | Chat: Flush before sending attachment_created | py |
diff --git a/src/nlpia/second_edition/ch06_nessvectors_with_spacy.py b/src/nlpia/second_edition/ch06_nessvectors_with_spacy.py
index <HASH>..<HASH> 100644
--- a/src/nlpia/second_edition/ch06_nessvectors_with_spacy.py
+++ b/src/nlpia/second_edition/ch06_nessvectors_with_spacy.py
@@ -27,11 +27,10 @@ def build_index(vecto... | spacy glove vectors add all items to annoy index | py |
diff --git a/mintapi/api.py b/mintapi/api.py
index <HASH>..<HASH> 100644
--- a/mintapi/api.py
+++ b/mintapi/api.py
@@ -293,9 +293,27 @@ class Mint(requests.Session):
# Fill in the return structure
for direction in budgets.keys():
for budget in budgets[direction]:
- budget['... | Build budget categories by ID to handle top-level categories | py |
diff --git a/membrane.py b/membrane.py
index <HASH>..<HASH> 100644
--- a/membrane.py
+++ b/membrane.py
@@ -13,6 +13,7 @@ class Membrane(Actor):
@initial_behavior
def start_beh(self, message):
if message != 'start':
+ self.error('membrane is not started yet')
return
se... | Report that membrane needs a start message | py |
diff --git a/chatterbot/constants.py b/chatterbot/constants.py
index <HASH>..<HASH> 100644
--- a/chatterbot/constants.py
+++ b/chatterbot/constants.py
@@ -4,10 +4,11 @@ ChatterBot constants
'''
The maximum length of characters that the text of a statement can contain.
-This should be enforced on a per-model basis b... | Change statement text max-length to <I> | py |
diff --git a/flask_socketio/__init__.py b/flask_socketio/__init__.py
index <HASH>..<HASH> 100644
--- a/flask_socketio/__init__.py
+++ b/flask_socketio/__init__.py
@@ -198,7 +198,7 @@ class SocketIO(object):
raise
type, value, traceback = sys.exc_info()
... | more robustness in dealing with bad connections | py |
diff --git a/nipap-cli/nipap_cli/command.py b/nipap-cli/nipap_cli/command.py
index <HASH>..<HASH> 100755
--- a/nipap-cli/nipap_cli/command.py
+++ b/nipap-cli/nipap_cli/command.py
@@ -136,7 +136,7 @@ class Command:
# and set children to the option argument
self.children = { 'argument': ... | Fix a bug in Command parser lib Another fix to the Command parser lib. Our unittest is far from full covering of the Command lib, but my limited testing shows that this does work correctly. This fixes #<I>. | py |
diff --git a/rawdisk/filesystems/volume.py b/rawdisk/filesystems/volume.py
index <HASH>..<HASH> 100644
--- a/rawdisk/filesystems/volume.py
+++ b/rawdisk/filesystems/volume.py
@@ -7,4 +7,14 @@ class Volume(object):
@abc.abstractmethod
def mount(self, filename, offset):
"""Retrieve volume information."... | Added unmount and is_mounted methods to Volume | py |
diff --git a/andes/plot.py b/andes/plot.py
index <HASH>..<HASH> 100644
--- a/andes/plot.py
+++ b/andes/plot.py
@@ -770,7 +770,7 @@ class TDSData:
return fig, axes
- def panoview(self, mdl, *, ncols=3, vars=None, idx=None, a=None, figsize=None, **kwargs):
+ def panoview(self, mdl, vars, *, ncols=3, id... | Let `panoview` take `vars` as the positional argument after model. | py |
diff --git a/tests/test_widgets.py b/tests/test_widgets.py
index <HASH>..<HASH> 100644
--- a/tests/test_widgets.py
+++ b/tests/test_widgets.py
@@ -5,7 +5,6 @@ Copyright (c) 2017-2018 RedFantom
"""
from __future__ import print_function
from unittest import TestCase
-import time
from ttkthemes import ThemedTk
from t... | Fix test for Windows and add debug print Windows does have the module signal, but it does not have the alarm attribute. The debug print is to be able to examine what widget fails creation. | py |
diff --git a/prett/sender.py b/prett/sender.py
index <HASH>..<HASH> 100644
--- a/prett/sender.py
+++ b/prett/sender.py
@@ -23,6 +23,8 @@ class SignalSender:
raise self.last_error[0]
def connect(self, func, *args, **kwargs):
+ last_error = self.last_error
+
def slot_func(data, *_):
... | fixed memory leak (#4) * tried_to_fix_memory_leak * added empty line before function | py |
diff --git a/pytest-server-fixtures/pytest_server_fixtures/base.py b/pytest-server-fixtures/pytest_server_fixtures/base.py
index <HASH>..<HASH> 100644
--- a/pytest-server-fixtures/pytest_server_fixtures/base.py
+++ b/pytest-server-fixtures/pytest_server_fixtures/base.py
@@ -86,6 +86,7 @@ class ServerThread(threading.Th... | Added stdin debugging for base server | py |
diff --git a/awp/packager.py b/awp/packager.py
index <HASH>..<HASH> 100755
--- a/awp/packager.py
+++ b/awp/packager.py
@@ -213,7 +213,7 @@ def package_workflow(config, version, export_file):
else:
plistlib.writePlist(info, plist_path)
- if not export_file:
+ if export_file == '':
export_f... | Fix bug where awp command would export by default The awp command should only ever export if the --export/-e flag is supplied. | py |
diff --git a/tests/test_units.py b/tests/test_units.py
index <HASH>..<HASH> 100644
--- a/tests/test_units.py
+++ b/tests/test_units.py
@@ -69,7 +69,7 @@ def test_find_available_port():
sock = socket.socket()
sock.bind(('localhost', 9800))
sock.listen(0)
- assert x._find_available_port(9800) == 9999
+ ... | loosen the find_available_port test slightly, since it seems to be not <I>% predictable for reasons i haven't investigated | py |
diff --git a/openquake/commonlib/source.py b/openquake/commonlib/source.py
index <HASH>..<HASH> 100644
--- a/openquake/commonlib/source.py
+++ b/openquake/commonlib/source.py
@@ -450,12 +450,11 @@ class CompositeSourceModel(collections.Sequence):
:param weight: source weight function
:returns: total w... | Restored get_weight as it was [skip hazardlib] Former-commit-id: <I>b<I>c<I>ff<I>b8e5c<I>a<I>b<I>c4 | py |
diff --git a/securesystemslib/gpg/common.py b/securesystemslib/gpg/common.py
index <HASH>..<HASH> 100644
--- a/securesystemslib/gpg/common.py
+++ b/securesystemslib/gpg/common.py
@@ -222,6 +222,7 @@ def parse_pubkey_bundle(data):
elif packet_type in [PACKET_TYPE_USER_ID, PACKET_TYPE_USER_ATTR,
PACKET_... | Update gpg raw pubkey bundle data format Also store the header length in raw gpg pubkey bundles for testing purposes. | py |
diff --git a/derpibooru/search.py b/derpibooru/search.py
index <HASH>..<HASH> 100644
--- a/derpibooru/search.py
+++ b/derpibooru/search.py
@@ -5,3 +5,12 @@ class Search(object):
self.comments = comments
self.fav = fav
self.key = key
+
+ @property
+ def hostname(self):
+ return("https://derpiboo.ru")... | add hostname and q properties to Search | py |
diff --git a/twitcher/owsproxy/views.py b/twitcher/owsproxy/views.py
index <HASH>..<HASH> 100644
--- a/twitcher/owsproxy/views.py
+++ b/twitcher/owsproxy/views.py
@@ -13,7 +13,7 @@ import logging
logger = logging.getLogger(__name__)
allowed_service_types = (
- 'wps', 'wms'
+ 'wps',
)
allowed_requests ... | allow only wps in proxy | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -3,7 +3,7 @@
#
# Copyright (C) 2015 David Riggleman <davidriggleman@gmail.com>
# Copyright (C) 2013 Kali Kaneko <kali@futeisha.org> (sqlcipher support)
-# Copyright (C) 2005-2010 Gerhard H�ring <gh@ghaering.de>
+# Copyright... | Update setup.py Setting version number to <I>. I had previously set it to <I> to reflect the fact it was a Python 3 only package, but not it doesn't make sense since this package supports both Python 2 and Python 3 | py |
diff --git a/pyforms/gui/Controls/ControlButton.py b/pyforms/gui/Controls/ControlButton.py
index <HASH>..<HASH> 100755
--- a/pyforms/gui/Controls/ControlButton.py
+++ b/pyforms/gui/Controls/ControlButton.py
@@ -65,6 +65,11 @@ class ControlButton(ControlBase):
@value.setter
def value(self, value):
+ try:
+ self... | Fixes problem on control button where button could have multiple events attached to it | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -35,12 +35,15 @@ setup(name='round',
install_requires=[
'PyYAML',
'patchboard',
- 'PyNaCl',
+ 'PyNaCl>=0.3.0dev',
'coinop',
],
tests_require=[
'p... | use working branch of pynacl because of CFFI fix | py |
diff --git a/seleniumbase/fixtures/base_case.py b/seleniumbase/fixtures/base_case.py
index <HASH>..<HASH> 100755
--- a/seleniumbase/fixtures/base_case.py
+++ b/seleniumbase/fixtures/base_case.py
@@ -1687,6 +1687,11 @@ class BaseCase(unittest.TestCase):
timeout = settings.SMALL_TIMEOUT
if self.time... | Scroll to iframes before switching into them | py |
diff --git a/pyoko/node.py b/pyoko/node.py
index <HASH>..<HASH> 100644
--- a/pyoko/node.py
+++ b/pyoko/node.py
@@ -95,7 +95,7 @@ class Node(object):
matches = list(set(difflib.get_close_matches(key, self._prop_list, 4, 0.5)))
error_msg = "Unexpected assignment, do you mistyped a field name \"%... | fixed type mismatch error on setting keys for links obj.some_link_name_id = '' changed colored quotes with plain ones for attribute setting error message. | py |
diff --git a/digsandpaper/coarse/preprocess/constraint_consistency_factory.py b/digsandpaper/coarse/preprocess/constraint_consistency_factory.py
index <HASH>..<HASH> 100644
--- a/digsandpaper/coarse/preprocess/constraint_consistency_factory.py
+++ b/digsandpaper/coarse/preprocess/constraint_consistency_factory.py
@@ -1... | Replace compiler import with built in compile call | py |
diff --git a/threadedcomments/forms.py b/threadedcomments/forms.py
index <HASH>..<HASH> 100644
--- a/threadedcomments/forms.py
+++ b/threadedcomments/forms.py
@@ -34,8 +34,8 @@ class ThreadedCommentForm(CommentForm):
def get_comment_model(self):
return ThreadedComment
- def get_comment_create_data(se... | For compatibility with django-threaded-comments <I> | py |
diff --git a/tests/jenkins.py b/tests/jenkins.py
index <HASH>..<HASH> 100644
--- a/tests/jenkins.py
+++ b/tests/jenkins.py
@@ -90,7 +90,7 @@ def echo_parseable_environment(options):
name = generate_vm_name(options.platform)
output.extend([
'JENKINS_SALTCLOUD_VM_PLATFORM={0}'.format(option... | We're using args not kwargs | py |
diff --git a/djstripe/stripe_objects.py b/djstripe/stripe_objects.py
index <HASH>..<HASH> 100644
--- a/djstripe/stripe_objects.py
+++ b/djstripe/stripe_objects.py
@@ -140,7 +140,10 @@ class StripeObject(TimeStampedModel):
return result
def attach_objects_hook(self, cls, data):
- """Gets called by... | Improved attach_objects_hook docstring | py |
diff --git a/sqlserver/datadog_checks/sqlserver/sqlserver.py b/sqlserver/datadog_checks/sqlserver/sqlserver.py
index <HASH>..<HASH> 100644
--- a/sqlserver/datadog_checks/sqlserver/sqlserver.py
+++ b/sqlserver/datadog_checks/sqlserver/sqlserver.py
@@ -467,11 +467,14 @@ class SQLServer(AgentCheck):
for m... | Do not throw key errors (#<I>) | py |
diff --git a/salt/states/rbenv.py b/salt/states/rbenv.py
index <HASH>..<HASH> 100644
--- a/salt/states/rbenv.py
+++ b/salt/states/rbenv.py
@@ -123,7 +123,7 @@ def installed(name, default=False, runas=None, user=None):
rbenv_installed_ret = copy.deepcopy(ret)
salt.utils.warn_until(
- 'Hydrogen',
+ ... | Bump deprecations to Lithium | py |
diff --git a/pkg_resources/__init__.py b/pkg_resources/__init__.py
index <HASH>..<HASH> 100644
--- a/pkg_resources/__init__.py
+++ b/pkg_resources/__init__.py
@@ -2113,7 +2113,11 @@ def _rebuild_mod_path(orig_path, package_name, module):
parts = path_parts[:-module_parts]
return safe_sys_path_index(_n... | Bypass sort behavior altogether when module.__path__ isn't a list. Fixes #<I>. | py |
diff --git a/thumbnails/fields.py b/thumbnails/fields.py
index <HASH>..<HASH> 100644
--- a/thumbnails/fields.py
+++ b/thumbnails/fields.py
@@ -17,7 +17,7 @@ class ImageField(DjangoImageField):
raise ValueError('Please define storage backend in settings.py instead on the field itself')
kwargs['stor... | Fixed typo in ImageField's super call. | py |
diff --git a/tweepy/tweet.py b/tweepy/tweet.py
index <HASH>..<HASH> 100644
--- a/tweepy/tweet.py
+++ b/tweepy/tweet.py
@@ -67,7 +67,7 @@ class Tweet(HashableID, DataMapping):
return len(self.text)
def __repr__(self):
- return f"<Tweet id={self.id} text={self.text}>"
+ return f"<Tweet id={s... | Use repr of text in Tweet.__repr__ This avoids including inconstant newlines, rather than escaped newlines, in the string representation of the Tweet object, making it more consistent | py |
diff --git a/plenum/server/consensus/ordering_service.py b/plenum/server/consensus/ordering_service.py
index <HASH>..<HASH> 100644
--- a/plenum/server/consensus/ordering_service.py
+++ b/plenum/server/consensus/ordering_service.py
@@ -2392,7 +2392,7 @@ class OrderingService:
pp = PrePrepare(**pp_dict)
... | INDY-<I>: Fix more tests | py |
diff --git a/cobe/brain.py b/cobe/brain.py
index <HASH>..<HASH> 100644
--- a/cobe/brain.py
+++ b/cobe/brain.py
@@ -465,6 +465,7 @@ class _Db:
to be used from outside."""
def __init__(self, conn, run_migrations=True):
self._conn = conn
+ conn.row_factory = sqlite3.Row
if self.is_init... | Use sqlite3.Row as our row factory This will allow name-based access to row results, which should make some of the database code a little more readable. | py |
diff --git a/oauthlib/oauth2/rfc6749/request_validator.py b/oauthlib/oauth2/rfc6749/request_validator.py
index <HASH>..<HASH> 100644
--- a/oauthlib/oauth2/rfc6749/request_validator.py
+++ b/oauthlib/oauth2/rfc6749/request_validator.py
@@ -89,7 +89,7 @@ class RequestValidator(object):
raise NotImplementedError(... | Correct interface of RequestValidator.confirm_redirect_uri() to make it consistent with the call in AuthorizationCodeGrant.validate_token_request(). | py |
diff --git a/src/pyrocore/torrent/engine.py b/src/pyrocore/torrent/engine.py
index <HASH>..<HASH> 100644
--- a/src/pyrocore/torrent/engine.py
+++ b/src/pyrocore/torrent/engine.py
@@ -153,6 +153,9 @@ class TorrentProxy(object):
formatter=lambda val: "OPN" if val else "CLS")
is_complete =... | "is_ghost" field added | py |
diff --git a/bracex/__init__.py b/bracex/__init__.py
index <HASH>..<HASH> 100644
--- a/bracex/__init__.py
+++ b/bracex/__init__.py
@@ -395,16 +395,18 @@ class ExpandBrace(object):
found_literal = False
if string:
i = iter(StringIter(string))
- for x in self.get_literals(next(i)... | consistent handling of get_literals Not technically a bug as the specific call from the main loop will never return None, but we should handle things in a consistent way in case the logic in get_literals ever changes and one day can return None in this specific case. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -21,7 +21,7 @@ class tests(Command):
def run(self):
import subprocess
import sys
- for t in glob.glob('unitest*.py'):
+ for t in glob.glob('unitest.py'):
ret = subprocess.call(... | API tests + requests in the setup.py script | py |
diff --git a/test/test_basic.py b/test/test_basic.py
index <HASH>..<HASH> 100644
--- a/test/test_basic.py
+++ b/test/test_basic.py
@@ -63,10 +63,14 @@ class TestDatastore(unittest.TestCase):
self.assertEqual(result, expected)
except NotImplementedError:
- pass
+ print 'WARNING: %... | Fixed the bypassing of query if datastores do not implement it. | py |
diff --git a/setuptools/package_index.py b/setuptools/package_index.py
index <HASH>..<HASH> 100755
--- a/setuptools/package_index.py
+++ b/setuptools/package_index.py
@@ -623,7 +623,11 @@ def fix_sf_url(url):
def get_sf_ip(_mirrors=[]):
if not _mirrors:
- _mirrors[:] = socket.gethostbyname_ex('dl.sourcef... | Fall back to a reasonable default Sourceforge address if the machine is unable to obtain the mirror IP list via DNS. --HG-- branch : setuptools extra : convert_revision : svn%3A<I>fed2-<I>-<I>-9fe1-9d<I>cc<I>/sandbox/trunk/setuptools%<I> | py |
diff --git a/aegea/elb.py b/aegea/elb.py
index <HASH>..<HASH> 100644
--- a/aegea/elb.py
+++ b/aegea/elb.py
@@ -128,7 +128,7 @@ def create(args):
if res["Listeners"]:
res = clients.elbv2.modify_listener(ListenerArn=res["Listeners"][0]["ListenerArn"], **listener_params)
else:
- r... | Logic fix for elb creation from scratch | py |
diff --git a/blockstack_client/rpc.py b/blockstack_client/rpc.py
index <HASH>..<HASH> 100644
--- a/blockstack_client/rpc.py
+++ b/blockstack_client/rpc.py
@@ -1033,7 +1033,7 @@ class BlockstackAPIEndpointHandler(SimpleHTTPRequestHandler):
blockstackd_url = '{}://{}:{}'.format(blockstackd_protocol, blockstackd_... | handle subdomains as first-class names for the purposes of lookups, profile lookups, and querying names owned by address. Also, use blockstackd_client instead of proxy whenever possible. | py |
diff --git a/pylogit/asym_logit.py b/pylogit/asym_logit.py
index <HASH>..<HASH> 100644
--- a/pylogit/asym_logit.py
+++ b/pylogit/asym_logit.py
@@ -156,7 +156,7 @@ def _convert_eta_to_c(eta, ref_position):
# Get a list of all the indices (or row indices) corresponding to the
# alternatives whose shape parame... | Added import of python2 compatible range function. | py |
diff --git a/slither/detectors/statements/too_many_digits.py b/slither/detectors/statements/too_many_digits.py
index <HASH>..<HASH> 100644
--- a/slither/detectors/statements/too_many_digits.py
+++ b/slither/detectors/statements/too_many_digits.py
@@ -6,7 +6,7 @@ import re
from slither.detectors.abstract_detector impor... | Optimization: use a more efficient regexp for hexadecimal check (#<I>) Optimization: use a more efficient regexp for hexadecimal check | py |
diff --git a/allegedb/allegedb/cache.py b/allegedb/allegedb/cache.py
index <HASH>..<HASH> 100644
--- a/allegedb/allegedb/cache.py
+++ b/allegedb/allegedb/cache.py
@@ -20,16 +20,19 @@ class SetMutation(Set):
if self._real is None:
real = set()
inner = self._inner
+ inners = ... | Make sure SetMutation._reify respects the order of mutations | py |
diff --git a/src/REST/keywords.py b/src/REST/keywords.py
index <HASH>..<HASH> 100644
--- a/src/REST/keywords.py
+++ b/src/REST/keywords.py
@@ -912,15 +912,10 @@ class Keywords(object):
Skip is intented mainly for debugging the updated schema before aborting.
*Examples*
- | `GET` | /users?_li... | Tidy up example for KW `Array` usage | py |
diff --git a/th_evernote/my_evernote.py b/th_evernote/my_evernote.py
index <HASH>..<HASH> 100644
--- a/th_evernote/my_evernote.py
+++ b/th_evernote/my_evernote.py
@@ -8,7 +8,7 @@ import arrow
from evernote.api.client import EvernoteClient
from evernote.edam.notestore import NoteStore
import evernote.edam.type.ttypes... | update evernote to ignored data when there is ENML validation error | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -18,7 +18,7 @@ except Exception as e:
'(%r): %r' % (long_description, e))
tests_require = [
- 'coverage==4.1',
+ 'coverage==4.2b1',
'flake8==2.5.4',
'hypothesis==3.4.0',
'hypothesis-pytest==0.... | update to latest coverage (<I>b1) | py |
diff --git a/picoweb/__init__.py b/picoweb/__init__.py
index <HASH>..<HASH> 100644
--- a/picoweb/__init__.py
+++ b/picoweb/__init__.py
@@ -129,9 +129,9 @@ class WebApp:
qs = path[1]
path = path[0]
- # print("================")
- # print(req, writer)
- # prin... | picoweb: (Re)comment some debugging prints. | py |
diff --git a/datatables/datatables.py b/datatables/datatables.py
index <HASH>..<HASH> 100644
--- a/datatables/datatables.py
+++ b/datatables/datatables.py
@@ -2,10 +2,14 @@
from sqlalchemy.sql.expression import asc, desc
from sqlalchemy.sql import or_, and_
from sqlalchemy.orm.properties import RelationshipProperty
... | Allow lists to be printed as well on relationships, not just one to one | py |
diff --git a/test/acid.py b/test/acid.py
index <HASH>..<HASH> 100755
--- a/test/acid.py
+++ b/test/acid.py
@@ -46,21 +46,12 @@ def run(filename, log_file, slow_check=False, passes=2000,
def _check_syntax(filename):
"""Return True if syntax is okay."""
- tmp_dir = tempfile.mkdtemp()
- import shutil
- tr... | Get rid of temp files by using compile() directly | py |
diff --git a/galpy/potential/verticalPotential.py b/galpy/potential/verticalPotential.py
index <HASH>..<HASH> 100644
--- a/galpy/potential/verticalPotential.py
+++ b/galpy/potential/verticalPotential.py
@@ -1,5 +1,5 @@
from .linearPotential import linearPotential
-from .Potential import PotentialError, Potential
+from... | Flatten potential before converting to verticalPotential | py |
diff --git a/stanza/models/classifiers/classifier_args.py b/stanza/models/classifiers/classifier_args.py
index <HASH>..<HASH> 100644
--- a/stanza/models/classifiers/classifier_args.py
+++ b/stanza/models/classifiers/classifier_args.py
@@ -10,6 +10,12 @@ class WVType(Enum):
GOOGLE = 2
FASTTEXT = 3
+# NLP mac... | Useful notes on where to find word vecs | py |
diff --git a/.buildkite/pipeline.py b/.buildkite/pipeline.py
index <HASH>..<HASH> 100644
--- a/.buildkite/pipeline.py
+++ b/.buildkite/pipeline.py
@@ -304,7 +304,7 @@ DAGSTER_PACKAGES_WITH_CUSTOM_TESTS = [
'-in_memory_instance_hosted_user_process_env',
'-in_memory_instance_out_of_process_env',... | comma fix in buildkite Summary: adding comma to buildkite pipeline Test Plan: unit Reviewers: sashank Reviewed By: sashank Differential Revision: <URL> | py |
diff --git a/bin/init_model.py b/bin/init_model.py
index <HASH>..<HASH> 100644
--- a/bin/init_model.py
+++ b/bin/init_model.py
@@ -158,14 +158,12 @@ def setup_vocab(src_dir, dst_dir):
lexicon = []
for word, prob in reversed(sorted(list(probs.items()), key=lambda item: item[1])):
entry = get_lex_props... | * Remove probability cap on lexicon | py |
diff --git a/pandas/core/series.py b/pandas/core/series.py
index <HASH>..<HASH> 100644
--- a/pandas/core/series.py
+++ b/pandas/core/series.py
@@ -4407,9 +4407,9 @@ class Series(base.IndexOpsMixin, generic.NDFrame):
Parameters
----------
- left : scalar
+ left : scalar or list-like
... | DOC: Series.between() can take arguments that are Series, not just scalars (#<I>) modified the docs of Series.between() to reflect that it can take any list like object closes #<I> | py |
diff --git a/angr/state_plugins/posix.py b/angr/state_plugins/posix.py
index <HASH>..<HASH> 100644
--- a/angr/state_plugins/posix.py
+++ b/angr/state_plugins/posix.py
@@ -400,11 +400,18 @@ class SimStateSystem(SimStatePlugin):
oldmask
)
+ @staticmethod
+ def memocopy(x, memo):
+ if ... | Use a memo when copying files so as to not create multiple distinct copies of the same file | py |
diff --git a/graphene_django/debug/sql/tracking.py b/graphene_django/debug/sql/tracking.py
index <HASH>..<HASH> 100644
--- a/graphene_django/debug/sql/tracking.py
+++ b/graphene_django/debug/sql/tracking.py
@@ -148,10 +148,10 @@ class NormalCursorWrapper(object):
# We keep `sql` to maintain backwards compa... | Error in signature of callproc() and execute() (#<I>) | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -35,9 +35,6 @@ setup(
'dev': [
"coverage==4.2",
"flake8==3.2.1",
- "mccabe==0.6.1",
- "pycodestyle==2.3.1",
- "pyflakes==1.5.0",
"pylint==1.7.1",... | don't need to pin mccabe, pycodestyle or pyflakes if we're not using them directly | py |
diff --git a/rinohlib/templates/base.py b/rinohlib/templates/base.py
index <HASH>..<HASH> 100644
--- a/rinohlib/templates/base.py
+++ b/rinohlib/templates/base.py
@@ -58,6 +58,11 @@ class BookPart(DocumentPart):
def __init__(self, document_section):
super().__init__(document_section)
self.chain =... | Make a separate method yield a chain's flowables | py |
diff --git a/cobe/brain.py b/cobe/brain.py
index <HASH>..<HASH> 100644
--- a/cobe/brain.py
+++ b/cobe/brain.py
@@ -97,7 +97,7 @@ class Brain:
# loop for one second
start = time.time()
- end = start + 1
+ end = start + 0.5
count = 0
while best_reply is None or time.t... | Generate replies for <I>s, which is what MegaHAL averaged anyway | py |
diff --git a/dciclient/v1/run_commands.py b/dciclient/v1/run_commands.py
index <HASH>..<HASH> 100644
--- a/dciclient/v1/run_commands.py
+++ b/dciclient/v1/run_commands.py
@@ -43,7 +43,7 @@ def run_command(context, cmd, cwd, jobstate_id, team_id):
while True:
readable, writable, exceptional = select.sele... | run_command: Increase timeout from 5 to <I> A timeout of 5 prevent the run_command to return the whole output. Bumping it up to <I> does make run_command retrieve the whole output. Change-Id: I0c1c<I>f<I>cf<I>d<I>a<I>ea7dd4b4a | py |
diff --git a/abilian/services/indexing/service.py b/abilian/services/indexing/service.py
index <HASH>..<HASH> 100644
--- a/abilian/services/indexing/service.py
+++ b/abilian/services/indexing/service.py
@@ -15,6 +15,7 @@ from __future__ import absolute_import
import os
import logging
+import pprint
from inspect im... | indexing: log error in index_update trying to get info on a strange bug that happens randomly during CI... | py |
diff --git a/hitman.py b/hitman.py
index <HASH>..<HASH> 100755
--- a/hitman.py
+++ b/hitman.py
@@ -155,6 +155,13 @@ def del_feed(name):
feeds.close()
+def del_alias(alias):
+ """sometimes you goof up."""
+ db = anydbm.open(os.path.join(directory(), 'aliases'), 'c')
+ print "removing alias of %s to %s"... | we're not perfect... right? | py |
diff --git a/salt/utils/raetevent.py b/salt/utils/raetevent.py
index <HASH>..<HASH> 100644
--- a/salt/utils/raetevent.py
+++ b/salt/utils/raetevent.py
@@ -252,6 +252,12 @@ class RAETEvent(object):
except Exception:
pass
+ def close_pub(self):
+ '''
+ Here for com... | Add func for compat with main event system | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -3,7 +3,7 @@ from distutils.core import setup
setup(
name='hapipy',
- version='2.1.10',
+ version='2.2.0',
description="A python wrapper around HubSpot's APIs",
long_description = open('README.md').read... | Bumping the version number for adding Keywords | py |
diff --git a/samples/eight_puzzle.py b/samples/eight_puzzle.py
index <HASH>..<HASH> 100644
--- a/samples/eight_puzzle.py
+++ b/samples/eight_puzzle.py
@@ -84,6 +84,8 @@ class EightPuzzleProblem(Problem):
problem = EightPuzzleProblem()
+# NOTE: because of using a mutable type (list) as state, you can't use
+# graph... | Note about mutable state on 8puzzle problem | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -12,18 +12,13 @@
# See the License for the specific language governing permissions and
# limitations under the License.
-import skal
-
-
-try:
- from distutils.core import setup
-except ImportError:
- from setuptools... | Import version in a better way and use distribute only | py |
diff --git a/claripy/balancer.py b/claripy/balancer.py
index <HASH>..<HASH> 100644
--- a/claripy/balancer.py
+++ b/claripy/balancer.py
@@ -159,8 +159,8 @@ class Balancer(object):
continue
unpacked_truisms = self._unpack_truisms(truism)
+ self._processed_truisms.add(truism)
... | add the truism to the processed list even if it doesn't yield additional truisms | py |
diff --git a/tests/unit/summary/test_Summarizer.py b/tests/unit/summary/test_Summarizer.py
index <HASH>..<HASH> 100644
--- a/tests/unit/summary/test_Summarizer.py
+++ b/tests/unit/summary/test_Summarizer.py
@@ -1,5 +1,6 @@
import unittest
import copy
+import sys
import numpy as np
@@ -64,6 +65,7 @@ class TestSum... | skip a test for python 3 | py |
diff --git a/src/html5lib/html5parser.py b/src/html5lib/html5parser.py
index <HASH>..<HASH> 100644
--- a/src/html5lib/html5parser.py
+++ b/src/html5lib/html5parser.py
@@ -32,8 +32,8 @@ class HTMLParser(object):
"""HTML parser. Generates a tree structure from a stream of (possibly
malformed) HTML"""
- ... | API breaking change; make tree the second argument to the HTMLParser rather than the third for the sake of ease of use --HG-- extra : convert_revision : svn%3Aacbfec<I>-<I>-<I>-a<I>-<I>a<I>e<I>e0/trunk%<I> | py |
diff --git a/src/collectors/diskspace/diskspace.py b/src/collectors/diskspace/diskspace.py
index <HASH>..<HASH> 100644
--- a/src/collectors/diskspace/diskspace.py
+++ b/src/collectors/diskspace/diskspace.py
@@ -91,8 +91,11 @@ class DiskSpaceCollector(diamond.collector.Collector):
self.exclude_reg = re.compile(... | Fix #<I>, only cast to a list when a base string. | py |
diff --git a/virtualbox/_keyboard_ext.py b/virtualbox/_keyboard_ext.py
index <HASH>..<HASH> 100644
--- a/virtualbox/_keyboard_ext.py
+++ b/virtualbox/_keyboard_ext.py
@@ -127,10 +127,17 @@ CODES = {
class IKeyboard(library.IKeyboard):
__doc__ = library.IKeyboard.__doc__
- def put_keys(self, keys):
+ def p... | now able to hold keys when other keys are pressed | py |
diff --git a/edisgo/tools/plots.py b/edisgo/tools/plots.py
index <HASH>..<HASH> 100644
--- a/edisgo/tools/plots.py
+++ b/edisgo/tools/plots.py
@@ -336,10 +336,11 @@ def mv_grid_topology(pypsa_network, configs, timestep=None,
else:
bus_tmp = bus[4:]
if timestep is not None:
- ... | Change voltage from pu to percent in plot | py |
diff --git a/trezorlib/cosi.py b/trezorlib/cosi.py
index <HASH>..<HASH> 100644
--- a/trezorlib/cosi.py
+++ b/trezorlib/cosi.py
@@ -30,6 +30,10 @@ def verify(signature, digest, pub_key):
_ed25519.checkvalid(signature, digest, pub_key)
+def pubkey_from_privkey(privkey):
+ return _ed25519.publickey(privkey)
+
... | cosi: publish "pubkey from privkey" operation from ed<I> | py |
diff --git a/inlineplz/main.py b/inlineplz/main.py
index <HASH>..<HASH> 100644
--- a/inlineplz/main.py
+++ b/inlineplz/main.py
@@ -27,6 +27,7 @@ def main():
parser.add_argument('--repo-slug', type=str)
parser.add_argument('--branch', type=str)
parser.add_argument('--token', type=str)
+ parser.add_argu... | add commit arg (#<I>) | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -16,7 +16,7 @@ REQUIRES_PYTHON = '>=2.7.0'
VERSION = '0.5.1'
REQUIRED = [
- 'networkx',
+ 'networkx>=2',
'six'
] | Require networkx>=2 (#<I>) | py |
diff --git a/GPy/likelihoods/EP.py b/GPy/likelihoods/EP.py
index <HASH>..<HASH> 100644
--- a/GPy/likelihoods/EP.py
+++ b/GPy/likelihoods/EP.py
@@ -1,6 +1,6 @@
import numpy as np
from scipy import stats, linalg
-from ..util.linalg import pdinv,mdot,jitchol
+from ..util.linalg import pdinv,mdot,jitchol,DSYR
from likel... | DSYR is being used now | py |
diff --git a/pydarksky/darksky.py b/pydarksky/darksky.py
index <HASH>..<HASH> 100644
--- a/pydarksky/darksky.py
+++ b/pydarksky/darksky.py
@@ -283,7 +283,7 @@ class DarkSky(object):
log.debug(url)
- self._response = requests.get(url, headers={"Accept-Encoding": "gzip"})
+ self._response = req... | Added up 5 second timeout to API call | py |
diff --git a/pykechain/enums.py b/pykechain/enums.py
index <HASH>..<HASH> 100644
--- a/pykechain/enums.py
+++ b/pykechain/enums.py
@@ -316,7 +316,9 @@ class ServiceEnvironmentVersion(Enum):
PYTHON_2_7 = '2.7'
PYTHON_3_5 = '3.5'
+ PYTHON_3_6 = '3.6'
PYTHON_3_5_NOTEBOOKS = '3.5_notebook'
+ PYTHON_3... | Added Python <I> sim versions | py |
diff --git a/salt/utils/schedule.py b/salt/utils/schedule.py
index <HASH>..<HASH> 100644
--- a/salt/utils/schedule.py
+++ b/salt/utils/schedule.py
@@ -1300,8 +1300,6 @@ class Schedule(object):
for _skip_time in data['skip_explicit']:
_skip_explicit.append(datetime.datetime.... | Remove unuseful code, `_skip_explicit` was instantiated as a list. | py |
diff --git a/werkzeug/local.py b/werkzeug/local.py
index <HASH>..<HASH> 100644
--- a/werkzeug/local.py
+++ b/werkzeug/local.py
@@ -172,8 +172,8 @@ class LocalManager(object):
"""Local objects cannot manage themselves. For that you need a local
manager. You can pass a local manager multiple locals or add th... | Fixed typos in docstrings. (#<I>) Corrected a couple spelling issues and moved a comma. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -3,7 +3,7 @@ from setuptools import setup, find_packages
setup(
name='frasco-users',
- version='0.5.1',
+ version='0.5.2',
url='http://github.com/frascoweb/frasco-users',
license='MIT',
author='Max... | fixed flask-bcrypt version to <I> as <I> causes some issues | py |
diff --git a/schema_salad/ref_resolver.py b/schema_salad/ref_resolver.py
index <HASH>..<HASH> 100644
--- a/schema_salad/ref_resolver.py
+++ b/schema_salad/ref_resolver.py
@@ -493,7 +493,7 @@ class Loader(object):
obj = None # type: Optional[CommentedMap]
resolved_obj = None # type: Optional... | Tweak to pass mypy with latest ruamel.yaml (#<I>) | py |
diff --git a/quail/decode_speech.py b/quail/decode_speech.py
index <HASH>..<HASH> 100644
--- a/quail/decode_speech.py
+++ b/quail/decode_speech.py
@@ -32,9 +32,6 @@ def decode_speech(path, save=False, speech_context=None,
# load in speech context, note: max 500 words for speech context
if speech_con... | speech context must be a list of strings | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.