diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/examples/py/cli.py b/examples/py/cli.py
index <HASH>..<HASH> 100644
--- a/examples/py/cli.py
+++ b/examples/py/cli.py
@@ -5,6 +5,7 @@ import os
import re
import sys
import json
+import platform
from pprint import pprint
# ------------------------------------------------------------------------------... | cli.py print out version numbers | py |
diff --git a/chess/polyglot.py b/chess/polyglot.py
index <HASH>..<HASH> 100644
--- a/chess/polyglot.py
+++ b/chess/polyglot.py
@@ -112,8 +112,14 @@ class MemoryMappedReader(object):
except IndexError:
return False
- def get_entries_for_position(self, board):
- """Seeks a specific posit... | Add minimum weight option for polyglot | py |
diff --git a/qiskit/aqua/utils/measurement_error_mitigation.py b/qiskit/aqua/utils/measurement_error_mitigation.py
index <HASH>..<HASH> 100644
--- a/qiskit/aqua/utils/measurement_error_mitigation.py
+++ b/qiskit/aqua/utils/measurement_error_mitigation.py
@@ -116,6 +116,6 @@ def add_measurement_error_mitigation_to_qobj(... | use other info from the qobj of the algorithm | py |
diff --git a/switchbot/devices/device.py b/switchbot/devices/device.py
index <HASH>..<HASH> 100644
--- a/switchbot/devices/device.py
+++ b/switchbot/devices/device.py
@@ -238,6 +238,7 @@ class SwitchbotDevice:
ex,
)
await self._execute_disconnect()
+ raise
... | Re-raise on Dbus error after handling disconnect (#<I>) | py |
diff --git a/salt/modules/network.py b/salt/modules/network.py
index <HASH>..<HASH> 100644
--- a/salt/modules/network.py
+++ b/salt/modules/network.py
@@ -2106,7 +2106,7 @@ def fqdns():
results = pool.map(_lookup_fqdn, addresses)
pool.close()
pool.join()
- except Exception as exc:
+ exc... | Fix pylint issue | py |
diff --git a/retro/data/__init__.py b/retro/data/__init__.py
index <HASH>..<HASH> 100644
--- a/retro/data/__init__.py
+++ b/retro/data/__init__.py
@@ -405,7 +405,7 @@ def merge(*args, quiet=True):
for rom in args:
try:
data, hash = groom_rom(rom)
- except IOError:
+ except (IOEr... | Prevent crash while importing ROMs if the directory contains ><I>MiB files. | py |
diff --git a/xdis/magics.py b/xdis/magics.py
index <HASH>..<HASH> 100755
--- a/xdis/magics.py
+++ b/xdis/magics.py
@@ -349,6 +349,8 @@ def sysinfo2float(version_info=sys.version_info):
# Python may be too old, e.g. < 2.6 or implementation may
# just not have platform
pass
+ ... | Python <I> compatiablity | py |
diff --git a/tests/test_orbits.py b/tests/test_orbits.py
index <HASH>..<HASH> 100644
--- a/tests/test_orbits.py
+++ b/tests/test_orbits.py
@@ -1,4 +1,5 @@
##########################TESTS ON MULTIPLE ORBITS#############################
+import sys
import numpy
import pytest
from galpy import potential
@@ -617,7 +618... | Chandrasekhar Orbits test does not fail on Windows, mark this in xfail | py |
diff --git a/twython/twython.py b/twython/twython.py
index <HASH>..<HASH> 100644
--- a/twython/twython.py
+++ b/twython/twython.py
@@ -168,6 +168,9 @@ class Twython(object):
else:
# If they don't do authentication, but still want to request unprotected resources, we need an opener.
se... | Allow for easier debugging/development, by registering endpoints directly into Twython. | py |
diff --git a/tests/test_params.py b/tests/test_params.py
index <HASH>..<HASH> 100644
--- a/tests/test_params.py
+++ b/tests/test_params.py
@@ -80,7 +80,7 @@ class TestParamsIntegration(object):
],
)
def test_process_params(kwargs, url_params):
- """ Ensure kwargs received build a proper params """
+ ""... | tests for both escaped & unescaped single quotes in val | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -10,7 +10,7 @@ from setuptools import setup, find_packages
general_requirements = [
'dpath == 1.4.2',
'pytest >= 4.4.1, < 6.0.0', # For openfisca test
- 'numpy >= 1.11, < 1.19',
+ 'numpy >= 1.11, < 1.18',
... | Downgrade Numpy to <I> | py |
diff --git a/python/ray/worker.py b/python/ray/worker.py
index <HASH>..<HASH> 100644
--- a/python/ray/worker.py
+++ b/python/ray/worker.py
@@ -435,10 +435,6 @@ def get_gpu_ids():
"""
# TODO(ilr) Handle inserting resources in local mode
- if _mode() == LOCAL_MODE:
- logger.info("ray.get_gpu_ids() c... | Remove logging (#<I>) | py |
diff --git a/marathon_acme/service.py b/marathon_acme/service.py
index <HASH>..<HASH> 100644
--- a/marathon_acme/service.py
+++ b/marathon_acme/service.py
@@ -46,7 +46,6 @@ class MarathonAcme(object):
mlb_cert_store, txacme_client_creator, reactor, [responder])
self._server_listening = None
- ... | Just record that we're not attached when we start listening | py |
diff --git a/host/pybar/scans/scan_fei4_self_trigger.py b/host/pybar/scans/scan_fei4_self_trigger.py
index <HASH>..<HASH> 100644
--- a/host/pybar/scans/scan_fei4_self_trigger.py
+++ b/host/pybar/scans/scan_fei4_self_trigger.py
@@ -73,8 +73,6 @@ class FEI4SelfTriggerScan(Fei4RunBase):
except ValueEr... | BUG: not counting trigger in self-trigger mode | py |
diff --git a/spyder/plugins/editor/widgets/codeeditor.py b/spyder/plugins/editor/widgets/codeeditor.py
index <HASH>..<HASH> 100644
--- a/spyder/plugins/editor/widgets/codeeditor.py
+++ b/spyder/plugins/editor/widgets/codeeditor.py
@@ -4648,7 +4648,7 @@ class CodeEditor(TextEditBaseWidget):
def focusInEvent(self... | Fix call to super for focusInEvent | py |
diff --git a/codetransformer/transformers/tests/test_literals.py b/codetransformer/transformers/tests/test_literals.py
index <HASH>..<HASH> 100644
--- a/codetransformer/transformers/tests/test_literals.py
+++ b/codetransformer/transformers/tests/test_literals.py
@@ -18,6 +18,15 @@ from ..literals import (
)
+def t... | TEST: Test that overloaded_X(X) is a noop. | py |
diff --git a/cli/sawtooth_cli/main.py b/cli/sawtooth_cli/main.py
index <HASH>..<HASH> 100644
--- a/cli/sawtooth_cli/main.py
+++ b/cli/sawtooth_cli/main.py
@@ -95,11 +95,8 @@ def create_parser(prog_name):
add_admin_parser(subparsers, parent_parser)
add_config_parser(subparsers, parent_parser)
add_block_pa... | Fix leftover comments from rebase sawtooth-core/cli/sawtooth_cli/main.py contained git rebase conflict lines that had been inadvertently left in or not resolved. | py |
diff --git a/instabot/bot/bot_get.py b/instabot/bot/bot_get.py
index <HASH>..<HASH> 100644
--- a/instabot/bot/bot_get.py
+++ b/instabot/bot/bot_get.py
@@ -133,8 +133,12 @@ def get_timeline_users(self):
if not self.api.get_timeline_feed():
self.logger.warning("Error while getting timeline feed.")
... | Fixed when items not found but have 'feed_items' and 'media_or_ad' | py |
diff --git a/contrib/github_buildbot.py b/contrib/github_buildbot.py
index <HASH>..<HASH> 100755
--- a/contrib/github_buildbot.py
+++ b/contrib/github_buildbot.py
@@ -209,7 +209,7 @@ def main():
parser.add_option("-p", "--port",
help="Port the HTTP server listens to for the GitHub Service Hook"... | Properly accept --port as integer in github_buildbot cmd line options | py |
diff --git a/setup_unix.py b/setup_unix.py
index <HASH>..<HASH> 100755
--- a/setup_unix.py
+++ b/setup_unix.py
@@ -9,18 +9,13 @@ from buildAll_unix import OPENSSL_INSTALL_DIR
extra_compile_args = ['-Wall', '-Wno-deprecated-declarations']
-if platform == 'darwin': # Workaround for Clang 3.4
- # add as the elemen... | Properly link OpenSSL and Zlib statically Fixes issue #<I> and issue #<I> | py |
diff --git a/tests/seattle_benchmark.py b/tests/seattle_benchmark.py
index <HASH>..<HASH> 100644
--- a/tests/seattle_benchmark.py
+++ b/tests/seattle_benchmark.py
@@ -29,11 +29,20 @@ def run_tests(data):
print "Done: " + str(read_delta) + " -- raw JSON in: " + str((ett - tt) * 1000.0)
return read_delta
-f... | Pointed seattle benchmark to new json file names, consume both json and jsonv and print results for each. | py |
diff --git a/haphilipsjs/__init__.py b/haphilipsjs/__init__.py
index <HASH>..<HASH> 100644
--- a/haphilipsjs/__init__.py
+++ b/haphilipsjs/__init__.py
@@ -1,6 +1,7 @@
import requests
import logging
+
LOG = logging.getLogger(__name__)
BASE_URL = 'http://{0}:1925/{1}/{2}'
TIMEOUT = 5.0
@@ -25,11 +26,13 @@ class Ph... | Reuse a session with a single cached connection | py |
diff --git a/tests/parser/features/test_bytes_map_keys.py b/tests/parser/features/test_bytes_map_keys.py
index <HASH>..<HASH> 100644
--- a/tests/parser/features/test_bytes_map_keys.py
+++ b/tests/parser/features/test_bytes_map_keys.py
@@ -61,6 +61,25 @@ def get(k: bytes <= 34) -> num:
assert c.get("a" * 34) == 678... | Adds test for keys with a very long byte length. | py |
diff --git a/src/infi/docopt_completion/common.py b/src/infi/docopt_completion/common.py
index <HASH>..<HASH> 100644
--- a/src/infi/docopt_completion/common.py
+++ b/src/infi/docopt_completion/common.py
@@ -7,13 +7,16 @@ class DocoptCompletionException(Exception):
def get_usage(cmd):
cmd_process = subprocess.Po... | Read usage incrementally while running to prevent pipe lock | py |
diff --git a/deployment/jailhost.py b/deployment/jailhost.py
index <HASH>..<HASH> 100644
--- a/deployment/jailhost.py
+++ b/deployment/jailhost.py
@@ -76,6 +76,8 @@ def reset_jails(confirm=True, keep_cleanser_master=True):
if not value_asbool(keep_cleanser_master):
jails.append('cleanser')
- for jail... | remove authorized keys for no longer existing key (they are regenerated for each new worker) | py |
diff --git a/example_project/settings.py b/example_project/settings.py
index <HASH>..<HASH> 100644
--- a/example_project/settings.py
+++ b/example_project/settings.py
@@ -94,7 +94,10 @@ INSTALLED_APPS = (
)
TEMPLATE_CONTEXT_PROCESSORS = (
+ # for django 1.2 or 1.3
'django.core.context_processors.auth',
+ ... | Add context processor toggle to support django <I> - <I> | py |
diff --git a/ergaleia/normalize_path.py b/ergaleia/normalize_path.py
index <HASH>..<HASH> 100644
--- a/ergaleia/normalize_path.py
+++ b/ergaleia/normalize_path.py
@@ -57,7 +57,7 @@ def normalize_path(path, filetype=None, has_filetype=True):
if len(parts) > 1:
if PY3:
s... | fix bug in normalize_path: TypeError: '_NamespacePath' object does not support indexing | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -4,7 +4,7 @@ from setuptools import setup
setup(
name='rocketchat_API',
- version='0.6.5',
+ version='0.6.6',
packages=['rocketchat_API', 'rocketchat_API.APIExceptions'],
url='https://github.com/jadolg/... | Add for merge with groups.listAll | py |
diff --git a/Brain/emucorebrain/data/carriers/string.py b/Brain/emucorebrain/data/carriers/string.py
index <HASH>..<HASH> 100644
--- a/Brain/emucorebrain/data/carriers/string.py
+++ b/Brain/emucorebrain/data/carriers/string.py
@@ -5,11 +5,11 @@ class StringCarrier(Carrier):
CARRIER_TYPE = 2
- def __init__(s... | Code Cleanup in string.py | py |
diff --git a/ospd/ospd.py b/ospd/ospd.py
index <HASH>..<HASH> 100644
--- a/ospd/ospd.py
+++ b/ospd/ospd.py
@@ -21,12 +21,6 @@
""" OSP Daemon core class.
"""
-
-# This is needed for older pythons as our current module is called the same
-# as the package we are in ...
-# Another solution would be to rename that file... | Drop obsoelete import from __future__ We are already in the future and using python 3 only. | py |
diff --git a/salt/pillar.py b/salt/pillar.py
index <HASH>..<HASH> 100644
--- a/salt/pillar.py
+++ b/salt/pillar.py
@@ -16,12 +16,13 @@ class Pillar(object):
'''
Read over the pillar top files and render the pillar data
'''
- def __init__(self, opts, grains):
+ def __init__(self, opts, grains, id_):... | Add id to pillar object | py |
diff --git a/bcbio/provenance/programs.py b/bcbio/provenance/programs.py
index <HASH>..<HASH> 100644
--- a/bcbio/provenance/programs.py
+++ b/bcbio/provenance/programs.py
@@ -9,6 +9,7 @@ import subprocess
from bcbio import utils
from bcbio.pipeline import config_utils, version
+from bcbio.log import logger
impor... | Better info for when jar_versioner can't determine version | py |
diff --git a/tests/test_discourse.py b/tests/test_discourse.py
index <HASH>..<HASH> 100644
--- a/tests/test_discourse.py
+++ b/tests/test_discourse.py
@@ -23,7 +23,6 @@
#
import datetime
-import json
import shutil
import sys
import tempfile | [tests] Fix importing PEP8 code style errors This patch fixes the next importing errors lighted by flake8 tool: * F<I> '<module>' imported but unused | py |
diff --git a/broadlink/__init__.py b/broadlink/__init__.py
index <HASH>..<HASH> 100644
--- a/broadlink/__init__.py
+++ b/broadlink/__init__.py
@@ -74,6 +74,7 @@ def get_devices() -> Dict[int, Tuple[Type[device], str, str]]:
0x62bc: (rm4, "RM4 mini", "Broadlink"),
0x62be: (rm4, "RM4C mini", "Broadlink"... | Add support for Broadlink RM4 pro (0x<I>b) (#<I>) | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -23,6 +23,7 @@ VERSION = versioneer.get_version()
NAME = 'ugali'
HERE = os.path.abspath(os.path.dirname(__file__))
URL = 'https://github.com/DarkEnergySurvey/ugali'
+URL = 'https://github.com/kadrlica/ugali'
DESC = "Ultra-... | Changing to tiny isochrones | py |
diff --git a/cmd2/cmd2.py b/cmd2/cmd2.py
index <HASH>..<HASH> 100644
--- a/cmd2/cmd2.py
+++ b/cmd2/cmd2.py
@@ -3503,11 +3503,13 @@ class Cmd(cmd.Cmd):
if rl_type != RlType.NONE:
last = None
for item in history:
- # readline only adds a single entry for multiple sequenti... | Adding individual lines of commands to readline history to match how it was entered | py |
diff --git a/cherrypy/lib/jsontools.py b/cherrypy/lib/jsontools.py
index <HASH>..<HASH> 100644
--- a/cherrypy/lib/jsontools.py
+++ b/cherrypy/lib/jsontools.py
@@ -1,9 +1,10 @@
+import sys
import cherrypy
-try:
+if sys.version_info >= (2, 6):
# Python 2.6: simplejson is part of the standard library
import j... | #<I>, fixed `json` import login in jsontools to make sure it's only loaded in python >= <I> (the python-json package used by sugar installs a json package in <I> but it's a complete different thing, making everything fail) | py |
diff --git a/tests/axes_test.py b/tests/axes_test.py
index <HASH>..<HASH> 100644
--- a/tests/axes_test.py
+++ b/tests/axes_test.py
@@ -23,8 +23,8 @@ from glyphsLib.classes import GSFont
def test_custom_parameter_vfo_current():
- """Tests get_regular_master when 'Variable Font Origin' custom parameter name
- ... | remove trailing whitespace to address linter fails on new tests | py |
diff --git a/hdl_toolkit/hdlObjects/value.py b/hdl_toolkit/hdlObjects/value.py
index <HASH>..<HASH> 100644
--- a/hdl_toolkit/hdlObjects/value.py
+++ b/hdl_toolkit/hdlObjects/value.py
@@ -85,7 +85,11 @@ class Value():
def __xor__(self, other):
raise NotImplementedError()
def __eq__(self, other):
- ... | __eq__ is _eq for Values else __eq__ | py |
diff --git a/goscale/plugins/calendar/cms_plugins.py b/goscale/plugins/calendar/cms_plugins.py
index <HASH>..<HASH> 100644
--- a/goscale/plugins/calendar/cms_plugins.py
+++ b/goscale/plugins/calendar/cms_plugins.py
@@ -20,7 +20,7 @@ class CalendarPlugin(GoscaleCMSPluginBase):
plugin_post_template = 'event.html'
... | goscale/plugins/calendar/cms_plugins.py | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -24,6 +24,7 @@ setup(
url="https://github.com/keleshev/schema",
py_modules=["schema"],
long_description=codecs.open("README.rst", "r", "utf-8").read(),
+ long_description_content_type='text/x-rst',
insta... | Set long_description_content_type (#<I>) This is so things like [pypi.org](<URL>) don't have to guess how to render the package description. | py |
diff --git a/tests/test_regressions.py b/tests/test_regressions.py
index <HASH>..<HASH> 100644
--- a/tests/test_regressions.py
+++ b/tests/test_regressions.py
@@ -134,3 +134,20 @@ def main():
import time
"""
assert isort.code(isort.code(isort.code(test_input))) == expected_output
+
+
+def test_no_extra_blank... | Add test for issue #<I> | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -16,7 +16,7 @@ setup(
description='Property types: LazyProperty, TypedProperty, SetOnceProperty',
url='https://github.org/nejucomo/{}'.format(pkg),
license='MIT (see LICENSE.txt)',
- version='0.2.dev0',
+ ... | Bump the version from ``<I>.dev0`` → ``<I>``. | py |
diff --git a/cli_helpers/tabular_output/terminaltables_adapter.py b/cli_helpers/tabular_output/terminaltables_adapter.py
index <HASH>..<HASH> 100644
--- a/cli_helpers/tabular_output/terminaltables_adapter.py
+++ b/cli_helpers/tabular_output/terminaltables_adapter.py
@@ -21,10 +21,7 @@ def adapter(data, headers, table_f... | Remove try/except that should never be hit. Increases code coverage. | py |
diff --git a/lib/python/voltcli/hostinfo.py b/lib/python/voltcli/hostinfo.py
index <HASH>..<HASH> 100644
--- a/lib/python/voltcli/hostinfo.py
+++ b/lib/python/voltcli/hostinfo.py
@@ -63,7 +63,7 @@ class Hosts(object):
connection_host = None
target_host = None
for host in self.hosts_by_id.valu... | ENG-<I>, allow user to stop node by IP address. (#<I>) If machine has multiple network interfaces, remember to add --externalinterface option in command line arguments to let voltdb know which one you are using. Otherwise voltdb would pick whatever comes first. Change-Id: Icb<I>bc<I>fd2ed0c<I>e<I>e<I>a6f3b<I>b3a9f... | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -1,11 +1,11 @@
from setuptools import setup
setup(name='ocdsmerge',
- version='0.1',
+ version='0.2',
description='OCDS Release Merge Library',
author='David Raznick',
author_email='mr.raznick@... | move repo over to opencontracting | py |
diff --git a/doc/source/conf.py b/doc/source/conf.py
index <HASH>..<HASH> 100644
--- a/doc/source/conf.py
+++ b/doc/source/conf.py
@@ -78,7 +78,7 @@ release = version.replace('.dev', '')
exclude_trees = []
# The reST default role (used for this markup: `text`) to use for all documents.
-default_role = py:obj
+defau... | Fixed typo in doc conf. Test auto RTD build on commit. | py |
diff --git a/tensorlayer/layers/embedding.py b/tensorlayer/layers/embedding.py
index <HASH>..<HASH> 100644
--- a/tensorlayer/layers/embedding.py
+++ b/tensorlayer/layers/embedding.py
@@ -284,10 +284,8 @@ class Word2vecEmbedding(Layer):
The nce_cost is returned only if the nce_loss is used.
"""
-... | refactoring: Deduplication | py |
diff --git a/rflint/common.py b/rflint/common.py
index <HASH>..<HASH> 100644
--- a/rflint/common.py
+++ b/rflint/common.py
@@ -6,7 +6,6 @@ WARNING="W"
class Rule(object):
# default severity; subclasses may override
severity = WARNING
- rule_type = "general"
output_format = "{severity}: {linenumber},... | removed unused "ruletype" parameter; added some docs | py |
diff --git a/molo/core/api/tests/test_importers.py b/molo/core/api/tests/test_importers.py
index <HASH>..<HASH> 100644
--- a/molo/core/api/tests/test_importers.py
+++ b/molo/core/api/tests/test_importers.py
@@ -234,10 +234,12 @@ class TestSiteSectionImporter(MoloTestCaseMixin, TestCase):
# TODO
# self... | Add additional refactor test for related sections | py |
diff --git a/Bigcommerce/api/__init__.py b/Bigcommerce/api/__init__.py
index <HASH>..<HASH> 100644
--- a/Bigcommerce/api/__init__.py
+++ b/Bigcommerce/api/__init__.py
@@ -6,7 +6,7 @@ import logging
from Bigcommerce.api.lib.connection import Connection
from resources import ResourceAccessor
-log = logging.getLogg... | Changed the logger name to Bigcommerce.api | py |
diff --git a/notrequests.py b/notrequests.py
index <HASH>..<HASH> 100644
--- a/notrequests.py
+++ b/notrequests.py
@@ -1,5 +1,4 @@
import base64
-import cookielib
import functools
import json as simplejson
import mimetools
@@ -7,9 +6,19 @@ import mimetypes
import os
import re
import ssl
+import sys
import urlli... | First go at writing conditional module imports. Eventually we will import the right things for each version of Python. Not complete. | py |
diff --git a/pyontutils/parcellation.py b/pyontutils/parcellation.py
index <HASH>..<HASH> 100755
--- a/pyontutils/parcellation.py
+++ b/pyontutils/parcellation.py
@@ -1170,7 +1170,7 @@ class Artifacts(Ont):
PaxRat4 = PaxRatAt(iri=ilxtr.paxr4,
label='The Rat Brain in Stereotaxic Coordinate... | parc pax4 fixed typo in synonyms | py |
diff --git a/pyte/streams.py b/pyte/streams.py
index <HASH>..<HASH> 100644
--- a/pyte/streams.py
+++ b/pyte/streams.py
@@ -137,21 +137,6 @@ class Stream(object):
self.parser = self._parser_fsm()
self.parser.send(None)
- def consume(self, char):
- """Consumes a single string character and a... | Removed deprecated Stream.consume | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -488,7 +488,7 @@ REQUIRES = [
'greenlet>=0.4.1',
'itsdangerous>=0.21',
'python-dateutil>=2.1',
- 'pytz==2013b',
+ 'pytz>=2013b',
'requests>=1.2.3',
'six>=1.5.2',
... | authorize more recent pytz than <I>b | py |
diff --git a/src/miqclient/api.py b/src/miqclient/api.py
index <HASH>..<HASH> 100644
--- a/src/miqclient/api.py
+++ b/src/miqclient/api.py
@@ -47,7 +47,7 @@ class API(object):
self._versions = {}
for version in data.pop("versions", []):
self._versions[version["name"]] = version["href"]
- ... | bug: Switch from iteritems to items Python 2 and 3 both support dict.items. By using items instead of iteritems the code will once more work on legacy and current Python implementations. Closes #<I>. | py |
diff --git a/cumulusci/tasks/github/release.py b/cumulusci/tasks/github/release.py
index <HASH>..<HASH> 100644
--- a/cumulusci/tasks/github/release.py
+++ b/cumulusci/tasks/github/release.py
@@ -18,7 +18,7 @@ class CreateRelease(BaseGithubTask):
},
"version_id": {
"description": "The Subs... | don't require version_id on CreateRelease | py |
diff --git a/pygsp/operators.py b/pygsp/operators.py
index <HASH>..<HASH> 100644
--- a/pygsp/operators.py
+++ b/pygsp/operators.py
@@ -41,17 +41,25 @@ def compute_fourier_basis(G, exact=None, cheb_order=30, **kwargs):
else:
if not hasattr(G, L):
raise AttributeError("Graph Laplacian is missin... | compute fourier basis and full eigen | py |
diff --git a/dipper/sources/ZFIN.py b/dipper/sources/ZFIN.py
index <HASH>..<HASH> 100644
--- a/dipper/sources/ZFIN.py
+++ b/dipper/sources/ZFIN.py
@@ -557,7 +557,7 @@ class ZFIN(Source):
#Is the reverse complement of the morpholino sequence the target sequence or, like miRNAs, is there
... | ZFIN.py: Commit branch test. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -66,7 +66,7 @@ class FFBuildExt(build_ext):
args = ["-O3", '-fno-strict-aliasing', '-Wno-error']
for ext in self.extensions:
ext.extra_compile_args = args
- super(FFBuildExt, self).bui... | build_ext is not object derived. | py |
diff --git a/deis/settings.py b/deis/settings.py
index <HASH>..<HASH> 100644
--- a/deis/settings.py
+++ b/deis/settings.py
@@ -4,6 +4,8 @@ Django settings for the Deis project.
from __future__ import unicode_literals
import os.path
+import random
+import string
import sys
import tempfile
@@ -303,6 +305,9 @@ DAT... | fix(controller): allow multiple unit tests with random db name | py |
diff --git a/tk_tools/groups.py b/tk_tools/groups.py
index <HASH>..<HASH> 100644
--- a/tk_tools/groups.py
+++ b/tk_tools/groups.py
@@ -6,7 +6,11 @@ import calendar
from collections import OrderedDict
import xlrd
-from tk_tools.images import minus
+
+try:
+ from tk_tools.images import minus
+except ImportError:
+... | Adding try/except block so that autodoc works correctly | py |
diff --git a/switchboard/conditions.py b/switchboard/conditions.py
index <HASH>..<HASH> 100644
--- a/switchboard/conditions.py
+++ b/switchboard/conditions.py
@@ -12,7 +12,6 @@ switchboard.conditions
import datetime
import itertools
-from webob import Request
from formencode import Invalid
from .models import E... | Use a more generic check for request objects. | py |
diff --git a/genepattern/sessions.py b/genepattern/sessions.py
index <HASH>..<HASH> 100644
--- a/genepattern/sessions.py
+++ b/genepattern/sessions.py
@@ -100,6 +100,12 @@ session = SessionList()
def get_session(index):
- """genepattern.get_session shim added for the purposes of backward compatibility"""
+ "... | Added register_session shim | py |
diff --git a/UWG/UWG.py b/UWG/UWG.py
index <HASH>..<HASH> 100644
--- a/UWG/UWG.py
+++ b/UWG/UWG.py
@@ -7,7 +7,7 @@ Version 4.2
Original Author: B. Bueno
Edited by A. Nakano & Lingfu Zhang
Modified by Joseph Yang (joeyang@mit.edu) - May, 2016
-Translated to Python by Chris Mackey (chris@mackeyarchitecture.com) - May,... | Making Sure We Credit the Right Person :) | py |
diff --git a/salt/modules/file.py b/salt/modules/file.py
index <HASH>..<HASH> 100644
--- a/salt/modules/file.py
+++ b/salt/modules/file.py
@@ -1651,8 +1651,13 @@ def replace(path,
with salt.utils.fopen(path,
mode='r',
buffering=bufsize) as r_file:
+... | Fixing issue where count was being ignored by file.replace Fixes #<I> | py |
diff --git a/d1_libclient_python/src/d1_client/mnclient.py b/d1_libclient_python/src/d1_client/mnclient.py
index <HASH>..<HASH> 100644
--- a/d1_libclient_python/src/d1_client/mnclient.py
+++ b/d1_libclient_python/src/d1_client/mnclient.py
@@ -193,15 +193,14 @@ class MemberNodeClient(d1baseclient.DataONEBaseClient):
... | Put the newPid in the Param part (fields) instead of the header. | py |
diff --git a/telethon/client/auth.py b/telethon/client/auth.py
index <HASH>..<HASH> 100644
--- a/telethon/client/auth.py
+++ b/telethon/client/auth.py
@@ -427,6 +427,23 @@ class AuthMethods:
if me:
return me
+ # To prevent abuse, one has to try to sign in before signing up. This
+ ... | Call sign_in during sign_up if needed to send the code | py |
diff --git a/server/workbench.py b/server/workbench.py
index <HASH>..<HASH> 100644
--- a/server/workbench.py
+++ b/server/workbench.py
@@ -60,9 +60,9 @@ class WorkBench():
sample = self.data_store.get_sample(md5_or_filename)
return {'sample': sample} if sample else None
- def has_sample(self, md5... | removing filename option for have_sample; also changing has_sample to have_sample Former-commit-id: bcd2af0d<I>bc<I>c<I>ed4f9da1e<I>c<I> | py |
diff --git a/tests/integration/cloud/helpers/virtualbox.py b/tests/integration/cloud/helpers/virtualbox.py
index <HASH>..<HASH> 100644
--- a/tests/integration/cloud/helpers/virtualbox.py
+++ b/tests/integration/cloud/helpers/virtualbox.py
@@ -113,7 +113,8 @@ class VirtualboxCloudTestCase(integration.ShellCase):
... | Force actions in tests Otherwise there is always a confirmation prompt... ain't nobody got time fo' dat! Related to saltstack/salt#<I> Saltcloud virtualbox provider | py |
diff --git a/kconfiglib.py b/kconfiglib.py
index <HASH>..<HASH> 100644
--- a/kconfiglib.py
+++ b/kconfiglib.py
@@ -1867,6 +1867,11 @@ def _str_val(obj):
symbol), it must be a Symbol."""
return obj if isinstance(obj, str) else obj.get_value()
+def _sym_str_string(sym_or_str):
+ if isinstance(sym_or_str, s... | Move _sym_str_string() to a more logical location. | py |
diff --git a/bokeh/glyphs.py b/bokeh/glyphs.py
index <HASH>..<HASH> 100644
--- a/bokeh/glyphs.py
+++ b/bokeh/glyphs.py
@@ -124,7 +124,7 @@ class Glyph(HasProps):
# Use the all_attributes variable to generate the list...
# TODO: should we use setters to detect when something has been overriden
... | adding explicit Color attribute to the Rects glyph, so the example will work; need to figure out why this is not being picked up from the Glyph base class | py |
diff --git a/ReText/__init__.py b/ReText/__init__.py
index <HASH>..<HASH> 100644
--- a/ReText/__init__.py
+++ b/ReText/__init__.py
@@ -12,6 +12,11 @@ app_version = "4.0 (Git)"
settings = QSettings('ReText project', 'ReText')
+if not str(settings.fileName()).endswith('.conf'):
+ # We are on Windows probably
+ setti... | Use IniFormat of QSettings on Windows. Ticket <I>. | py |
diff --git a/src/_thread/__init__.py b/src/_thread/__init__.py
index <HASH>..<HASH> 100644
--- a/src/_thread/__init__.py
+++ b/src/_thread/__init__.py
@@ -3,10 +3,7 @@ import sys
__future_module__ = True
if sys.version_info[0] < 3:
- try:
- from thread import *
- except ImportError:
- from dummy... | Remove import of dummy_thread from _thread module (issue #<I>) | py |
diff --git a/GPyOpt/core/evaluators/batch_local_penalization.py b/GPyOpt/core/evaluators/batch_local_penalization.py
index <HASH>..<HASH> 100644
--- a/GPyOpt/core/evaluators/batch_local_penalization.py
+++ b/GPyOpt/core/evaluators/batch_local_penalization.py
@@ -56,6 +56,8 @@ def estimate_L(model,bounds,storehistory=Tr... | Fix the bug with respect to scipy <I> (#<I>) The LP optimization fails when scipy upgrades to <I> | py |
diff --git a/test/test_ssl.py b/test/test_ssl.py
index <HASH>..<HASH> 100644
--- a/test/test_ssl.py
+++ b/test/test_ssl.py
@@ -454,14 +454,14 @@ class TestSSL(unittest.TestCase):
raise SkipTest("No hosts entry for 'server'. Cannot validate "
"hostname in the certificate")
+ ... | PYTHON-<I> - Can't test loading system CA certs on Windows. | py |
diff --git a/lib/git/cmd.py b/lib/git/cmd.py
index <HASH>..<HASH> 100644
--- a/lib/git/cmd.py
+++ b/lib/git/cmd.py
@@ -215,6 +215,7 @@ class Git(object):
stdin=istream,
stderr=subprocess.PIPE,
stdout=subprocess.PIPE,
+ ... | cmd: By default, on linux, the parent file handles will be closed to leave the child less cluttered, and make it easier to debug as it will only have the file descriptors we set. It appears to be more stable regarding the stdin-is-closed-but-child-doesn't-realize-this issue | py |
diff --git a/GSSHAPY/setup.py b/GSSHAPY/setup.py
index <HASH>..<HASH> 100644
--- a/GSSHAPY/setup.py
+++ b/GSSHAPY/setup.py
@@ -3,7 +3,7 @@ import os
from setuptools import setup, find_packages
requires = [
- 'sqlalchemy>=0.7'
+ 'sqlalchemy>=0.8'
]
setup(name='gsshapy', | Started version <I> branch. | py |
diff --git a/dedupe/core.py b/dedupe/core.py
index <HASH>..<HASH> 100644
--- a/dedupe/core.py
+++ b/dedupe/core.py
@@ -181,7 +181,8 @@ def blockedPairs(blocks) :
block_pairs = itertools.combinations(block, 2)
for pair in block_pairs :
- yield pair
+ if (pair[0]['dataset'] != pa... | Generate Blocked Pairs correctly so that both the records are from differet datasets | py |
diff --git a/programs/thellier_gui.py b/programs/thellier_gui.py
index <HASH>..<HASH> 100755
--- a/programs/thellier_gui.py
+++ b/programs/thellier_gui.py
@@ -3616,14 +3616,15 @@ You can combine multiple measurement files into one measurement file using Pmag
#==================================================
... | fix minor bugs preventing users from seeing anisotropy log | py |
diff --git a/jarn/mkrelease/mkrelease.py b/jarn/mkrelease/mkrelease.py
index <HASH>..<HASH> 100644
--- a/jarn/mkrelease/mkrelease.py
+++ b/jarn/mkrelease/mkrelease.py
@@ -101,6 +101,7 @@ class Defaults(object):
def __init__(self, server):
self.sign = parser.getboolean(server, 'sign', None)... | Allow to set register=no in ~/.pypirc. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -3,11 +3,15 @@ from setuptools import setup, find_packages
setup(
name = 'django-subdomains',
- version = '1.1.1',
+ version = '1.1.2',
url = 'http://github.com/tkaemming/django-subdomains/',
+ author = '... | setup.py changes for pypi | py |
diff --git a/tests/nipaptest.py b/tests/nipaptest.py
index <HASH>..<HASH> 100755
--- a/tests/nipaptest.py
+++ b/tests/nipaptest.py
@@ -1540,6 +1540,40 @@ class TestAddressListing(unittest.TestCase):
+ def test_invalid_search_string(self):
+ """ Test error handling of prefix smart search
+ """
+
+... | backend: Test case for unclosed search strings Added test cases for error handling in the smart_search functions when provided a search string with unclosed quotes. | py |
diff --git a/holoviews/plotting/raster.py b/holoviews/plotting/raster.py
index <HASH>..<HASH> 100644
--- a/holoviews/plotting/raster.py
+++ b/holoviews/plotting/raster.py
@@ -24,6 +24,12 @@ class RasterPlot(ElementPlot):
style_opts = ['alpha', 'cmap', 'interpolation', 'visible',
'filterrad', 'or... | Enabled inversion of yaxis for Raster | py |
diff --git a/src/psd_tools2/psd/base.py b/src/psd_tools2/psd/base.py
index <HASH>..<HASH> 100644
--- a/src/psd_tools2/psd/base.py
+++ b/src/psd_tools2/psd/base.py
@@ -66,6 +66,34 @@ class BaseElement(object):
p.pretty(value)
p.breakable('')
+ def _find(self, condition=None):
+ ... | Add _find for debugging | py |
diff --git a/mixbox/fields.py b/mixbox/fields.py
index <HASH>..<HASH> 100644
--- a/mixbox/fields.py
+++ b/mixbox/fields.py
@@ -101,7 +101,7 @@ class TypedField(object):
belongs to..
owner: The TypedField owner class.
"""
- if not instance:
+ if instance is None:
... | Fixed recursion errors with TypedFields and MutableSequence objects. | py |
diff --git a/federation/outbound.py b/federation/outbound.py
index <HASH>..<HASH> 100644
--- a/federation/outbound.py
+++ b/federation/outbound.py
@@ -141,15 +141,15 @@ def handle_send(
try:
payload = handle_create_payload(entity, author_user, protocol, parent_user=parent_user)
... | Make AP 'to' always a list | py |
diff --git a/cassandra/cluster.py b/cassandra/cluster.py
index <HASH>..<HASH> 100644
--- a/cassandra/cluster.py
+++ b/cassandra/cluster.py
@@ -2875,7 +2875,10 @@ class ResponseFuture(object):
"Got unexpected response when preparing statement "
"on host %s: %s" % (self._current_... | Convert errors on re-prepare to API exceptions | py |
diff --git a/buildbot/status/builder.py b/buildbot/status/builder.py
index <HASH>..<HASH> 100644
--- a/buildbot/status/builder.py
+++ b/buildbot/status/builder.py
@@ -12,11 +12,7 @@ import os, shutil, sys, re, urllib, itertools
import gc
from cPickle import load, dump
from cStringIO import StringIO
-
-try: # bz2 is ... | Remove bz2.BZ2File workaround for versions less than python-<I> | py |
diff --git a/tests/test_pykakasi.py b/tests/test_pykakasi.py
index <HASH>..<HASH> 100644
--- a/tests/test_pykakasi.py
+++ b/tests/test_pykakasi.py
@@ -14,6 +14,9 @@ def test_kakasi_hepburn():
(u"にゃ", "nya"),
(u"っき", "kki"),
(u"っふぁ", "ffa"),
+ (u"キャ", "kya"),
+ (u"キュ", "kyu"),
+ ... | Add test for kya, kyu and kyo | py |
diff --git a/src/import_exchange_rates.py b/src/import_exchange_rates.py
index <HASH>..<HASH> 100644
--- a/src/import_exchange_rates.py
+++ b/src/import_exchange_rates.py
@@ -81,11 +81,13 @@ def __save_rates(config, latest_rates):
currency = book.currencies.get(mnemonic=rate)
amount = rates[ra... | note about the potential destination for the exchange rate price | py |
diff --git a/multiqc/modules/pangolin/pangolin.py b/multiqc/modules/pangolin/pangolin.py
index <HASH>..<HASH> 100644
--- a/multiqc/modules/pangolin/pangolin.py
+++ b/multiqc/modules/pangolin/pangolin.py
@@ -41,7 +41,7 @@ class MultiqcModule(BaseMultiqcModule):
if len(self.pangolin_data) == 0:
rais... | Forgot to turn auto-format on save back on again | py |
diff --git a/satpy/modifiers/_crefl.py b/satpy/modifiers/_crefl.py
index <HASH>..<HASH> 100644
--- a/satpy/modifiers/_crefl.py
+++ b/satpy/modifiers/_crefl.py
@@ -118,7 +118,7 @@ class ReflectanceCorrector(ModifierBase, DataDownloadMixin):
@staticmethod
def _read_var_from_hdf4_file(local_filename, var_name):
... | Fix typo in crefl DEM reading | py |
diff --git a/odl/contrib/datasets/images/cambridge.py b/odl/contrib/datasets/images/cambridge.py
index <HASH>..<HASH> 100644
--- a/odl/contrib/datasets/images/cambridge.py
+++ b/odl/contrib/datasets/images/cambridge.py
@@ -26,7 +26,7 @@ __all__ = ('brain_phantom', 'resolution_phantom', 'building', 'rings',
DATA_SU... | fix broken url (#<I>) | py |
diff --git a/rshell/main.py b/rshell/main.py
index <HASH>..<HASH> 100755
--- a/rshell/main.py
+++ b/rshell/main.py
@@ -2652,7 +2652,7 @@ def main():
import termios
stdin_fd = sys.stdin.fileno()
save_settings = termios.tcgetattr(stdin_fd)
- except ImportError:
+ except:
pass
... | Allow tcgetattr call to fail as well. This can happen if rshell's stdin is redirected from /dev/null which is fine if rshell is being used in a non-interactive manner. | py |
diff --git a/salt/modules/glance.py b/salt/modules/glance.py
index <HASH>..<HASH> 100644
--- a/salt/modules/glance.py
+++ b/salt/modules/glance.py
@@ -323,13 +323,10 @@ def image_delete(id=None, name=None, profile=None): # pylint: disable=C0103
'result': False,
'comment': str(forbidden)
... | minor improvement on the returned comment of image_delete() | py |
diff --git a/test/test_storage.py b/test/test_storage.py
index <HASH>..<HASH> 100644
--- a/test/test_storage.py
+++ b/test/test_storage.py
@@ -6,8 +6,10 @@ import re
import time
from cloudvolume.storage import Storage
+from cloudvolume import exceptions
from layer_harness import delete_layer, TEST_NUMBER
+
#TOD... | fixtest: catch UnsupportedCompressionType instead of TypeError | py |
diff --git a/flask_jwt_extended/utils.py b/flask_jwt_extended/utils.py
index <HASH>..<HASH> 100644
--- a/flask_jwt_extended/utils.py
+++ b/flask_jwt_extended/utils.py
@@ -369,7 +369,7 @@ def unset_jwt_cookies(response, domain=None):
def unset_access_cookies(response, domain=None):
"""
- Modifiy a Flask Respo... | Fix reversed docstrings for unset cookie funcs (#<I>) | py |
diff --git a/saltcloud/clouds/openstack.py b/saltcloud/clouds/openstack.py
index <HASH>..<HASH> 100644
--- a/saltcloud/clouds/openstack.py
+++ b/saltcloud/clouds/openstack.py
@@ -410,11 +410,15 @@ def create(vm_):
not_ready = False
break
+ if running and private:
+ ... | fixing logic to wait for private IPs | py |
diff --git a/tests/test_create.py b/tests/test_create.py
index <HASH>..<HASH> 100644
--- a/tests/test_create.py
+++ b/tests/test_create.py
@@ -1,6 +1,10 @@
import activegit
import pytest
-def test_creation():
+def test_nocreation():
with pytest.raises(TypeError):
activegit.ActiveGit()
+
+def test_crea... | adding test for successful initial ag repo | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.