diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/hypercorn/config.py b/hypercorn/config.py
index <HASH>..<HASH> 100644
--- a/hypercorn/config.py
+++ b/hypercorn/config.py
@@ -177,14 +177,14 @@ class Config:
host, port = value[0], int(value[1])
except (ValueError, IndexError):
host, port = bind, 8... | Bugfix variable referenced before assignment Issue from 2ca<I>e<I>fd<I>cfea<I>e<I>c<I>fed2a3 | py |
diff --git a/fabfile.py b/fabfile.py
index <HASH>..<HASH> 100644
--- a/fabfile.py
+++ b/fabfile.py
@@ -90,9 +90,8 @@ def deploy(update=False):
def load_badges():
- put('~/colab/badges', '~/colab/www/static/media/badges')
-
with cd('~/colab/src/'), prefix(WORKON_COLAB):
+ run('cp ~/colab/badges ~/col... | Minor fix on load_badges fab | py |
diff --git a/yule_log/fire.py b/yule_log/fire.py
index <HASH>..<HASH> 100644
--- a/yule_log/fire.py
+++ b/yule_log/fire.py
@@ -54,7 +54,7 @@ def yule_log(screen):
bg=screen.colours >= 256),
0,
speed=1,
- ),
+ transparent=False),
Print(sc... | (fix) fire not showing Asciimatics must have changed the Fire API, if `transparent=False` is not set then no Fire is shown. > Fixed by adding transparent option to `Fire` initializer. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -12,7 +12,7 @@ setup(
},
extras_require = {
'postgresql': ['psycopg2'],
- 'cassandra': ['cassandra-driver', 'blist'],
+ 'cassandra': ['cassandra-driver'],
},
... | Removed Python <I> from classifiers | py |
diff --git a/OpenSSL/crypto.py b/OpenSSL/crypto.py
index <HASH>..<HASH> 100644
--- a/OpenSSL/crypto.py
+++ b/OpenSSL/crypto.py
@@ -39,7 +39,7 @@ def _exception_from_context_error(exception_type, store_ctx):
exception.
When a call to native OpenSSL X509_verify_cert fails, additonal information
- about the... | I think this word choice makes more sense. | py |
diff --git a/nianalysis/requirements.py b/nianalysis/requirements.py
index <HASH>..<HASH> 100644
--- a/nianalysis/requirements.py
+++ b/nianalysis/requirements.py
@@ -11,12 +11,14 @@ def split_version(version_str):
logger.debug("splitting version string '{}'"
.format(version_str))
try:
- ... | fixed up problems with preprocessing pipeline output spec and requirements | py |
diff --git a/jss/exceptions.py b/jss/exceptions.py
index <HASH>..<HASH> 100644
--- a/jss/exceptions.py
+++ b/jss/exceptions.py
@@ -34,22 +34,29 @@ class JSSPrefsMissingKeyError(JSSError):
pass
-class JSSGetError(JSSError):
+class RequestError(JSSError):
+
+ def __init__(self, *args, **kwargs):
+ supe... | Add new RequestError exception subclass for others to use Mostly just to keep pylint happy | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -18,11 +18,16 @@ class RunTests(Command):
raise SystemExit(errno)
+with open('README.md') as readme:
+ long_description = readme.read()
+
+
setup(
name='gis_metadata_parser',
description='Parser for ... | Add README as long_description | py |
diff --git a/cmsplugin_zinnia/migrations/0002_query_entries_plugin.py b/cmsplugin_zinnia/migrations/0002_query_entries_plugin.py
index <HASH>..<HASH> 100644
--- a/cmsplugin_zinnia/migrations/0002_query_entries_plugin.py
+++ b/cmsplugin_zinnia/migrations/0002_query_entries_plugin.py
@@ -1,6 +1,5 @@
from south.db import... | pyflakes cleanup on migration <I> | py |
diff --git a/pandas/core/groupby.py b/pandas/core/groupby.py
index <HASH>..<HASH> 100644
--- a/pandas/core/groupby.py
+++ b/pandas/core/groupby.py
@@ -162,6 +162,13 @@ class Grouper(object):
sort : boolean, default to False
whether to sort the resulting labels
+ additional kwargs to control time-like... | DOC: add to docstring of core/groupby/Grouper | py |
diff --git a/pyghmi/ipmi/oem/lenovo/handler.py b/pyghmi/ipmi/oem/lenovo/handler.py
index <HASH>..<HASH> 100755
--- a/pyghmi/ipmi/oem/lenovo/handler.py
+++ b/pyghmi/ipmi/oem/lenovo/handler.py
@@ -342,7 +342,8 @@ class OEMHandler(generic.OEMHandler):
# to strip \x00 from the end of text strings. Work ar... | Handle missing UUID Some TSM FRU elements do not have a FRU entry. They may be marked by all spaces, all 0xff, or all 0x<I>. Skip UUID if it is one of these obviously invalid values. Change-Id: I<I>c8bbe3c<I>bcb6d<I>b<I>a2ff2c<I>ae<I>ec | py |
diff --git a/bcbio/pipeline/main.py b/bcbio/pipeline/main.py
index <HASH>..<HASH> 100644
--- a/bcbio/pipeline/main.py
+++ b/bcbio/pipeline/main.py
@@ -375,6 +375,7 @@ def chipseqpipeline(config, run_info_yaml, parallel, dirs, samples):
samples = run_parallel("upload_samples", samples)
for samp... | Add finished message to ChIP-seq pipeline. | py |
diff --git a/bin/release.py b/bin/release.py
index <HASH>..<HASH> 100755
--- a/bin/release.py
+++ b/bin/release.py
@@ -197,7 +197,7 @@ def upload_javadocs(base_dir, version):
version_short = get_version_major_minor(version)
os.mkdir(version_short)
- os.rename("apidocs", "%s/apidocs" % version_short)
+ os.re... | ISPN-<I> <I> apidocs missing from website | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -4,7 +4,7 @@ import sys
from setuptools import setup, find_packages
-install_requires = ['PyMySQL<=0.6.3']
+install_requires = ['PyMySQL<=0.6.4']
PY_VER = sys.version_info | bump pymysql version | py |
diff --git a/tests/settings/default.py b/tests/settings/default.py
index <HASH>..<HASH> 100644
--- a/tests/settings/default.py
+++ b/tests/settings/default.py
@@ -1,5 +1,7 @@
from os.path import join as pjoin, abspath, dirname, pardir
+import django
+
SECRET_KEY = 'SECRET'
PROJ_ROOT = abspath(pjoin(dirname(__file_... | Fix installed apps in tests for Django < <I> | py |
diff --git a/discord/ext/commands/context.py b/discord/ext/commands/context.py
index <HASH>..<HASH> 100644
--- a/discord/ext/commands/context.py
+++ b/discord/ext/commands/context.py
@@ -81,8 +81,36 @@ class Context:
self.subcommand_passed = attrs.pop('subcommand_passed', None)
@asyncio.coroutine
- d... | [commands] Context.invoke just invokes a command with no special case. Previously it would both forward and invoke depending if there were no kwargs given. Now it just passes in the arguments to another command without doing any special casing on the no argument case. | py |
diff --git a/astrodbkit/__init__.py b/astrodbkit/__init__.py
index <HASH>..<HASH> 100644
--- a/astrodbkit/__init__.py
+++ b/astrodbkit/__init__.py
@@ -1,2 +1,2 @@
from pkg_resources import get_distribution
-__version__ = '0.3.0.post6'
\ No newline at end of file
+__version__ = '0.3.0.post7'
\ No newline at end of file | Updated version to <I>.post7 | py |
diff --git a/libpebble2/util/hardware.py b/libpebble2/util/hardware.py
index <HASH>..<HASH> 100644
--- a/libpebble2/util/hardware.py
+++ b/libpebble2/util/hardware.py
@@ -41,6 +41,7 @@ class PebbleHardware(object):
SPALDING_EVT: 'chalk',
SPALDING: 'chalk',
SILK_EVT: 'diorite',
+ ROBERT... | Add ROBERT_EVT to platforms | py |
diff --git a/tests/test_patterns.py b/tests/test_patterns.py
index <HASH>..<HASH> 100644
--- a/tests/test_patterns.py
+++ b/tests/test_patterns.py
@@ -1,6 +1,32 @@
+import pytest
+
from bottery import patterns
+@pytest.fixture
+def test_handler():
+ class TestHandler(patterns.BaseHandler):
+ def clean_te... | Add tests to check full_clean behaviour on patterns | py |
diff --git a/replaylib/stubs.py b/replaylib/stubs.py
index <HASH>..<HASH> 100644
--- a/replaylib/stubs.py
+++ b/replaylib/stubs.py
@@ -17,11 +17,11 @@ def hash_request(header_lines, body_lines):
class RecordingHTTPResponse(httplib.HTTPResponse):
def __init__(self):
- self.record_handle = replaylib.curren... | fix api usage in recording stub | py |
diff --git a/cbinterface/__init__.py b/cbinterface/__init__.py
index <HASH>..<HASH> 100644
--- a/cbinterface/__init__.py
+++ b/cbinterface/__init__.py
@@ -399,7 +399,8 @@ if 'https_proxy' in os.environ:
def handle_proxy(profile):
creds = auth.CredentialStore("response").get_credentials(profile=profile)
- if ... | Added HTTPS_PROXY os.environ check before manupulating variable. | py |
diff --git a/xarray/tests/test_backends.py b/xarray/tests/test_backends.py
index <HASH>..<HASH> 100644
--- a/xarray/tests/test_backends.py
+++ b/xarray/tests/test_backends.py
@@ -1239,7 +1239,7 @@ class NetCDF4Base(CFEncodedBase):
assert_equal(actual["x"], expected["x"])
# check that... | MAINT: IOError -> OSError (#<I>) | py |
diff --git a/build/zip.py b/build/zip.py
index <HASH>..<HASH> 100644
--- a/build/zip.py
+++ b/build/zip.py
@@ -5,6 +5,7 @@ import sys
import zipfile
LINUX_BINARIES_TO_STRIP = [
+ 'chromedriver',
'electron',
'libffmpeg.so',
'libnode.so'
@@ -17,6 +18,8 @@ EXTENSIONS_TO_SKIP = [
PATHS_TO_SKIP = [
'angled... | chore: remove duplicate and un-needed files from dist zips (#<I>) * chore: remove duplicate and un-needed files from dist zips * Strip chromedriver binaries Also, fix path for files to skip * Don't strip mksnapshot for now Mksnapshot needs special handling for arm/arm<I> because there is both an x<I> and a... | py |
diff --git a/ioc_writer/ioc_api.py b/ioc_writer/ioc_api.py
index <HASH>..<HASH> 100644
--- a/ioc_writer/ioc_api.py
+++ b/ioc_writer/ioc_api.py
@@ -47,7 +47,7 @@ date_regex = r'^[12][9012][0-9]{2}-[0-1][0-9]-[0-3][0-9]T[0-2][0-9]:[0-6][0-9]:[
class IOCParseError(Exception):
pass
... | IOC class should inherit from object. | py |
diff --git a/great_expectations/cli/datasource.py b/great_expectations/cli/datasource.py
index <HASH>..<HASH> 100644
--- a/great_expectations/cli/datasource.py
+++ b/great_expectations/cli/datasource.py
@@ -162,8 +162,8 @@ To learn more: <blue>https://great-expectations.readthedocs.io/en/latest/intro.h
... | Updated the instructions to open the data document | py |
diff --git a/src/scs_core/gas/afe_calib.py b/src/scs_core/gas/afe_calib.py
index <HASH>..<HASH> 100644
--- a/src/scs_core/gas/afe_calib.py
+++ b/src/scs_core/gas/afe_calib.py
@@ -165,11 +165,47 @@ class AFECalib(PersistentJSONable):
if sensor_calib is None:
continue
- names.ap... | Upgraded afe_baseline utility. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -27,7 +27,7 @@ tests_require = [
'pytest-cache>=1.0',
'pytest-cov>=1.8.0',
'pytest-pep8>=1.0.6',
- 'pytest-reana>=0.5.0.dev20181119',
+ 'pytest-reana>=0.5.0.dev20181203',
'pytest>=3.8'
] | installation: bump pytest-reana version | py |
diff --git a/KISSmetrics/client_compat.py b/KISSmetrics/client_compat.py
index <HASH>..<HASH> 100644
--- a/KISSmetrics/client_compat.py
+++ b/KISSmetrics/client_compat.py
@@ -17,6 +17,7 @@ class ClientCompat:
Interface only exists for compatibility and will not be supported
in the future.
+
"""... | Made final docstring lines consistency with PEP<I> recommendation. | py |
diff --git a/src/crate/crash/command.py b/src/crate/crash/command.py
index <HASH>..<HASH> 100644
--- a/src/crate/crash/command.py
+++ b/src/crate/crash/command.py
@@ -412,12 +412,16 @@ def get_stdin():
"""
# use select.select to check if input is available
# otherwise sys.stdin would block
- while sys... | support piping files into crash on windows | py |
diff --git a/metanl/japanese.py b/metanl/japanese.py
index <HASH>..<HASH> 100644
--- a/metanl/japanese.py
+++ b/metanl/japanese.py
@@ -159,6 +159,15 @@ class MeCabWrapper(ProcessWrapper):
record[2] in STOPWORD_CATEGORIES or
(common_words and record[7] in STOPWORD_ROOTS))
+class NoSto... | add a stopword-less Japanese processor for ConceptNet to use | py |
diff --git a/marshmallow_sqlalchemy/convert.py b/marshmallow_sqlalchemy/convert.py
index <HASH>..<HASH> 100644
--- a/marshmallow_sqlalchemy/convert.py
+++ b/marshmallow_sqlalchemy/convert.py
@@ -60,12 +60,11 @@ class ModelConverter(object):
if not include_fk:
# Only skip a column i... | refactored column foreign key check to use for...else | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -21,7 +21,6 @@ install_requires = [
'django-background-task==0.1.6',
'django-fsm==2.1.0',
'django-uuidfield==0.5.0',
- 'django-sshkey>=2.2.0',
'django-taggit==0.12'
]
@@ -40,9 +39,6 @@ setup(
... | Remove dependency on django-sshkey | py |
diff --git a/safeoutput/__init__.py b/safeoutput/__init__.py
index <HASH>..<HASH> 100644
--- a/safeoutput/__init__.py
+++ b/safeoutput/__init__.py
@@ -24,7 +24,8 @@ class _SafeOutputWrapper(object):
self.dst = dst
def __enter__(self):
- self.fd.__enter__()
+ if self.dst:
+ self.... | If we are dealing with stdout, don’t propagate close. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -83,9 +83,9 @@ setup(
'': ['*.txt', '*.md', '*.rst', '*.json', '*.conf', '*.html',
'*.css', '*.ico', '*.png', 'LICENSE', 'LEGAL', '*.sovrin']},
include_package_data=True,
- install_requires=['sov... | Versioning fix (#<I>) | py |
diff --git a/skorch/callbacks/scoring.py b/skorch/callbacks/scoring.py
index <HASH>..<HASH> 100644
--- a/skorch/callbacks/scoring.py
+++ b/skorch/callbacks/scoring.py
@@ -2,12 +2,18 @@
from contextlib import contextmanager
from contextlib import suppress
+from distutils.version import LooseVersion
from functools i... | Move away from .scoring imports (#<I>) * Move away from .scoring imports Use LooseVersion | py |
diff --git a/salt/states/boto_secgroup.py b/salt/states/boto_secgroup.py
index <HASH>..<HASH> 100644
--- a/salt/states/boto_secgroup.py
+++ b/salt/states/boto_secgroup.py
@@ -172,6 +172,8 @@ def present(
ret['result'] = _ret['result']
if ret['result'] is False:
return ret
+ elif re... | Modifying boto_secgroup.present state to not perform tag/ingress/egress/attribute checks if the security group does not exist when test=True Adding test in _tags_present to verify a security group object is returned before attempting to check tags | py |
diff --git a/cashaddress/convert.py b/cashaddress/convert.py
index <HASH>..<HASH> 100644
--- a/cashaddress/convert.py
+++ b/cashaddress/convert.py
@@ -97,8 +97,11 @@ class Address:
if address_string.upper() != address_string and address_string.lower() != address_string:
raise InvalidAddress('Cash ... | Handle more than one colons in bch address | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -24,9 +24,9 @@ class PyTest(TestCommand):
setup(
name='graphene',
- version='0.4.3',
+ version='0.5.0',
- description='Graphene: Python DSL for GraphQL',
+ description='GraphQL Framework for Python',
... | Updated version to <I> | py |
diff --git a/glances/exports/glances_export.py b/glances/exports/glances_export.py
index <HASH>..<HASH> 100644
--- a/glances/exports/glances_export.py
+++ b/glances/exports/glances_export.py
@@ -177,7 +177,7 @@ class GlancesExport(object):
if isinstance(stats, dict):
# Stats is a dict
... | Add a check on export stats | py |
diff --git a/salt/utils/aws.py b/salt/utils/aws.py
index <HASH>..<HASH> 100644
--- a/salt/utils/aws.py
+++ b/salt/utils/aws.py
@@ -87,7 +87,7 @@ def creds(provider):
proxies={'http': ''}, timeout=AWS_METADATA_TIMEOUT,
)
result.raise_for_status()
- role = result.text... | default to utf8 encoding if not specified On errors, for some reason AWS does not always have an encoding on the message. Default to 'utf-8'. | py |
diff --git a/demo/gptools_mds_Te.py b/demo/gptools_mds_Te.py
index <HASH>..<HASH> 100644
--- a/demo/gptools_mds_Te.py
+++ b/demo/gptools_mds_Te.py
@@ -244,7 +244,7 @@ nk = gptools.DiagonalNoiseKernel(1, n=0, initial_noise=0.0, fixed_noise=True, no
gp = gptools.GaussianProcess(k, noise_k=nk)
gp.add_data(R_mid_w, Te_TS... | Try removing FRCECE since NTH says it is suspect for this shot. | py |
diff --git a/spyder/utils/sourcecode.py b/spyder/utils/sourcecode.py
index <HASH>..<HASH> 100644
--- a/spyder/utils/sourcecode.py
+++ b/spyder/utils/sourcecode.py
@@ -157,10 +157,10 @@ def differentiate_prefix(path_components0, path_components1):
break
longest_prefix.append(elmt0)
file_name... | Improved validation for taking into account when the common prefix path for the file is his path. | py |
diff --git a/injecting_test.py b/injecting_test.py
index <HASH>..<HASH> 100644
--- a/injecting_test.py
+++ b/injecting_test.py
@@ -175,11 +175,11 @@ class InjectorProvideTest(unittest.TestCase):
def test_injects_implicitly_injected_args_of_provider_fns(self):
class ClassOne(object):
pass
- ... | Changes a function from CamelCase to lower_with_unders | py |
diff --git a/googlemaps/places.py b/googlemaps/places.py
index <HASH>..<HASH> 100644
--- a/googlemaps/places.py
+++ b/googlemaps/places.py
@@ -342,7 +342,7 @@ def places_autocomplete(client, input_text, offset=None, location=None,
:param types: Restricts the results to places matching the specified type.
... | Fix type annotation in places_autocomplete() docs (#<I>) This was broken by the rename of the parameter from `type` to `types` in commit <I>b<I>a5db1bf<I>aa<I>bcccfd<I>ccce2f0. | py |
diff --git a/pyrogram/api/core/object.py b/pyrogram/api/core/object.py
index <HASH>..<HASH> 100644
--- a/pyrogram/api/core/object.py
+++ b/pyrogram/api/core/object.py
@@ -78,7 +78,7 @@ class Encoder(JSONEncoder):
if o is not None:
if o.startswith("pyrogram.client"):
r = remove_non... | Hide _client when printing pyrogram object | py |
diff --git a/src/transformers/data/data_collator.py b/src/transformers/data/data_collator.py
index <HASH>..<HASH> 100644
--- a/src/transformers/data/data_collator.py
+++ b/src/transformers/data/data_collator.py
@@ -434,13 +434,15 @@ class DataCollatorForNextSentencePrediction:
else:
input_ids = se... | Fix #<I> (#<I>) | py |
diff --git a/src/pyctools/components/io/imagefilereader.py b/src/pyctools/components/io/imagefilereader.py
index <HASH>..<HASH> 100644
--- a/src/pyctools/components/io/imagefilereader.py
+++ b/src/pyctools/components/io/imagefilereader.py
@@ -46,7 +46,7 @@ class ImageFileReader(Component):
def initialise(self):
... | Don't read image until component is started Reading it on connection doesn't allow for the path to be changed by updating config before the pipeline is run. | py |
diff --git a/openquake/calculators/event_based_risk.py b/openquake/calculators/event_based_risk.py
index <HASH>..<HASH> 100644
--- a/openquake/calculators/event_based_risk.py
+++ b/openquake/calculators/event_based_risk.py
@@ -235,7 +235,7 @@ class EbrPostCalculator(base.RiskCalculator):
rlzs = self.rlzs_a... | Opened/closed the parent datastore | py |
diff --git a/hl7apy/mllp.py b/hl7apy/mllp.py
index <HASH>..<HASH> 100644
--- a/hl7apy/mllp.py
+++ b/hl7apy/mllp.py
@@ -121,7 +121,7 @@ class _MLLPRequestHandler(StreamRequestHandler):
except KeyError:
raise UnsupportedMessageType(msg_type)
- h = handler(msg, *args)
+ ... | Expose hook for creating handlers | py |
diff --git a/examples/chatserver/tests/test_chatclient.py b/examples/chatserver/tests/test_chatclient.py
index <HASH>..<HASH> 100644
--- a/examples/chatserver/tests/test_chatclient.py
+++ b/examples/chatserver/tests/test_chatclient.py
@@ -1,4 +1,5 @@
# -*- coding: utf-8 -*-
+import os
import time
import requests
fr... | one test -test_publish_user- still is failing | py |
diff --git a/wafer/settings.py b/wafer/settings.py
index <HASH>..<HASH> 100644
--- a/wafer/settings.py
+++ b/wafer/settings.py
@@ -4,15 +4,6 @@ from django.utils.translation import ugettext_lazy as _
# Django settings for wafer project.
-DEBUG = True
-TEMPLATE_DEBUG = DEBUG
-
-ADMINS = (
- # ('Your Name', 'your... | Wafer has some inappropriate defaults Thanks to its pycon.za heritage. | py |
diff --git a/salt/states/mount.py b/salt/states/mount.py
index <HASH>..<HASH> 100644
--- a/salt/states/mount.py
+++ b/salt/states/mount.py
@@ -168,16 +168,19 @@ def mounted(name,
'comment',
'defaults',
'delay_connect',
+ 'intr',
... | Add 'intr' and 'retry' to the invisible mount options | py |
diff --git a/faz/task.py b/faz/task.py
index <HASH>..<HASH> 100644
--- a/faz/task.py
+++ b/faz/task.py
@@ -86,8 +86,8 @@ class Task(object):
Variables using the $<variable name> and ${<variable name>} formats
are expanded by the shell (in the cases where bash is the interpreter.
"""
- ... | Fixed a bug in setting INPUTS and OUTPUTS variables. | py |
diff --git a/raiden/tests/unit/test_startup.py b/raiden/tests/unit/test_startup.py
index <HASH>..<HASH> 100644
--- a/raiden/tests/unit/test_startup.py
+++ b/raiden/tests/unit/test_startup.py
@@ -135,13 +135,13 @@ def test_setup_contracts():
assert raiden_contracts_in_data(contracts)
assert service_contracts_i... | Temporarily skip test for Goerli and production contracts | py |
diff --git a/salt/master.py b/salt/master.py
index <HASH>..<HASH> 100644
--- a/salt/master.py
+++ b/salt/master.py
@@ -426,7 +426,7 @@ class AESFuncs(object):
individual minions.
'''
for key in load:
- self._return(load['key'])
+ self._return(load[key])
def minion... | return the key, not the 'key' | py |
diff --git a/pptx/parts/slides.py b/pptx/parts/slides.py
index <HASH>..<HASH> 100644
--- a/pptx/parts/slides.py
+++ b/pptx/parts/slides.py
@@ -127,7 +127,7 @@ class _SlideCollection(_PartCollection):
"""
def __init__(self, presentation):
super(_SlideCollection, self).__init__()
- self.__presen... | reorg: SlideColl double leading underscore vars | py |
diff --git a/buildbot/status/web/tests.py b/buildbot/status/web/tests.py
index <HASH>..<HASH> 100644
--- a/buildbot/status/web/tests.py
+++ b/buildbot/status/web/tests.py
@@ -61,4 +61,4 @@ class TestsResource(HtmlResource):
result = self.test_results[name]
return TestResult(name, result)
... | Yet another XSS, in tests/<nonexistent> | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -33,7 +33,7 @@ billy-util = billy.bin.util:main
"name_tools>=0.1.2",
"nose",
"pymongo>=2.2,<3.0.0",
- "scrapelib<=1.0",
+ "scrapelib==1.0.2",
"unicodecsv!=0.9.3",
... | bump to scrapelib <I> | py |
diff --git a/pkutils.py b/pkutils.py
index <HASH>..<HASH> 100644
--- a/pkutils.py
+++ b/pkutils.py
@@ -36,7 +36,7 @@ import semver
from builtins import *
-__version__ = '0.12.2'
+__version__ = '0.12.3'
__title__ = 'pkutils'
__author__ = 'Reuben Cummings' | Bump to version <I> | py |
diff --git a/wkhtmltopdf/__init__.py b/wkhtmltopdf/__init__.py
index <HASH>..<HASH> 100644
--- a/wkhtmltopdf/__init__.py
+++ b/wkhtmltopdf/__init__.py
@@ -2,6 +2,6 @@ import os
if 'DJANGO_SETTINGS_MODULE' in os.environ:
from .utils import *
-__version__ = (0, 1)
+__version__ = (0, 1, 1)
def get_version():
... | Bumped version to <I> | py |
diff --git a/sos/__init__.py b/sos/__init__.py
index <HASH>..<HASH> 100644
--- a/sos/__init__.py
+++ b/sos/__init__.py
@@ -16,7 +16,6 @@ gettext to internationalize messages.
"""
import gettext
-from collections import deque
__version__ = "3.5"
@@ -172,4 +171,19 @@ class SoSOptions(object):
if... | [sos] add SoSOptions.dict() Add a method to convert an SoSOptions() instance into a dict: the keys of the dictionary are the argument names and the values are the current option values. Any argument with a deque() value is converted to a plain list prior to processing. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -189,5 +189,6 @@ if __name__ == '__main__':
if '--metadata' == sys.argv[1]:
import json
json.dump(project, sys.stdout, default=repr, indent=4, sort_keys=True)
+ sys.stdout.write('\n')
else:
... | :construction: add trailing newline to metadata dump | py |
diff --git a/starlink/ndfpack/ndf.py b/starlink/ndfpack/ndf.py
index <HASH>..<HASH> 100644
--- a/starlink/ndfpack/ndf.py
+++ b/starlink/ndfpack/ndf.py
@@ -117,7 +117,7 @@ def _read_hds(loc, head, array=False):
dims = loc.shape
if dims != None:
head[name] = _create_md_struc(dims)
- ... | Pass <I> bit integer array to _read_md_struc This is to avoid a TypeError when the array is used to index an HDS array. | py |
diff --git a/pylibscrypt/test_properties.py b/pylibscrypt/test_properties.py
index <HASH>..<HASH> 100644
--- a/pylibscrypt/test_properties.py
+++ b/pylibscrypt/test_properties.py
@@ -1,4 +1,4 @@
-# Copyright (c) 2017-2018, Jan Varho
+# Copyright (c) 2017-2019, Jan Varho
#
# Permission to use, copy, modify, and/or dis... | Limit olen to reasonable values in hypothesis tests | py |
diff --git a/consul/base.py b/consul/base.py
index <HASH>..<HASH> 100644
--- a/consul/base.py
+++ b/consul/base.py
@@ -557,6 +557,9 @@ class Consul(object):
*notes* is not used by Consul, and is meant to be human
readable.
+ Optionally, a *service_id* can be specified ... | Updating the docstring for agent.check.register with service_id | py |
diff --git a/post_office/lockfile.py b/post_office/lockfile.py
index <HASH>..<HASH> 100644
--- a/post_office/lockfile.py
+++ b/post_office/lockfile.py
@@ -48,6 +48,9 @@ class FileLock(object):
# 2. Symbolic link is not there
# In either case, we can safely release the lock
self.re... | Catch ValueError when trying to read lockfile (#<I>) | py |
diff --git a/searx/plugins/doai_rewrite.py b/searx/plugins/doai_rewrite.py
index <HASH>..<HASH> 100644
--- a/searx/plugins/doai_rewrite.py
+++ b/searx/plugins/doai_rewrite.py
@@ -27,5 +27,5 @@ def on_result(request, search, result):
if doi.endswith(suffix):
doi = doi[:-len(suffix)]
... | [fix] rewrite missing variable | py |
diff --git a/porespy/generators/__sssp__.py b/porespy/generators/__sssp__.py
index <HASH>..<HASH> 100644
--- a/porespy/generators/__sssp__.py
+++ b/porespy/generators/__sssp__.py
@@ -21,7 +21,7 @@ def _monodisperse(im, r, max_iter=1000):
else:
strel = ball
sites = ps.tools.fftmorphology(im == 1, stre... | Allowing iterative addition of spheres | py |
diff --git a/pyforms/gui/Controls/ControlTextArea.py b/pyforms/gui/Controls/ControlTextArea.py
index <HASH>..<HASH> 100755
--- a/pyforms/gui/Controls/ControlTextArea.py
+++ b/pyforms/gui/Controls/ControlTextArea.py
@@ -20,17 +20,19 @@ class ControlTextArea(ControlBase):
control_path = tools.getFileInSameDirect... | append text to control text area or reset value | py |
diff --git a/tests/test_css.py b/tests/test_css.py
index <HASH>..<HASH> 100644
--- a/tests/test_css.py
+++ b/tests/test_css.py
@@ -115,7 +115,7 @@ class TestTag(unittest.TestCase):
},
link: {'color': 'grey'},
link_with_class: {'color': 'grey'},
- A: {'co... | Add the text "My changes" to the code | py |
diff --git a/glue/pipeline.py b/glue/pipeline.py
index <HASH>..<HASH> 100644
--- a/glue/pipeline.py
+++ b/glue/pipeline.py
@@ -628,7 +628,7 @@ class AnalysisNode(CondorDAGNode):
Set the ifo tag that is passed to the analysis code.
ifo_tag = a string to identify one or more IFOs
"""
- self.__ifo = ifo_... | added ifo tag option to distinguish file names | py |
diff --git a/indra/tools/reading/util/script_tools.py b/indra/tools/reading/util/script_tools.py
index <HASH>..<HASH> 100644
--- a/indra/tools/reading/util/script_tools.py
+++ b/indra/tools/reading/util/script_tools.py
@@ -103,12 +103,15 @@ class StatementData(object):
@classmethod
def get_cols(self):
... | Add source_hash to statement tuple. | py |
diff --git a/__pkginfo__.py b/__pkginfo__.py
index <HASH>..<HASH> 100644
--- a/__pkginfo__.py
+++ b/__pkginfo__.py
@@ -49,8 +49,8 @@ install_requires = ['columnize >= 0.3.9',
'pygments >= 2.2.0',
'spark_parser >= 1.8.7, <1.9.0',
'tracer >= 0.3.2',
... | Bump required xdis, uncompyle6 versions | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -46,7 +46,7 @@ setup(
'Topic :: Software Development :: Libraries :: Python Modules'
],
install_requires=[
- 'Django >= 1.8.0,<1.10',
+ 'Django >= 1.8.0,<1.11',
'psycopg2',
],
... | Enabled Django <I> support | py |
diff --git a/fedmsg/tests/test_text.py b/fedmsg/tests/test_text.py
index <HASH>..<HASH> 100644
--- a/fedmsg/tests/test_text.py
+++ b/fedmsg/tests/test_text.py
@@ -357,7 +357,8 @@ class TestBodhiRequestTesting(Base):
class TestBodhiComment(Base):
expected_title = "bodhi.update.comment (unsigned)"
- expected_s... | Fix to bodhi unit tests. | py |
diff --git a/visidata/loaders/sqlite.py b/visidata/loaders/sqlite.py
index <HASH>..<HASH> 100644
--- a/visidata/loaders/sqlite.py
+++ b/visidata/loaders/sqlite.py
@@ -82,7 +82,7 @@ class SqliteSheet(Sheet):
for r in dels.values():
sql = 'DELETE FROM "%s" ' % self.tableName
... | [defer-] fix typo Closes #<I> | py |
diff --git a/pysat/tests/test_instrument.py b/pysat/tests/test_instrument.py
index <HASH>..<HASH> 100644
--- a/pysat/tests/test_instrument.py
+++ b/pysat/tests/test_instrument.py
@@ -155,7 +155,7 @@ class TestBasics():
def test_next_filename_load_default(self):
"""Test next day is being loaded (checking o... | BUG: Corrected datetime creation | py |
diff --git a/src/toil/test/lib/dockerTest.py b/src/toil/test/lib/dockerTest.py
index <HASH>..<HASH> 100644
--- a/src/toil/test/lib/dockerTest.py
+++ b/src/toil/test/lib/dockerTest.py
@@ -11,11 +11,12 @@ from bd2k.util.files import mkdir_p
from toil.job import Job
from toil.leader import FailedJobsException
from toil... | Require docker for DockerTest This isn't completely correct; probably the name of the docker decorator should be changed to needs_docker | py |
diff --git a/pymc3/distributions/multivariate.py b/pymc3/distributions/multivariate.py
index <HASH>..<HASH> 100755
--- a/pymc3/distributions/multivariate.py
+++ b/pymc3/distributions/multivariate.py
@@ -505,7 +505,16 @@ class Multinomial(Discrete):
def _random(self, n, p, size=None):
if size == p.shape:
... | bug fixed #<I> (#<I>) * bug fixed #<I> Multinomial random fix for p.shape[0] > 1 * further fix better condition checking for p | py |
diff --git a/ml-agents/mlagents/learn.py b/ml-agents/mlagents/learn.py
index <HASH>..<HASH> 100755
--- a/ml-agents/mlagents/learn.py
+++ b/ml-agents/mlagents/learn.py
@@ -69,9 +69,8 @@ def main():
¬`▀▀▀█▓
''')
- # TODO: figure this out
except:
- print('UNITY!!!')
+ ... | Printing Unity logo exception is now caught. | py |
diff --git a/lib/crtomo/tdManager.py b/lib/crtomo/tdManager.py
index <HASH>..<HASH> 100644
--- a/lib/crtomo/tdManager.py
+++ b/lib/crtomo/tdManager.py
@@ -1662,8 +1662,10 @@ i6,t105,g9.3,t117,f5.3)
self.configs.measurements. If not present, a new measurement set
will be added with zeros only.
... | relax an assertion which didn't account for data arrays with only one number | py |
diff --git a/zengine/views/menu.py b/zengine/views/menu.py
index <HASH>..<HASH> 100644
--- a/zengine/views/menu.py
+++ b/zengine/views/menu.py
@@ -44,6 +44,7 @@ class Menu(BaseView):
"name": usr.name,
"surname": usr.surname,
"username": usr.username,
+ "role": self.curr... | added abs.role info to menu view's current_user dict | py |
diff --git a/termdown.py b/termdown.py
index <HASH>..<HASH> 100755
--- a/termdown.py
+++ b/termdown.py
@@ -450,11 +450,11 @@ def input_thread_body(stdscr, input_queue, quit_event, curses_lock):
key = stdscr.getkey()
except:
key = None
- if key == "q":
+ if key in ("q... | make hotkeys case-insensitive since they're documented uppercase for legibility | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -14,7 +14,7 @@ requirements = (
setup(
name='combine',
- version='0.0.7',
+ version='0.0.8.dev0',
description='A helpful, simple static site generator.',
long_description=long_description,
long_des... | Back to development: <I> | py |
diff --git a/salt/cli/batch.py b/salt/cli/batch.py
index <HASH>..<HASH> 100644
--- a/salt/cli/batch.py
+++ b/salt/cli/batch.py
@@ -21,7 +21,7 @@ class Batch(object):
def __init__(self, opts, quiet=False):
self.opts = opts
self.quiet = quiet
- self.local = salt.client.LocalClient(opts['conf... | Switch to new dynamic transport loader. | py |
diff --git a/examples/opf/clients/cpu/cpu.py b/examples/opf/clients/cpu/cpu.py
index <HASH>..<HASH> 100755
--- a/examples/opf/clients/cpu/cpu.py
+++ b/examples/opf/clients/cpu/cpu.py
@@ -57,6 +57,12 @@ def runCPU():
# Set the y-axis range.
actline.axes.set_ylim(0, 100)
predline.axes.set_ylim(0, 100)
+ # plot ... | add legend, labels to graph plot matlab style plots | py |
diff --git a/gridtk/sge.py b/gridtk/sge.py
index <HASH>..<HASH> 100644
--- a/gridtk/sge.py
+++ b/gridtk/sge.py
@@ -66,7 +66,7 @@ class JobManagerSGE(JobManager):
assert os.path.isdir(job.log_dir), "Please make sure --log-dir `{}' either does not exist or is a directory.".format(job.log_dir)
# generate call ... | [py][fix] Verbose flags were separating parameters Changed '-dvv db_name' to '-vvd db_name'. | py |
diff --git a/src/gquery.py b/src/gquery.py
index <HASH>..<HASH> 100644
--- a/src/gquery.py
+++ b/src/gquery.py
@@ -10,6 +10,8 @@ import logging
import traceback
import re
import urllib2
+import urllib
+import json
# grlc modules
import static | Added missing imports after refactor | py |
diff --git a/jax/interpreters/xla.py b/jax/interpreters/xla.py
index <HASH>..<HASH> 100644
--- a/jax/interpreters/xla.py
+++ b/jax/interpreters/xla.py
@@ -110,7 +110,7 @@ def _device_put_scalar(x, device):
return xc.Buffer.from_pyval(dtypes.coerce_to_array(x), device,
backend=xb.get_de... | Fix copy-paste error It looks as though `_device_put_scalar` should be used here. If not, `_device_put_scalar` should be removed, as it is otherwise unused. | py |
diff --git a/oscrypto/version.py b/oscrypto/version.py
index <HASH>..<HASH> 100644
--- a/oscrypto/version.py
+++ b/oscrypto/version.py
@@ -2,5 +2,5 @@
from __future__ import unicode_literals, division, absolute_import, print_function
-__version__ = '0.19.1'
-__version_info__ = (0, 19, 1)
+__version__ = '0.20.0-alp... | Mark master with an accurate version during development | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -16,7 +16,6 @@ setup(
install_requires=[
'numpy',
'requests',
- 'thriftpy',
'six',
'ply',
'boto3', | Dropped thrift dependency as it's no longer required | py |
diff --git a/ttkwidgets/color/colorpicker.py b/ttkwidgets/color/colorpicker.py
index <HASH>..<HASH> 100644
--- a/ttkwidgets/color/colorpicker.py
+++ b/ttkwidgets/color/colorpicker.py
@@ -322,6 +322,7 @@ class ColorPicker(tk.Toplevel):
self.hexa.bind("<Return>", self._update_color_hexa)
self.hexa.bind(... | Set initial focus on hexa entry in colorpicker | py |
diff --git a/django_airavata/apps/auth/views.py b/django_airavata/apps/auth/views.py
index <HASH>..<HASH> 100644
--- a/django_airavata/apps/auth/views.py
+++ b/django_airavata/apps/auth/views.py
@@ -518,5 +518,5 @@ def access_token_redirect(request):
logger.warning(f"redirect_uri value '{redirect_uri}' is not ... | Handle redirect_uri that already has query params | py |
diff --git a/steam/tf2.py b/steam/tf2.py
index <HASH>..<HASH> 100644
--- a/steam/tf2.py
+++ b/steam/tf2.py
@@ -41,15 +41,15 @@ class backpack:
""" Functions for reading player inventory """
equipped_field = 0x1FF0000
equipped_classes = {
- 1<<8: "engineer",
- 1<<7: "spy",
- 1<<6: "py... | Capitalize equipped class names The API capitalizes them so we'll might as well do the same. | py |
diff --git a/cirq/google/devices/known_devices.py b/cirq/google/devices/known_devices.py
index <HASH>..<HASH> 100644
--- a/cirq/google/devices/known_devices.py
+++ b/cirq/google/devices/known_devices.py
@@ -264,6 +264,7 @@ _SYCAMORE_DURATIONS_PICOS = {
'xy': 25_000,
'xy_half_pi': 25_000,
'xy_pi': 25_000,... | Add gate duration for xyz gate (#<I>) - This duration was missing, but should be the same as all the other xy gates. | py |
diff --git a/blessings/__init__.py b/blessings/__init__.py
index <HASH>..<HASH> 100644
--- a/blessings/__init__.py
+++ b/blessings/__init__.py
@@ -1,3 +1,6 @@
+"""A thin, practical wrapper around terminal coloring, styling, and
+positioning"""
+
from contextlib import contextmanager
import curses
from curses import ... | Add a docstring so Blessings looks better in the REPL's help(). | py |
diff --git a/delphin/ace.py b/delphin/ace.py
index <HASH>..<HASH> 100644
--- a/delphin/ace.py
+++ b/delphin/ace.py
@@ -677,7 +677,7 @@ def _sexpr_data(line: str) -> Iterator[Tuple[str, Any]]:
(':error', 'incomplete output from ACE'),
'')
if len(expr.data) != 2:
- lo... | Give more accurate error message in delphin.ace | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -69,7 +69,7 @@ else:
setup(
cmdclass={'install': install},
name='selenium',
- version="2.5.0",
+ version="2.6.0dev",
description='Python bindings for Selenium',
long_description=find_longdesc()... | DavidBurns bumping version to <I>dev for python r<I> | py |
diff --git a/trovebox/auth.py b/trovebox/auth.py
index <HASH>..<HASH> 100644
--- a/trovebox/auth.py
+++ b/trovebox/auth.py
@@ -3,14 +3,11 @@ auth.py : OAuth Config File Parser
"""
from __future__ import unicode_literals
import os
+import io
try:
from configparser import ConfigParser # Python3
except ImportErr... | Remove StringIO import fallback ...since io exists in all supported Python versions. As mentioned in Issue #<I>. | py |
diff --git a/test_mpfr.py b/test_mpfr.py
index <HASH>..<HASH> 100644
--- a/test_mpfr.py
+++ b/test_mpfr.py
@@ -79,10 +79,16 @@ class TestMpfr(unittest.TestCase):
mpfr_get_str(x, 10, MPFR_RNDN),
('12344999984', 1),
)
+ # Invalid base
+ with self.assertRaises(ValueError):
... | Tests for mpfr_set_str with bad base. | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.