diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/OpenPNM/Utilities/__Tools__.py b/OpenPNM/Utilities/__Tools__.py
index <HASH>..<HASH> 100644
--- a/OpenPNM/Utilities/__Tools__.py
+++ b/OpenPNM/Utilities/__Tools__.py
@@ -1132,7 +1132,7 @@ class Tools(Base,dict):
pprint.pprint(health)
return flag
- def check_pore_healt... | Added quiet mode to deprecated health checks. Former-commit-id: cdf0d5a2c0e<I>f6f4ffaf<I>a7f<I>f Former-commit-id: <I>fffef<I>f3d<I>c<I>e<I>a<I>c0 | 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
@@ -15,8 +15,6 @@
import os.path
-import pytest
-
from glyphsLib.builder.axes import get_regular_master
from glyphsLib.classes import GSFont | remove unnecessary pytest import to address flake8 fail | py |
diff --git a/pfdicom/pfdicom.py b/pfdicom/pfdicom.py
index <HASH>..<HASH> 100755
--- a/pfdicom/pfdicom.py
+++ b/pfdicom/pfdicom.py
@@ -350,9 +350,16 @@ class pfdicom(object):
d_pftreeRun = {}
d_inputAnalysis = {}
d_env = self.env_check()
+ b_timerStart ... | Update timer handling and report back. | py |
diff --git a/scvelo/plotting/utils.py b/scvelo/plotting/utils.py
index <HASH>..<HASH> 100644
--- a/scvelo/plotting/utils.py
+++ b/scvelo/plotting/utils.py
@@ -311,6 +311,9 @@ def update_axes(ax, xlim=None, ylim=None, fontsize=None, is_embedding=False, fra
ax.tick_params(which='both', bottom=False, left=False, ... | make background transparent regardless of how frameon is set | py |
diff --git a/browsertime/visualmetrics.py b/browsertime/visualmetrics.py
index <HASH>..<HASH> 100755
--- a/browsertime/visualmetrics.py
+++ b/browsertime/visualmetrics.py
@@ -2069,14 +2069,14 @@ def main():
"--findstart",
type=int,
default=0,
- help="Find the start of activity by looki... | Use %% for percentages in argparser help (#<I>) The help strings of `argparser.ArgumentParser` arguments are interpreted as `%-formatting` strings so strings like "% o" are interpreted as "%o" (i.e., format as octal). Help text has been corrected to use `%%`, which generates a single `%` in output. | py |
diff --git a/charmhelpers/contrib/openstack/templating.py b/charmhelpers/contrib/openstack/templating.py
index <HASH>..<HASH> 100644
--- a/charmhelpers/contrib/openstack/templating.py
+++ b/charmhelpers/contrib/openstack/templating.py
@@ -229,7 +229,14 @@ class OSConfigRenderer(object):
# using a munged fu... | Better logging when template is not found. | py |
diff --git a/flowcraft/generator/recipes/denim.py b/flowcraft/generator/recipes/denim.py
index <HASH>..<HASH> 100644
--- a/flowcraft/generator/recipes/denim.py
+++ b/flowcraft/generator/recipes/denim.py
@@ -19,7 +19,6 @@ class Denim(Recipe):
"filter_poly " \
"bo... | removed "remove_host" process from DEN-IM's recipe | py |
diff --git a/core/polyaxon/cli/operations.py b/core/polyaxon/cli/operations.py
index <HASH>..<HASH> 100644
--- a/core/polyaxon/cli/operations.py
+++ b/core/polyaxon/cli/operations.py
@@ -176,6 +176,8 @@ def ls(ctx, io, query, sort, limit, offset):
"deleted",
"readme",
... | Hide meta info and settings in cli | py |
diff --git a/tensorpack/dataflow/format.py b/tensorpack/dataflow/format.py
index <HASH>..<HASH> 100644
--- a/tensorpack/dataflow/format.py
+++ b/tensorpack/dataflow/format.py
@@ -6,6 +6,7 @@ import h5py
import random
from six.moves import range
+from ..utils import logger
from .base import DataFlow
"""
@@ -20,7... | consume all hdf5 to memory | py |
diff --git a/tracext/github.py b/tracext/github.py
index <HASH>..<HASH> 100644
--- a/tracext/github.py
+++ b/tracext/github.py
@@ -13,12 +13,12 @@ from trac.web.api import IRequestHandler
class GitHubBrowser(ChangesetModule):
implements(IRequestHandler)
- gh_repo = Option('github', 'repository', 'master',
+ ... | Disable redirect when repository isn't configured. | py |
diff --git a/tornado/web.py b/tornado/web.py
index <HASH>..<HASH> 100644
--- a/tornado/web.py
+++ b/tornado/web.py
@@ -1160,7 +1160,7 @@ class Application(object):
args = [unquote(s) for s in match.groups()]
break
if not handler:
- handler = Erro... | Construct ErrorHandler with kwargs instead of positional arguments for consistency with normal handler construction (and compatibility with the initialize() changes from a couple of commits ago). Closes #<I>. | py |
diff --git a/wal_e/tar_partition.py b/wal_e/tar_partition.py
index <HASH>..<HASH> 100644
--- a/wal_e/tar_partition.py
+++ b/wal_e/tar_partition.py
@@ -47,6 +47,8 @@ import tarfile
import wal_e.log_help as log_help
+from wal_e.exception import UserException
+
logger = log_help.WalELogger(__name__)
PG_CONF = ('p... | Better error logging in the case of TarMemberTooBigError. | py |
diff --git a/irc/client.py b/irc/client.py
index <HASH>..<HASH> 100644
--- a/irc/client.py
+++ b/irc/client.py
@@ -265,9 +265,8 @@ class IRC(object):
Arguments:
- event -- Event type (a string). Check the values of the
- numeric_events dictionary in irclib.py for possible event
- ... | Removed reference to irclib.py | py |
diff --git a/moto/core/authentication.py b/moto/core/authentication.py
index <HASH>..<HASH> 100644
--- a/moto/core/authentication.py
+++ b/moto/core/authentication.py
@@ -146,7 +146,7 @@ class IAMRequestBase(object):
original_signature = self._get_string_between('Signature=', ',', self._headers['Authorization'... | For EC2 requests, AuthFailure should be raised instead of SignatureDoesNotMatch. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -23,7 +23,7 @@ CONSUL_REQUIRES = ['consulate==0.6.0'] + DYNAMIC_SETTINGS_REQUIRES
DATABASE_REQUIRES = ['SQLAlchemy==1.1.14'] + DYNAMIC_SETTINGS_REQUIRES
MEMCACHED_REQUIRES = ['pymemcache==2.1.1', 'six==1.11.0'] + DYNAMIC_SET... | Include six dependency on S3_REQUIRES | py |
diff --git a/sumo/cli/phonon_bandplot.py b/sumo/cli/phonon_bandplot.py
index <HASH>..<HASH> 100644
--- a/sumo/cli/phonon_bandplot.py
+++ b/sumo/cli/phonon_bandplot.py
@@ -172,6 +172,9 @@ def phonon_bandplot(filename, poscar=None, prefix=None, directory=None,
# round due to numerical noise error
... | Phonon band structures: allow full 9-term supercell matrix from CLI | py |
diff --git a/runtests.py b/runtests.py
index <HASH>..<HASH> 100755
--- a/runtests.py
+++ b/runtests.py
@@ -52,7 +52,7 @@ def _main(venv):
def main():
tmpdir = tempfile.mkdtemp()
try:
- venv = os.path.join(tmpdir, 'testenv')
+ venv = os.path.join(tmpdir, 'perf_test_venv')
_main(venv)
... | runtests.py: rename temporary directory | py |
diff --git a/xclim/core/units.py b/xclim/core/units.py
index <HASH>..<HASH> 100644
--- a/xclim/core/units.py
+++ b/xclim/core/units.py
@@ -37,9 +37,7 @@ __all__ = [
]
-units = pint.UnitRegistry(
- autoconvert_offset_to_baseunit=True
-) # , on_redefinition="ignore")
+units = pint.UnitRegistry(autoconvert_offset... | suppress warnings on unit redefinition from pint | py |
diff --git a/scapy/automaton.py b/scapy/automaton.py
index <HASH>..<HASH> 100644
--- a/scapy/automaton.py
+++ b/scapy/automaton.py
@@ -370,9 +370,11 @@ class Automaton:
def send(self, pkt):
if self.state.state in self.interception_points:
self.debug(3,"INTERCEPT: packet intercepted: %s" % pkt... | Added Automaton.intercepted_packet attribute to have packet handy while automaton is waiting for a verdict | py |
diff --git a/yowsup/stacks/yowstack.py b/yowsup/stacks/yowstack.py
index <HASH>..<HASH> 100644
--- a/yowsup/stacks/yowstack.py
+++ b/yowsup/stacks/yowstack.py
@@ -141,6 +141,12 @@ class YowStack(object):
return res
+ def send(self, data):
+ self.__stackInstances[-1].send(data)
+
+ ... | Can send data to layers via stack.send/receive Makes testing easier | py |
diff --git a/docs/conf.py b/docs/conf.py
index <HASH>..<HASH> 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -16,7 +16,7 @@ import sys, os
# If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. If the directory is relative to the
# documentation roo... | generate documentation from source files, part of #<I> | py |
diff --git a/napalm_ios/ios.py b/napalm_ios/ios.py
index <HASH>..<HASH> 100644
--- a/napalm_ios/ios.py
+++ b/napalm_ios/ios.py
@@ -443,10 +443,12 @@ class IOSDriver(NetworkDriver):
system_capabilities = re.findall(r"System Capabilities: (.+)", output)
enabled_capabilities = re.findall(r"Enable... | Fixing issue with get_lldp_neighbors_detail and remote HP switch. | py |
diff --git a/paradigm/models.py b/paradigm/models.py
index <HASH>..<HASH> 100644
--- a/paradigm/models.py
+++ b/paradigm/models.py
@@ -339,15 +339,11 @@ def _bind_keywords(parameters: Tuple[Parameter, ...],
first_kwarg_index = next(index
for index, parameter in enumerate(parameters)
... | Complete 'Plain.bind' method | py |
diff --git a/examples/map.py b/examples/map.py
index <HASH>..<HASH> 100755
--- a/examples/map.py
+++ b/examples/map.py
@@ -1,8 +1,6 @@
#!/usr/bin/env python
"""
Prints a map of the entire world.
-
-NOTE: currently only prints a tiny map of the first chunk found. This is work in progress.
"""
import locale, os, s... | Fix map description: it renders the full map, not just a chunk | py |
diff --git a/gmqtt/mqtt/connection.py b/gmqtt/mqtt/connection.py
index <HASH>..<HASH> 100644
--- a/gmqtt/mqtt/connection.py
+++ b/gmqtt/mqtt/connection.py
@@ -1,9 +1,10 @@
import asyncio
-
+import logging
import time
from .protocol import MQTTProtocol
+logger = logging.getLogger(__name__)
class MQTTConnection... | feature: close connection when lost heartbeat (#<I>) | py |
diff --git a/master/buildbot/steps/shell.py b/master/buildbot/steps/shell.py
index <HASH>..<HASH> 100644
--- a/master/buildbot/steps/shell.py
+++ b/master/buildbot/steps/shell.py
@@ -394,6 +394,7 @@ class WarningCountingShellCommand(ShellCommand):
directoryEnterPattern=directoryEnterPa... | Added maxWarnCount to WarningCountingShellCommand's factory arguments | py |
diff --git a/ontquery/plugins/services.py b/ontquery/plugins/services.py
index <HASH>..<HASH> 100644
--- a/ontquery/plugins/services.py
+++ b/ontquery/plugins/services.py
@@ -112,7 +112,9 @@ class SciGraphRemote(OntService): # incomplete and not configureable yet
seen.add(object)
... | fix the other place where bad edges can occur | py |
diff --git a/etcd3gw/watch.py b/etcd3gw/watch.py
index <HASH>..<HASH> 100644
--- a/etcd3gw/watch.py
+++ b/etcd3gw/watch.py
@@ -11,7 +11,6 @@
# under the License.
import json
-import six
import socket
from etcd3gw.utils import _decode
@@ -65,14 +64,11 @@ class Watcher(object):
def stop(self):
... | Use the socket shutdown() workaround on Python 2 The previous technique used to try to force-close the watch socket didn't work on (at least) Python <I> but the old Python 3.x workaround seems to work fine on Python <I> as well. Use that. Fixes #<I> | py |
diff --git a/ella/positions/admin.py b/ella/positions/admin.py
index <HASH>..<HASH> 100644
--- a/ella/positions/admin.py
+++ b/ella/positions/admin.py
@@ -1,8 +1,9 @@
from django.contrib import admin
+from ella.ellaadmin.options import EllaAdminOptionsMixin
from ella.positions.models import Position
-class Positi... | Added mixin to positions, that solves problem with generic rel icon. git-svn-id: <URL> | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -12,6 +12,7 @@ setup(
version=version,
license='MIT',
description='Javascript url handling for Django that doesn\'t hurt.',
+ long_description=open(os.path.join(os.path.dirname(__file__), 'README.md')).read()... | include long_description in setup.py | py |
diff --git a/djangocms_blog/cms_toolbar.py b/djangocms_blog/cms_toolbar.py
index <HASH>..<HASH> 100644
--- a/djangocms_blog/cms_toolbar.py
+++ b/djangocms_blog/cms_toolbar.py
@@ -26,3 +26,23 @@ class BlogToolbar(CMSToolbar):
admin_menu.add_modal_item(_('Edit Post'), reverse(
'admin:djangoc... | Remove djangocms-page-meta and djangocms-page-tags from Page menu in blog detail view to avoid confusion | py |
diff --git a/spyderlib/plugins/externalconsole.py b/spyderlib/plugins/externalconsole.py
index <HASH>..<HASH> 100644
--- a/spyderlib/plugins/externalconsole.py
+++ b/spyderlib/plugins/externalconsole.py
@@ -11,17 +11,19 @@
# pylint: disable=R0911
# pylint: disable=R0201
+# Qt imports
from spyderlib.qt.QtGui im... | External Console: Minor reorganization of its imports | py |
diff --git a/kconfiglib.py b/kconfiglib.py
index <HASH>..<HASH> 100644
--- a/kconfiglib.py
+++ b/kconfiglib.py
@@ -191,7 +191,7 @@ class Config(object):
self._unset_re = re.compile(r"# {}(\w+) is not set"
.format(self._config_prefix))
- self._filename = filename
+ ... | Rename Config._filename to Config._kconfig_filename Mirrors Config._config_filename and makes it clearer which file each variable refers to. | py |
diff --git a/fedmsg_atomic_composer/composer.py b/fedmsg_atomic_composer/composer.py
index <HASH>..<HASH> 100644
--- a/fedmsg_atomic_composer/composer.py
+++ b/fedmsg_atomic_composer/composer.py
@@ -121,6 +121,7 @@ class AtomicComposer(object):
cfg.write(Template(mock_tmpl).render(**release))
def mo... | composer: Add a couple more docstrings | py |
diff --git a/datacache/common.py b/datacache/common.py
index <HASH>..<HASH> 100644
--- a/datacache/common.py
+++ b/datacache/common.py
@@ -26,13 +26,13 @@ def ensure_dir(path):
makedirs(path)
def get_data_dir(subdir=None, envkey=None):
- if subdir is None:
- subdir = "datacache"
-
- if envkey a... | fixed interaction of envkey and subdir | py |
diff --git a/src/pdfCropMargins/gui.py b/src/pdfCropMargins/gui.py
index <HASH>..<HASH> 100644
--- a/src/pdfCropMargins/gui.py
+++ b/src/pdfCropMargins/gui.py
@@ -88,9 +88,9 @@ from .main_pdfCropMargins import (process_pdf_file, parse_page_range_specifiers,
#print(sg.ListOfLookAndFeelValues())
#print(sg.LOOK_AND_FEEL... | revert to older naming for older PySimpleGUI versions | py |
diff --git a/tests/parser.py b/tests/parser.py
index <HASH>..<HASH> 100644
--- a/tests/parser.py
+++ b/tests/parser.py
@@ -42,3 +42,20 @@ class GcvsParserTestCase(unittest.TestCase):
magnitude_str = ' '
magnitude, symbol = self.parser.parse_magnitude(magnitude_str)
self.assertIsNone(m... | Added tests for parsing name. | py |
diff --git a/django_thumborstorage/storages.py b/django_thumborstorage/storages.py
index <HASH>..<HASH> 100644
--- a/django_thumborstorage/storages.py
+++ b/django_thumborstorage/storages.py
@@ -1,4 +1,5 @@
import os
+import re
import requests
from requests.packages.urllib3.exceptions import LocationParseError
from... | ThumborStorage.exists(): use the name string to guess if it is a Thumbor location. | py |
diff --git a/tensorforce/tests/test_dqn_agent.py b/tensorforce/tests/test_dqn_agent.py
index <HASH>..<HASH> 100755
--- a/tensorforce/tests/test_dqn_agent.py
+++ b/tensorforce/tests/test_dqn_agent.py
@@ -32,17 +32,17 @@ class TestDQNAgent(BaseAgentTest, unittest.TestCase):
batch_size=8,
frequen... | Use replay, not prioritized replay in dqn test. | py |
diff --git a/tests/basics/sys1.py b/tests/basics/sys1.py
index <HASH>..<HASH> 100644
--- a/tests/basics/sys1.py
+++ b/tests/basics/sys1.py
@@ -25,6 +25,11 @@ except SystemExit as e:
print("SystemExit", e.args)
try:
+ sys.exit()
+except SystemExit as e:
+ print("SystemExit", e.args)
+
+try:
sys.exit(4... | tests/basics/sys1.py: Add test for calling sys.exit() without any args. | py |
diff --git a/tests/test_operations_utils.py b/tests/test_operations_utils.py
index <HASH>..<HASH> 100644
--- a/tests/test_operations_utils.py
+++ b/tests/test_operations_utils.py
@@ -4,9 +4,9 @@ from unittest import TestCase
try:
from pathlib import Path
- HAVE_PATHLIB = True
+ HAS_FSPATH = hasattr(Path, ... | Only test pathlib if we're python<I>. Python <I> and below do not implement the `__fspath__` methods. | py |
diff --git a/xmantissa/webnav.py b/xmantissa/webnav.py
index <HASH>..<HASH> 100644
--- a/xmantissa/webnav.py
+++ b/xmantissa/webnav.py
@@ -1,8 +1,8 @@
# -*- test-case-name: xmantissa.test.test_webnav -*-
-from zope.interface import implements
+from epsilon.structlike import record
-from axiom.slotmachine import _s... | Merge structlike-<I>. Fixes #<I> Author: mithrandi Reviewer: exarkun This branch removes axiom.slotmachine._structlike, using epsilon.structlike.record to replace the few remaining uses thereof. | py |
diff --git a/registration/tests.py b/registration/tests.py
index <HASH>..<HASH> 100644
--- a/registration/tests.py
+++ b/registration/tests.py
@@ -331,6 +331,25 @@ class RegistrationViewTests(TestCase):
self.assertEqual(response['Location'], 'http://testserver%s' % reverse('registration_complete'))
se... | Test that we properly redirect when registration is closed. | py |
diff --git a/master/buildbot/worker/ec2.py b/master/buildbot/worker/ec2.py
index <HASH>..<HASH> 100644
--- a/master/buildbot/worker/ec2.py
+++ b/master/buildbot/worker/ec2.py
@@ -413,9 +413,6 @@ class EC2LatentWorker(AbstractLatentWorker):
self.instance = reservations[0]
instance_id, start_time = self... | Set tags for spot instances in EC2LatentWorker EC2LatentWorker ignores its "tags" parameter when spot_instance is True. We move the call to create_tags() from _start_instance(), which only applies to non-spot instances, to _wait_for_instance(), which is part of both the normal and spot instance call paths. Fixes #<I... | py |
diff --git a/tests/testing_utils.py b/tests/testing_utils.py
index <HASH>..<HASH> 100644
--- a/tests/testing_utils.py
+++ b/tests/testing_utils.py
@@ -109,7 +109,7 @@ def call_gui_callback(callback, *args):
condition.notify()
condition.release()
- glib.idle_add(fun)
+ glib.idle_add(fun... | Use low priority for call_gui_callback | py |
diff --git a/pylint/checkers/base.py b/pylint/checkers/base.py
index <HASH>..<HASH> 100644
--- a/pylint/checkers/base.py
+++ b/pylint/checkers/base.py
@@ -869,6 +869,7 @@ class BasicErrorChecker(_BasicChecker):
return
# Exempt "if <func> is not None" cases
+ # pyli... | Disable too-many-boolean-expressions where it does not make sense | py |
diff --git a/dockermap/map/runner/base.py b/dockermap/map/runner/base.py
index <HASH>..<HASH> 100644
--- a/dockermap/map/runner/base.py
+++ b/dockermap/map/runner/base.py
@@ -115,7 +115,7 @@ class DockerConfigMixin(object):
ports=[resolve_value(port_binding.exposed_port)
for port_bindin... | Use None for domainname if nothing is set. | py |
diff --git a/test/temporalcommunity/test_allegiance.py b/test/temporalcommunity/test_allegiance.py
index <HASH>..<HASH> 100644
--- a/test/temporalcommunity/test_allegiance.py
+++ b/test/temporalcommunity/test_allegiance.py
@@ -19,7 +19,7 @@ def test_allegiance():
N = len(community)
C = len(community[0])
- ... | Update test_allegiance.py Fixing filenaming | py |
diff --git a/switchyard/lib/interface.py b/switchyard/lib/interface.py
index <HASH>..<HASH> 100644
--- a/switchyard/lib/interface.py
+++ b/switchyard/lib/interface.py
@@ -106,7 +106,7 @@ class Interface(object):
return self.__iftype
def __str__(self):
- s = "{} {} {} mac:{}".format(str(self.name... | revert str repr of interface | py |
diff --git a/specter/spec.py b/specter/spec.py
index <HASH>..<HASH> 100644
--- a/specter/spec.py
+++ b/specter/spec.py
@@ -168,7 +168,9 @@ class Describe(EventDispatcher):
return (not func_name.startswith('_') and
not func_name == 'execute' and
not func_name == 'before_each' a... | Forgot to exclude before_all and after_all | py |
diff --git a/great_expectations/dataset/sparkdf_dataset.py b/great_expectations/dataset/sparkdf_dataset.py
index <HASH>..<HASH> 100644
--- a/great_expectations/dataset/sparkdf_dataset.py
+++ b/great_expectations/dataset/sparkdf_dataset.py
@@ -479,8 +479,7 @@ class SparkDFDataset(MetaSparkDFDataset):
catch_exce... | Not actually column name, but rather a column object | py |
diff --git a/webview/cocoa.py b/webview/cocoa.py
index <HASH>..<HASH> 100644
--- a/webview/cocoa.py
+++ b/webview/cocoa.py
@@ -573,11 +573,11 @@ def create_window(uid, title, url, width, height, resizable, fullscreen, min_siz
def create():
browser = BrowserView(uid, title, url, width, height, resizable, f... | [Cocoa] Revert webview_ready event behaviour | py |
diff --git a/kconfiglib.py b/kconfiglib.py
index <HASH>..<HASH> 100644
--- a/kconfiglib.py
+++ b/kconfiglib.py
@@ -3053,8 +3053,6 @@ class Kconfig(object):
# detection awkward.
for choice in self.unique_choices:
- # The choice symbols themselves, because the y mode selection might
- ... | Remove leftover comment in _add_choice_deps() Made more sense when the code was part of _build_dep(). The same thing is explained in the function docstring now. | py |
diff --git a/userena/models.py b/userena/models.py
index <HASH>..<HASH> 100644
--- a/userena/models.py
+++ b/userena/models.py
@@ -315,7 +315,7 @@ class UserenaBaseProfile(models.Model):
'last_name': user.last_name}
else:
# Fallback to the username if usernames are used
- ... | Fixed ``get_full_name_or_username``. | py |
diff --git a/tests/integration/buildcmd/test_build_cmd.py b/tests/integration/buildcmd/test_build_cmd.py
index <HASH>..<HASH> 100644
--- a/tests/integration/buildcmd/test_build_cmd.py
+++ b/tests/integration/buildcmd/test_build_cmd.py
@@ -28,8 +28,10 @@ class TestBuildCommand_PythonFunctions(BuildIntegBase):
@para... | fix: python<I> build integration tests (#<I>) | py |
diff --git a/elasticutils/contrib/django/__init__.py b/elasticutils/contrib/django/__init__.py
index <HASH>..<HASH> 100644
--- a/elasticutils/contrib/django/__init__.py
+++ b/elasticutils/contrib/django/__init__.py
@@ -84,6 +84,7 @@ class ESExceptionMiddleware(object):
* pyelasticsearch.exceptions.ConnectionErro... | Update a docstring re: last patch | py |
diff --git a/hypertools/_shared/helpers.py b/hypertools/_shared/helpers.py
index <HASH>..<HASH> 100644
--- a/hypertools/_shared/helpers.py
+++ b/hypertools/_shared/helpers.py
@@ -7,6 +7,7 @@ Helper functions
##PACKAGES##
from __future__ import division
from __future__ import print_function
+import sys
import numpy ... | added missing import sys statement to helpers.py | py |
diff --git a/src/diamond/server.py b/src/diamond/server.py
index <HASH>..<HASH> 100644
--- a/src/diamond/server.py
+++ b/src/diamond/server.py
@@ -79,9 +79,10 @@ class Server(object):
########################################################################
if 'handlers_path' in self.config['server']... | Fix UnboundLocalError if handlers_path is already a list | py |
diff --git a/src/cone/ugm/run.py b/src/cone/ugm/run.py
index <HASH>..<HASH> 100644
--- a/src/cone/ugm/run.py
+++ b/src/cone/ugm/run.py
@@ -15,7 +15,9 @@ def main(global_config, **settings):
config = Configurator(
root_factory=get_root,
settings=settings,
- authentication_policy=authn_facto... | configure auth_tkt to include ip | py |
diff --git a/tests/integration/modules/saltutil.py b/tests/integration/modules/saltutil.py
index <HASH>..<HASH> 100644
--- a/tests/integration/modules/saltutil.py
+++ b/tests/integration/modules/saltutil.py
@@ -5,6 +5,7 @@ Integration tests for the saltutil module.
# Import Python libs
from __future__ import absolu... | Test a fix for the wheel test I think that what is happening here is that we're using stale grains from a previous test. This should hopefully refresh them and allow this test to succeed. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -6,14 +6,29 @@ open_kwds = {}
if sys.version_info > (3,):
open_kwds['encoding'] = 'utf-8'
-with open("requirements.txt") as f:
- requires = f.read().splitlines()
-
-
-# with open('README.md', **open_kwds) as f:
-# ... | put explicit requirements in setup.py | py |
diff --git a/src/discoursegraphs/readwrite/rst/rs3.py b/src/discoursegraphs/readwrite/rst/rs3.py
index <HASH>..<HASH> 100644
--- a/src/discoursegraphs/readwrite/rst/rs3.py
+++ b/src/discoursegraphs/readwrite/rst/rs3.py
@@ -233,6 +233,8 @@ class RSTGraph(DiscourseDocumentGraph):
self.node[group_id].update(r... | rs3: got rid of generic discoursegraph root node | py |
diff --git a/src/pythonfinder/models/windows.py b/src/pythonfinder/models/windows.py
index <HASH>..<HASH> 100644
--- a/src/pythonfinder/models/windows.py
+++ b/src/pythonfinder/models/windows.py
@@ -60,7 +60,10 @@ class WindowsFinder(BaseFinder):
env_versions = pep514env.findall()
path = None
... | Skip uninstalled Python versions on Windows When the Python version has been uninstalled the info object simply does not have an attribute install_path. In case they ever stop this conditional attribute setting let's use getattr() with a None default and check for that to skip. pypa/pipenv#<I> | py |
diff --git a/gmail/message.py b/gmail/message.py
index <HASH>..<HASH> 100644
--- a/gmail/message.py
+++ b/gmail/message.py
@@ -17,6 +17,7 @@ class Message():
self.subject = None
self.body = None
+ self.html = None
self.to = None
self.fr = None
@@ -135,9 +136,11 @@ class Me... | Added a feature to return message as html | py |
diff --git a/pybitcoin/rpc/bitcoind_client.py b/pybitcoin/rpc/bitcoind_client.py
index <HASH>..<HASH> 100644
--- a/pybitcoin/rpc/bitcoind_client.py
+++ b/pybitcoin/rpc/bitcoind_client.py
@@ -125,17 +125,13 @@ class BitcoindClient(object):
or blockcypher API to grab the unspents for arbitrary addresses.
... | updated get unspents to ask for unspents for a particular address instead of all unspents | py |
diff --git a/cms_lab_publications/models.py b/cms_lab_publications/models.py
index <HASH>..<HASH> 100644
--- a/cms_lab_publications/models.py
+++ b/cms_lab_publications/models.py
@@ -213,7 +213,6 @@ class PublicationSet(models.Model):
)
publications = models.ManyToManyField(Publication,
blank=True,
-... | Remove null keyword from ManyToManyField | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -5,7 +5,7 @@ kwargs = {
'packages': find_packages(exclude=['tests', '*.tests', '*.tests.*', 'tests.*']),
'include_package_data': True,
'install_requires': [
- 'django>=1.4,<1.7',
+ 'django>=1.4,<1.... | Changed Django version in setup.py to >=<I>,<<I> | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -58,4 +58,4 @@ setup(
tests_require=['pytest'],
url='https://github.com/sfischer13/python-arpa',
version='0.1.0b1',
- zip_safe=True)
+ zip_safe=False) | Set zip_safe to False | py |
diff --git a/wafer/talks/models.py b/wafer/talks/models.py
index <HASH>..<HASH> 100644
--- a/wafer/talks/models.py
+++ b/wafer/talks/models.py
@@ -31,8 +31,9 @@ def authors_help():
text.append(_("The speakers presenting the talk."))
if not settings.WAFER_PUBLIC_ATTENDEE_LIST:
text.append(_(
- ... | Clarify that the visible authors are the talk's authors | py |
diff --git a/nodeconductor/cloud/serializers.py b/nodeconductor/cloud/serializers.py
index <HASH>..<HASH> 100644
--- a/nodeconductor/cloud/serializers.py
+++ b/nodeconductor/cloud/serializers.py
@@ -38,24 +38,6 @@ class CloudSerializer(core_serializers.PermissionFieldFilteringMixin,
public_fields = ('uuid', 'url... | commented get_fields method was removed (NC-<I>) | py |
diff --git a/saunter/SeleniumServer.py b/saunter/SeleniumServer.py
index <HASH>..<HASH> 100644
--- a/saunter/SeleniumServer.py
+++ b/saunter/SeleniumServer.py
@@ -57,9 +57,10 @@ def start_server():
Starts the included server and writes out the pid
"""
if not os.path.exists(cf.get("Selenium", "server_path... | because the name of the jar we were downloading was different than the one that is stored on disk it wasn't being upgraded | py |
diff --git a/headers/cpp/find_warnings.py b/headers/cpp/find_warnings.py
index <HASH>..<HASH> 100755
--- a/headers/cpp/find_warnings.py
+++ b/headers/cpp/find_warnings.py
@@ -140,6 +140,7 @@ class WarningHunter(object):
sys.exit(1)
except:
print 'Exception while processing... | Ensure that module has a value even if an exception is raised git-svn-id: <URL> | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -4,7 +4,7 @@ from setuptools import find_packages, setup
from teletype import VERSION
-with open("readme.md", "r") as fp:
+with open("readme.md", "r", encoding="utf8") as fp:
LONG_DESCRIPTION = fp.read()
setup( | Explicitly specifies file encoding as UTF-8 for Windows | py |
diff --git a/loguru/_logger.py b/loguru/_logger.py
index <HASH>..<HASH> 100644
--- a/loguru/_logger.py
+++ b/loguru/_logger.py
@@ -609,6 +609,10 @@ class Logger:
the log file as argument and process to whatever it wants (custom compression, network
sending, removing it, etc.).
+ Either wa... | Document possible deadlock if logger used by file sink | py |
diff --git a/openquake/engine/calculators/hazard/general.py b/openquake/engine/calculators/hazard/general.py
index <HASH>..<HASH> 100644
--- a/openquake/engine/calculators/hazard/general.py
+++ b/openquake/engine/calculators/hazard/general.py
@@ -221,6 +221,11 @@ class BaseHazardCalculator(base.Calculator):
... | Added an INFO message about the number of sources | py |
diff --git a/PyFunceble.py b/PyFunceble.py
index <HASH>..<HASH> 100755
--- a/PyFunceble.py
+++ b/PyFunceble.py
@@ -1043,7 +1043,7 @@ class Prints(object):
if not Settings.no_files \
and self.output is not None \
and self.output != '' \
- and not path.isfile(self.output):
+ ... | Renaming from 'Current' to 'Installed' value for the argument | py |
diff --git a/imhotep/repomanagers.py b/imhotep/repomanagers.py
index <HASH>..<HASH> 100644
--- a/imhotep/repomanagers.py
+++ b/imhotep/repomanagers.py
@@ -65,7 +65,7 @@ class RepoManager:
self, repo_name: str, remote_repo: None, dir_override: Optional[str] = None
) -> Tuple[str, Repository]:
"""S... | make use of dir_override | py |
diff --git a/formatizer.py b/formatizer.py
index <HASH>..<HASH> 100644
--- a/formatizer.py
+++ b/formatizer.py
@@ -7,7 +7,7 @@ if PY3: # pragma: no cover
class LiteralFormatter(object):
- def format(self, format_string, globals, locals, recursion_depth=2):
+ def format(self, format_string, globals_, locals_... | Renamed globals and locals to ensure we don't shadow the builtin | py |
diff --git a/hack/build-local-images.py b/hack/build-local-images.py
index <HASH>..<HASH> 100755
--- a/hack/build-local-images.py
+++ b/hack/build-local-images.py
@@ -257,6 +257,9 @@ for image in image_config:
)
debug("Initiating Docker build with Dockerfile:\n{}".format(open(join(context_dir, "Dockerfi... | always pull image before rebuilding local images | py |
diff --git a/oide/apps/filebrowser/posixfs.py b/oide/apps/filebrowser/posixfs.py
index <HASH>..<HASH> 100644
--- a/oide/apps/filebrowser/posixfs.py
+++ b/oide/apps/filebrowser/posixfs.py
@@ -39,8 +39,8 @@ class PosixFS():
filepath = os.path.abspath(filepath)
with open(filepath, 'w') as local_file:
... | Fixed error with write unicode to file. | py |
diff --git a/python/mxnet/contrib/tensorrt.py b/python/mxnet/contrib/tensorrt.py
index <HASH>..<HASH> 100644
--- a/python/mxnet/contrib/tensorrt.py
+++ b/python/mxnet/contrib/tensorrt.py
@@ -21,7 +21,7 @@ import ctypes
import logging
import os
-from mxnet.symbol import Symbol
+from .. import symbol as sym
from .... | [MXNET-<I>] Use relative path for symbol import (#<I>) | py |
diff --git a/drf_auto_endpoint/endpoints.py b/drf_auto_endpoint/endpoints.py
index <HASH>..<HASH> 100644
--- a/drf_auto_endpoint/endpoints.py
+++ b/drf_auto_endpoint/endpoints.py
@@ -279,7 +279,7 @@ class Endpoint(object):
if f.related_model
else f.model if f.model and f.model != self.model el... | :bug: don't "need" models related to non-serialized fields | py |
diff --git a/alerta/database/backends/mongodb/base.py b/alerta/database/backends/mongodb/base.py
index <HASH>..<HASH> 100644
--- a/alerta/database/backends/mongodb/base.py
+++ b/alerta/database/backends/mongodb/base.py
@@ -1024,7 +1024,7 @@ class Backend(Database):
pipeline = [
{'$project': {
... | Timeout need to be in ms (#<I>) | py |
diff --git a/src/qinfer/tomography/models.py b/src/qinfer/tomography/models.py
index <HASH>..<HASH> 100644
--- a/src/qinfer/tomography/models.py
+++ b/src/qinfer/tomography/models.py
@@ -70,6 +70,24 @@ class RandomBasisHeuristic(Heuristic):
return expparams
+class WorstBasisHeuristic(Heuristic):
+ ... | New tomography heuristic for meas worst basis. | py |
diff --git a/test_script.py b/test_script.py
index <HASH>..<HASH> 100644
--- a/test_script.py
+++ b/test_script.py
@@ -1,3 +1,5 @@
+from __future__ import unicode_literals
+from builtins import dict, str
import json, os, uuid, time, logging
from random import randint
from marketorestpython.client import MarketoClien... | try to get python <I> unicode compatibility for pytest | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -23,6 +23,7 @@ setup(
author_email='python-loaders@loethr.net',
description='Small collection of custom module loaders for Python.',
long_description=open('README.rst').read(),
+ data_files=['README.rst'],
... | Add README.rst to the package so it can be read from setup.py | py |
diff --git a/pabot/pabot.py b/pabot/pabot.py
index <HASH>..<HASH> 100755
--- a/pabot/pabot.py
+++ b/pabot/pabot.py
@@ -1306,14 +1306,15 @@ def _initialize_queue_index():
global _PABOTLIBURI
plib = Remote(_PABOTLIBURI)
# INITIALISE PARALLEL QUEUE MIN INDEX
- while True:
+ for i in range(300):
... | fail if not connected in <I> seconds | py |
diff --git a/pypiper/ngstk.py b/pypiper/ngstk.py
index <HASH>..<HASH> 100644
--- a/pypiper/ngstk.py
+++ b/pypiper/ngstk.py
@@ -636,10 +636,10 @@ def bamToBigWig(inputBam, outputBigWig, genomeSizes, genome, tagmented=False, sc
transientFile
)
- """sum=$(awk '{sum += $4} END {print sum}' {0} )""".format(transien... | fix string to normalize bigWig - to be developed later | py |
diff --git a/pyxel/ui/__init__.py b/pyxel/ui/__init__.py
index <HASH>..<HASH> 100644
--- a/pyxel/ui/__init__.py
+++ b/pyxel/ui/__init__.py
@@ -1,8 +1,10 @@
from .button import Button # noqa: F401
from .color_picker import ColorPicker # noqa: F401
from .image_button import ImageButton # noqa: F401
+from .image_tog... | Added the ToggleButton and ImageToggleButton | py |
diff --git a/docs/conf.py b/docs/conf.py
index <HASH>..<HASH> 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -14,7 +14,9 @@
# import os
# import sys
-from prospector.__pkginfo__ import __version__ as version
+import pkg_resources
+
+version = pkg_resources.get_distribution("prospector").version
release = ".".jo... | [#<I>] Fixing documentation building | py |
diff --git a/troposphere/awslambda.py b/troposphere/awslambda.py
index <HASH>..<HASH> 100644
--- a/troposphere/awslambda.py
+++ b/troposphere/awslambda.py
@@ -157,6 +157,7 @@ class Permission(AWSObject):
props = {
'Action': (basestring, True),
+ 'EventSourceToken': (basestring, False),
'... | Add EventSourceToken to Lambda::Permission | py |
diff --git a/test/test_struct.py b/test/test_struct.py
index <HASH>..<HASH> 100644
--- a/test/test_struct.py
+++ b/test/test_struct.py
@@ -107,6 +107,14 @@ def test_builder_set(addressbook):
person.foo = 'test'
+def test_builder_set_from_list(all_types):
+ msg = all_types.TestAllTypes.new_message()
+
+ ... | Add test for setting a field from a list | py |
diff --git a/salt/utils/msgpack.py b/salt/utils/msgpack.py
index <HASH>..<HASH> 100644
--- a/salt/utils/msgpack.py
+++ b/salt/utils/msgpack.py
@@ -61,7 +61,7 @@ def _sanitize_msgpack_kwargs(kwargs):
assert isinstance(kwargs, dict)
if version < (0, 6, 0) and kwargs.pop('strict_map_key', None) is not None:
... | Fix typo on msgpack version when sanitizing msgpack kwargs | py |
diff --git a/openquake/calculators/disaggregation.py b/openquake/calculators/disaggregation.py
index <HASH>..<HASH> 100644
--- a/openquake/calculators/disaggregation.py
+++ b/openquake/calculators/disaggregation.py
@@ -504,7 +504,8 @@ class DisaggregationCalculator(base.HazardCalculator):
poe2 = pprod(... | Reduced number of warnings [skip CI] | py |
diff --git a/test/test_ac_dc_lopf.py b/test/test_ac_dc_lopf.py
index <HASH>..<HASH> 100644
--- a/test/test_ac_dc_lopf.py
+++ b/test/test_ac_dc_lopf.py
@@ -37,9 +37,9 @@ def test_lopf():
snapshots = network.snapshots
- for formulation, free_memory_hack in product(["angles", "cycles", "kirchhoff", "ptdf"],
- ... | test: Adapt test to change of the free_memory semantics | py |
diff --git a/slave/buildslave/commands/fs.py b/slave/buildslave/commands/fs.py
index <HASH>..<HASH> 100644
--- a/slave/buildslave/commands/fs.py
+++ b/slave/buildslave/commands/fs.py
@@ -73,7 +73,7 @@ class RemoveDirectory(base.Command):
d = self._clobber(None)
# always add the RC, regardless of... | add a self._checkAbandoned errback for CopyDirectory and RemoveDirectoroy | py |
diff --git a/tensorlayer/layers.py b/tensorlayer/layers.py
index <HASH>..<HASH> 100755
--- a/tensorlayer/layers.py
+++ b/tensorlayer/layers.py
@@ -1898,7 +1898,9 @@ class BiRNNLayer(Layer):
Notes
-----
- Input dimension should be rank 3 : [batch_size, n_steps, n_features], if no, please see :class:`Resha... | [DOCS] BiRNNLayer, notes, seq len for predition has to be the same with training | py |
diff --git a/docs/conf.py b/docs/conf.py
index <HASH>..<HASH> 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -63,7 +63,8 @@ master_doc = 'index'
# General information about the project.
project = 'aiosmtplib'
author = 'Cole Maclean'
-copyright = f'{datetime.date.today().year}, {author}'
+year = datetime.date.today(... | No f-strings on readthedocs (<I>). | py |
diff --git a/templatetags/danatime.py b/templatetags/danatime.py
index <HASH>..<HASH> 100644
--- a/templatetags/danatime.py
+++ b/templatetags/danatime.py
@@ -55,10 +55,10 @@ def danatime(value):
return _("%(hour)s:%(minute)s "
) % {'hour': value.time().hour % 12,
'minute': value.t... | Fix indentation bug Took me a while to figure this one out. | py |
diff --git a/tests/test_cp.py b/tests/test_cp.py
index <HASH>..<HASH> 100644
--- a/tests/test_cp.py
+++ b/tests/test_cp.py
@@ -36,15 +36,6 @@ def test_virtualenv_variable(copied_env):
assert str(copied_env) == envname
-def test_source_relocatable(workon_home, testpackageenv):
- check_call([executable, '-m',... | Remove test for testing 'virtualenv --relocatable' Virtualenv <I>+ doesn't support --relocatable anymore and nothing in Pew really depended on that. | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.