diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/hug/test.py b/hug/test.py
index <HASH>..<HASH> 100644
--- a/hug/test.py
+++ b/hug/test.py
@@ -39,7 +39,7 @@ from types import ModuleType
def call(method, api_or_module, url, body='', headers=None, **params):
"""Simulates a round-trip call against the given API / URL"""
- if type(api_or_module) =... | Add support for passing in name of module | py |
diff --git a/src/ansiblecmdb/parser.py b/src/ansiblecmdb/parser.py
index <HASH>..<HASH> 100644
--- a/src/ansiblecmdb/parser.py
+++ b/src/ansiblecmdb/parser.py
@@ -160,7 +160,11 @@ class HostsParser(object):
else:
tokens = shlex.split(line.strip())
name = tokens.pop(0)
- key... | Don't barf on invalid var definitions in hosts file | py |
diff --git a/worldengine/cli/main.py b/worldengine/cli/main.py
index <HASH>..<HASH> 100644
--- a/worldengine/cli/main.py
+++ b/worldengine/cli/main.py
@@ -5,7 +5,7 @@ import numpy
import os
import worldengine.generation as geo
-from worldengine.common import set_verbose, print_verbose
+from worldengine.common impor... | verbosity was ignored by ancient_map | py |
diff --git a/spyder/app/mainwindow.py b/spyder/app/mainwindow.py
index <HASH>..<HASH> 100644
--- a/spyder/app/mainwindow.py
+++ b/spyder/app/mainwindow.py
@@ -1052,8 +1052,7 @@ class MainWindow(QMainWindow):
_("PYTHONPATH manager"),
None, icon=ima.icon('pythonpath'),
triggered=s... | Remove PYTHONPATH manager action its role It's really not necessary and leaves the Tools menu almost empty | py |
diff --git a/safe/test/utilities.py b/safe/test/utilities.py
index <HASH>..<HASH> 100644
--- a/safe/test/utilities.py
+++ b/safe/test/utilities.py
@@ -209,7 +209,7 @@ def load_layer(layer_path):
base_name, extension = os.path.splitext(file_name)
# Determine if layer is hazard or exposure
- category = Non... | Change back None to undefined in load_layer. | py |
diff --git a/orator/version.py b/orator/version.py
index <HASH>..<HASH> 100644
--- a/orator/version.py
+++ b/orator/version.py
@@ -1,3 +1,3 @@
# -*- coding: utf-8 -*-
-VERSION = '0.7.1'
+VERSION = '0.8.0' | Bumping version to <I> | py |
diff --git a/test/storetest.py b/test/storetest.py
index <HASH>..<HASH> 100644
--- a/test/storetest.py
+++ b/test/storetest.py
@@ -102,13 +102,13 @@ def testStore(store):
store.storeAssociation(server_url, assoc2)
# After storing an association with a different handle, but the
- # same server_url, the ha... | [project @ Make comments consistent with actual expected behavior] | py |
diff --git a/pywavefront/obj.py b/pywavefront/obj.py
index <HASH>..<HASH> 100644
--- a/pywavefront/obj.py
+++ b/pywavefront/obj.py
@@ -178,9 +178,6 @@ class ObjParser(Parser):
has_vn = False
has_colors = False
- # If the face contains elements
- triangulate = len(self.values) - 1 >= 4
... | Move triagulate check inside the face loop | py |
diff --git a/harvestingkit/jats_package.py b/harvestingkit/jats_package.py
index <HASH>..<HASH> 100644
--- a/harvestingkit/jats_package.py
+++ b/harvestingkit/jats_package.py
@@ -134,7 +134,7 @@ class JatsPackage(object):
for rid in tag.getAttribute('rid').split():
... | jats_package: author notes harvesting fix | py |
diff --git a/wpull/builder.py b/wpull/builder.py
index <HASH>..<HASH> 100644
--- a/wpull/builder.py
+++ b/wpull/builder.py
@@ -145,8 +145,6 @@ class Builder(object):
self._setup_console_logger()
self._setup_file_logger()
self._setup_debug_console()
- self._warn_unsafe_options()
- ... | builder: Warn unsafe/silly options last to fix not being logged. | py |
diff --git a/ginga/canvas/render.py b/ginga/canvas/render.py
index <HASH>..<HASH> 100644
--- a/ginga/canvas/render.py
+++ b/ginga/canvas/render.py
@@ -99,7 +99,7 @@ class RendererBase(object):
if self.surface is None:
raise RenderError("No surface defined")
- with open(filepath, 'w') as o... | Fix writing out RGB as PNG with aggdraw | py |
diff --git a/dateinfer/__init__.py b/dateinfer/__init__.py
index <HASH>..<HASH> 100644
--- a/dateinfer/__init__.py
+++ b/dateinfer/__init__.py
@@ -1 +1,3 @@
__author__ = 'jeffrey.starr@ztoztechnologies.com'
+
+from infer import infer | __init__ imports infer function from infer file so access to functionality is simplified; the only entry point to this module is the infer() function. | py |
diff --git a/goatools/multiple_testing.py b/goatools/multiple_testing.py
index <HASH>..<HASH> 100755
--- a/goatools/multiple_testing.py
+++ b/goatools/multiple_testing.py
@@ -39,7 +39,10 @@ class Sidak(AbstractCorrection):
array([ 0.04898974, 0.04898974, 0.14696923, 0.24494871, 0.02449487])
"""
def s... | correct case with 0 values for a given go term. | py |
diff --git a/configcatclient/autopollingcachepolicy.py b/configcatclient/autopollingcachepolicy.py
index <HASH>..<HASH> 100644
--- a/configcatclient/autopollingcachepolicy.py
+++ b/configcatclient/autopollingcachepolicy.py
@@ -2,7 +2,7 @@ import logging
import sys
import datetime
import time
-from threading import T... | wait for the auto poll thread is started | py |
diff --git a/salt/modules/data.py b/salt/modules/data.py
index <HASH>..<HASH> 100644
--- a/salt/modules/data.py
+++ b/salt/modules/data.py
@@ -53,10 +53,9 @@ def dump(new_data):
return False
try:
- fn_ = open(os.path.join(__opts__['cachedir'], 'datastore'), "w")
-
- serial = salt.paylo... | use with stmt to prevent dangling file pointers | py |
diff --git a/percept/tasks/train.py b/percept/tasks/train.py
index <HASH>..<HASH> 100644
--- a/percept/tasks/train.py
+++ b/percept/tasks/train.py
@@ -20,7 +20,6 @@ class SVMTrain(Task):
"""
A class to train a support vector machine algorithm
"""
- colnames = List()
clf = Complex()
category ... | Remove colnames from svmtrain | py |
diff --git a/djangosaml2/backends.py b/djangosaml2/backends.py
index <HASH>..<HASH> 100644
--- a/djangosaml2/backends.py
+++ b/djangosaml2/backends.py
@@ -89,7 +89,9 @@ class Saml2Backend(ModelBackend):
else:
logger.error('The nameid is not available. Cannot find user without a nameid.')
... | Fixed IndexError at /saml2/acs/ when session is expired | py |
diff --git a/ELiDE/ELiDE/screen.py b/ELiDE/ELiDE/screen.py
index <HASH>..<HASH> 100644
--- a/ELiDE/ELiDE/screen.py
+++ b/ELiDE/ELiDE/screen.py
@@ -312,6 +312,7 @@ class MainScreen(Screen):
self.next_turn()
def _update_from_next_turn(self, command, branch, turn, tick, result):
+ del self._tmp_bloc... | Prevent the ELiDE user from requesting multiple next_turn at once | py |
diff --git a/docs/source/conf.py b/docs/source/conf.py
index <HASH>..<HASH> 100644
--- a/docs/source/conf.py
+++ b/docs/source/conf.py
@@ -306,6 +306,7 @@ import mock
MOCK_MODULES = [
'soundfile',
+ 'featureflow',
'numpy',
'numpy.lib', | Add featureflow to mocked modules so docs will build correctly | py |
diff --git a/ca/django_ca/forms.py b/ca/django_ca/forms.py
index <HASH>..<HASH> 100644
--- a/ca/django_ca/forms.py
+++ b/ca/django_ca/forms.py
@@ -62,14 +62,14 @@ class CreateCertificateForm(forms.ModelForm):
),
)
keyUsage = KeyUsageField(label='keyUsage', help_text=KEY_USAGE_DESC, choices=(
- ... | start using human readable strings in most fields (what OpenSSL itself outputs) | py |
diff --git a/splinter/driver/webdriver/__init__.py b/splinter/driver/webdriver/__init__.py
index <HASH>..<HASH> 100644
--- a/splinter/driver/webdriver/__init__.py
+++ b/splinter/driver/webdriver/__init__.py
@@ -226,7 +226,7 @@ class BaseWebDriver(DriverAPI):
for name, value in field_values.items():
... | Refactor the way the element type (text or password) is checked | py |
diff --git a/scripts/gimme_motifs.py b/scripts/gimme_motifs.py
index <HASH>..<HASH> 100755
--- a/scripts/gimme_motifs.py
+++ b/scripts/gimme_motifs.py
@@ -28,7 +28,6 @@ parser.add_option("-l", "--localization_width", dest="lwidth", help="Width to us
parser.add_option("-t", "--tools", dest="tools", help="Tools to use, ... | Removed the -x option. Finally ;) | py |
diff --git a/ariba/mic_plotter.py b/ariba/mic_plotter.py
index <HASH>..<HASH> 100644
--- a/ariba/mic_plotter.py
+++ b/ariba/mic_plotter.py
@@ -29,7 +29,6 @@ class MicPlotter:
log_y=2,
plot_types="points,violin",
jitter_width=0.1,
- jitter_height=0.01,
no_combinations=False,
hline... | Remove jitter_height option | py |
diff --git a/pylama/config.py b/pylama/config.py
index <HASH>..<HASH> 100644
--- a/pylama/config.py
+++ b/pylama/config.py
@@ -127,6 +127,8 @@ def get_parser():
linter = LINTERS.get(name)
if linter:
result.append((name, linter))
+ else:
+ logging.warn... | Show warning when linter hasnt found | py |
diff --git a/hangups/ui/__main__.py b/hangups/ui/__main__.py
index <HASH>..<HASH> 100644
--- a/hangups/ui/__main__.py
+++ b/hangups/ui/__main__.py
@@ -430,13 +430,15 @@ class StatusLineWidget(urwid.WidgetWrap):
def _update(self):
"""Update status text."""
- typers = [self._conversation.get_user(u... | Don't show yourself typing If the you're typing in another client, don't display this in the UI. This matches the behaviour of the first party clients. Fixes #<I>. | py |
diff --git a/spyderlib/widgets/editor.py b/spyderlib/widgets/editor.py
index <HASH>..<HASH> 100644
--- a/spyderlib/widgets/editor.py
+++ b/spyderlib/widgets/editor.py
@@ -1246,8 +1246,9 @@ class EditorStack(QWidget):
def close_all_right(self):
""" Close all files opened to the right """
num = s... | Fix Issue #<I> : add "close all but this" and "close all to the right" | py |
diff --git a/tests/test_exceptions_formatting.py b/tests/test_exceptions_formatting.py
index <HASH>..<HASH> 100644
--- a/tests/test_exceptions_formatting.py
+++ b/tests/test_exceptions_formatting.py
@@ -55,11 +55,12 @@ def generate(output, outpath):
)
def test_exceptions_formatting(filename):
cwd = os.path.abspa... | Use Python path from sys.executable while running tests | py |
diff --git a/gtfspy/test/test_networks.py b/gtfspy/test/test_networks.py
index <HASH>..<HASH> 100644
--- a/gtfspy/test/test_networks.py
+++ b/gtfspy/test/test_networks.py
@@ -32,6 +32,10 @@ class NetworkExtractsTest(unittest.TestCase):
if os.path.exists(self.extract_output_dir):
shutil.rmtree(self... | Add proper tearDown methods for netowrk extract tests | py |
diff --git a/pyavroc/_version.py b/pyavroc/_version.py
index <HASH>..<HASH> 100644
--- a/pyavroc/_version.py
+++ b/pyavroc/_version.py
@@ -1 +1 @@
-__version__ = '0.6.3'
+__version__ = '0.7.0' | Bumped version to <I>. | py |
diff --git a/ctfile/__init__.py b/ctfile/__init__.py
index <HASH>..<HASH> 100644
--- a/ctfile/__init__.py
+++ b/ctfile/__init__.py
@@ -1,7 +1,9 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
-from .fileio import read_file
-
+from .api import load
+from .api import loadstr
+from .api import read_file
+from .api i... | Added "api" functions to top-level of "ctfile" package. | py |
diff --git a/swiftly/client/standardclient.py b/swiftly/client/standardclient.py
index <HASH>..<HASH> 100644
--- a/swiftly/client/standardclient.py
+++ b/swiftly/client/standardclient.py
@@ -366,7 +366,7 @@ class StandardClient(Client):
storage_match2 = endpoint.get(
... | Update the no-region use case to use 1st endpoint | py |
diff --git a/pymongo/master_slave_connection.py b/pymongo/master_slave_connection.py
index <HASH>..<HASH> 100644
--- a/pymongo/master_slave_connection.py
+++ b/pymongo/master_slave_connection.py
@@ -192,6 +192,7 @@ class MasterSlaveConnection(BaseObject):
that all operations performed within a request will be ... | MasterSlaveConnection should start request on connection to master in its start_request(), in case master was created with auto_start_request=False | py |
diff --git a/cumulusci/salesforce_api/utils.py b/cumulusci/salesforce_api/utils.py
index <HASH>..<HASH> 100644
--- a/cumulusci/salesforce_api/utils.py
+++ b/cumulusci/salesforce_api/utils.py
@@ -19,13 +19,13 @@ def get_simple_salesforce_connection(
adapter = HTTPAdapter(max_retries=retries)
instance = org_con... | avoid messing up the hostname if there's one with .com not at the end | py |
diff --git a/pydsl/Memory/Directory.py b/pydsl/Memory/Directory.py
index <HASH>..<HASH> 100644
--- a/pydsl/Memory/Directory.py
+++ b/pydsl/Memory/Directory.py
@@ -88,8 +88,14 @@ class DirStorage(Memory):
if not resultlist:
raise KeyError(self.__class__.__name__ + name)
filepath = list(res... | added support for multiple handlers for the same extension | py |
diff --git a/tests/test_utils.py b/tests/test_utils.py
index <HASH>..<HASH> 100644
--- a/tests/test_utils.py
+++ b/tests/test_utils.py
@@ -288,7 +288,6 @@ class ConditionRLockTestCase(StateClearingTestCase):
time.sleep(TESTING_TIMEOUT * 2)
greenhouse.pause()
- greenhouse.pause()
as... | pull out extra greenhouse.pause()es that shouldn't be there | py |
diff --git a/umi_tools/Utilities.py b/umi_tools/Utilities.py
index <HASH>..<HASH> 100644
--- a/umi_tools/Utilities.py
+++ b/umi_tools/Utilities.py
@@ -499,7 +499,16 @@ def openFile(filename, mode="r", create_dir=False):
os.makedirs(dirname)
if ext.lower() in (".gz", ".z"):
- return gzip.open(... | Modifications to openFile to hanndle need for encoded output when outputting to zip file in python 3 | py |
diff --git a/contentfiles/storage.py b/contentfiles/storage.py
index <HASH>..<HASH> 100644
--- a/contentfiles/storage.py
+++ b/contentfiles/storage.py
@@ -4,7 +4,7 @@ import os
from django.conf import settings
from django.core.files.storage import DefaultStorage
-from django.utils.six.moves import urllib
+from djan... | Swap quote for filepath_to_uri filepath_to_uri uses quote under the hood anyway, and can deal with the different Python versions - instead of us having to use django.utils.six | py |
diff --git a/great_expectations/cli.py b/great_expectations/cli.py
index <HASH>..<HASH> 100755
--- a/great_expectations/cli.py
+++ b/great_expectations/cli.py
@@ -145,7 +145,7 @@ def _scaffold_directories_and_notebooks(base_dir):
safe_mmkdir(base_dir)
notebook_dir_name = "notebooks"
- for directory in [n... | missing comma (#<I>) | py |
diff --git a/LiSE/LiSE/xcollections.py b/LiSE/LiSE/xcollections.py
index <HASH>..<HASH> 100644
--- a/LiSE/LiSE/xcollections.py
+++ b/LiSE/LiSE/xcollections.py
@@ -163,6 +163,8 @@ class FunctionStore(Signal):
return
self._locl[k] = v
sourcelines, _ = getsourcelines(v)
+ if sourcelin... | Get rid of decorator in stored func | py |
diff --git a/rshell/version.py b/rshell/version.py
index <HASH>..<HASH> 100644
--- a/rshell/version.py
+++ b/rshell/version.py
@@ -1 +1 @@
-__version__ = '0.0.17'
+__version__ = '0.0.18' | Bumped version to <I> - fixes arrow keys home/end/del under Windows - fixes an issue when name attribute is missing from board.py | py |
diff --git a/kerncraft/iaca.py b/kerncraft/iaca.py
index <HASH>..<HASH> 100755
--- a/kerncraft/iaca.py
+++ b/kerncraft/iaca.py
@@ -140,7 +140,16 @@ def find_asm_blocks(asm_lines):
if mem_scales[1:] == mem_scales[:-1]:
# good, all scales are equal
- ... | added debug output to iaca | py |
diff --git a/stanza/pipeline/tokenize_processor.py b/stanza/pipeline/tokenize_processor.py
index <HASH>..<HASH> 100644
--- a/stanza/pipeline/tokenize_processor.py
+++ b/stanza/pipeline/tokenize_processor.py
@@ -128,9 +128,10 @@ class TokenizeProcessor(UDProcessor):
for token in sent.tokens:
... | Skip MWT tokens with empty word lists when bulk processing a language with mwt | py |
diff --git a/salt/minion.py b/salt/minion.py
index <HASH>..<HASH> 100644
--- a/salt/minion.py
+++ b/salt/minion.py
@@ -325,7 +325,8 @@ class Minion(object):
payload = {'enc': 'aes'}
if ret_cmd == '_syndic_return':
load = {'cmd': ret_cmd,
- 'jid': ret['jid']}
+ ... | Add passign master's id to syndic return | py |
diff --git a/menuinst/win32.py b/menuinst/win32.py
index <HASH>..<HASH> 100644
--- a/menuinst/win32.py
+++ b/menuinst/win32.py
@@ -81,7 +81,7 @@ def write_bat_file(prefix, setup_cmd, other_cmd, args):
activate_script = join(sys.prefix, "Scripts", setup_cmd[0])
f.write('"{activate_script}" "{env}" && "... | set env to root full path when no env provided | py |
diff --git a/chirptext/texttaglib.py b/chirptext/texttaglib.py
index <HASH>..<HASH> 100755
--- a/chirptext/texttaglib.py
+++ b/chirptext/texttaglib.py
@@ -468,6 +468,13 @@ class TaggedDoc(object):
for tag in sent.tags:
tag_writer.writerow((sent.ID, tag.cfrom, tag.cto, tag.label, tag.tagtyp... | Add helper function to read TTL from a path | py |
diff --git a/dynamic_dynamodb/core/table.py b/dynamic_dynamodb/core/table.py
index <HASH>..<HASH> 100644
--- a/dynamic_dynamodb/core/table.py
+++ b/dynamic_dynamodb/core/table.py
@@ -191,18 +191,18 @@ def __ensure_provisioning_reads(table_name, key_name, consec_True_Read_Checks):
elif consumed_read_units_percent... | try<I> i am beginning to hate python | py |
diff --git a/docs/conf.py b/docs/conf.py
index <HASH>..<HASH> 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -20,6 +20,7 @@
import gettext
import os
import sys
+import traceback
from os import path
import sphinxcontrib.plantuml
@@ -321,7 +322,12 @@ def setup(self):
locale_dir = os.path.join(package_dir, 'l... | docs: rtd translation debug 1 | py |
diff --git a/splunklib/client.py b/splunklib/client.py
index <HASH>..<HASH> 100644
--- a/splunklib/client.py
+++ b/splunklib/client.py
@@ -2132,11 +2132,14 @@ class Inputs(Collection):
def _get_kind_list(self, subpath=None):
if subpath is None:
subpath = []
+
kinds = []
... | Minor refactoring of Inputs. | py |
diff --git a/sandboxapi/falcon.py b/sandboxapi/falcon.py
index <HASH>..<HASH> 100644
--- a/sandboxapi/falcon.py
+++ b/sandboxapi/falcon.py
@@ -114,12 +114,19 @@ class FalconAPI(sandboxapi.SandboxAPI):
else:
try:
+ # Try the on-prem endpoint.
response = self._reque... | Added logic to is_available() to try the public sandbox endpoint if the on-prem endpoint fails. | py |
diff --git a/pipeline/conf.py b/pipeline/conf.py
index <HASH>..<HASH> 100644
--- a/pipeline/conf.py
+++ b/pipeline/conf.py
@@ -77,8 +77,6 @@ DEFAULTS = {
'LESS_BINARY': '/usr/bin/env lessc',
'LESS_ARGUMENTS': '',
- 'DISABLE_WRAPPER': False,
-
'MIMETYPES': (
(b'text/coffeescript', '.coffee')... | Removed duplicate DISABLE_WRAPPER key in conf.py | py |
diff --git a/django_webtest/__init__.py b/django_webtest/__init__.py
index <HASH>..<HASH> 100644
--- a/django_webtest/__init__.py
+++ b/django_webtest/__init__.py
@@ -328,11 +328,17 @@ def _get_username(user):
Return user's username. ``user`` can be standard Django User
instance, a custom user model or just a... | unbreak tests, looks it'll not solve anything. see #<I> | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -59,7 +59,7 @@ install_requires = [
'mock >=1.0, <2.1',
'h5py >=2.8, <2.10',
'numpy >=1.14, <1.17',
- 'scipy >=1.0.1, <1.2',
+ 'scipy >=1.0.1, <1.3',
'pyzmq <18.2',
'psutil >=2.0, <5.7',
'sh... | Scipy <I> looks good [demos] Former-commit-id: 7c3d<I>a<I>f<I>c5d<I>efec0d1f<I>c<I> | py |
diff --git a/salt/modules/yumpkg5.py b/salt/modules/yumpkg5.py
index <HASH>..<HASH> 100644
--- a/salt/modules/yumpkg5.py
+++ b/salt/modules/yumpkg5.py
@@ -17,7 +17,7 @@ def __virtual__():
'''
Confine this module to yum based systems
'''
- # Work only on RHEL/Fedora based distros with python 2.6 or gre... | yumpkg5: Comment indicates this is used on python >= <I> instead of < <I> | py |
diff --git a/salt/states/acme.py b/salt/states/acme.py
index <HASH>..<HASH> 100644
--- a/salt/states/acme.py
+++ b/salt/states/acme.py
@@ -85,6 +85,7 @@ def cert(name,
comment += 'would have been renewed'
else:
comment += 'would not have been touched'
+ ret['result'] = True... | Fix acme state to correctly return on test Previously, the acme.cert state would return that a change was pending during a test run even in the case that the certificate would not have been touched. Changed the return value in this case so that it is not thought to require a change. This is reported in #<I> [0] and ... | py |
diff --git a/gwpy/cli/cliproduct.py b/gwpy/cli/cliproduct.py
index <HASH>..<HASH> 100644
--- a/gwpy/cli/cliproduct.py
+++ b/gwpy/cli/cliproduct.py
@@ -731,7 +731,8 @@ class CliProduct(object):
self.plot_num += 1
def add_segs(self, args):
- """ If requested add DQ segments"""
+ """If re... | Update gwpy/cli/cliproduct.py | py |
diff --git a/hydpy/auxs/xmltools.py b/hydpy/auxs/xmltools.py
index <HASH>..<HASH> 100644
--- a/hydpy/auxs/xmltools.py
+++ b/hydpy/auxs/xmltools.py
@@ -1899,11 +1899,15 @@ class XMLExchange(XMLBase):
"""Prepare all required |IOSequence.series| arrays via the
|IOSequence.prepare_series| method.
... | Fix method `prepare_series` of class `XMLExchange` of module `xmltools` based on commit 6a<I>c2c2d5c<I>ecaabad<I>c7ade8f. Now, `prepare_series` does not disable reading or writing data "just in time" accidentally. (A bug we discovered when coupling HydPy with OpenDA.) | py |
diff --git a/tests/api/__init__.py b/tests/api/__init__.py
index <HASH>..<HASH> 100644
--- a/tests/api/__init__.py
+++ b/tests/api/__init__.py
@@ -1,10 +1,2 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
-
-import sys
-import os
-import os.path
-
-# Initialization
-path = os.path.realpath(os.path.join(os.path.join(... | remove lines no longer needed Path initialization has been deprecated with the use of Tox and Pytest | py |
diff --git a/keyboard/_winkeyboard.py b/keyboard/_winkeyboard.py
index <HASH>..<HASH> 100644
--- a/keyboard/_winkeyboard.py
+++ b/keyboard/_winkeyboard.py
@@ -590,12 +590,16 @@ def release(code):
def type_unicode(character):
# This code and related structures are based on
# http://stackoverflow.com/a/1191055... | Send key up events on Windows' type_unicode (fix #<I>) | py |
diff --git a/rethinkdb/tests/test_e2e.py b/rethinkdb/tests/test_e2e.py
index <HASH>..<HASH> 100644
--- a/rethinkdb/tests/test_e2e.py
+++ b/rethinkdb/tests/test_e2e.py
@@ -8,7 +8,7 @@ import pytest
from datadog_checks.base.stubs.aggregator import AggregatorStub
from datadog_checks.rethinkdb import RethinkDBCheck
-fr... | Assert all metrics (#<I>) | py |
diff --git a/bcbio/pipeline/run_info.py b/bcbio/pipeline/run_info.py
index <HASH>..<HASH> 100644
--- a/bcbio/pipeline/run_info.py
+++ b/bcbio/pipeline/run_info.py
@@ -351,11 +351,10 @@ def _check_toplevel_misplaced(item):
def _detect_fastq_format(in_file, MAX_RECORDS=1000):
- ranges = {"sanger": (33, 73),
- ... | Expand quality format range detection. Moleculo reads and reads coming from prealigned files can have quality values > <I>. The Sanger and Illumina formats can officially handle higher quality values though they are not usually produced from raw reads. We expanded the quality format range to detect those. We dropped ... | py |
diff --git a/asammdf/gui/widgets/main.py b/asammdf/gui/widgets/main.py
index <HASH>..<HASH> 100644
--- a/asammdf/gui/widgets/main.py
+++ b/asammdf/gui/widgets/main.py
@@ -248,6 +248,8 @@ class MainWindow(QMainWindow):
for name in files:
self._open_file(name)
+ self.setAcceptDrops(... | accept fiel drag and drop in GUI | py |
diff --git a/fleece/log.py b/fleece/log.py
index <HASH>..<HASH> 100644
--- a/fleece/log.py
+++ b/fleece/log.py
@@ -203,4 +203,20 @@ def get_logger(name=None, level=None, stream=DEFAULT_STREAM,
return log
+def initial_trace_and_context_binds(logger, trace_id, lambda_context):
+ """A helper to set up standard... | Add initial_trace_and_context_binds to logging | py |
diff --git a/imbox/parser.py b/imbox/parser.py
index <HASH>..<HASH> 100644
--- a/imbox/parser.py
+++ b/imbox/parser.py
@@ -33,7 +33,10 @@ def decode_mail_header(value, default_charset='us-ascii'):
return str_decode(str_encode(value, default_charset, 'replace'), default_charset)
else:
for index, (... | refactoring: string formatting more readable | py |
diff --git a/salt/cloud/clouds/openstack.py b/salt/cloud/clouds/openstack.py
index <HASH>..<HASH> 100644
--- a/salt/cloud/clouds/openstack.py
+++ b/salt/cloud/clouds/openstack.py
@@ -75,6 +75,7 @@ Either a password or an API key must also be specified:
apikey: 901d3f579h23c8v73q9
Optionally, if you don't want... | Fix docs so they will format correctly | py |
diff --git a/mailchimp3/baseapi.py b/mailchimp3/baseapi.py
index <HASH>..<HASH> 100644
--- a/mailchimp3/baseapi.py
+++ b/mailchimp3/baseapi.py
@@ -48,7 +48,8 @@ class BaseApi(object):
if kwargs.get('fields') is None:
kwargs['fields'] = 'total_items'
else: # assume well formed string, jus... | adjusted _iterate to provide a check for inclusion of total_items in fields kwarg | py |
diff --git a/discord/stage_instance.py b/discord/stage_instance.py
index <HASH>..<HASH> 100644
--- a/discord/stage_instance.py
+++ b/discord/stage_instance.py
@@ -51,7 +51,7 @@ class StageInstance(Hashable):
.. describe:: x == y
- Checks if two stagea instances are equal.
+ Checks if ... | Fix typo in stage_instance.py | py |
diff --git a/src/toil/provisioners/aws/awsProvisioner.py b/src/toil/provisioners/aws/awsProvisioner.py
index <HASH>..<HASH> 100644
--- a/src/toil/provisioners/aws/awsProvisioner.py
+++ b/src/toil/provisioners/aws/awsProvisioner.py
@@ -768,8 +768,12 @@ class AWSProvisioner(AbstractProvisioner):
web.... | Open up UDP traffic within AWS clusters This allows real time logging to work. (resolves #<I>) | py |
diff --git a/ryu/lib/packet/arp.py b/ryu/lib/packet/arp.py
index <HASH>..<HASH> 100644
--- a/ryu/lib/packet/arp.py
+++ b/ryu/lib/packet/arp.py
@@ -14,6 +14,8 @@
# limitations under the License.
import struct
+
+from ryu.ofproto import ether
from . import packet_base
ARP_HW_TYPE_ETHERNET = 1 # ethernet hardware... | lib/packet/arp.py: add convenience function to create arp for ip Since ip case is most often used, introduce a convenience function for that. | py |
diff --git a/deploy_stack.py b/deploy_stack.py
index <HASH>..<HASH> 100755
--- a/deploy_stack.py
+++ b/deploy_stack.py
@@ -366,9 +366,13 @@ def deploy_job():
if series is None:
series = 'precise'
charm_prefix = 'local:{}/'.format(series)
+ # Don't need windows state server to test windows charms, ... | Use a trusty state server when testing windows charms | py |
diff --git a/tests/test_players.py b/tests/test_players.py
index <HASH>..<HASH> 100644
--- a/tests/test_players.py
+++ b/tests/test_players.py
@@ -192,5 +192,28 @@ class TestPlayers(unittest.TestCase):
self.assertNotEqual(cp2.count, 0)
+ d1 = dominoes.Domino(7, 0)
+ d2 = dominoes.Domino(0, 0)... | testing that omniscient player picks the correct move | py |
diff --git a/spec/spec_loader.py b/spec/spec_loader.py
index <HASH>..<HASH> 100644
--- a/spec/spec_loader.py
+++ b/spec/spec_loader.py
@@ -1,7 +1,7 @@
import os
import imp
-from mamba import describe, context
+from mamba import describe
from sure import expect
with describe('Loader') as _:
@@ -11,8 +11,4 @@ wit... | Collapse multiple assertions for collection in one | py |
diff --git a/src/aks-preview/setup.py b/src/aks-preview/setup.py
index <HASH>..<HASH> 100644
--- a/src/aks-preview/setup.py
+++ b/src/aks-preview/setup.py
@@ -8,7 +8,7 @@
from codecs import open as open1
from setuptools import setup, find_packages
-VERSION = "0.4.41"
+VERSION = "0.4.42"
CLASSIFIERS = [
'Devel... | bump aks-preview version (#<I>) | py |
diff --git a/mockito/mocking.py b/mockito/mocking.py
index <HASH>..<HASH> 100644
--- a/mockito/mocking.py
+++ b/mockito/mocking.py
@@ -71,7 +71,10 @@ class Mock(object):
if self.spec is None:
return None
- return self.spec.__dict__.get(method_name)
+ try:
+ return self.s... | Try `getattr` as well when getting the original method | py |
diff --git a/hug/development_runner.py b/hug/development_runner.py
index <HASH>..<HASH> 100644
--- a/hug/development_runner.py
+++ b/hug/development_runner.py
@@ -72,12 +72,12 @@ def hug(file: 'A Python file that contains a Hug API'=None, module: 'A Python mo
return
if not manual_reload:
- checke... | Fix bug in development runner refactor | py |
diff --git a/ceph_deploy/gatherkeys.py b/ceph_deploy/gatherkeys.py
index <HASH>..<HASH> 100644
--- a/ceph_deploy/gatherkeys.py
+++ b/ceph_deploy/gatherkeys.py
@@ -141,9 +141,9 @@ def gatherkeys_missing(args, distro, rlogger, keypath, keytype, dest_dir):
return False
keyring_name_local = keytype_path_to(ar... | gatherkeys: no need to decode, do not write binary | py |
diff --git a/src/paperwork/backend/docsearch.py b/src/paperwork/backend/docsearch.py
index <HASH>..<HASH> 100644
--- a/src/paperwork/backend/docsearch.py
+++ b/src/paperwork/backend/docsearch.py
@@ -143,6 +143,9 @@ class DummyDocSearch(object):
""" Do nothing """
return None
+ def set_language(se... | (cosmetic): DummyDocSearch must provide a method set_language() to be consistent with DocSearch() | py |
diff --git a/denonavr/denonavr.py b/denonavr/denonavr.py
index <HASH>..<HASH> 100644
--- a/denonavr/denonavr.py
+++ b/denonavr/denonavr.py
@@ -53,10 +53,10 @@ ALL_ZONE_STEREO = "ALL ZONE STEREO"
SOUND_MODE_MAPPING = OrderedDict(
[('MUSIC', ['PLII MUSIC', 'DTS NEO:6 MUSIC', 'DOLBY D +NEO:X M',
- '... | Add auro movie modes (#<I>) * add two AURO movie modes * add AURO music mode | py |
diff --git a/raiden/utils/upgrades.py b/raiden/utils/upgrades.py
index <HASH>..<HASH> 100644
--- a/raiden/utils/upgrades.py
+++ b/raiden/utils/upgrades.py
@@ -58,9 +58,9 @@ def get_db_version(db_filename: Path):
return 0
-def _run_upgrade_func(cursor: sqlite3.Cursor, func: Callable, version: int, *args) ->... | Turn upgrade extra args into kwargs | py |
diff --git a/examples/solvers/functional_basic_example_solver.py b/examples/solvers/functional_basic_example_solver.py
index <HASH>..<HASH> 100644
--- a/examples/solvers/functional_basic_example_solver.py
+++ b/examples/solvers/functional_basic_example_solver.py
@@ -40,7 +40,7 @@ n = 10
space = odl.rn(n)
# Create p... | BUG: fix minor bug in functional_basic_example_solvers | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -8,7 +8,7 @@ try:
except ImportError:
from distutils.core import setup
-__version__ = "2.0.0"
+__version__ = "2.1.0"
setup(
name='django-tenants',
@@ -46,7 +46,7 @@ setup(
'Topic :: Software Developmen... | Updated the setup to allow for django <I> | py |
diff --git a/src/Exscript/util/decorator.py b/src/Exscript/util/decorator.py
index <HASH>..<HASH> 100644
--- a/src/Exscript/util/decorator.py
+++ b/src/Exscript/util/decorator.py
@@ -31,8 +31,8 @@ def bind(function, *args, **kwargs):
@rtype: function
@return: The wrapped function.
"""
- def decorated... | Exscript.util.bind(): allow for wrapping functions regardless of their number of arguments. | py |
diff --git a/docs/conf.py b/docs/conf.py
index <HASH>..<HASH> 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -14,6 +14,8 @@
import os
import sys
+from sphinx import version_info as SPHINX_VERSION
+
on_rtd = os.environ.get('READTHEDOCS', None) == 'True'
# If extensions (or modules to document with autodoc) are ... | Make docs build without warning on Sphinx <I> | py |
diff --git a/gitlab/objects.py b/gitlab/objects.py
index <HASH>..<HASH> 100644
--- a/gitlab/objects.py
+++ b/gitlab/objects.py
@@ -1627,12 +1627,14 @@ class Project(GitlabObject):
requiredCreateAttrs = ['name']
optionalCreateAttrs = ['default_branch', 'issues_enabled', 'wall_enabled',
... | Added a new project attribute to enable the container registry. | 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
@@ -700,7 +700,7 @@ def clean_proc_dir(opts):
for basefilename in os.listdir(salt.minion.get_proc_dir(opts['cachedir'])):
fn_ = os.path.join(salt.minion.get_... | open files with 'rb' Windows needs this to be opened with 'rb' to avoid stacktraces. | py |
diff --git a/kconfiglib.py b/kconfiglib.py
index <HASH>..<HASH> 100644
--- a/kconfiglib.py
+++ b/kconfiglib.py
@@ -1381,6 +1381,11 @@ class Config(object):
def _eval_expr(self, expr):
"""Evaluates an expression and returns one of the tristate values "n",
"m" or "y"."""
+
+ # Handles e.g. a... | Move 'expr is None' check up to _eval_expr(). None should never appear as a subexpression. | py |
diff --git a/emir/recipes/image/dither.py b/emir/recipes/image/dither.py
index <HASH>..<HASH> 100644
--- a/emir/recipes/image/dither.py
+++ b/emir/recipes/image/dither.py
@@ -37,7 +37,7 @@ import numdisplay.zscale
from scipy.spatial import cKDTree as KDTree
import numina.image
-from numina.image import get_image_sh... | Renamed get_image_shape | py |
diff --git a/ykman/device.py b/ykman/device.py
index <HASH>..<HASH> 100644
--- a/ykman/device.py
+++ b/ykman/device.py
@@ -202,6 +202,9 @@ def _read_info_ccid(conn, key_type, interfaces):
logger.debug("Unable to select OTP application")
serial = None
+ if version is None:
+ version = (3, 0... | Make sure DeviceInfo always has a version. | py |
diff --git a/docs/source/conf.py b/docs/source/conf.py
index <HASH>..<HASH> 100644
--- a/docs/source/conf.py
+++ b/docs/source/conf.py
@@ -40,7 +40,7 @@ with open(os.path.join(project_dir, "CHANGELOG.rst"), 'rb') as src:
project = 'InstaLooter'
author = instalooter.__author__
-copyright = '2016-{}, {}'.format(autho... | Fix copyright format in `docs/sources/conf.py` | py |
diff --git a/iamport/client.py b/iamport/client.py
index <HASH>..<HASH> 100644
--- a/iamport/client.py
+++ b/iamport/client.py
@@ -1,6 +1,7 @@
# -*- coding: utf-8 -*-
import json
+
import requests
__all__ = ['IAMPORT_API_URL', 'Iamport'] | Run isort to sort imports in client.py | py |
diff --git a/discord/gateway.py b/discord/gateway.py
index <HASH>..<HASH> 100644
--- a/discord/gateway.py
+++ b/discord/gateway.py
@@ -543,26 +543,14 @@ class DiscordWebSocket:
return
if event == 'READY':
- self._trace = trace = data.get('_trace', [])
self.sequence = msg[... | Remove gateway trace information This was unused anyway | py |
diff --git a/tests/test_bus.py b/tests/test_bus.py
index <HASH>..<HASH> 100644
--- a/tests/test_bus.py
+++ b/tests/test_bus.py
@@ -536,8 +536,16 @@ class TestReactiveBus(unittest.TestCase):
assert not reactive.helpers.all_flags_set('bash-multi-neg2')
invoked = ['test_when_not_all', 'test_when_... | fixed test, order doesn't matter (#<I>) | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -17,7 +17,7 @@ except ImportError:
tagger = egg_info_cmd.egg_info
setup(name='schema-salad',
- version='1.0.3',
+ version='1.0.4',
description='Schema Annotations for Linked Avro Data (SALAD)',
... | Bump up to version <I> | py |
diff --git a/salt/client/ssh/__init__.py b/salt/client/ssh/__init__.py
index <HASH>..<HASH> 100644
--- a/salt/client/ssh/__init__.py
+++ b/salt/client/ssh/__init__.py
@@ -519,6 +519,7 @@ class Single(object):
mods=None,
fsclient=None,
thin=None,
+ minion_opts=None,
... | Accept minion_opts from the target information Rosters can now define minion_opts under the host info | py |
diff --git a/djstripe/models/api.py b/djstripe/models/api.py
index <HASH>..<HASH> 100644
--- a/djstripe/models/api.py
+++ b/djstripe/models/api.py
@@ -4,6 +4,7 @@ from uuid import uuid4
from django.core.validators import RegexValidator
from django.db import models
+from django.forms import ValidationError
from .... | Catch InvalidStripeAPIKey and re-raise as ValidationError | py |
diff --git a/axes/signals.py b/axes/signals.py
index <HASH>..<HASH> 100644
--- a/axes/signals.py
+++ b/axes/signals.py
@@ -2,8 +2,10 @@ from django.dispatch import receiver
from django.dispatch import Signal
from django.utils.timezone import now
from django.contrib.auth.signals import user_logged_out
+from django.db... | Add signals for setting/deleting cache keys | py |
diff --git a/pwnypack/php.py b/pwnypack/php.py
index <HASH>..<HASH> 100644
--- a/pwnypack/php.py
+++ b/pwnypack/php.py
@@ -1,6 +1,12 @@
import six
+__all__ = [
+ 'php_serialize',
+ 'PhpObject',
+]
+
+
def php_serialize(value):
"""
Serialize a value for use with PHP's deserialize() function. This f... | Prevent polluting the namespace with ‘six’. | py |
diff --git a/dispatch/modules/content/models.py b/dispatch/modules/content/models.py
index <HASH>..<HASH> 100644
--- a/dispatch/modules/content/models.py
+++ b/dispatch/modules/content/models.py
@@ -1,6 +1,5 @@
import datetime
import StringIO
-import json
import os
import re
@@ -216,8 +215,9 @@ class Publishable(... | Don't try to delete null attachment | py |
diff --git a/georasters/georasters.py b/georasters/georasters.py
index <HASH>..<HASH> 100755
--- a/georasters/georasters.py
+++ b/georasters/georasters.py
@@ -1247,7 +1247,7 @@ def from_pandas(df, value='value', x='x', y='y', cellx=None, celly=None, xmin=No
ymax = df[y].max()
row, col = map_pixel(df[x], d... | Changed from_pandas to allow whole rows/columns to be blank and still generate correct raster | py |
diff --git a/astrobase/checkplot.py b/astrobase/checkplot.py
index <HASH>..<HASH> 100644
--- a/astrobase/checkplot.py
+++ b/astrobase/checkplot.py
@@ -2693,11 +2693,6 @@ def _read_checkplot_picklefile(checkplotpickle):
with gzip.open(checkplotpickle,'rb') as infd:
cpdict = pickle.load(infd... | checkplot: silently do the right thing if reading py2 pickle in py3 | py |
diff --git a/mesh_tensorflow/tpu_variables.py b/mesh_tensorflow/tpu_variables.py
index <HASH>..<HASH> 100644
--- a/mesh_tensorflow/tpu_variables.py
+++ b/mesh_tensorflow/tpu_variables.py
@@ -82,7 +82,9 @@ class ReplicatedVariable(VariableBase):
if tpu_context is None:
return self._primary_var.handle
- ... | Make TPU variable name deterministic. Only use the unique variable handle id as handle cache key, but not the variable handle's name. This resolves a graph non-determinism issue seen in an internal workload. PiperOrigin-RevId: <I> | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.