diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/session_security/middleware.py b/session_security/middleware.py
index <HASH>..<HASH> 100644
--- a/session_security/middleware.py
+++ b/session_security/middleware.py
@@ -35,7 +35,7 @@ class SessionSecurityMiddleware(object):
self.update_last_activity(request, now)
delta = now - get_last... | Ensure that the last activity isnt from the future; prevents issues in situations where clocks are out of sync between machines | py |
diff --git a/pyecore/ecore.py b/pyecore/ecore.py
index <HASH>..<HASH> 100644
--- a/pyecore/ecore.py
+++ b/pyecore/ecore.py
@@ -696,10 +696,11 @@ class EDataType(EClassifier):
'java.lang.Character': str} # Must be completed
def __init__(self, name=None, eType=None, default_value=None,
- ... | Fix __update issue of EClass when many attributes are added at once | py |
diff --git a/searchtweets/_version.py b/searchtweets/_version.py
index <HASH>..<HASH> 100644
--- a/searchtweets/_version.py
+++ b/searchtweets/_version.py
@@ -2,4 +2,4 @@
# Copyright 2018 Twitter, Inc.
# Licensed under the MIT License
# https://opensource.org/licenses/MIT
-VERSION = "1.7.0"
+VERSION = "1.7.1" | bump the version for the bugfix to cmd line args (issue #<I>) | py |
diff --git a/tensorforce/updater/linear_value_function.py b/tensorforce/updater/linear_value_function.py
index <HASH>..<HASH> 100644
--- a/tensorforce/updater/linear_value_function.py
+++ b/tensorforce/updater/linear_value_function.py
@@ -38,7 +38,7 @@ class LinearValueFunction(object):
returns = np.concatenat... | small damping in least squares fit | py |
diff --git a/fundamentals/fmultiprocess.py b/fundamentals/fmultiprocess.py
index <HASH>..<HASH> 100644
--- a/fundamentals/fmultiprocess.py
+++ b/fundamentals/fmultiprocess.py
@@ -46,14 +46,15 @@ def fmultiprocess(
log.info('starting the ``multiprocess`` function')
# DEFINTE POOL SIZE - NUMBER OF CPU CORES T... | removing process limit from multiprocessing | py |
diff --git a/tests/config_test.py b/tests/config_test.py
index <HASH>..<HASH> 100644
--- a/tests/config_test.py
+++ b/tests/config_test.py
@@ -1,6 +1,7 @@
import contextlib
import gc
import mock
+import os
import tempfile
import time
from testify import run, assert_equal, TestCase, setup, setup_teardown
@@ -434,8... | Attempt to make an acceptance test more reliable. | py |
diff --git a/openid/consumer/consumer.py b/openid/consumer/consumer.py
index <HASH>..<HASH> 100644
--- a/openid/consumer/consumer.py
+++ b/openid/consumer/consumer.py
@@ -743,8 +743,8 @@ class OpenIDConsumer(object):
else:
server_id = consumer_id
- urls = (consumer_id, server_id, server)
... | [project @ Don't attempt to normalize URLs that shouldn't be normalized] | py |
diff --git a/fusesoc/capi2/core.py b/fusesoc/capi2/core.py
index <HASH>..<HASH> 100644
--- a/fusesoc/capi2/core.py
+++ b/fusesoc/capi2/core.py
@@ -470,6 +470,7 @@ Tools:
members:
icarus : Icarus
icestorm : Icestorm
+ ise : Ise
modelsim : Modelsim
quartus : Quartus
verilator :... | Add ISE support to CAPI2 | py |
diff --git a/settings.py b/settings.py
index <HASH>..<HASH> 100644
--- a/settings.py
+++ b/settings.py
@@ -317,6 +317,9 @@ OIDC = False #Set this to True if you want want OpenID Connect Authentication,
#OIDC_OP_TOKEN_ENDPOINT = "<URL of the OIDC OP token endpoint>"
#OIDC_OP_USER_ENDPOINT = "<URL of the OIDC OP userin... | added OIDC_RP_SIGN_ALGO and OIDC_OP_JWKS_ENDPOINT to settings template #<I> | py |
diff --git a/glances/glances.py b/glances/glances.py
index <HASH>..<HASH> 100644
--- a/glances/glances.py
+++ b/glances/glances.py
@@ -722,7 +722,12 @@ class glancesLimits:
return self.__limits_list
def getHide(self, stat):
- return self.__limits_list[stat]
+ try:
+ self.__limit... | Correct a bug when a new client talk with a older one... | py |
diff --git a/rocker/container.py b/rocker/container.py
index <HASH>..<HASH> 100644
--- a/rocker/container.py
+++ b/rocker/container.py
@@ -216,13 +216,17 @@ def isCurrent(containerName, imageName, pullImage=True, docker=DockerClient()):
if imgInfo == None and pullImage == True:
image.pull(imageName, docker)
+ i... | fixed container.isCurrent() (was still using old code) | py |
diff --git a/plenum/server/node.py b/plenum/server/node.py
index <HASH>..<HASH> 100644
--- a/plenum/server/node.py
+++ b/plenum/server/node.py
@@ -2299,7 +2299,10 @@ class Node(HasActionQueue, Motor, Propagator, MessageProcessor, HasFileStorage,
if instance_id == 0:
# TODO: 0 should be replaced wi... | consider the node as a primary as well (#<I>) | py |
diff --git a/pyzotero/zotero.py b/pyzotero/zotero.py
index <HASH>..<HASH> 100644
--- a/pyzotero/zotero.py
+++ b/pyzotero/zotero.py
@@ -643,9 +643,9 @@ class Zotero(object):
'charset': mtypes[1]}))
# add headers
authreq.add_header(
- 'Content-Type... | Messing about w/formatting | py |
diff --git a/tests/unit/test_commands.py b/tests/unit/test_commands.py
index <HASH>..<HASH> 100644
--- a/tests/unit/test_commands.py
+++ b/tests/unit/test_commands.py
@@ -457,6 +457,7 @@ class TestCommands(object):
"""
res = pmxbot.defit(c, e, "#test", "testrunner", "keyboard")
print res
+ assert isinstance(r... | Adding test to ensure that responses from define are unicode (otherwise they might cause encoding errors on the way out) | py |
diff --git a/processors/generic_processor.py b/processors/generic_processor.py
index <HASH>..<HASH> 100644
--- a/processors/generic_processor.py
+++ b/processors/generic_processor.py
@@ -652,17 +652,26 @@ class GenericCommitHandler(processor.CommitHandler):
def delete_handler(self, filecmd):
path = file... | remove warning about delete iff file is in a merge parent | py |
diff --git a/LiSE/LiSE/thing.py b/LiSE/LiSE/thing.py
index <HASH>..<HASH> 100644
--- a/LiSE/LiSE/thing.py
+++ b/LiSE/LiSE/thing.py
@@ -295,6 +295,8 @@ class Thing(Node):
scheduled to be somewhere else.
"""
+ if len(path) < 2:
+ raise ValueError("Paths need at least 2 nodes")
... | Handle it better when you try to make a thing travel where it already is | py |
diff --git a/isort/settings.py b/isort/settings.py
index <HASH>..<HASH> 100644
--- a/isort/settings.py
+++ b/isort/settings.py
@@ -26,6 +26,7 @@ from __future__ import absolute_import, division, print_function, unicode_litera
import fnmatch
import os
+import posixpath
from collections import namedtuple
from .pi... | Normalize paths for consistent linux/windows usage | py |
diff --git a/linkcheck/checker/httpurl.py b/linkcheck/checker/httpurl.py
index <HASH>..<HASH> 100644
--- a/linkcheck/checker/httpurl.py
+++ b/linkcheck/checker/httpurl.py
@@ -19,6 +19,13 @@ Handle http links.
"""
import requests
+# The validity of SSL certs is ignored to be able
+# the check the URL and recurse int... | Ignore urllib3 warnings about invalid SSL certs since we check them ourselves. | py |
diff --git a/pale/arguments/base.py b/pale/arguments/base.py
index <HASH>..<HASH> 100644
--- a/pale/arguments/base.py
+++ b/pale/arguments/base.py
@@ -167,6 +167,9 @@ class JsonDictArgument(BaseArgument):
self._validate_type(item, item_name)
+ if item is None:
+ return item
+
ite... | if dict is not present return None | py |
diff --git a/msmtools/estimation/dense/transition_matrix.py b/msmtools/estimation/dense/transition_matrix.py
index <HASH>..<HASH> 100644
--- a/msmtools/estimation/dense/transition_matrix.py
+++ b/msmtools/estimation/dense/transition_matrix.py
@@ -62,8 +62,8 @@ def __initX(C):
"""
Computes an initial guess for... | [estimation/dense/tmatrix] replaced relative imports | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -63,19 +63,9 @@ setup_requires = [
install_requires = [
"flask>=1.1,<2.0",
- "flask-resources>=0.7.0,<0.8.0",
- "invenio-accounts>=1.4.3",
- "invenio-assets>=1.2.2",
- "invenio-base>=1.2.3",
"invenio-f... | dependencies: depend only on rdm-records | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -7,7 +7,7 @@ setup(
author_email='janne.kuuskeri@gmail.com',
url='https://github.com/wuher/devil/',
packages=['devil', 'devil.perm', 'devil.mappers'],
- install_requires=['simplejson>=2.1.0', 'django>=1.2.0']... | updated the django dependency to version <I> | py |
diff --git a/gitty/sys_path.py b/gitty/sys_path.py
index <HASH>..<HASH> 100644
--- a/gitty/sys_path.py
+++ b/gitty/sys_path.py
@@ -3,6 +3,7 @@ from . import config, library
ORIGINAL_SYS_PATH = sys.path[:]
PREFIX = '//git/'
+PULL_AUTOMATICALLY = False
def load(gitpath, prefix=PREFIX):
@@ -21,7 +22,7 @@ def load... | Turn off pulls from repositories. | py |
diff --git a/tests/test_bbox.py b/tests/test_bbox.py
index <HASH>..<HASH> 100644
--- a/tests/test_bbox.py
+++ b/tests/test_bbox.py
@@ -188,4 +188,5 @@ def test_random_rotate():
bboxes = [[78, 42, 142, 80]]
aug = Rotate(limit = 15, p=1.)
transformed = aug(image=image, bboxes=bboxes)
- assert len(bboxes... | Merge remote-tracking branch 'origin/add_bbox_to_rotate' into add_bbox_to_rotate | py |
diff --git a/ansible/modules/hashivault/hashivault_auth_ldap.py b/ansible/modules/hashivault/hashivault_auth_ldap.py
index <HASH>..<HASH> 100644
--- a/ansible/modules/hashivault/hashivault_auth_ldap.py
+++ b/ansible/modules/hashivault/hashivault_auth_ldap.py
@@ -221,7 +221,8 @@ def hashivault_auth_ldap(module):
... | Pass mount_point, so current configuration for mointpoint other than "ldap" could be read. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -93,7 +93,14 @@ def get_data_files():
def get_packages():
"""Return package list"""
- packages = get_subpackages(LIBNAME) + get_subpackages('spyplugins')
+ packages = (
+ get_subpackages(LIBNAME)
+ ... | Re-include plugins in setup.py packages | py |
diff --git a/luminoso_api/cli.py b/luminoso_api/cli.py
index <HASH>..<HASH> 100644
--- a/luminoso_api/cli.py
+++ b/luminoso_api/cli.py
@@ -18,7 +18,7 @@ DESCRIPTION = "Access the luminoso api via the command line."
USAGE = """
Supply an http verb and a path, with optional parameters.
-Output is returned as json, or... | mention csv output in usage | py |
diff --git a/mtools/mlaunch/mlaunch.py b/mtools/mlaunch/mlaunch.py
index <HASH>..<HASH> 100755
--- a/mtools/mlaunch/mlaunch.py
+++ b/mtools/mlaunch/mlaunch.py
@@ -1853,19 +1853,12 @@ class MLaunchTool(BaseCmdLineTool):
con.close()
con = self.client('localhost:%i' % port, replicaSet=set_name,
... | mlaunch: Use default SASL/SCRAM mechanisms when creating users. (#<I>) | py |
diff --git a/src/pyshark/capture/live_capture.py b/src/pyshark/capture/live_capture.py
index <HASH>..<HASH> 100644
--- a/src/pyshark/capture/live_capture.py
+++ b/src/pyshark/capture/live_capture.py
@@ -62,7 +62,7 @@ class LiveCapture(Capture):
if proc.poll() is not None:
# Process... | Changed WindowsErrors to OSErrors to support non-windows platforms | py |
diff --git a/cheroot/test/test_ssl.py b/cheroot/test/test_ssl.py
index <HASH>..<HASH> 100644
--- a/cheroot/test/test_ssl.py
+++ b/cheroot/test/test_ssl.py
@@ -344,7 +344,7 @@ def test_tls_client_auth(
expected_substring = 'tlsv1 alert unknown ca'
if (
IS_WINDOWS
- ... | Patch expectation if TLS verify mode is required | py |
diff --git a/faq/search_indexes.py b/faq/search_indexes.py
index <HASH>..<HASH> 100644
--- a/faq/search_indexes.py
+++ b/faq/search_indexes.py
@@ -5,19 +5,18 @@ from faq.models import Topic, Question
class FAQIndexBase(indexes.SearchIndex):
+
text = indexes.CharField(document=True, use_template=True)
url... | Removed title index field from search indexes. The title is already being indexed in the text document. | py |
diff --git a/kombine/sampler.py b/kombine/sampler.py
index <HASH>..<HASH> 100644
--- a/kombine/sampler.py
+++ b/kombine/sampler.py
@@ -921,13 +921,13 @@ class Sampler(object):
blob0 = None
pbar = self._get_finite_pbar(progress, N)
- iter = 0
+ iter = self.iterations
... | FINALY Fixed acceptence in pbar | py |
diff --git a/ml-agents/mlagents/trainers/policy/policy.py b/ml-agents/mlagents/trainers/policy/policy.py
index <HASH>..<HASH> 100644
--- a/ml-agents/mlagents/trainers/policy/policy.py
+++ b/ml-agents/mlagents/trainers/policy/policy.py
@@ -35,15 +35,6 @@ class Policy:
self.previous_action_dict: Dict[str, np.nda... | removing the extra code to set normalize to false if no observation can be normalized | py |
diff --git a/nurbs/Grid.py b/nurbs/Grid.py
index <HASH>..<HASH> 100644
--- a/nurbs/Grid.py
+++ b/nurbs/Grid.py
@@ -78,3 +78,18 @@ class Grid:
# Update the origin (bottom left corner)
self._origin = self._gridpts[0][0]
+
+ def save(self, file_name="grid.txt"):
+ target = open(file_name, 'w'... | Added save function for the Grid Generator | py |
diff --git a/pmag_basic_dialogs.py b/pmag_basic_dialogs.py
index <HASH>..<HASH> 100755
--- a/pmag_basic_dialogs.py
+++ b/pmag_basic_dialogs.py
@@ -2539,6 +2539,11 @@ class check(wx.Frame):
# end that thing
col_labels = ['sites', '', 'locations', 'site_class', 'site_lithology', 'site_type', 'site_defin... | QuickMagic step 3: fix bug where ErMagic.data_er_* dictionaries were not filled in, and so complete grids could not be created | py |
diff --git a/doctr/travis.py b/doctr/travis.py
index <HASH>..<HASH> 100644
--- a/doctr/travis.py
+++ b/doctr/travis.py
@@ -284,8 +284,6 @@ def sync_from_log(src, dst, log_file):
files = glob.iglob(join(src, '**'), recursive=True)
# sorted makes this easier to test
for f in sorted(files):
- if f ==... | Don't skip src in sync_from_log() It may be necessary to create the dst directory. | py |
diff --git a/fontbakery-nametable-from-filename.py b/fontbakery-nametable-from-filename.py
index <HASH>..<HASH> 100755
--- a/fontbakery-nametable-from-filename.py
+++ b/fontbakery-nametable-from-filename.py
@@ -235,6 +235,13 @@ def nametable_from_filename(filepath):
win_ps_name = filename.encode('utf_16_be')
new_... | test_nametable-from-filename: add win nameIDs <I> and <I> when style is not Regular, Italic, Bold, Bold Italic. This was discovered in #<I> | py |
diff --git a/lizzy_client/version.py b/lizzy_client/version.py
index <HASH>..<HASH> 100644
--- a/lizzy_client/version.py
+++ b/lizzy_client/version.py
@@ -1,4 +1,4 @@
MAJOR_VERSION = 0
MINOR_VERSION = 2
-REVISION = "20160114a"
+REVISION = "201601142"
VERSION = "{MAJOR_VERSION}.{MINOR_VERSION}.{REVISION}".format_map(... | zalando/lizzy#<I> Use a version that evaluates higher than the previous | py |
diff --git a/msrestazure/azure_active_directory.py b/msrestazure/azure_active_directory.py
index <HASH>..<HASH> 100644
--- a/msrestazure/azure_active_directory.py
+++ b/msrestazure/azure_active_directory.py
@@ -544,8 +544,7 @@ class AdalAuthentication(Authentication): # pylint: disable=too-few-public-meth
... | CR changes after reviewing the comments, I changed the fix so it is more robust | py |
diff --git a/anyconfig/backend/configobj.py b/anyconfig/backend/configobj.py
index <HASH>..<HASH> 100644
--- a/anyconfig/backend/configobj.py
+++ b/anyconfig/backend/configobj.py
@@ -25,8 +25,8 @@
"""
from __future__ import absolute_import
-import configobj
import inspect
+import configobj
import anyconfig.backen... | refactor: correct import order; inspect is in standard lib | py |
diff --git a/pathtools/path.py b/pathtools/path.py
index <HASH>..<HASH> 100644
--- a/pathtools/path.py
+++ b/pathtools/path.py
@@ -71,9 +71,9 @@ def get_dir_walker(recursive, topdown=True, followlinks=False):
else:
def walk(path, topdown=topdown, followlinks=followlinks):
try:
- ... | Changed calls to os.walk for <I> compatibility. | py |
diff --git a/pandas/io/sql.py b/pandas/io/sql.py
index <HASH>..<HASH> 100644
--- a/pandas/io/sql.py
+++ b/pandas/io/sql.py
@@ -228,7 +228,11 @@ def _write_sqlite(frame, table, names, cur):
wildcards = ','.join(['?'] * len(names))
insert_query = 'INSERT INTO %s (%s) VALUES (%s)' % (
table, col_names, ... | BUG : issue (#<I>) when writing a dataframe column of integers to sqlite | py |
diff --git a/docs/conf.py b/docs/conf.py
index <HASH>..<HASH> 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -1,10 +1,16 @@
+# coding: utf-8
+from __future__ import unicode_literals
+
import sys
sys.path.append('..')
source_suffix = '.rst'
+source_encoding= 'utf-8'
master_doc = 'index'
+language='ru'
+
html... | Try to fix docs encoding | py |
diff --git a/contract/migrations/13.0.1.0.0/post-migration.py b/contract/migrations/13.0.1.0.0/post-migration.py
index <HASH>..<HASH> 100644
--- a/contract/migrations/13.0.1.0.0/post-migration.py
+++ b/contract/migrations/13.0.1.0.0/post-migration.py
@@ -6,9 +6,28 @@ from openupgradelib import openupgrade # pylint: di... | [OU-FIX] contract: Transfer contract info from invoice | py |
diff --git a/pbs.py b/pbs.py
index <HASH>..<HASH> 100644
--- a/pbs.py
+++ b/pbs.py
@@ -362,7 +362,7 @@ def run_repl(env):
try: line = raw_input("pbs> ")
except (ValueError, EOFError): break
- try: exec compile(line, "<dummy>", "single") in env, env
+ try: exec(compile(line,... | exec -> py2/3 | py |
diff --git a/manager/globals/constants.py b/manager/globals/constants.py
index <HASH>..<HASH> 100644
--- a/manager/globals/constants.py
+++ b/manager/globals/constants.py
@@ -65,7 +65,7 @@ class Constants():
:param minorVersion: Package minor version.
:type minorVersion: unicode
"""
- changeVersion = "4"
+ change... | Raise application version number to <I>. | py |
diff --git a/validator/submain.py b/validator/submain.py
index <HASH>..<HASH> 100644
--- a/validator/submain.py
+++ b/validator/submain.py
@@ -102,7 +102,7 @@ def test_webapp(err, package, expectation=0):
err.notice(("main",
"test_webapp",
"confirmed"),
- ... | reworded Web app to App | py |
diff --git a/kafka/version.py b/kafka/version.py
index <HASH>..<HASH> 100644
--- a/kafka/version.py
+++ b/kafka/version.py
@@ -1 +1 @@
-__version__ = '0.9.5'
+__version__ = '0.99.0-dev' | Towards version <I> | py |
diff --git a/hypercorn/trio/server.py b/hypercorn/trio/server.py
index <HASH>..<HASH> 100644
--- a/hypercorn/trio/server.py
+++ b/hypercorn/trio/server.py
@@ -114,7 +114,9 @@ class Server:
if isinstance(event, RawData):
async with self.send_lock:
try:
- await se... | Bugfix shield data sending in Trio working This ensures that data fragments aren't sent (say if the sening task is cancelled). Data fragments, such as a partial HTTP/2 frame confuse the client and likely result in a failed/stalled connection. Note the asyncio worker write is synchronous and hence cannot be cancelled ... | py |
diff --git a/nameko/testing/utils.py b/nameko/testing/utils.py
index <HASH>..<HASH> 100644
--- a/nameko/testing/utils.py
+++ b/nameko/testing/utils.py
@@ -168,21 +168,21 @@ class ResourcePipeline(object):
def _create(self):
while self.running:
- obj = self.create()
- self.ready.put... | remove reference to vhost in generic implementation | py |
diff --git a/salt/utils/network.py b/salt/utils/network.py
index <HASH>..<HASH> 100644
--- a/salt/utils/network.py
+++ b/salt/utils/network.py
@@ -25,6 +25,10 @@ except ImportError:
import salt.utils
from salt._compat import subprocess, ipaddress
+# inet_pton does not exist in Windows, this is a workaround
+if salt... | Adds support for inet_pton in Windows to network util | py |
diff --git a/tests/test_macro.py b/tests/test_macro.py
index <HASH>..<HASH> 100644
--- a/tests/test_macro.py
+++ b/tests/test_macro.py
@@ -115,7 +115,6 @@ def test_arg_parse_with_escaped_gt_lt_symbols(test, expected, error_msg):
error_msg)
-@pytest.mark.xfail
@unittest.mock.patch('datetime.datetim... | Undo xfail for passing tests | py |
diff --git a/xclim/testing/tests/test_indices.py b/xclim/testing/tests/test_indices.py
index <HASH>..<HASH> 100644
--- a/xclim/testing/tests/test_indices.py
+++ b/xclim/testing/tests/test_indices.py
@@ -1076,7 +1076,7 @@ class TestJetStreamIndices:
da_ua = self.da_ua
# Should raise ValueError as longi... | rename js metric | py |
diff --git a/pyresttest/tests.py b/pyresttest/tests.py
index <HASH>..<HASH> 100644
--- a/pyresttest/tests.py
+++ b/pyresttest/tests.py
@@ -237,10 +237,11 @@ class Test(object):
elif self.method == u'DELETE':
curl.setopt(curl.CUSTOMREQUEST,'DELETE')
- headers = list()
+
if self.he... | Clean up headers handling a bit | py |
diff --git a/sacn/messages/data_packet.py b/sacn/messages/data_packet.py
index <HASH>..<HASH> 100644
--- a/sacn/messages/data_packet.py
+++ b/sacn/messages/data_packet.py
@@ -136,7 +136,9 @@ class DataPacket(RootLayer):
tuple(raw_data[40:44]) != tuple(VECTOR_E131_DATA_PACKET) or \
raw_data[117] ... | Raise Error when the start code is not Null When the start code is not Null, the packet will probably not be DMX-A data. A full list of start codes can be found here: <URL> | py |
diff --git a/niworkflows/utils/images.py b/niworkflows/utils/images.py
index <HASH>..<HASH> 100644
--- a/niworkflows/utils/images.py
+++ b/niworkflows/utils/images.py
@@ -205,7 +205,6 @@ def resample_by_spacing(in_file, zooms, order=3, clip=True, smooth=False):
resampled = map_coordinates(
data,
... | Update niworkflows/utils/images.py | py |
diff --git a/cumulusci/cli/cci.py b/cumulusci/cli/cci.py
index <HASH>..<HASH> 100644
--- a/cumulusci/cli/cci.py
+++ b/cumulusci/cli/cci.py
@@ -62,7 +62,7 @@ def timestamp_file():
try:
with open(timestamp_file, "r+") as f:
yield f
- except OSError: # file does not exist
+ except IOError... | IOError is the best exception for Python 2. | py |
diff --git a/cogen/web/wsgi.py b/cogen/web/wsgi.py
index <HASH>..<HASH> 100644
--- a/cogen/web/wsgi.py
+++ b/cogen/web/wsgi.py
@@ -775,7 +775,7 @@ def server_factory(global_conf, host, port, **options):
default_priority=int(options.get('sched_default_priority', priority.FIRST)),
default_timeout=float(op... | fixed a paster server factory option | py |
diff --git a/tests/sphinx_supp_py2/conf.py b/tests/sphinx_supp_py2/conf.py
index <HASH>..<HASH> 100644
--- a/tests/sphinx_supp_py2/conf.py
+++ b/tests/sphinx_supp_py2/conf.py
@@ -20,7 +20,8 @@ example_gallery_config = {
'example_mpl_test_figure_chosen.ipynb'): 0},
'supplementary_files': {
... | Minor fix in sphinx conf | py |
diff --git a/solvebio/cli/credentials.py b/solvebio/cli/credentials.py
index <HASH>..<HASH> 100644
--- a/solvebio/cli/credentials.py
+++ b/solvebio/cli/credentials.py
@@ -20,11 +20,21 @@ class netrc(_netrc):
"""
@staticmethod
def path():
+ if os.name == 'nt':
+ # Windows
+ pa... | use expanduser instead of looking for $HOME manually (fixes #<I>) | py |
diff --git a/salt/returners/mysql.py b/salt/returners/mysql.py
index <HASH>..<HASH> 100644
--- a/salt/returners/mysql.py
+++ b/salt/returners/mysql.py
@@ -194,7 +194,7 @@ def returner(ret):
cur.execute(sql, (ret['fun'], ret['jid'],
json.dumps(ret['return']),
... | Set success key if it is not already present | py |
diff --git a/torf/_stream.py b/torf/_stream.py
index <HASH>..<HASH> 100644
--- a/torf/_stream.py
+++ b/torf/_stream.py
@@ -465,8 +465,8 @@ class TorrentFileStream:
# reached.
if skip_bytes:
- skipped = fh.read(skip_bytes)
- skip_bytes -= len(skipped)
+ skipped = fh.s... | TorrentFileStream: Use seek() instead of read() to skip_bytes | py |
diff --git a/tohu/v3/derived_generators.py b/tohu/v3/derived_generators.py
index <HASH>..<HASH> 100644
--- a/tohu/v3/derived_generators.py
+++ b/tohu/v3/derived_generators.py
@@ -8,6 +8,7 @@ __all__ = DERIVED_GENERATORS + ['DERIVED_GENERATORS']
class Apply(TohuBaseGenerator):
def __init__(self, func, *arg_gens,... | Add spawn method to Apply; initialise clones by calling super().__init__() | 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
@@ -9,6 +9,7 @@ from itertools import izip
import csv
import operator
import types
+from distutils.version import LooseVersion
from numpy import nan, ndarray
import numpy... | BF: special handling for _radd_compat for any numpy under <I> pre-evaluated numpy version condition for "efficiency" ;-) | py |
diff --git a/librarypaste/pastebin.py b/librarypaste/pastebin.py
index <HASH>..<HASH> 100644
--- a/librarypaste/pastebin.py
+++ b/librarypaste/pastebin.py
@@ -61,7 +61,7 @@ class Server(object):
time=datetime.datetime.now(),
makeshort=bool(makeshort),
)
- data = file.file is no... | The input file can be None, so check for it. | py |
diff --git a/imbox/__init__.py b/imbox/__init__.py
index <HASH>..<HASH> 100644
--- a/imbox/__init__.py
+++ b/imbox/__init__.py
@@ -58,3 +58,5 @@ class Imbox(object):
return self.fetch_list(**kwargs)
+ def folders(self):
+ return self.connection.list() | imbox: added folders() method to Imbox I think it would be nice to have the list of folders on the Imbox class along with the message query rather than on the ImapTransport class. However, I have left the existing list_folders() method on the ImapTransport to avoid breaking existing code that is using imbox. | py |
diff --git a/datadog_checks_base/datadog_checks/base/__about__.py b/datadog_checks_base/datadog_checks/base/__about__.py
index <HASH>..<HASH> 100644
--- a/datadog_checks_base/datadog_checks/base/__about__.py
+++ b/datadog_checks_base/datadog_checks/base/__about__.py
@@ -1,4 +1,4 @@
# (C) Datadog, Inc. 2018-present
# ... | Fix typo (#<I>) | py |
diff --git a/virtualenvapi/manage.py b/virtualenvapi/manage.py
index <HASH>..<HASH> 100644
--- a/virtualenvapi/manage.py
+++ b/virtualenvapi/manage.py
@@ -208,8 +208,9 @@ class VirtualEnvironment(object):
else:
packages.append((name.strip(), description.strip()))
excep... | Ensure the package list is non empty before referencing a list element | py |
diff --git a/pygsp/graphs/nngraphs/nngraph.py b/pygsp/graphs/nngraphs/nngraph.py
index <HASH>..<HASH> 100644
--- a/pygsp/graphs/nngraphs/nngraph.py
+++ b/pygsp/graphs/nngraphs/nngraph.py
@@ -92,6 +92,10 @@ class NNGraph(Graph):
N, d = np.shape(self.Xin)
Xout = self.Xin
+ if k >= N:
+ ... | error if #neighbors greater than #nodes | py |
diff --git a/graphene_pynamodb/tests/test_query.py b/graphene_pynamodb/tests/test_query.py
index <HASH>..<HASH> 100644
--- a/graphene_pynamodb/tests/test_query.py
+++ b/graphene_pynamodb/tests/test_query.py
@@ -14,10 +14,12 @@ def setup_fixtures():
reporter2 = Reporter(id=2, first_name='ABO', last_name='Y')
... | Missed creating tables for articles and editors | py |
diff --git a/openquake/calculators/hazard/disagg/core.py b/openquake/calculators/hazard/disagg/core.py
index <HASH>..<HASH> 100644
--- a/openquake/calculators/hazard/disagg/core.py
+++ b/openquake/calculators/hazard/disagg/core.py
@@ -58,11 +58,10 @@ def disagg_task(job_id, block, lt_rlz_id, calc_type):
phase;... | calcs/hazard/disagg/core: Task functions shouldn't return anything, even None. | py |
diff --git a/mechanicalsoup/browser.py b/mechanicalsoup/browser.py
index <HASH>..<HASH> 100644
--- a/mechanicalsoup/browser.py
+++ b/mechanicalsoup/browser.py
@@ -48,13 +48,12 @@ class Browser:
if not name:
continue
- if input.get("type") in ("radio", "checkbox") and "checked"... | simplify some codes in _build_request | py |
diff --git a/ariba/tests/samtools_variants_test.py b/ariba/tests/samtools_variants_test.py
index <HASH>..<HASH> 100644
--- a/ariba/tests/samtools_variants_test.py
+++ b/ariba/tests/samtools_variants_test.py
@@ -55,7 +55,16 @@ class TestSamtoolsVariants(unittest.TestCase):
got_set = set(got[7].split(';'))
... | samtools <I>/3 differ slightly. Ignore the offending column | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -1,7 +1,4 @@
#!/usr/bin/env python
-import os
-import shutil
-import sys
from setuptools import setup, find_packages
VERSION = '0.1.1' | Remove unused imports in setup.py | py |
diff --git a/shapefile.py b/shapefile.py
index <HASH>..<HASH> 100644
--- a/shapefile.py
+++ b/shapefile.py
@@ -15,7 +15,6 @@ import sys
import time
import array
import tempfile
-import itertools
import io
from datetime import date
@@ -937,6 +936,9 @@ class Writer(object):
numRecs = self.recNum
... | Raise exceptions if too many fields are added (max <I>) | py |
diff --git a/astral/test/test_GoogleGeocoder.py b/astral/test/test_GoogleGeocoder.py
index <HASH>..<HASH> 100644
--- a/astral/test/test_GoogleGeocoder.py
+++ b/astral/test/test_GoogleGeocoder.py
@@ -3,7 +3,7 @@ from astral import GoogleGeocoder
def test_GoogleLocator():
locator = GoogleGeocoder()
l = locat... | Replaced pass statement with an assert (which would have exposed the bug in <I>) | py |
diff --git a/ccmlib/dse_node.py b/ccmlib/dse_node.py
index <HASH>..<HASH> 100644
--- a/ccmlib/dse_node.py
+++ b/ccmlib/dse_node.py
@@ -501,16 +501,16 @@ class DseNode(Node):
agent_dir = os.path.join(self.get_path(), 'datastax-agent')
if os.path.exists(agent_dir):
pidfile = os.path.join(ag... | Fix issue when DSE nodes are removed/cleaned and ds agent is not installed | py |
diff --git a/django_cron/__init__.py b/django_cron/__init__.py
index <HASH>..<HASH> 100644
--- a/django_cron/__init__.py
+++ b/django_cron/__init__.py
@@ -54,8 +54,9 @@ class CronJobManager(object):
cron_log = CronJobLog(code=cron_job.code, start_time=datetime.now())
try:
- ... | Add ability to attach message on success The message was only saved upon exception. But sometimes we want to report some additional info after running the cron job, like, how many records were processed or something. | py |
diff --git a/pycdlib/rockridge.py b/pycdlib/rockridge.py
index <HASH>..<HASH> 100644
--- a/pycdlib/rockridge.py
+++ b/pycdlib/rockridge.py
@@ -2445,7 +2445,6 @@ class RockRidge(RockRidgeBase):
for rec in recs:
# FIXME: this won't deal with components split across multiple
# SL records... | Remove an incorrect FIXME statement. | py |
diff --git a/pystmark.py b/pystmark.py
index <HASH>..<HASH> 100644
--- a/pystmark.py
+++ b/pystmark.py
@@ -152,7 +152,7 @@ def send_batch_with_templates(messages,
:param test: Use the Postmark Test API. Defaults to `False`.
:param request_args: Keyword arguments to pass to
:func:`requests.request`.
-... | Fix wrong rtype in docs for send_batch_with_templates | py |
diff --git a/anom/transaction.py b/anom/transaction.py
index <HASH>..<HASH> 100644
--- a/anom/transaction.py
+++ b/anom/transaction.py
@@ -89,9 +89,8 @@ def transactional(*, adapter=None, retries=3, propagation=Transaction.Propagatio
retries(int, optional): The number of times to retry the
transaction i... | doc: fix docstring for @transactional | py |
diff --git a/khard/carddav_object.py b/khard/carddav_object.py
index <HASH>..<HASH> 100644
--- a/khard/carddav_object.py
+++ b/khard/carddav_object.py
@@ -1121,7 +1121,14 @@ class CarddavObject(VCardWrapper):
flags=re.IGNORECASE)
return contents
- def _process_user_input(sel... | Split yaml parsing method | py |
diff --git a/assemblerflow/generator/inspect.py b/assemblerflow/generator/inspect.py
index <HASH>..<HASH> 100644
--- a/assemblerflow/generator/inspect.py
+++ b/assemblerflow/generator/inspect.py
@@ -858,7 +858,6 @@ class NextflowInspector:
curses.color_pair(colors[proc["barrier"]]) | txt_fmt)
... | Fixed inspect curses flickering issue | py |
diff --git a/epson_printer/util.py b/epson_printer/util.py
index <HASH>..<HASH> 100644
--- a/epson_printer/util.py
+++ b/epson_printer/util.py
@@ -11,13 +11,17 @@ class BitmapData:
@classmethod
def fromFileImage(cls, image_path):
i = Image.open(image_path)
- monochrome = i.convert('1')
- ... | resize image before sending it to the printer | py |
diff --git a/precise/train.py b/precise/train.py
index <HASH>..<HASH> 100755
--- a/precise/train.py
+++ b/precise/train.py
@@ -23,10 +23,17 @@ def main():
args = parser.parse_args()
inputs, outputs = load_data(args.data_dir)
- validation_data = load_data(args.data_dir + '/test')
+ val_in, val_out = lo... | Make training fail gracefully if dimensions are invalid | py |
diff --git a/tests/auth.py b/tests/auth.py
index <HASH>..<HASH> 100644
--- a/tests/auth.py
+++ b/tests/auth.py
@@ -14,6 +14,15 @@ class MockUser(object):
return isinstance(other, self.__class__) and other.name == self.name
+class MockTemplateManager(object):
+ templates = {
+ 'login': 'please log... | fixed failing test of authentication Used mock object for template manager | py |
diff --git a/pyana/examples/gp_stack.py b/pyana/examples/gp_stack.py
index <HASH>..<HASH> 100644
--- a/pyana/examples/gp_stack.py
+++ b/pyana/examples/gp_stack.py
@@ -33,7 +33,7 @@ def gp_stack(version):
file_url = os.path.join(inDir, file)
data_import = np.loadtxt(open(file_url, 'rb'))
# following scali... | gp_stack: omit dx from scaling | py |
diff --git a/ginga/misc/Task.py b/ginga/misc/Task.py
index <HASH>..<HASH> 100644
--- a/ginga/misc/Task.py
+++ b/ginga/misc/Task.py
@@ -1106,6 +1106,7 @@ class ThreadPool(object):
self.runningcount)
self.regcond.wait()
+ self.status = 'up'
... | Added thread up status to fix blocking in terminal | py |
diff --git a/pluggy/__init__.py b/pluggy/__init__.py
index <HASH>..<HASH> 100644
--- a/pluggy/__init__.py
+++ b/pluggy/__init__.py
@@ -193,8 +193,7 @@ class PluginManager(object):
You can register plugin objects (which contain hooks) by calling
``register(plugin)``. The Pluginmanager is initialized with a
... | remove reference to missing 'excludefunc' arg in PluginManager docstring | py |
diff --git a/doctr/local.py b/doctr/local.py
index <HASH>..<HASH> 100644
--- a/doctr/local.py
+++ b/doctr/local.py
@@ -55,6 +55,8 @@ def encrypt_variable(variable, build_repo, *, public_key=None, is_private=False,
headersv2 = {**_headers, **APIv2}
headersv3 = {**_headers, **APIv3}
if is_priva... | Print a note about the personal access token | py |
diff --git a/AegeanTools/wcs_helpers.py b/AegeanTools/wcs_helpers.py
index <HASH>..<HASH> 100644
--- a/AegeanTools/wcs_helpers.py
+++ b/AegeanTools/wcs_helpers.py
@@ -613,10 +613,10 @@ class PSFHelper(WCSHelper):
area : float
The area of the beam in square pixels.
"""
- beam = self... | remove calculation of projected beam size - fixes larger-than-expected integrated flux densities | py |
diff --git a/spyder/widgets/ipythonconsole/shell.py b/spyder/widgets/ipythonconsole/shell.py
index <HASH>..<HASH> 100644
--- a/spyder/widgets/ipythonconsole/shell.py
+++ b/spyder/widgets/ipythonconsole/shell.py
@@ -82,8 +82,11 @@ class ShellWidget(NamepaceBrowserWidget, HelpWidget, DebuggingWidget):
def set_cwd(... | IPython console: Make setting cwd work while debugging | py |
diff --git a/galpy/orbit_src/planarOrbit.py b/galpy/orbit_src/planarOrbit.py
index <HASH>..<HASH> 100644
--- a/galpy/orbit_src/planarOrbit.py
+++ b/galpy/orbit_src/planarOrbit.py
@@ -1,6 +1,7 @@
import numpy as nu
from scipy import integrate
from Orbit import Orbit
+from RZOrbit import RZOrbit
from galpy.potential_... | create RZOrbits by adding a linearOrbit to a planarROrbit | py |
diff --git a/pyxmpp/jabber/delay.py b/pyxmpp/jabber/delay.py
index <HASH>..<HASH> 100644
--- a/pyxmpp/jabber/delay.py
+++ b/pyxmpp/jabber/delay.py
@@ -99,7 +99,7 @@ class Delay(StanzaPayloadObject):
tm=time.strptime(stamp,"%Y%m%dT%H:%M:%S")
tm=tm[0:8]+(0,)
self.timestamp=datetime.datetime.fro... | - convert 'from' from UTF-8 to Unicode before passing to JID constructor | py |
diff --git a/skyfield/positionlib.py b/skyfield/positionlib.py
index <HASH>..<HASH> 100644
--- a/skyfield/positionlib.py
+++ b/skyfield/positionlib.py
@@ -273,11 +273,8 @@ class Apparent(ICRS):
p = einsum('ij...,j...->i...', self.jd.M, self.position.AU)
- pz = dots(p, uz)
- pn = dots(p, un)
-... | Combine unit vectors into array one step earlier | py |
diff --git a/dmf_device_ui/plugin.py b/dmf_device_ui/plugin.py
index <HASH>..<HASH> 100644
--- a/dmf_device_ui/plugin.py
+++ b/dmf_device_ui/plugin.py
@@ -132,16 +132,20 @@ class DevicePlugin(Plugin):
data = decode_content_data(request)
compare_fields = ['device', 'width', 'height', 'name', 'fourcc',
... | [FIX] Allow 0MQ API to disable video Prior to this commit, passing `None` to the `set_video_config` 0MQ plugin API method would not disable video. As of this commit, this has been corrected. | py |
diff --git a/mallory/version.py b/mallory/version.py
index <HASH>..<HASH> 100644
--- a/mallory/version.py
+++ b/mallory/version.py
@@ -1 +1 @@
-Version = "0.1.0"
+Version = "0.2.0" | bumps version to <I> | py |
diff --git a/js_host/bin.py b/js_host/bin.py
index <HASH>..<HASH> 100644
--- a/js_host/bin.py
+++ b/js_host/bin.py
@@ -67,11 +67,11 @@ def spawn_detached_manager(config_file, status=None):
if not manager.is_running():
raise ProcessError('Started {}, but cannot connect'.format(manager.get_name()))
- m... | Fixed an issue where manager logs were displayed out of order. | py |
diff --git a/txtwitter/tests/test_fake_twitter.py b/txtwitter/tests/test_fake_twitter.py
index <HASH>..<HASH> 100644
--- a/txtwitter/tests/test_fake_twitter.py
+++ b/txtwitter/tests/test_fake_twitter.py
@@ -26,10 +26,6 @@ class TestFakeStream(TestCase):
self.assertFalse(stream.accepts('foo', {'bar': 'qux'}))
... | Remove unused _process_stream_response from FakeStream's test case | py |
diff --git a/salt/utils/event.py b/salt/utils/event.py
index <HASH>..<HASH> 100644
--- a/salt/utils/event.py
+++ b/salt/utils/event.py
@@ -188,7 +188,7 @@ class SaltEvent(object):
opts['ipc_mode'] = 'tcp'
self.puburi, self.pulluri = self.__load_uri(sock_dir, node)
if listen:
- ... | connect_pub call replaces subscribe call | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.