diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/cookiecutter/prompt.py b/cookiecutter/prompt.py
index <HASH>..<HASH> 100755
--- a/cookiecutter/prompt.py
+++ b/cookiecutter/prompt.py
@@ -33,6 +33,6 @@ def prompt_for_config(context):
new_val = input(prompt)
new_val = new_val.strip()
- cookiecutter_dict['key'] = n... | Assign to the right key when prompting. | py |
diff --git a/credentials/base.py b/credentials/base.py
index <HASH>..<HASH> 100644
--- a/credentials/base.py
+++ b/credentials/base.py
@@ -6,6 +6,9 @@ class Credentials(object):
def __init__(self, backends):
self._backends = backends
+ def add_backend(self, backend):
+ self._backends.append(ba... | Allow user to add backends. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -20,7 +20,7 @@ setup(
url="https://github.com/LEMS/pylems",
classifiers = [
'Intended Audience :: Science/Research',
- 'License :: OSI Approved :: LGPL',
+ 'License :: OSI Approved :: GNU Lesse... | Updated name of licence in setup.py | py |
diff --git a/openquake/engine/utils/config.py b/openquake/engine/utils/config.py
index <HASH>..<HASH> 100644
--- a/openquake/engine/utils/config.py
+++ b/openquake/engine/utils/config.py
@@ -30,6 +30,9 @@ import openquake.engine
from openquake.engine.utils import general
OQDIR = os.path.dirname(os.path.dirname(open... | utils/config: Added capability for the user to set a "OQ_CONFIG_FILE" envvar, to specify a custom config file to override defaults. | py |
diff --git a/holoviews/element/tabular.py b/holoviews/element/tabular.py
index <HASH>..<HASH> 100644
--- a/holoviews/element/tabular.py
+++ b/holoviews/element/tabular.py
@@ -219,6 +219,10 @@ class TableConversion(object):
from .chart import Bars
return self._conversion(kdims, vdims, mdims, Bars, **kw... | Added BoxWhisker TableConversion method | py |
diff --git a/python-package/lightgbm/libpath.py b/python-package/lightgbm/libpath.py
index <HASH>..<HASH> 100644
--- a/python-package/lightgbm/libpath.py
+++ b/python-package/lightgbm/libpath.py
@@ -21,9 +21,8 @@ def find_lib_path():
os.path.join(curr_path, './lib/'),
os.path.join(sys.... | change the dll search order in windows (cmake-build first) | py |
diff --git a/tests/integration/files/file/base/_modules/runtests_helpers.py b/tests/integration/files/file/base/_modules/runtests_helpers.py
index <HASH>..<HASH> 100644
--- a/tests/integration/files/file/base/_modules/runtests_helpers.py
+++ b/tests/integration/files/file/base/_modules/runtests_helpers.py
@@ -109,13 +1... | Fix runtests_helpers.modules_available when multiple modules passed tests.support.helpers passes the single-asterisk tuple of args as individual arguments to runtest_helpers.modules_available. This breaks tests which pass more than one argument to the requires_salt_modules decorator. This has been fixed by making run... | py |
diff --git a/tests/test_video.py b/tests/test_video.py
index <HASH>..<HASH> 100644
--- a/tests/test_video.py
+++ b/tests/test_video.py
@@ -688,6 +688,7 @@ def test_video_exists_accessible(movie, episode):
assert episode.media[0].parts[0].accessible is True
+@pytest.mark.skip(reason='broken? assert len(plex.con... | mark test as broken and skip. provided reason as failing on some builds. | py |
diff --git a/pebble/pool/process.py b/pebble/pool/process.py
index <HASH>..<HASH> 100644
--- a/pebble/pool/process.py
+++ b/pebble/pool/process.py
@@ -418,7 +418,7 @@ def worker_process(params, channel):
payload.function, *payload.args, **payload.kwargs)
send_result(channel, Result(task.id... | issue #<I>, pool/process: fix worker error handling Do not assume the exception has `errno` attribute. | py |
diff --git a/alerta/logger/daemon.py b/alerta/logger/daemon.py
index <HASH>..<HASH> 100644
--- a/alerta/logger/daemon.py
+++ b/alerta/logger/daemon.py
@@ -14,14 +14,13 @@ from alerta.common.alert import AlertDocument
from alerta.common.heartbeat import Heartbeat
from alerta.common.utils import DateEncoder
-
__vers... | make logger consistent with ircbot | py |
diff --git a/actstream/gfk.py b/actstream/gfk.py
index <HASH>..<HASH> 100644
--- a/actstream/gfk.py
+++ b/actstream/gfk.py
@@ -54,6 +54,7 @@ class GFKQuerySet(QuerySet):
for gfk in gfk_fields:
ct_id_field = self.model._meta.get_field(gfk.ct_field).column
if getattr(item, c... | Ignoring corrupted GFK values (one of CType or ID is None) | py |
diff --git a/pyinfra/cli.py b/pyinfra/cli.py
index <HASH>..<HASH> 100644
--- a/pyinfra/cli.py
+++ b/pyinfra/cli.py
@@ -173,6 +173,9 @@ def dump_trace(exc_info):
def dump_state(state):
print()
+ print('--> Gathered facts:')
+ print(json.dumps(state.facts, indent=4, default=json_encode))
+ print()
p... | Move facts up top in debug dump. | py |
diff --git a/omgeo/tests/tests.py b/omgeo/tests/tests.py
index <HASH>..<HASH> 100755
--- a/omgeo/tests/tests.py
+++ b/omgeo/tests/tests.py
@@ -343,7 +343,7 @@ class GeocoderTest(OmgeoTestCase):
@unittest.skipIf(GOOGLE_API_KEY is None, GOOGLE_KEY_REQUIRED_MSG)
def test_google_country_filter(self):
- c... | Fix failing test for Google country filter Test disambiguation of a place name with country name; do not assume default country selection. | py |
diff --git a/scanpy/tools/_rank_genes_groups.py b/scanpy/tools/_rank_genes_groups.py
index <HASH>..<HASH> 100644
--- a/scanpy/tools/_rank_genes_groups.py
+++ b/scanpy/tools/_rank_genes_groups.py
@@ -345,6 +345,8 @@ class _RankGenes:
self.stats = None
+ n_genes = self.X.shape[1]
+
for group_... | fix n_genes in correction | py |
diff --git a/src/aspectlib/test.py b/src/aspectlib/test.py
index <HASH>..<HASH> 100644
--- a/src/aspectlib/test.py
+++ b/src/aspectlib/test.py
@@ -562,7 +562,7 @@ class Replay(_RecordingBase):
def _format_calls(calls):
for (binding, name, args, kwargs), result in calls.items():
- sig = '%s(%s%s%s)' % (na... | Remove bogus comma is args is empty. | py |
diff --git a/luigi/cmdline.py b/luigi/cmdline.py
index <HASH>..<HASH> 100644
--- a/luigi/cmdline.py
+++ b/luigi/cmdline.py
@@ -41,4 +41,4 @@ def luigid(argv=sys.argv[1:]):
filename=os.path.join(opts.logdir, "luigi-server.log"))
else:
logging.basicConfig(level=loggi... | Allow scheduler to listen on unix socket normally Previously, the scheduler would only listen on a supplied unix socket when run in the background. When run normally, it would ignore the given unix socket and serve on the default port. This is fixed by passing the given unix_socket to server.run when the scheduler i... | py |
diff --git a/test_isort.py b/test_isort.py
index <HASH>..<HASH> 100644
--- a/test_isort.py
+++ b/test_isort.py
@@ -871,8 +871,8 @@ def test_relative_import_with_space():
"""Tests the case where the relation and the module that is being imported from is separated with a space."""
test_input = ("from ... fields... | Fix <I> and <I> by cleaning line earlier and fixing typo | py |
diff --git a/sen/cli.py b/sen/cli.py
index <HASH>..<HASH> 100755
--- a/sen/cli.py
+++ b/sen/cli.py
@@ -34,7 +34,10 @@ def main():
description="Terminal User Interface for Docker Engine"
)
exclusive_group = parser.add_mutually_exclusive_group()
- exclusive_group.add_argument("--debug", action="stor... | Add help to commandline argument (#<I>) | py |
diff --git a/python/ray/tests/test_client.py b/python/ray/tests/test_client.py
index <HASH>..<HASH> 100644
--- a/python/ray/tests/test_client.py
+++ b/python/ray/tests/test_client.py
@@ -746,5 +746,25 @@ def test_wrapped_actor_creation(call_ray_start):
run_wrapped_actor_creation()
+@pytest.mark.parametrize(
+ ... | [ray client] Add test that ray.init doesn't require resources to connect (#<I>) | py |
diff --git a/keyring/backends/SecretService.py b/keyring/backends/SecretService.py
index <HASH>..<HASH> 100644
--- a/keyring/backends/SecretService.py
+++ b/keyring/backends/SecretService.py
@@ -56,12 +56,8 @@ class Keyring(KeyringBackend):
"""Delete the stored password (only the first one)
"""
... | SecretService: allow deleting items created using previous python-keyring versions Before switch to secretstorage, python-keyring didn't set "application" attribute. While we support searching for items without that attribute, we should also support deleting them. | py |
diff --git a/dipper/sources/OMIMSource.py b/dipper/sources/OMIMSource.py
index <HASH>..<HASH> 100644
--- a/dipper/sources/OMIMSource.py
+++ b/dipper/sources/OMIMSource.py
@@ -139,7 +139,7 @@ class OMIMSource(Source):
src_key = 'mimtitles'
- self.get_files(is_dl_forced=True, files=self.mimfiles)
+ ... | removed is_dl_forced from get_files() call in populate_omim_type() | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -47,6 +47,7 @@ def main():
classifiers=classifiers,
packages=["ptest"],
package_data={"ptest": ["htmltemplate/*.*"]},
+ python_requires=">=3.4",
zip_safe=False,
) | Only support python >=<I> | py |
diff --git a/autolens/pipeline/phase/phase_extensions.py b/autolens/pipeline/phase/phase_extensions.py
index <HASH>..<HASH> 100644
--- a/autolens/pipeline/phase/phase_extensions.py
+++ b/autolens/pipeline/phase/phase_extensions.py
@@ -377,8 +377,7 @@ class HyperGalaxyPhase(HyperPhase):
image_1d=sel... | Removed scaled array from array function in LensDataFits. | py |
diff --git a/anyconfig/mergeabledict.py b/anyconfig/mergeabledict.py
index <HASH>..<HASH> 100644
--- a/anyconfig/mergeabledict.py
+++ b/anyconfig/mergeabledict.py
@@ -289,11 +289,6 @@ class MergeableDict(dict):
strategy = MS_DICTS
- @classmethod
- def convert_to(cls, mdict):
- """Create an object ... | change: remove the class method 'convert_to' from MergeableDict class to make it light and simple | py |
diff --git a/openhtf/plugs/__init__.py b/openhtf/plugs/__init__.py
index <HASH>..<HASH> 100644
--- a/openhtf/plugs/__init__.py
+++ b/openhtf/plugs/__init__.py
@@ -481,6 +481,20 @@ class PlugManager(object):
self.update_plug(plug_type, plug_instance)
self._create_or_update_rpc_server()
+ def get_plug_by_c... | Add method to get plug instance from manager (#<I>) | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -57,6 +57,7 @@ setup(
"Topic :: Software Development :: Testing",
"License :: OSI Approved :: MIT License"
],
+ python_requires=">=3.6",
install_requires=[
'Click==7.1.2',
'arro... | setup.py now enforces Python>=<I> This will prevent gitlint being installed on lower python versions. | py |
diff --git a/python/dllib/src/bigdl/dllib/utils/nncontext.py b/python/dllib/src/bigdl/dllib/utils/nncontext.py
index <HASH>..<HASH> 100644
--- a/python/dllib/src/bigdl/dllib/utils/nncontext.py
+++ b/python/dllib/src/bigdl/dllib/utils/nncontext.py
@@ -282,9 +282,10 @@ class ZooContextMeta(type):
@log_output.setter
... | update the message when setting log_output after init context and make it a warning (#<I>) | py |
diff --git a/aiohue/discovery.py b/aiohue/discovery.py
index <HASH>..<HASH> 100644
--- a/aiohue/discovery.py
+++ b/aiohue/discovery.py
@@ -1,9 +1,10 @@
"""Various helper utility for Hue bridge discovery."""
from __future__ import annotations
+
from dataclasses import dataclass
from typing import List
-from aiohtt... | Fix KeyError on fake Hue bridges (#<I>) * Fix KeyError on fake Hue bridges ignore fake Hue bridge API responses * typo | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -69,6 +69,7 @@ setup(
packages=['fbchat'],
install_requires=[
'requests',
+ 'lxml',
'beautifulsoup4'
],
url=source, | added lxml to dependencies | py |
diff --git a/isort/settings.py b/isort/settings.py
index <HASH>..<HASH> 100644
--- a/isort/settings.py
+++ b/isort/settings.py
@@ -144,10 +144,14 @@ def _read_config_file(file_path, sections):
computed_settings['line_length'] = int(max_line_length)
for key, value in settings.items():
- ... | Add support for excluding values to settings | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -32,7 +32,7 @@ if sys.version_info.major == 2:
else:
# python 3+
install_requires.extend(['xarray', 'pandas>=0.23, <0.25', 'numpy>=1.12',
- 'scipy>=1.4', 'matplotlib'])
+ ... | BUG: remove minimum scipy from setup | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -110,7 +110,7 @@ def main():
long_description = f.read()
with open('telethon/version.py', encoding='utf-8') as f:
- version = re.search(r"^__version__\s+=\s+'(.*)'$",
+ version = r... | setup: Fix regex failure to match version in case of CRLF line feeds This could happen e.g. in case of using pip3 to install Telethon directly from the git repo. | py |
diff --git a/irco/parser.py b/irco/parser.py
index <HASH>..<HASH> 100644
--- a/irco/parser.py
+++ b/irco/parser.py
@@ -176,6 +176,16 @@ class RecordProcessor(object):
affiliation = record['author_affiliation'][affiliation]
break
else:
+ p = max(len(corresponding_aut... | Better error messages for not found corresponding authors. | py |
diff --git a/pysat/tests/test_custom.py b/pysat/tests/test_custom.py
index <HASH>..<HASH> 100644
--- a/pysat/tests/test_custom.py
+++ b/pysat/tests/test_custom.py
@@ -137,14 +137,9 @@ class TestBasics():
"""Test adding custom methods at Instrument instantiation
"""
def custom_add(inst, arg1, ... | TST: Removed unnecessary method code | py |
diff --git a/MusicBoxApi/api.py b/MusicBoxApi/api.py
index <HASH>..<HASH> 100644
--- a/MusicBoxApi/api.py
+++ b/MusicBoxApi/api.py
@@ -46,6 +46,12 @@ from .storage import Storage
from .utils import notify
from . import logger
+
+class TooManyTracksException(Exception):
+ """The playlist contains more than 1000 t... | raise TooManyTracksException for playlist longer than <I> | py |
diff --git a/spyderlib/widgets/sourcecode/syntaxhighlighters.py b/spyderlib/widgets/sourcecode/syntaxhighlighters.py
index <HASH>..<HASH> 100644
--- a/spyderlib/widgets/sourcecode/syntaxhighlighters.py
+++ b/spyderlib/widgets/sourcecode/syntaxhighlighters.py
@@ -212,8 +212,10 @@ class BaseSH(QSyntaxHighlighter):
... | Use normal format for trailing spaces. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -9,7 +9,7 @@ from pip.req import parse_requirements
setup(
name='Flask-Ask',
- version='0.8.9-dv',
+ version='0.8.9',
url='https://github.com/johnwheeler/flask-ask',
license='Apache 2.0',
author='J... | revert package version to match upstream master before PR | py |
diff --git a/shinken/modules/graphite_ui.py b/shinken/modules/graphite_ui.py
index <HASH>..<HASH> 100644
--- a/shinken/modules/graphite_ui.py
+++ b/shinken/modules/graphite_ui.py
@@ -104,7 +104,7 @@ class Graphite_Webui(BaseModule):
name = self.illegal_char.sub('_', elts[0])
raw = elts[1]
... | Fix: Index Error with Graphite UI | py |
diff --git a/marquise.py b/marquise.py
index <HASH>..<HASH> 100644
--- a/marquise.py
+++ b/marquise.py
@@ -134,3 +134,6 @@ print(m)
# Test send_simple()
m.send_simple(5, 100, 200000)
+m.send_simple(5, 101, 200001)
+m.send_simple(5, 102, 200002)
+m.send_simple(5, 103, 200003) | Add more tests, doesn't break valgrind? Good. | py |
diff --git a/nodeconductor/cloud/tasks.py b/nodeconductor/cloud/tasks.py
index <HASH>..<HASH> 100644
--- a/nodeconductor/cloud/tasks.py
+++ b/nodeconductor/cloud/tasks.py
@@ -1,18 +1,9 @@
from celery import shared_task
-from keystoneclient.v2_0 import client
-
-from nodeconductor.cloud import models
-
-# XXX: this hav... | task was corrected (NC-<I>) | py |
diff --git a/htmresearch/regions/TemporalPoolerRegion.py b/htmresearch/regions/TemporalPoolerRegion.py
index <HASH>..<HASH> 100644
--- a/htmresearch/regions/TemporalPoolerRegion.py
+++ b/htmresearch/regions/TemporalPoolerRegion.py
@@ -371,6 +371,15 @@ class TemporalPoolerRegion(PyRegion):
regionLevel=True,
... | Added sequenceId input to TemporalPoolerRegion | py |
diff --git a/tests_tf/test_mnist_tutorial_tf.py b/tests_tf/test_mnist_tutorial_tf.py
index <HASH>..<HASH> 100644
--- a/tests_tf/test_mnist_tutorial_tf.py
+++ b/tests_tf/test_mnist_tutorial_tf.py
@@ -7,16 +7,16 @@ class TestAttackClassInitArguments(unittest.TestCase):
# Run the MNIST tutorial on a dataset of ... | reduce mnist adv training size test | py |
diff --git a/knox_project/urls.py b/knox_project/urls.py
index <HASH>..<HASH> 100644
--- a/knox_project/urls.py
+++ b/knox_project/urls.py
@@ -1,14 +1,14 @@
try:
# For django >= 2.0
- from django.urls import include, path
+ from django.urls import include, re_path
except ImportError:
# For django < 2.... | Fix #<I> Replace path with re_path in test urls `path` will trigger a warning when used with a regex while `re_path` is what should be used instead. | py |
diff --git a/youku/youku_upload.py b/youku/youku_upload.py
index <HASH>..<HASH> 100644
--- a/youku/youku_upload.py
+++ b/youku/youku_upload.py
@@ -86,6 +86,10 @@ class YoukuUpload(object):
title = self.file_name
elif len(title) > 80:
title = title[:80]
+
+ if len(description) >... | limit the length of description to <I> | py |
diff --git a/cleancat/base.py b/cleancat/base.py
index <HASH>..<HASH> 100644
--- a/cleancat/base.py
+++ b/cleancat/base.py
@@ -216,7 +216,7 @@ class DateTime(Regex):
raise ValidationError(self.regex_message)
try:
dt = parser.parse(value)
- except parser.ParserError:
+ ex... | Check for ValueError (#<I>) ParserError only appears in <I>, and it's a subclass of ValueError. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -26,7 +26,7 @@ def do_setup(cython=False):
setup(
name = "freeze",
- version = "1.0.6",
+ version = "1.0.7",
package_dir = {'': 'lib'},
packages = packages,
ext_modul... | Cython + Python 2 compatiblity | py |
diff --git a/iprestrict/tests/test_views.py b/iprestrict/tests/test_views.py
index <HASH>..<HASH> 100644
--- a/iprestrict/tests/test_views.py
+++ b/iprestrict/tests/test_views.py
@@ -13,6 +13,7 @@ class ReloadViewTest(TestCase):
admin.is_staff = True
admin.is_superuser = True
admin.save()
+ ... | Ensures ReloadViewTest starts with reloaded rules. | py |
diff --git a/modularodm/tests/laziness/test_lazy_load.py b/modularodm/tests/laziness/test_lazy_load.py
index <HASH>..<HASH> 100644
--- a/modularodm/tests/laziness/test_lazy_load.py
+++ b/modularodm/tests/laziness/test_lazy_load.py
@@ -1,9 +1,7 @@
from modularodm.tests import ModularOdmTestCase
-from modularodm impor... | Fixes imports for lazy loading tests | py |
diff --git a/stanza/models/common/vocab.py b/stanza/models/common/vocab.py
index <HASH>..<HASH> 100644
--- a/stanza/models/common/vocab.py
+++ b/stanza/models/common/vocab.py
@@ -225,7 +225,7 @@ class BaseMultiVocab:
class CharVocab(BaseVocab):
def build_vocab(self):
- if type(self.data[0][0]) is list: #... | Dig into tuples as well as lists when building charlm data. | py |
diff --git a/samcli/commands/init/init_templates.py b/samcli/commands/init/init_templates.py
index <HASH>..<HASH> 100644
--- a/samcli/commands/init/init_templates.py
+++ b/samcli/commands/init/init_templates.py
@@ -114,7 +114,7 @@ class InitTemplates:
)
self.repo_path = expected_path
... | Fix Warning Method This should have been part of the last commit. | py |
diff --git a/local_settings/base.py b/local_settings/base.py
index <HASH>..<HASH> 100644
--- a/local_settings/base.py
+++ b/local_settings/base.py
@@ -1,7 +1,7 @@
import json
import os.path
import pkg_resources
-from configparser import ConfigParser
+from configparser import ConfigParser, ExtendedInterpolation
fr... | Use extended interpolation in local settings files Use extended "buildout-style" interpolation. | py |
diff --git a/spyderlib/utils/vcs.py b/spyderlib/utils/vcs.py
index <HASH>..<HASH> 100644
--- a/spyderlib/utils/vcs.py
+++ b/spyderlib/utils/vcs.py
@@ -14,6 +14,7 @@ import subprocess
# Local imports
from spyderlib.utils import programs
from spyderlib.utils.misc import abspardir
+from spyderlib.py3compat import PY... | Fix getting current git commit hash for Python 3 | py |
diff --git a/example/rcnn/rcnn/core/module.py b/example/rcnn/rcnn/core/module.py
index <HASH>..<HASH> 100644
--- a/example/rcnn/rcnn/core/module.py
+++ b/example/rcnn/rcnn/core/module.py
@@ -44,7 +44,7 @@ class MutableModule(BaseModule):
if fixed_param_prefix is not None:
for name in self._symbol.... | update resnet of faster-rcnn configuration (#<I>) * update resnet and fixed params * update resnet of faster-rcnn config * update fixed param searching from prefix to in * rollback fixed_param_shared to gamma and beta | py |
diff --git a/pghoard/rohmu/object_storage/google.py b/pghoard/rohmu/object_storage/google.py
index <HASH>..<HASH> 100644
--- a/pghoard/rohmu/object_storage/google.py
+++ b/pghoard/rohmu/object_storage/google.py
@@ -174,7 +174,7 @@ class GoogleTransfer(BaseTransfer):
yield from result.get("items", [])
... | try to make pylint happy | py |
diff --git a/openid/test/test_fetchers.py b/openid/test/test_fetchers.py
index <HASH>..<HASH> 100644
--- a/openid/test/test_fetchers.py
+++ b/openid/test/test_fetchers.py
@@ -146,7 +146,9 @@ class FetcherTestHandler(BaseHTTPRequestHandler):
def do_GET(self):
if self.path == '/closed':
- # sel... | Note the situation in a comment since no fix is made | py |
diff --git a/tests/cases/resource_test.py b/tests/cases/resource_test.py
index <HASH>..<HASH> 100644
--- a/tests/cases/resource_test.py
+++ b/tests/cases/resource_test.py
@@ -235,10 +235,12 @@ class ResourceTestCase(base.TestCase):
for name in zip.namelist():
expected = self.expectedZip[name]
... | Fix test failure from undefined dict serialization order | py |
diff --git a/setuptools/command/egg_info.py b/setuptools/command/egg_info.py
index <HASH>..<HASH> 100755
--- a/setuptools/command/egg_info.py
+++ b/setuptools/command/egg_info.py
@@ -58,7 +58,7 @@ class egg_info(Command):
self.egg_base = (dirs or {}).get('',os.curdir)
self.ensure_dirname('egg_ba... | Fix unescaped '-' in .egg-info directory names. Note that this means you must rename any existing .egg-info directory inside a project that has a '-' in it! --HG-- branch : setuptools extra : convert_revision : svn%3A<I>fed2-<I>-<I>-9fe1-9d<I>cc<I>/sandbox/trunk/setuptools%<I> | py |
diff --git a/mpop/imageo/image.py b/mpop/imageo/image.py
index <HASH>..<HASH> 100644
--- a/mpop/imageo/image.py
+++ b/mpop/imageo/image.py
@@ -930,6 +930,12 @@ class Image(object):
enhancement.
"""
LOG.debug("Perform a logarithmic contrast stretch.")
+ if ((self.channels[ch_nb].size ==... | check array in stretch_logarithmic | py |
diff --git a/yoti_python_sdk/profile.py b/yoti_python_sdk/profile.py
index <HASH>..<HASH> 100644
--- a/yoti_python_sdk/profile.py
+++ b/yoti_python_sdk/profile.py
@@ -176,7 +176,8 @@ class Profile(BaseProfile):
def __find_all_age_verifications(self):
if self.verifications is None:
self.verifi... | SDK-<I>: Fix __find_all_age_verifications which was looping through the keys rather than attribute objects | py |
diff --git a/anndata/base.py b/anndata/base.py
index <HASH>..<HASH> 100644
--- a/anndata/base.py
+++ b/anndata/base.py
@@ -1547,12 +1547,6 @@ class AnnData(IndexMixin, metaclass=utils.DeprecationMixinMeta):
def copy(self, filename: Optional[PathLike] = None) -> 'AnnData':
"""Full copy, optionally on disk.... | fully removed the warning about dtype copy | py |
diff --git a/elpy/server.py b/elpy/server.py
index <HASH>..<HASH> 100644
--- a/elpy/server.py
+++ b/elpy/server.py
@@ -270,7 +270,8 @@ def get_source(fileobj):
return fileobj
else:
try:
- with io.open(fileobj["filename"], encoding="utf-8") as f:
+ with io.open(fileobj["filen... | get_source: Ignore encoding errors Source files should be written in utf-8. It's <I> after all. In the off chance that they are not, do not raise an error, but ignore encoding errors and read the file in whatever way we can. Fixes #<I> | py |
diff --git a/LiSE/LiSE/character.py b/LiSE/LiSE/character.py
index <HASH>..<HASH> 100644
--- a/LiSE/LiSE/character.py
+++ b/LiSE/LiSE/character.py
@@ -1572,19 +1572,18 @@ class Character(AbstractCharacter, DiGraph, RuleFollower):
if self.character.name not in cache:
return
cac... | Refactor (mostly rename) in AvatarGraphMapping.__iter__ Rename ``avatar`` var to ``graph`` and delete a pointless ``return``. | py |
diff --git a/ddmrp/__init__.py b/ddmrp/__init__.py
index <HASH>..<HASH> 100644
--- a/ddmrp/__init__.py
+++ b/ddmrp/__init__.py
@@ -2,3 +2,4 @@
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
from . import models
+from . import wizards | [<I>][FIX] ddmrp: Add wizard in init file (#<I>) | py |
diff --git a/greenhouse/pool.py b/greenhouse/pool.py
index <HASH>..<HASH> 100644
--- a/greenhouse/pool.py
+++ b/greenhouse/pool.py
@@ -2,7 +2,7 @@ from greenhouse.scheduler import schedule
from greenhouse.utils import Queue
-__all__ = ["OneWayPool", "Pool", "OrderedPool"]
+__all__ = ["OneWayPool", "Pool", "Ordered... | pool.map is ready for primetime | py |
diff --git a/plenum/test/instances/test_instance_cannot_become_active_with_less_than_four_servers.py b/plenum/test/instances/test_instance_cannot_become_active_with_less_than_four_servers.py
index <HASH>..<HASH> 100644
--- a/plenum/test/instances/test_instance_cannot_become_active_with_less_than_four_servers.py
+++ b/p... | Unskip testProtocolInstanceCannotBecomeActiveWithLessThanFourServers since it works well (#<I>) * unskip testProtocolInstanceCannotBecomeActiveWithLessThanFourServers since it works well * decrease number of nodes in test_instance_cannot_become_active_with_less_than_four_servers to <I> | py |
diff --git a/zinnia_html5/__init__.py b/zinnia_html5/__init__.py
index <HASH>..<HASH> 100644
--- a/zinnia_html5/__init__.py
+++ b/zinnia_html5/__init__.py
@@ -1,5 +1,5 @@
"""zinnia_html5"""
-__version__ = '0.2.dev'
+__version__ = '0.2'
__license__ = 'BSD License'
__author__ = 'Fantomas42' | bumping to version <I> | py |
diff --git a/quilt/tools/util.py b/quilt/tools/util.py
index <HASH>..<HASH> 100644
--- a/quilt/tools/util.py
+++ b/quilt/tools/util.py
@@ -3,7 +3,7 @@ Helper functions.
"""
from appdirs import user_data_dir
-from six import string_types
+from six import string_types, Iterator
from tqdm import tqdm
APP_NAME = "Q... | Fix breakage with pandas <I> (#<I>) It now requires file-like objects to be iterable. | py |
diff --git a/test_isort.py b/test_isort.py
index <HASH>..<HASH> 100644
--- a/test_isort.py
+++ b/test_isort.py
@@ -2597,7 +2597,7 @@ def test_requirements_finder(tmpdir):
files = list(finder._get_files())
assert len(files) == 1 # file finding
assert files[0].endswith('requirements.txt') # f... | Relax RequirementsFinder test The ordering of the found requirements isn't important here | py |
diff --git a/faker/providers/date_time/__init__.py b/faker/providers/date_time/__init__.py
index <HASH>..<HASH> 100644
--- a/faker/providers/date_time/__init__.py
+++ b/faker/providers/date_time/__init__.py
@@ -5,6 +5,7 @@ from __future__ import unicode_literals
from datetime import timedelta
import re
from time imp... | Fix for issue #<I> in test test_date_time_between_dates_with_tzinfo Problem was in function datetime_to_timestamp from faker/providers/date_time/__init__.py time.mktime() assumes that the passed tuple is in local time and calendar.timegm() assumes it's in UTC. After fix in this commit there are no such issue. | py |
diff --git a/visidata/modify.py b/visidata/modify.py
index <HASH>..<HASH> 100644
--- a/visidata/modify.py
+++ b/visidata/modify.py
@@ -181,25 +181,7 @@ def commitMods(self):
@Sheet.api
def commitDeletes(self):
'Return the number of rows that have been marked for deletion. Delete the rows. Clear the marking.'
- ... | [defer delete-] fix commitDeletes | py |
diff --git a/resolwe/flow/executors/prepare.py b/resolwe/flow/executors/prepare.py
index <HASH>..<HASH> 100644
--- a/resolwe/flow/executors/prepare.py
+++ b/resolwe/flow/executors/prepare.py
@@ -56,9 +56,11 @@ class BaseFlowExecutorPreparer:
else:
tools_root = storage_settings.FLOW_VOLUMES["tool... | Return empty list for tools path when directory does not exist | py |
diff --git a/airflow/example_dags/tutorial.py b/airflow/example_dags/tutorial.py
index <HASH>..<HASH> 100644
--- a/airflow/example_dags/tutorial.py
+++ b/airflow/example_dags/tutorial.py
@@ -93,7 +93,7 @@ with DAG(
`doc` (plain text), `doc_rst`, `doc_json`, `doc_yaml` which gets
rendered in the UI's Task Inst... | Credit image used in tutorial.py (#<I>) The image used in the example task documentation is [licensed under the Creative Commons license](<URL> | py |
diff --git a/zk_shell/shell.py b/zk_shell/shell.py
index <HASH>..<HASH> 100644
--- a/zk_shell/shell.py
+++ b/zk_shell/shell.py
@@ -651,7 +651,7 @@ server=%s"""
try:
self.do_output(self._zk.mntr(host))
except AugumentedClient.CmdFailed as ex:
- self.do_output(ex)
+ se... | str() exceptions before feeding them to do_output | py |
diff --git a/nbt/region.py b/nbt/region.py
index <HASH>..<HASH> 100644
--- a/nbt/region.py
+++ b/nbt/region.py
@@ -14,7 +14,7 @@ class RegionFile(object):
def __init__(self, filename=None, fileobj=None):
if filename:
self.filename = filename
- self.file = open(filename, 'rb')
+ self.file = open(filename, '... | Need to be able to update if self.write_chunk is used | py |
diff --git a/salt/utils/verify.py b/salt/utils/verify.py
index <HASH>..<HASH> 100644
--- a/salt/utils/verify.py
+++ b/salt/utils/verify.py
@@ -4,6 +4,7 @@ A few checks to make sure the environment is sane
# Original Author: Jeff Schroeder <jeffschroeder@computer.org>
import os
import re
+import pwd
import sys
impo... | Add better user management to verify.py | py |
diff --git a/salt/states/file.py b/salt/states/file.py
index <HASH>..<HASH> 100644
--- a/salt/states/file.py
+++ b/salt/states/file.py
@@ -2705,6 +2705,7 @@ def touch(name, atime=None, mtime=None, makedirs=False):
ret['comment'] = 'Updated times on {0} {1}'.format(
'directory' if os.path.isdir(nam... | fix(state/file): populate `change` on touch Previously when a file was touched, the `changes` field was never populated. This commit fixes this. | py |
diff --git a/umap/__init__.py b/umap/__init__.py
index <HASH>..<HASH> 100644
--- a/umap/__init__.py
+++ b/umap/__init__.py
@@ -1,5 +1,9 @@
from .umap_ import UMAP
+# Workaround: https://github.com/numba/numba/issues/3341
+import numba
+numba.config.THREADING_LAYER = 'workqueue'
+
import pkg_resources
__version__... | Temporary fix for #<I> as per @ogrisel | py |
diff --git a/src/REST/keywords.py b/src/REST/keywords.py
index <HASH>..<HASH> 100644
--- a/src/REST/keywords.py
+++ b/src/REST/keywords.py
@@ -26,12 +26,12 @@ class Keywords(object):
### Settings
@keyword
- def set_auth(self, auth):
+ def set_basic_auth(self, auth):
self.request.update({ "aut... | Rename keywords 'Set auth' and 'Set cert', more accurate | py |
diff --git a/tracking_fields/tracking.py b/tracking_fields/tracking.py
index <HASH>..<HASH> 100644
--- a/tracking_fields/tracking.py
+++ b/tracking_fields/tracking.py
@@ -23,7 +23,10 @@ def _set_original_fields(instance):
original_fields = {}
for field in instance._tracked_fields:
if not isinstance(i... | fix: set original to None when object is not created yet | py |
diff --git a/art/art.py b/art/art.py
index <HASH>..<HASH> 100644
--- a/art/art.py
+++ b/art/art.py
@@ -166,8 +166,11 @@ def art(artname, number=1, text=""):
if isinstance(artname, str) == False:
raise artError("artname shoud have str type")
artname = artname.lower()
- if artname not in art_dic.key... | feat : random key for art added | py |
diff --git a/pysolr.py b/pysolr.py
index <HASH>..<HASH> 100644
--- a/pysolr.py
+++ b/pysolr.py
@@ -626,11 +626,12 @@ class Solr(object):
if boost and key in boost:
if not isinstance(boost, basestring):
- boost[v] = str(boost[... | Fixed a bug in the weighting when given a string field that's weighted. Thanks to akaihola for the report. | py |
diff --git a/atomic_reactor/cli/main.py b/atomic_reactor/cli/main.py
index <HASH>..<HASH> 100644
--- a/atomic_reactor/cli/main.py
+++ b/atomic_reactor/cli/main.py
@@ -198,7 +198,7 @@ class CLI(object):
# add arguments that are common to non-json source types
for st, stp in self.source_types_parsers.it... | cli: require --image resolves rhbz#<I> | py |
diff --git a/src/pybel/manager/models.py b/src/pybel/manager/models.py
index <HASH>..<HASH> 100644
--- a/src/pybel/manager/models.py
+++ b/src/pybel/manager/models.py
@@ -386,6 +386,9 @@ class Author(Base):
def __str__(self):
return self.name
+ def __repr__(self):
+ return f'Author(name="{... | Add repr for Author [skip ci] | py |
diff --git a/searx/webapp.py b/searx/webapp.py
index <HASH>..<HASH> 100644
--- a/searx/webapp.py
+++ b/searx/webapp.py
@@ -215,15 +215,14 @@ def image_proxify(url):
if url.startswith('//'):
url = 'https:' + url
- url = url.encode('utf-8')
-
if not settings['server'].get('image_proxy') and not re... | [fix] image proxify utf urls | py |
diff --git a/xtraceback/xtraceback.py b/xtraceback/xtraceback.py
index <HASH>..<HASH> 100644
--- a/xtraceback/xtraceback.py
+++ b/xtraceback/xtraceback.py
@@ -152,7 +152,7 @@ class XTraceback(object):
if self._stdlib_path is not None \
and filename.startswith(self._stdlib_path):
... | not needed - relpath is already monkey patched on os if not present | py |
diff --git a/src/python_pachyderm/mixin/pfs.py b/src/python_pachyderm/mixin/pfs.py
index <HASH>..<HASH> 100644
--- a/src/python_pachyderm/mixin/pfs.py
+++ b/src/python_pachyderm/mixin/pfs.py
@@ -295,7 +295,7 @@ class PFSMixin:
wait=commit_state == pfs_proto.CommitState.FINISHED,
)
... | Slightly reword error (lower case, colon; consistency) (#<I>) | py |
diff --git a/WeatherStation.py b/WeatherStation.py
index <HASH>..<HASH> 100755
--- a/WeatherStation.py
+++ b/WeatherStation.py
@@ -5,6 +5,7 @@ wwsrdump.c by Svend Skafte (svend@skafte.net), modified by Dave Wells.
"""
import math
+import platform
import usb
def dew_point(temp, hum):
@@ -137,7 +138,8 @@ class we... | Made setConfiguration(1) command Windows only (see issue <I>). | py |
diff --git a/userena/views.py b/userena/views.py
index <HASH>..<HASH> 100644
--- a/userena/views.py
+++ b/userena/views.py
@@ -453,7 +453,7 @@ def password_change(request, username, template_name='userena/password_form.html
extra_context=extra_context)
@secure_required
-@permission_req... | BUGFIX: User permissions for editing profile. | py |
diff --git a/scapy.py b/scapy.py
index <HASH>..<HASH> 100755
--- a/scapy.py
+++ b/scapy.py
@@ -2507,7 +2507,7 @@ class PacketList:
other += 1
s = ""
ct = conf.color_theme
- for p in stats:
+ for p in self.stats:
s += " %s%s%s" % (ct.packetlist_proto(p.name),... | Changed PacketList statistics ordering (ticket #<I>) | py |
diff --git a/tests/test_utils.py b/tests/test_utils.py
index <HASH>..<HASH> 100644
--- a/tests/test_utils.py
+++ b/tests/test_utils.py
@@ -231,7 +231,7 @@ class TestCache(object):
class TestGetValidHistoryWithoutCurrent(object):
- @pytest.yield_fixture(autouse=True)
+ @pytest.fixture(autouse=True)
def f... | #N/A: Fix yield_fixture deprecation (#<I>) | py |
diff --git a/bark/handlers.py b/bark/handlers.py
index <HASH>..<HASH> 100644
--- a/bark/handlers.py
+++ b/bark/handlers.py
@@ -323,7 +323,7 @@ def datagram_handler(name, logname, host, port):
@arg_types(address=address,
facility=argmap(logging.handlers.SysLogHandler.facility_names))
def syslog_handler(nam... | Fix a default The syslog_handler() argument "facility" must default to a facility number, not the name of one. | py |
diff --git a/engine/test_engine.py b/engine/test_engine.py
index <HASH>..<HASH> 100644
--- a/engine/test_engine.py
+++ b/engine/test_engine.py
@@ -17,6 +17,7 @@ from storage.core import read_layer
from storage.utilities import unique_filename
from storage.core import write_vector_data
from storage.core import write_... | Cut maumere polygon test down to make it quick | py |
diff --git a/dispatch/api/serializers.py b/dispatch/api/serializers.py
index <HASH>..<HASH> 100644
--- a/dispatch/api/serializers.py
+++ b/dispatch/api/serializers.py
@@ -612,6 +612,7 @@ class PageSerializer(DispatchModelSerializer, DispatchPublishableSerializer):
template = TemplateSerializer(required=False, sour... | add read only to updated_at field | py |
diff --git a/unittest/test_core.py b/unittest/test_core.py
index <HASH>..<HASH> 100644
--- a/unittest/test_core.py
+++ b/unittest/test_core.py
@@ -7,7 +7,7 @@ import mock
from soco import SoCo
from soco.groups import ZoneGroup
from soco.xml import XML
-from soco.data_structures import DidlMusicTrack
+from soco.data_... | Update test for add_item_to_sonos_playlist | py |
diff --git a/goldsberry/league/_League.py b/goldsberry/league/_League.py
index <HASH>..<HASH> 100644
--- a/goldsberry/league/_League.py
+++ b/goldsberry/league/_League.py
@@ -6,7 +6,7 @@ from goldsberry._apiFunc import _AheadBehind, _ClutchTime, _valiDate
class ScoreBoard:
- def __init__(self, date='', league="... | removed defualt date value for ScoreBoard class | py |
diff --git a/sos/sos_script.py b/sos/sos_script.py
index <HASH>..<HASH> 100755
--- a/sos/sos_script.py
+++ b/sos/sos_script.py
@@ -1004,6 +1004,10 @@ for __n, __v in {}.items():
cursect.values = []
# allow multiple process-style actions
cursect.wrap_script(... | Create a global section for scratch steps | py |
diff --git a/pymc/tests/test_distributions_random.py b/pymc/tests/test_distributions_random.py
index <HASH>..<HASH> 100644
--- a/pymc/tests/test_distributions_random.py
+++ b/pymc/tests/test_distributions_random.py
@@ -320,10 +320,10 @@ class BaseTestDistributionRandom(SeededTest):
"""
pymc_dist: Optional[C... | Make defaulting more transparent in test suite (#<I>) | py |
diff --git a/src/ocrmypdf/cli.py b/src/ocrmypdf/cli.py
index <HASH>..<HASH> 100644
--- a/src/ocrmypdf/cli.py
+++ b/src/ocrmypdf/cli.py
@@ -340,8 +340,9 @@ Online documentation is located at:
"Control how PDF is optimized after processing:"
"0 - do not optimize; "
"1 - do safe, los... | cli: clarify text to more accurately describe behavior of --jbig2-lossy | py |
diff --git a/pynipap/setup.py b/pynipap/setup.py
index <HASH>..<HASH> 100644
--- a/pynipap/setup.py
+++ b/pynipap/setup.py
@@ -5,10 +5,6 @@ import sys
import pynipap
-requirements = []
-if sys.version_info[0] < 3:
- requirements = ['xmlrpclib']
-
long_desc = open('README.rst').read()
short_desc = long_desc.sp... | pynipap: remove xmlrpc dependency xmlrpclib is shipped with Python so I don't think we need to declare a dependency on it. Fixes #<I>. | py |
diff --git a/aioxmpp/__init__.py b/aioxmpp/__init__.py
index <HASH>..<HASH> 100644
--- a/aioxmpp/__init__.py
+++ b/aioxmpp/__init__.py
@@ -89,6 +89,12 @@ version_info = version_info
#: :ref:`api-stability`
__version__ = __version__
+import asyncio
+#: Adds fallback if asyncio version does not provide an ensure_f... | Added check for if asyncio has attribute 'ensure_future' and provides a fallback if it is missing | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.