diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/udiskie/locale.py b/udiskie/locale.py
index <HASH>..<HASH> 100644
--- a/udiskie/locale.py
+++ b/udiskie/locale.py
@@ -2,10 +2,12 @@
I18n utilities.
"""
+import os
from gettext import translation
-_t = translation('udiskie', localedir=None, languages=None, fallback=True)
+localedir = os.environ.get... | Read localedir from TEXTDOMAINDIR environment variable | py |
diff --git a/tchannel/sync/client.py b/tchannel/sync/client.py
index <HASH>..<HASH> 100644
--- a/tchannel/sync/client.py
+++ b/tchannel/sync/client.py
@@ -51,7 +51,7 @@ class TChannel(AsyncTChannel):
# thrift_service is the result of a call to ``thrift_request_builder``
future = tchannel.thrift(
... | fix timeout unit in the docs | py |
diff --git a/txzmq/connection.py b/txzmq/connection.py
index <HASH>..<HASH> 100644
--- a/txzmq/connection.py
+++ b/txzmq/connection.py
@@ -91,6 +91,7 @@ class ZmqConnection(object):
self.factory.connections.add(self)
self.factory.reactor.addReader(self)
+ self.doRead()
def addEndpoints... | Add 'doRead' on connection start: some events could be delivered before we do 'addReader'. | py |
diff --git a/master/setup.py b/master/setup.py
index <HASH>..<HASH> 100755
--- a/master/setup.py
+++ b/master/setup.py
@@ -140,12 +140,17 @@ setup_args = {
"buildbot.scripts",
"buildbot.db",
"buildbot.db.migrate.versions",
- "buildbot.util",
+ "buil... | fix setup.py omissions discovered by <EMAIL> | py |
diff --git a/airflow/contrib/sensors/weekday_sensor.py b/airflow/contrib/sensors/weekday_sensor.py
index <HASH>..<HASH> 100644
--- a/airflow/contrib/sensors/weekday_sensor.py
+++ b/airflow/contrib/sensors/weekday_sensor.py
@@ -53,7 +53,7 @@ class DayOfWeekSensor(BaseSensorOperator):
weekend_check = DayOfWeek... | [AIRFLOW-XXX] Fix WeekDay Sensor Example (#<I>) | py |
diff --git a/evm/vm/base.py b/evm/vm/base.py
index <HASH>..<HASH> 100644
--- a/evm/vm/base.py
+++ b/evm/vm/base.py
@@ -451,7 +451,9 @@ class BaseVM(Configurable, metaclass=ABCMeta):
)
execution_context = block_header.create_execution_context(prev_hashes)
- receipts = self.block.get_receip... | Retrieve receipts from block by hash, not self.block | py |
diff --git a/mixbox/fields.py b/mixbox/fields.py
index <HASH>..<HASH> 100644
--- a/mixbox/fields.py
+++ b/mixbox/fields.py
@@ -246,9 +246,11 @@ class TypedField(object):
TypedFields to actually be copied since they are class-level
property descriptors.
"""
+ memo[id(self)] = self # ad... | Added self to the memo in __deepcopy__. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -5,6 +5,8 @@
Setup envvars
"""
+import envvars
+
try:
from setuptools import setup
except ImportError:
@@ -12,7 +14,7 @@ except ImportError:
setup(
name='envvars',
- version='0.1.0',
+ version=envvars.... | setup.py pulls version from envvars.__init__ | py |
diff --git a/integration_tests/blockstack_integration_tests/scenarios/name_import_nextepoch_import_expire_reregister.py b/integration_tests/blockstack_integration_tests/scenarios/name_import_nextepoch_import_expire_reregister.py
index <HASH>..<HASH> 100644
--- a/integration_tests/blockstack_integration_tests/scenarios/... | sync with epoch API | py |
diff --git a/skflow/estimators/base.py b/skflow/estimators/base.py
index <HASH>..<HASH> 100644
--- a/skflow/estimators/base.py
+++ b/skflow/estimators/base.py
@@ -386,8 +386,7 @@ class TensorFlowEstimator(BaseEstimator):
if not os.path.exists(saver_filename):
raise ValueError("Restore fold... | Removing need to import saver_pb2 inside restore function | py |
diff --git a/test/unit/test_filters_ibip.py b/test/unit/test_filters_ibip.py
index <HASH>..<HASH> 100644
--- a/test/unit/test_filters_ibip.py
+++ b/test/unit/test_filters_ibip.py
@@ -47,7 +47,7 @@ class IBIPTest():
bd = np.zeros_like(im)
bd[:, 0] = True
inv = ps.filters.porosimetry(im, inlets... | fixing one size_seq_satn call | py |
diff --git a/kconfiglib.py b/kconfiglib.py
index <HASH>..<HASH> 100644
--- a/kconfiglib.py
+++ b/kconfiglib.py
@@ -3189,12 +3189,12 @@ def _make_and(e1, e2):
Nones equate to 'y'.
Note: returns None if e1 == e2 == None."""
- if e1 == "n" or e2 == "n":
- return "n"
if e1 is None or e1 == "y":
... | Put the most common case first in _make_and(). Measured with line_profiler on the x<I> Kconfigs. | py |
diff --git a/schema_addresses.py b/schema_addresses.py
index <HASH>..<HASH> 100644
--- a/schema_addresses.py
+++ b/schema_addresses.py
@@ -3,8 +3,8 @@
import schema_orm as orm
-from sqlalchemy.orm import relationship, backref
-from sqlalchemy import Table, ForeignKey
+from sqlalchemy.orm import relationship
+from ... | schema_addresses relationships changes to back_populates | 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
@@ -46,7 +46,7 @@ master_doc = 'index'
# General information about the project.
project = u'cyipopt'
-copyright = u'2012, Amit Aides'
+copyright = u'2018, Matthias Kümmerer'
# The ve... | Updated conf.py with new author and copyright <I>. | py |
diff --git a/modeltranslation/translator.py b/modeltranslation/translator.py
index <HASH>..<HASH> 100644
--- a/modeltranslation/translator.py
+++ b/modeltranslation/translator.py
@@ -12,7 +12,6 @@ from modeltranslation.fields import (NONE, create_translation_field, Translation
from modeltranslation.manager import (Mul... | Satisfying flake8. | py |
diff --git a/django_freeradius/api/serializers.py b/django_freeradius/api/serializers.py
index <HASH>..<HASH> 100644
--- a/django_freeradius/api/serializers.py
+++ b/django_freeradius/api/serializers.py
@@ -88,7 +88,9 @@ class RadiusBatchSerializer(serializers.ModelSerializer):
prefix = serializers.CharField(requi... | [qa] Minor readability cleanup in api/serializers.py | py |
diff --git a/subliminal/cli.py b/subliminal/cli.py
index <HASH>..<HASH> 100644
--- a/subliminal/cli.py
+++ b/subliminal/cli.py
@@ -352,9 +352,12 @@ def download(obj, provider, refiner, language, age, directory, encoding, single,
continue
if not force:
video.sub... | #<I>: Do not search subtitles if all languages are already present | py |
diff --git a/custodian/custodian.py b/custodian/custodian.py
index <HASH>..<HASH> 100644
--- a/custodian/custodian.py
+++ b/custodian/custodian.py
@@ -282,12 +282,6 @@ class Custodian(object):
end = datetime.datetime.now()
logging.info("Run ended at {}.".format(end))
run_time = end - start
- ... | Minor changes to order in which cleanup occurs at the end of a custodian run. | py |
diff --git a/ariadne/executable_schema.py b/ariadne/executable_schema.py
index <HASH>..<HASH> 100644
--- a/ariadne/executable_schema.py
+++ b/ariadne/executable_schema.py
@@ -55,8 +55,3 @@ EXTENSION_KINDS = [
"enum_type_extension",
"input_object_type_extension",
]
-
-
-def extract_extensions(ast: DocumentNod... | removed unused extract_extensions | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -4,10 +4,11 @@ try:
from setuptools import setup, Extension
except ImportError:
from distutils.core import setup, Extension
-import sys, imp, os, glob, io
+import sys, importlib, os, glob, io
def version():
- module... | setup.py: Replace imp module with importlib This fixes the following warning: setup.py:7: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses | py |
diff --git a/saunter/providers/django_provider.py b/saunter/providers/django_provider.py
index <HASH>..<HASH> 100644
--- a/saunter/providers/django_provider.py
+++ b/saunter/providers/django_provider.py
@@ -25,8 +25,8 @@ class DjangoProvider(object):
Uses Django's Models to access the database
"""
def __... | cleaning up the django provider | py |
diff --git a/src/python/dxpy/__init__.py b/src/python/dxpy/__init__.py
index <HASH>..<HASH> 100644
--- a/src/python/dxpy/__init__.py
+++ b/src/python/dxpy/__init__.py
@@ -284,7 +284,7 @@ def DXHTTPRequest(resource, data, method='POST', headers=None, auth=True, timeou
if os.environ['DX_CA_CERT'] == 'NOVERIFY':
... | Remove redundant assignment following <I>c3c<I> | py |
diff --git a/simuvex/s_arch.py b/simuvex/s_arch.py
index <HASH>..<HASH> 100755
--- a/simuvex/s_arch.py
+++ b/simuvex/s_arch.py
@@ -39,13 +39,13 @@ class SimArch:
s = SimState(solver_engine, arch=self, **kwargs)
s.store_reg(self.sp_offset, self.initial_sp, self.bits)
- for (reg, val) in self.default_register_va... | don't overwrite initial concrete values | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -8,7 +8,7 @@ src_dir = os.path.dirname(__file__)
install_requires = [
"troposphere>=1.9.0",
"botocore>=1.6.0",
- "boto3>=1.3.1,<1.5.0",
+ "boto3>=1.3.1",
"PyYAML~=3.12",
"awacs>=0.6.0",
"formic~... | Remove upper bound on boto3 version I can't find a reason for this for limiting us to <I> or earlier, and it's leading to conflicts with other libraries that require newer versions of botocore. | py |
diff --git a/deepdish/parallel/mpi.py b/deepdish/parallel/mpi.py
index <HASH>..<HASH> 100644
--- a/deepdish/parallel/mpi.py
+++ b/deepdish/parallel/mpi.py
@@ -36,8 +36,6 @@ def _init():
def imap_unordered(f, workloads, star=False):
- fb.imap_unordered.__doc__
-
global _g_available_workers, _g_initialized
... | Fixed recently introduced bug in mpi.py. | py |
diff --git a/style50/languages.py b/style50/languages.py
index <HASH>..<HASH> 100644
--- a/style50/languages.py
+++ b/style50/languages.py
@@ -11,7 +11,7 @@ from . import StyleCheck, Error
class C(StyleCheck):
extensions = ["c", "h", "cpp", "hpp"]
- magic_names = ["C source"]
+ magic_names = [] # Only rec... | Only recognize C by file extension (#<I>) | py |
diff --git a/cablemap.core/cablemap/core/utils.py b/cablemap.core/cablemap/core/utils.py
index <HASH>..<HASH> 100644
--- a/cablemap.core/cablemap/core/utils.py
+++ b/cablemap.core/cablemap/core/utils.py
@@ -90,7 +90,7 @@ def cable_page_by_id(reference_id):
>>> cable_page_by_id('22BERLIN1167') is None
True
... | Using another cable to test pagination since the previous cable is temporarily(?) not available anymore | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -44,11 +44,11 @@ except(IOError, ImportError):
setup(
name='esgfpid',
- version='0.7.0',
+ version='0.7.1-dev',
author='Merret Buurman, German Climate Computing Centre (DKRZ)',
author_email='buurman@dkr... | Increment version number to <I>-dev. | py |
diff --git a/openid/extensions/pape.py b/openid/extensions/pape.py
index <HASH>..<HASH> 100644
--- a/openid/extensions/pape.py
+++ b/openid/extensions/pape.py
@@ -48,6 +48,9 @@ class Request(Extension):
self.preferred_auth_policies = preferred_auth_policies
self.max_auth_age = max_auth_age
+ def ... | [project @ Add truthiness for PAPE request] | py |
diff --git a/simuvex/s_procedure.py b/simuvex/s_procedure.py
index <HASH>..<HASH> 100644
--- a/simuvex/s_procedure.py
+++ b/simuvex/s_procedure.py
@@ -189,7 +189,7 @@ class SimProcedure(SimRun):
cc.setup_callsite(ret_state, ret_addr, args)
ret_state.procedure_data.callstack.append(simcallstack... | Match the ret emulation settings from IRSB | py |
diff --git a/gtfs_writer.py b/gtfs_writer.py
index <HASH>..<HASH> 100644
--- a/gtfs_writer.py
+++ b/gtfs_writer.py
@@ -60,7 +60,7 @@ class GTFSWriter(object):
self._routes_writer.writerow([v for v in record.values()])
def write_feed(self, filename):
- with zipfile.ZipFile(filename, mo... | Avoid using exclusive write mode to support older 3.x | py |
diff --git a/ocrd/resolver.py b/ocrd/resolver.py
index <HASH>..<HASH> 100644
--- a/ocrd/resolver.py
+++ b/ocrd/resolver.py
@@ -167,7 +167,7 @@ class Resolver(object):
return outfilename
- def workspace_from_url(self, mets_url, directory=None, clobber_mets=False, mets_basename='mets.xml', download=False,... | resolver: Default mets_basename to the last URL path segment of the mets_url | 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
setup(
name='Flask-HTMLmin',
- version='1.4.0',
+ version='1.5.0',
url='https://github.com/hamidfzm/Flask-HTMLmin',
license='BSD-3-Clause',
author='Hamid... | Update setup.py version to <I> | py |
diff --git a/pydevd.py b/pydevd.py
index <HASH>..<HASH> 100644
--- a/pydevd.py
+++ b/pydevd.py
@@ -758,7 +758,12 @@ class PyDB:
#command to remove some breakpoint
#text is file\tline. Remove from breakpoints dictionary
type, file, line = text.split('\t', 2)... | Fixed issue where the encoding of the file was not correct when removing breakpoint. | py |
diff --git a/djcelery/backends/cache.py b/djcelery/backends/cache.py
index <HASH>..<HASH> 100644
--- a/djcelery/backends/cache.py
+++ b/djcelery/backends/cache.py
@@ -52,7 +52,7 @@ class CacheBackend(KeyValueStoreBackend):
super(CacheBackend, self).__init__(self, *args, **kwargs)
expires = conf.TASK_R... | Expiry for cache keys must be int, not float. Closes #4. Thanks to jonozzz | py |
diff --git a/warrant/tests/tests.py b/warrant/tests/tests.py
index <HASH>..<HASH> 100644
--- a/warrant/tests/tests.py
+++ b/warrant/tests/tests.py
@@ -152,9 +152,9 @@ class AWSSRPTestCase(unittest.TestCase):
def test_authenticate_user(self):
tokens = self.aws.authenticate_user()
- self.assertTrue... | Removed use of has_key in test. | py |
diff --git a/build.py b/build.py
index <HASH>..<HASH> 100755
--- a/build.py
+++ b/build.py
@@ -48,7 +48,7 @@ VENDOR = "InfluxData"
DESCRIPTION = "Distributed time-series database."
prereqs = [ 'git', 'go' ]
-go_vet_command = "go tool vet ./"
+go_vet_command = "go tool vet -example=false ./"
optional_prereqs = [ 'f... | Modify go vet command to exclude examples. Removes unneeded 'go get' call for vet tools (which are now packaged with Go). | py |
diff --git a/records.py b/records.py
index <HASH>..<HASH> 100644
--- a/records.py
+++ b/records.py
@@ -165,6 +165,11 @@ class RecordCollection(object):
# Create a new Tablib Dataset.
data = tablib.Dataset()
+ # If the RecordCollection is empty, just return the empty set
+ # Check numbe... | added check for if zero rows are returned by query | py |
diff --git a/stream/ws_client.py b/stream/ws_client.py
index <HASH>..<HASH> 100644
--- a/stream/ws_client.py
+++ b/stream/ws_client.py
@@ -116,7 +116,16 @@ class WSClient:
def write_channel(self, channel, data):
"""Write data to a channel."""
- self.sock.send(chr(channel) + data)
+ # check... | Refs. #<I> -- detect binary payloads and send the correct opcode On Python 2, strings are bytestrings either way. On Python 3, the result of `chr(channel)` is `str`, while the data itself is `bytes`. The channel prefix needs to be turned into a binary type, and the websocket frame needs the correct opcode (binary vs. ... | py |
diff --git a/pgmpy/models/MarkovChain.py b/pgmpy/models/MarkovChain.py
index <HASH>..<HASH> 100644
--- a/pgmpy/models/MarkovChain.py
+++ b/pgmpy/models/MarkovChain.py
@@ -388,7 +388,7 @@ class MarkovChain(object):
"""
variable_copy = []
cardinalities_copy = []
- for var,card in self.ca... | Replcaed iteritems with items for Python 3 compatibility. | py |
diff --git a/theanets/trainer.py b/theanets/trainer.py
index <HASH>..<HASH> 100644
--- a/theanets/trainer.py
+++ b/theanets/trainer.py
@@ -494,7 +494,7 @@ class Sample(Trainer):
if w.name.startswith('W_out_'):
arr = np.vstack(Sample.reservoir(samples, k))
logging.info('set... | Normalize samples to unit length when setting weights. | py |
diff --git a/ansible_runner/runner_config.py b/ansible_runner/runner_config.py
index <HASH>..<HASH> 100644
--- a/ansible_runner/runner_config.py
+++ b/ansible_runner/runner_config.py
@@ -26,7 +26,7 @@ import shlex
from uuid import uuid4
from collections import Mapping
-from distutils.spawn import find_executable
+#... | Roll back Ansible executable check This prevents unit testing when ansible itself isn't present | py |
diff --git a/html5css3/__init__.py b/html5css3/__init__.py
index <HASH>..<HASH> 100644
--- a/html5css3/__init__.py
+++ b/html5css3/__init__.py
@@ -293,7 +293,7 @@ NODES = {
"table": Table,
"tbody": Tbody,
"term": Dt,
- "tgroup": Colgroup,
+ "tgroup": skip,
"thead": Thead,
"title_reference... | colgroup and col are not of much use in conversion from RST. There is no RST syntax to change their attributes, nor is there any attributes you would really want to modify. In any case, styling is CSS's job. | py |
diff --git a/sslserver/management/commands/runsslserver.py b/sslserver/management/commands/runsslserver.py
index <HASH>..<HASH> 100644
--- a/sslserver/management/commands/runsslserver.py
+++ b/sslserver/management/commands/runsslserver.py
@@ -10,8 +10,12 @@ from django.core.servers.basehttp import WSGIServerException
... | Make django-sslserver Django <I>.x compatible resolves #1 | py |
diff --git a/testsuite/test_celery_example.py b/testsuite/test_celery_example.py
index <HASH>..<HASH> 100644
--- a/testsuite/test_celery_example.py
+++ b/testsuite/test_celery_example.py
@@ -19,6 +19,7 @@
from __future__ import absolute_import
+from invenio.testsuite import make_test_suite, run_test_suite
from in... | global: missing testsuites * Adds a warning for when a testsuite file does not define a TEST_SUITE variable and thus not included in Travis test runs. * Adds TEST_SUITE variable missing in tests for celery, oauth2server, oauthclient, pidstore, webhooks and utils modules. * Fixes broken test cases. | py |
diff --git a/cumulusci/robotframework/Salesforce.py b/cumulusci/robotframework/Salesforce.py
index <HASH>..<HASH> 100644
--- a/cumulusci/robotframework/Salesforce.py
+++ b/cumulusci/robotframework/Salesforce.py
@@ -228,6 +228,7 @@ class Salesforce(object):
time.sleep(5)
raise Exception("Could ... | Add @capture_screenshot_on_error for a couple of keywords I was tempted to do a lot more keywords but decided to stay focused on the immediate problem, which is these two keywords. | py |
diff --git a/raven/contrib/celery/__init__.py b/raven/contrib/celery/__init__.py
index <HASH>..<HASH> 100644
--- a/raven/contrib/celery/__init__.py
+++ b/raven/contrib/celery/__init__.py
@@ -10,7 +10,7 @@ try:
from celery.task import task
except ImportError:
from celery.decorators import task
-from celery.si... | John Watson sucks at pep8 | py |
diff --git a/alot/commands/thread.py b/alot/commands/thread.py
index <HASH>..<HASH> 100644
--- a/alot/commands/thread.py
+++ b/alot/commands/thread.py
@@ -108,7 +108,7 @@ class ReplyCommand(Command):
quotestring = 'Quoting %s (%s)\n' % (name, timestamp)
mailcontent = quotestring
for line ... | Use ">" followed by a space to quote emails This follows what all the other people are doing. See also the USENET and mailing list posting netiquette: <URL> | py |
diff --git a/dedupe/api.py b/dedupe/api.py
index <HASH>..<HASH> 100644
--- a/dedupe/api.py
+++ b/dedupe/api.py
@@ -963,6 +963,10 @@ class Dedupe(DedupeMatching, ActiveMatching) :
data_sample = core.freezeData(data_sample)
+ # data can be a very large object, so we'll free it up as soon
+ # as... | delete data diction in training method, closes #<I> | py |
diff --git a/goatools/wr_tbl.py b/goatools/wr_tbl.py
index <HASH>..<HASH> 100755
--- a/goatools/wr_tbl.py
+++ b/goatools/wr_tbl.py
@@ -3,9 +3,11 @@
kwargs (kws):
'prt_if': Only print a line if user-specfied test returns True.
prt_if is a lambda function with the data item's namedtupl... | Added examples for most used features. | py |
diff --git a/crispy/gui/main.py b/crispy/gui/main.py
index <HASH>..<HASH> 100644
--- a/crispy/gui/main.py
+++ b/crispy/gui/main.py
@@ -214,7 +214,9 @@ class CheckUpdateThread(QThread):
try:
data = json.loads(response.read().decode('utf-8'))
- except json.decoder.JSONDecodeError:
+ ... | Change except statement in case of JSON error | py |
diff --git a/pyinfra_cli/main.py b/pyinfra_cli/main.py
index <HASH>..<HASH> 100644
--- a/pyinfra_cli/main.py
+++ b/pyinfra_cli/main.py
@@ -54,6 +54,8 @@ from .virtualenv import init_virtualenv
# Exit handler
def _exit():
+ if pseudo_state.isset() and pseudo_state.failed_hosts:
+ sys.exit(1)
sys.exit(... | If we had any failed hosts, exit 1. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -3,7 +3,7 @@ from setuptools import setup, find_packages
setup(
name='pyshould',
description='Should style asserts based on pyhamcrest',
- version='0.2.1',
+ version='0.3.0',
url='https://github.com/drslu... | upped version to <I> | py |
diff --git a/satpy/tests/modifier_tests/test_parallax.py b/satpy/tests/modifier_tests/test_parallax.py
index <HASH>..<HASH> 100644
--- a/satpy/tests/modifier_tests/test_parallax.py
+++ b/satpy/tests/modifier_tests/test_parallax.py
@@ -713,3 +713,6 @@ def test_modifier_interface_cloud_moves_to_observer(cth):
... | Add test confirming new cloud area fully cloudy Add a test confirming that the new destination cloud area is fully cloudy. This test is currently failing. | py |
diff --git a/controller/scheduler/coreos.py b/controller/scheduler/coreos.py
index <HASH>..<HASH> 100644
--- a/controller/scheduler/coreos.py
+++ b/controller/scheduler/coreos.py
@@ -266,8 +266,9 @@ Requires=docker.service
[Service]
ExecStartPre=/usr/bin/docker pull {image}
-ExecStart=-/usr/bin/docker run --name {n... | chore(router): expose router on <I> and <I>, add timeout for image download | py |
diff --git a/scriptworker/constants.py b/scriptworker/constants.py
index <HASH>..<HASH> 100644
--- a/scriptworker/constants.py
+++ b/scriptworker/constants.py
@@ -283,6 +283,7 @@ DEFAULT_CONFIG = frozendict({
'project:releng:snapcraft:firefox:beta': 'beta-or-release', # Needed on release for RCs
... | Add esr to pushsnap restricted scopes. | py |
diff --git a/d1_mn_generic/src/gmn/tests/gmn_test_client.py b/d1_mn_generic/src/gmn/tests/gmn_test_client.py
index <HASH>..<HASH> 100755
--- a/d1_mn_generic/src/gmn/tests/gmn_test_client.py
+++ b/d1_mn_generic/src/gmn/tests/gmn_test_client.py
@@ -46,9 +46,11 @@ GMN_TEST_SUBJECT_TRUSTED = 'gmn_test_subject_trusted'
cla... | Turn off server certificate validation by default when running unit tests | py |
diff --git a/anyconfig/cli.py b/anyconfig/cli.py
index <HASH>..<HASH> 100644
--- a/anyconfig/cli.py
+++ b/anyconfig/cli.py
@@ -353,13 +353,11 @@ def main(argv=None):
if args.gen_schema:
cnf = API.gen_schema(cnf)
-
- if args.query:
+ elif args.query:
cnf = _do_query(cnf, args.query)
e... | change: make some options (gen-schema, query, get and set) exclusive | py |
diff --git a/did/plugins/sentry.py b/did/plugins/sentry.py
index <HASH>..<HASH> 100644
--- a/did/plugins/sentry.py
+++ b/did/plugins/sentry.py
@@ -73,8 +73,8 @@ class SentryStats(Stats):
str(self.options.since.date), str(self.options.until.date)))
for activity in self.sentry.get_data():
... | Fixed date comparing Now it successfuly return activity for 'did today' | py |
diff --git a/datetime_distance/__init__.py b/datetime_distance/__init__.py
index <HASH>..<HASH> 100644
--- a/datetime_distance/__init__.py
+++ b/datetime_distance/__init__.py
@@ -32,6 +32,9 @@ class DateTimeComparator(object):
'months': 2,
'years': 3}
+ # Ma... | Make the monkey patched parser a class method | py |
diff --git a/searx/engines/filecrop.py b/searx/engines/filecrop.py
index <HASH>..<HASH> 100644
--- a/searx/engines/filecrop.py
+++ b/searx/engines/filecrop.py
@@ -2,7 +2,9 @@ from urllib import urlencode
from HTMLParser import HTMLParser
url = 'http://www.filecrop.com/'
-search_url = url + '/search.php?{query}&size... | [enh] paging support for filecrop | py |
diff --git a/mobly/controllers/android_device_lib/services/snippet_management_service.py b/mobly/controllers/android_device_lib/services/snippet_management_service.py
index <HASH>..<HASH> 100644
--- a/mobly/controllers/android_device_lib/services/snippet_management_service.py
+++ b/mobly/controllers/android_device_lib/... | Clean up legacy code (#<I>) | py |
diff --git a/openquake/risklib/scientific.py b/openquake/risklib/scientific.py
index <HASH>..<HASH> 100644
--- a/openquake/risklib/scientific.py
+++ b/openquake/risklib/scientific.py
@@ -536,7 +536,7 @@ class FragilityFunctionDiscrete(object):
if self.no_damage_limit and iml < self.no_damage_limit:
... | Added a comment [skip CI] | py |
diff --git a/docs/conf.py b/docs/conf.py
index <HASH>..<HASH> 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -21,6 +21,9 @@ import os
here = os.path.dirname(__file__)
sys.path.insert(0, os.path.abspath(os.path.join(here, '..')))
+# on_rtd is whether the docs are being built on readthedocs.org
+on_rtd = (os.environ... | Default Read the Docs theme for documentation. | py |
diff --git a/salt/modules/virtualenv_mod.py b/salt/modules/virtualenv_mod.py
index <HASH>..<HASH> 100644
--- a/salt/modules/virtualenv_mod.py
+++ b/salt/modules/virtualenv_mod.py
@@ -319,7 +319,7 @@ def _install_script(source, cwd, python, user, saltenv='base'):
if not salt.utils.is_windows():
fn_ = __sal... | Use octal. Since it's a permission. I can't do decimal -> octal -> unix perms in my head. | py |
diff --git a/company/package/logging.py b/company/package/logging.py
index <HASH>..<HASH> 100644
--- a/company/package/logging.py
+++ b/company/package/logging.py
@@ -9,12 +9,10 @@
from __future__ import absolute_import
-import sys
-import os
-
-import ConfigParser
+import logging
+import logging.config as config
... | changed imports. raise exception when error occurs. | py |
diff --git a/tests/test_modules/thread_aware_modules.py b/tests/test_modules/thread_aware_modules.py
index <HASH>..<HASH> 100644
--- a/tests/test_modules/thread_aware_modules.py
+++ b/tests/test_modules/thread_aware_modules.py
@@ -23,7 +23,7 @@ class TestContainer(interface.AttributeContainer):
def __eq__(self, othe... | Small type annotation fix (#<I>) | py |
diff --git a/pipenv/core.py b/pipenv/core.py
index <HASH>..<HASH> 100644
--- a/pipenv/core.py
+++ b/pipenv/core.py
@@ -1413,9 +1413,10 @@ def pip_install(
ignore_hashes = False
line = None
# Try installing for each source in project.sources.
- if not index and requirement.index:
+ if requir... | issue-<I> Do not consider extra_indexes when requirement.index is pinned. | py |
diff --git a/riotwatcher/riotwatcher.py b/riotwatcher/riotwatcher.py
index <HASH>..<HASH> 100644
--- a/riotwatcher/riotwatcher.py
+++ b/riotwatcher/riotwatcher.py
@@ -511,7 +511,7 @@ class RiotWatcher:
)
# match list-v2.2
- def _match_list_request(self, end_url, region, **kwargs)
+ def _match_... | Changes to syntax to fix errors after testing. | py |
diff --git a/sovrin_client/test/conftest.py b/sovrin_client/test/conftest.py
index <HASH>..<HASH> 100644
--- a/sovrin_client/test/conftest.py
+++ b/sovrin_client/test/conftest.py
@@ -51,6 +51,7 @@ from plenum.test.conftest import tdir, nodeReg, up, ready, \
def warnfilters(plenum_warnfilters):
def _():
p... | Added an "ignore" rule for ResourceWarnings about unclosed files to the warnings filter of sovrin-client (because the same rule has been removed from the warnings filter of plenum which is inherited by the warnings filter of sovrin-client). | py |
diff --git a/spacy/tests/tokens/test_tokens_api.py b/spacy/tests/tokens/test_tokens_api.py
index <HASH>..<HASH> 100644
--- a/spacy/tests/tokens/test_tokens_api.py
+++ b/spacy/tests/tokens/test_tokens_api.py
@@ -179,3 +179,16 @@ def test_runtime_error(EN):
for word in doc:
print(word.idx, word.text... | * Add test for Issue #<I>: Incorrect right edges, caused by bad update to r_edge in del_arc, triggered from non-monotonic left-arc | py |
diff --git a/trunk/mof_compiler.py b/trunk/mof_compiler.py
index <HASH>..<HASH> 100644
--- a/trunk/mof_compiler.py
+++ b/trunk/mof_compiler.py
@@ -1680,6 +1680,9 @@ if __name__ == '__main__':
oparser.add_option('-p', '--password',
dest='password', metavar='Password',
help='Specify the pa... | mof_compiler: Add '-d' option to dry-run the operation. It just checks the mof file syntax. The idea behind this patch is to easily detect included mof files from 'mof_compiler -v -d' output. git-svn-id: <URL> | py |
diff --git a/patreon/version_compatibility/utc_timezone.py b/patreon/version_compatibility/utc_timezone.py
index <HASH>..<HASH> 100644
--- a/patreon/version_compatibility/utc_timezone.py
+++ b/patreon/version_compatibility/utc_timezone.py
@@ -1,22 +1,26 @@
+import datetime
+
+
+def has_timezone_support():
+ return h... | Simplify UTC timezone implementation for readability | py |
diff --git a/kconfiglib.py b/kconfiglib.py
index <HASH>..<HASH> 100644
--- a/kconfiglib.py
+++ b/kconfiglib.py
@@ -2606,7 +2606,15 @@ class Kconfig(object):
self.top_node.linenr = self._linenr
else:
- self._parse_error("unrecognized construct")
+ # A valid e... | Give clearer errors for bad endchoice/endif/endmenu nesting An endchoice/endif/endmenu with no corresponding choice/if/menu generated a cryptic 'unrecognized construct' parse error. Improve the error message so that the problem is pointed out explicitly: kconfiglib.KconfigError: Kconfig:<I>: couldn't parse 'endmenu... | py |
diff --git a/dynamic_content/templatetags/dynamic_content_tags.py b/dynamic_content/templatetags/dynamic_content_tags.py
index <HASH>..<HASH> 100644
--- a/dynamic_content/templatetags/dynamic_content_tags.py
+++ b/dynamic_content/templatetags/dynamic_content_tags.py
@@ -20,6 +20,9 @@ def get_content(identifier, default... | Saving content as '' instead of None when no default given | py |
diff --git a/tests/db/model_risk_fragility_unittest.py b/tests/db/model_risk_fragility_unittest.py
index <HASH>..<HASH> 100644
--- a/tests/db/model_risk_fragility_unittest.py
+++ b/tests/db/model_risk_fragility_unittest.py
@@ -75,7 +75,7 @@ class FragilityModelTestCase(DjangoTestCase, helpers.DbTestCase):
else... | small fixes for model risk fragility unittest | py |
diff --git a/emailtemplates/email.py b/emailtemplates/email.py
index <HASH>..<HASH> 100644
--- a/emailtemplates/email.py
+++ b/emailtemplates/email.py
@@ -1,6 +1,7 @@
# coding=utf-8
import os
import logging
+import six
from smtplib import SMTPException
from django.conf import settings
@@ -96,8 +97,8 @@ class Ema... | Python3 support - change unicode to str | py |
diff --git a/openquake/baselib/__init__.py b/openquake/baselib/__init__.py
index <HASH>..<HASH> 100644
--- a/openquake/baselib/__init__.py
+++ b/openquake/baselib/__init__.py
@@ -41,10 +41,7 @@ class DotDict(collections.OrderedDict):
config = DotDict() # global configuration
d = os.path.dirname
base = os.path.join(... | Remove a check related to PY2 and VENVs | py |
diff --git a/nion/swift/Facade.py b/nion/swift/Facade.py
index <HASH>..<HASH> 100644
--- a/nion/swift/Facade.py
+++ b/nion/swift/Facade.py
@@ -2983,11 +2983,13 @@ class API_1:
def _stop_acquisition(self) -> None:
hardware_source_delegate.stop_acquisition()
+ super()._stop_... | Mark facade hardware source as video; and fix stop bug. | py |
diff --git a/fastimport/processors/info_processor.py b/fastimport/processors/info_processor.py
index <HASH>..<HASH> 100644
--- a/fastimport/processors/info_processor.py
+++ b/fastimport/processors/info_processor.py
@@ -26,6 +26,7 @@ from fastimport.helpers import (
invert_dict,
invert_dictset,
)
+import ... | Cope with FileModifyCommand now having mode rather than is_executable and kind. | py |
diff --git a/cosmic_ray/commands/execute.py b/cosmic_ray/commands/execute.py
index <HASH>..<HASH> 100644
--- a/cosmic_ray/commands/execute.py
+++ b/cosmic_ray/commands/execute.py
@@ -13,7 +13,7 @@ results.
with use_db(db_name, mode=WorkDB.Mode.open) as work_db:
config, timeout = work_db.get_config()
... | Fixed bone-headed error in exec engine lookup. | py |
diff --git a/napalm_yang/parsers/base.py b/napalm_yang/parsers/base.py
index <HASH>..<HASH> 100644
--- a/napalm_yang/parsers/base.py
+++ b/napalm_yang/parsers/base.py
@@ -112,6 +112,9 @@ class BaseParser(object):
mapping = helpers.resolve_rule(mapping, attribute, self.keys, self.extra_vars,
... | a rule can be debug by setting `pdb: true` For example: - path: a_path pdb: true | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -99,7 +99,7 @@ if __name__ == '__main__':
packages=find_packages(exclude=[
'test', 'test.*',
'doc', 'doc.*',
- 'appveyor', 'requirements'
+ 'appveyor', 'requirements', '... | fix(setup): Exclude `binder` and `examples` folders as packages. | py |
diff --git a/spyder_kernels/customize/spydercustomize.py b/spyder_kernels/customize/spydercustomize.py
index <HASH>..<HASH> 100644
--- a/spyder_kernels/customize/spydercustomize.py
+++ b/spyder_kernels/customize/spydercustomize.py
@@ -583,7 +583,7 @@ class UserModuleReloader(object):
"""Decide if a module is r... | UMR: Fix Cython support | py |
diff --git a/andes/io/matpower.py b/andes/io/matpower.py
index <HASH>..<HASH> 100644
--- a/andes/io/matpower.py
+++ b/andes/io/matpower.py
@@ -199,8 +199,8 @@ def read(system, file):
# 0 1 2 3 4 5 6 7 8 9
# status angmin angmax Pf Qf Pt Qt
# 10 ... | Convert bus idx of lines to integers. | py |
diff --git a/ssmais/search/views.py b/ssmais/search/views.py
index <HASH>..<HASH> 100644
--- a/ssmais/search/views.py
+++ b/ssmais/search/views.py
@@ -12,12 +12,17 @@ class Search:
class SearchName(Search):
- def __init__(self, name, **kwargs):
+ list_itens = None
+
+ def __init__(self, name, type_search=... | #<I> - Updating search structure. | py |
diff --git a/usb1.py b/usb1.py
index <HASH>..<HASH> 100644
--- a/usb1.py
+++ b/usb1.py
@@ -183,12 +183,12 @@ EVENT_CALLBACK_SET = frozenset((
DEFAULT_ASYNC_TRANSFER_ERROR_CALLBACK = lambda x: False
-def create_binary_buffer(string_or_len):
+def create_binary_buffer(init_or_size):
# Prevent ctypes from adding ... | usb1: Use bytes/str-neutral variable name. Reuse ctypes doc wording. | py |
diff --git a/regions/shapes/__init__.py b/regions/shapes/__init__.py
index <HASH>..<HASH> 100644
--- a/regions/shapes/__init__.py
+++ b/regions/shapes/__init__.py
@@ -3,5 +3,6 @@
"""
from .circle import *
from .ellipse import *
+from .point import *
from .polygon import *
from .rectangle import * | Add missing include for point.py | py |
diff --git a/pymatgen/analysis/local_env.py b/pymatgen/analysis/local_env.py
index <HASH>..<HASH> 100644
--- a/pymatgen/analysis/local_env.py
+++ b/pymatgen/analysis/local_env.py
@@ -1041,31 +1041,6 @@ class VoronoiNN(NearNeighbors):
return siw
-@deprecated(replacement=VoronoiNN,
- message='Use ... | Remove deprecated VoronoiNN | py |
diff --git a/salt/modules/supervisord.py b/salt/modules/supervisord.py
index <HASH>..<HASH> 100644
--- a/salt/modules/supervisord.py
+++ b/salt/modules/supervisord.py
@@ -245,10 +245,13 @@ def reread(user=None, conf_file=None, bin_env=None):
return _get_return(ret)
-def update(user=None, conf_file=None, bin_en... | supvervisord: allow updating single process groups supervisord allows to update singel service groups. This commit adds this feature while preserving the old behavior | py |
diff --git a/docs/conf.py b/docs/conf.py
index <HASH>..<HASH> 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -64,9 +64,6 @@ sphinx_gallery_conf = {
plot_html_show_source_link = False
plot_html_show_formats = False
-mathjax_path = 'https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML'
-# a... | MNT: Remove setting of mathjax CDN Sphinx does this correctly now. | py |
diff --git a/ansibleci/logger.py b/ansibleci/logger.py
index <HASH>..<HASH> 100644
--- a/ansibleci/logger.py
+++ b/ansibleci/logger.py
@@ -44,7 +44,7 @@ class Logger:
the _log method.
'''
return self._log(
- message=' {prefix:.>4}: {message}'.format(prefix=prefix, message=messag... | BUGFIX: Fixed width for test log message no longer required | py |
diff --git a/odl/discr/default.py b/odl/discr/default.py
index <HASH>..<HASH> 100644
--- a/odl/discr/default.py
+++ b/odl/discr/default.py
@@ -93,6 +93,15 @@ class DiscreteL2(Discretization):
"""Interpolation type of this discretization."""
return self._interp
+ def equals(self, other):
+ ... | Added `equals()` for `DiscreteL2`, may be obsolete though | py |
diff --git a/pytest_flask/fixtures.py b/pytest_flask/fixtures.py
index <HASH>..<HASH> 100755
--- a/pytest_flask/fixtures.py
+++ b/pytest_flask/fixtures.py
@@ -86,7 +86,7 @@ class LiveServer(object):
return '<LiveServer listening at %s>' % self.url()
-@pytest.fixture(scope='session')
+@pytest.fixture(scope=... | Allow parallel testing with clean instances of apps by making the live_server fixture function scoped | py |
diff --git a/hotdoc/formatters/html_formatter.py b/hotdoc/formatters/html_formatter.py
index <HASH>..<HASH> 100644
--- a/hotdoc/formatters/html_formatter.py
+++ b/hotdoc/formatters/html_formatter.py
@@ -44,6 +44,7 @@ from hotdoc.core.links import Link
from hotdoc.parsers.gtk_doc_parser import GtkDocStringFormatter
... | html_formatter: keep extra scripts and stylesheets ordered | py |
diff --git a/superset/utils/csv.py b/superset/utils/csv.py
index <HASH>..<HASH> 100644
--- a/superset/utils/csv.py
+++ b/superset/utils/csv.py
@@ -85,8 +85,8 @@ def get_chart_csv_data(
opener.addheaders.append(("Cookie", cookie_str))
response = opener.open(chart_url)
content = response.read()... | fix(embedded): Referecing local variable response before initialization (#<I>) | py |
diff --git a/pmagpy/new_builder.py b/pmagpy/new_builder.py
index <HASH>..<HASH> 100644
--- a/pmagpy/new_builder.py
+++ b/pmagpy/new_builder.py
@@ -124,7 +124,7 @@ class Contribution(object):
Parameters
----------
dtype : str
- MagIC table name
+ MagIC table name (plural,... | improve documentation/wording in Contributions | py |
diff --git a/librosa/__init__.py b/librosa/__init__.py
index <HASH>..<HASH> 100644
--- a/librosa/__init__.py
+++ b/librosa/__init__.py
@@ -10,6 +10,27 @@ Includes constants, core utility functions, etc
import numpy, scipy
import beat, framegenerator, _chroma, _mfcc, tf_agc
+import audioread
+
+def load(path, mono=T... | added a wrapper to audioread | py |
diff --git a/submit/__init__.py b/submit/__init__.py
index <HASH>..<HASH> 100644
--- a/submit/__init__.py
+++ b/submit/__init__.py
@@ -8,7 +8,7 @@ from .helpers import get_queue_func
from .models import configure_sql, create_schema, populate_database
from .security import get_user, group_finder
-__version__ = '1.3.... | Export .zip has top level directory | py |
diff --git a/nipap/nipap/authlib.py b/nipap/nipap/authlib.py
index <HASH>..<HASH> 100644
--- a/nipap/nipap/authlib.py
+++ b/nipap/nipap/authlib.py
@@ -229,6 +229,8 @@ class SqliteAuth(BaseAuth):
if self._authenticated is not None:
return self._authenticated
+ self._logger.debug('Trying to... | Added debug statement showing who is auth:ing Added a debug log statement to the authlib which logs which user the authlib is trying to authenticate. | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.