diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/services/managers/discord_manager.py b/services/managers/discord_manager.py
index <HASH>..<HASH> 100644
--- a/services/managers/discord_manager.py
+++ b/services/managers/discord_manager.py
@@ -329,7 +329,7 @@ class DiscordManager:
@staticmethod
def update_groups(user_id, groups):
- logg... | Corrected logger string formatting for update groups. | py |
diff --git a/test/utils.py b/test/utils.py
index <HASH>..<HASH> 100644
--- a/test/utils.py
+++ b/test/utils.py
@@ -416,12 +416,13 @@ class _TestLazyConnectMixin(object):
collection = self._get_client().pymongo_test.test
# Make concurrency bugs more likely to manifest.
- if PY3:
- s... | Fix test failure in Jython. | py |
diff --git a/travis/encrypt.py b/travis/encrypt.py
index <HASH>..<HASH> 100644
--- a/travis/encrypt.py
+++ b/travis/encrypt.py
@@ -5,7 +5,6 @@ retrieve_public_key -- retrieve the public key from the Travis CI API.
encrypt_key -- load the public key and encrypt it with PKCSv15
"""
import base64
-from json.decoder imp... | Replace JSONDecodeError with ValueError for Py2 compatibility | py |
diff --git a/jasily/data/prop.py b/jasily/data/prop.py
index <HASH>..<HASH> 100644
--- a/jasily/data/prop.py
+++ b/jasily/data/prop.py
@@ -64,8 +64,7 @@ def cache(descriptor=None, *, store: IStore = None):
cache_descriptor = CacheDescriptor()
if store is None:
- field = descriptor_name or cache_descr... | use descriptor as key to save cached value | py |
diff --git a/gridmap/runner.py b/gridmap/runner.py
index <HASH>..<HASH> 100644
--- a/gridmap/runner.py
+++ b/gridmap/runner.py
@@ -134,14 +134,22 @@ def get_cpu_load(pid, heart_pid):
one of the processes is not sleeping.
:rtype: (float, bool)
"""
+ logger = logging.getLogger(__name__)
+ l... | Fix missing count increment in get_cpu_load, and also add loads of debug stuff | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -239,7 +239,7 @@ cloudant = [
]
dask = [
'cloudpickle>=1.4.1, <1.5.0',
- 'dask<2021.3.1;python_version>"3.7"', # dask stopped supporting python 3.6 in 2021.3.1 version
+ 'dask<2021.3.1;python_version<"3.7"', # d... | Fixes wrong limit for dask for python><I> (should be <<I>) (#<I>) | py |
diff --git a/openquake/engine/calculators/risk/hazard_getters.py b/openquake/engine/calculators/risk/hazard_getters.py
index <HASH>..<HASH> 100644
--- a/openquake/engine/calculators/risk/hazard_getters.py
+++ b/openquake/engine/calculators/risk/hazard_getters.py
@@ -94,7 +94,7 @@ class HazardGetter(object):
""... | renamed get_for_hazard to get_assets_data | py |
diff --git a/spyder/plugins/variableexplorer/widgets/collectionsdelegate.py b/spyder/plugins/variableexplorer/widgets/collectionsdelegate.py
index <HASH>..<HASH> 100644
--- a/spyder/plugins/variableexplorer/widgets/collectionsdelegate.py
+++ b/spyder/plugins/variableexplorer/widgets/collectionsdelegate.py
@@ -195,19 +1... | Only try to get value.time() if the value is a date object | py |
diff --git a/chalice/package.py b/chalice/package.py
index <HASH>..<HASH> 100644
--- a/chalice/package.py
+++ b/chalice/package.py
@@ -952,15 +952,6 @@ class TerraformGenerator(TemplateGenerator):
def _inject_websocketapi_outputs(self, websocket_api_id, template):
# type: (str, Dict[str, Any]) -> None
-... | Removed incorrect comment from TerraformGenerator | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -8,14 +8,21 @@ Copyright (c) 2017-2018 Yao-Yuan Mao (yymao)
http://opensource.org/licenses/MIT
"""
+import os
from setuptools import setup
+with open(os.path.join(os.path.dirname(__file__), 'GCR.py')) as f:
+ for l i... | parse version from src | 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
@@ -93,8 +93,8 @@ def compute_disagg(src_filter, sources, cmaker, imldict, trti, bin_edges,
def agg_... | Optimization [skip hazardlib] | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -5,7 +5,7 @@ try:
from setuptools import setup, Extension
HAVE_CYTHON = True
except ImportError as e:
- warnings.warn(e.message)
+ warnings.warn(e.args[0])
from setuptools import setup, Extension
fro... | PY3 fixed installation without Cython | py |
diff --git a/source/rafcon/mvc/controllers/state_data_flows.py b/source/rafcon/mvc/controllers/state_data_flows.py
index <HASH>..<HASH> 100644
--- a/source/rafcon/mvc/controllers/state_data_flows.py
+++ b/source/rafcon/mvc/controllers/state_data_flows.py
@@ -103,8 +103,8 @@ class StateDataFlowsListController(ExtendedCo... | fix missing rename of functions in data-flow-widget | py |
diff --git a/isso/utils/hash.py b/isso/utils/hash.py
index <HASH>..<HASH> 100644
--- a/isso/utils/hash.py
+++ b/isso/utils/hash.py
@@ -15,7 +15,7 @@ except ImportError:
def pbkdf2(val, salt, iterations, dklen, func):
return _pbkdf2(val, salt, iterations, dklen, ("hmac-" + func).encode("utf-8"))
... | Fix another python3-specific flake. | py |
diff --git a/pyparsing/core.py b/pyparsing/core.py
index <HASH>..<HASH> 100644
--- a/pyparsing/core.py
+++ b/pyparsing/core.py
@@ -3699,7 +3699,11 @@ class And(ParseExpression):
break
def _generateDefaultName(self):
- return "{" + " ".join(str(e) for e in self.exprs) + "}"
+ inner ... | Cleanup str() representations for And and Opt; remove extraneous "{}"s | py |
diff --git a/lib/svtplay_dl/service/dr.py b/lib/svtplay_dl/service/dr.py
index <HASH>..<HASH> 100644
--- a/lib/svtplay_dl/service/dr.py
+++ b/lib/svtplay_dl/service/dr.py
@@ -46,8 +46,7 @@ class Dr(Service, OpenGraphThumbMixin):
if "Links" not in resource:
yield ServiceError("Cant access t... | dr: dont crash when there is no subtitles. | py |
diff --git a/test/test_pymuvr.py b/test/test_pymuvr.py
index <HASH>..<HASH> 100644
--- a/test/test_pymuvr.py
+++ b/test/test_pymuvr.py
@@ -80,7 +80,7 @@ class TestCompareWithSpykeutils(unittest.TestCase):
self.rate = 30
self.tstop = 2
self.cos = np.linspace(0, 1, 5)
- self.tau = np.lin... | Do not test against spykeutils for tau=0. | py |
diff --git a/tests/test_omxplayer.py b/tests/test_omxplayer.py
index <HASH>..<HASH> 100644
--- a/tests/test_omxplayer.py
+++ b/tests/test_omxplayer.py
@@ -9,19 +9,19 @@ from omxplayer.dbus_connection import DBusConnectionError
from omxplayer.player import OMXPlayer
-m = mock_open()
+MOCK_OPEN = mock_open()
@p... | Rename mock open in OMXPlayer tests | py |
diff --git a/kernel_tuner/interface.py b/kernel_tuner/interface.py
index <HASH>..<HASH> 100644
--- a/kernel_tuner/interface.py
+++ b/kernel_tuner/interface.py
@@ -220,7 +220,7 @@ def tune_kernel(kernel_name, kernel_string, problem_size, arguments,
:type grid_div_y: list
:param restrictions: A list of string... | something went horribly wrong, but it seems ok again now | py |
diff --git a/edalize/vivado.py b/edalize/vivado.py
index <HASH>..<HASH> 100644
--- a/edalize/vivado.py
+++ b/edalize/vivado.py
@@ -53,7 +53,7 @@ class Vivado(Edatool):
'desc' : 'Source managment mode. Allowed values are None (unmanaged, default), DisplayOnly (automatically update sources) and A... | Fix Sphinx parse error in Vivado documentation The CAPI2 documentation and the edalize documentation are built automatically from contents in the backends, and descriptions must therefore be valid reStructuredText. Fix a case where this wasn't true. Sphinx reported (in a FuseSoC build) due to the `*` not being follow... | py |
diff --git a/slither/printers/inheritance/inheritance_graph.py b/slither/printers/inheritance/inheritance_graph.py
index <HASH>..<HASH> 100644
--- a/slither/printers/inheritance/inheritance_graph.py
+++ b/slither/printers/inheritance/inheritance_graph.py
@@ -189,9 +189,8 @@ class PrinterInheritanceGraph(AbstractPrinter... | Fix inheritance graph output (issue introduced with #<I>) | py |
diff --git a/salt/modules/aptpkg.py b/salt/modules/aptpkg.py
index <HASH>..<HASH> 100644
--- a/salt/modules/aptpkg.py
+++ b/salt/modules/aptpkg.py
@@ -1617,23 +1617,6 @@ def mod_repo(repo, saltenv='base', **kwargs):
mod_source.comment = " ".join(str(c) for c in kwargs['comments'])
sources.list.app... | Remove broken disabled comps handling in aptpkg This code prevents the correct handling of disabled repositories (as discussed in #<I>) and is, on top of that, also broken in that it attempts to insert into 'sources' while it should have inserted into 'sources.list'. The intention of the code is unclear and removing ... | py |
diff --git a/cookies.py b/cookies.py
index <HASH>..<HASH> 100644
--- a/cookies.py
+++ b/cookies.py
@@ -1,3 +1,7 @@
+#
+
+"cookies.py"
+
import os, copy
import itertools
import string, re
@@ -34,12 +38,15 @@ def isNotCookieDelimiter(s ):
return s != '*\n'
class cookie( dict ):
+ """cookie class parses ... | Added a few comments and documentation strings. | py |
diff --git a/spec/unit/hooks/for_caller.py b/spec/unit/hooks/for_caller.py
index <HASH>..<HASH> 100644
--- a/spec/unit/hooks/for_caller.py
+++ b/spec/unit/hooks/for_caller.py
@@ -15,12 +15,10 @@ message["payload"]["price"] = "CHF 5.00"
#
# other inputs
-if len(sys.argv) > 1:
- message["argument"] = sys.argv[1]
+if... | Use if oneliners in Python caller sample | py |
diff --git a/menuinst/win32.py b/menuinst/win32.py
index <HASH>..<HASH> 100644
--- a/menuinst/win32.py
+++ b/menuinst/win32.py
@@ -149,9 +149,9 @@ def to_bytes(var, codec=locale.getpreferredencoding()):
return var
-if u'\\envs\\' in to_unicode(sys.prefix):
- logger.warn('menuinst called from non-root env %s... | fix logging traceback from #<I> | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -4,5 +4,24 @@ fail like skimage
import sys
+from setuptools import setup
+
if not 'sdist' in sys.argv:
- sys.exit('\n*** Please find and install the `socorro` package from src ***\n')
\ No newline at end of file
+ ... | code-level deprecation still needs setup() to build and upload to pypi | py |
diff --git a/selenium_test/steps/context_menu.py b/selenium_test/steps/context_menu.py
index <HASH>..<HASH> 100644
--- a/selenium_test/steps/context_menu.py
+++ b/selenium_test/steps/context_menu.py
@@ -355,14 +355,7 @@ def step_impl(context, choice):
raise ValueError("unknown choice: " + choice)
# IF Y... | Take advantage of click_until_caret_in. | py |
diff --git a/tests/test_cards.py b/tests/test_cards.py
index <HASH>..<HASH> 100644
--- a/tests/test_cards.py
+++ b/tests/test_cards.py
@@ -165,7 +165,7 @@ class CardsTest(BaseTest):
response = requests.post(card_registration.card_registration_url, urlrequest.urlencode({
'cardNumber': '497010000000... | Fix tests by updating cards expiration date | py |
diff --git a/doc/conf.py b/doc/conf.py
index <HASH>..<HASH> 100644
--- a/doc/conf.py
+++ b/doc/conf.py
@@ -24,7 +24,7 @@ sys.path.insert(0, os.path.abspath(os.path.join(DOC_DIR, "..")))
# -- General configuration -----------------------------------------------------
# If your documentation needs a minimal Sphinx ve... | Require at least Sphinx <I> to build the documentation | py |
diff --git a/googlemaps/client.py b/googlemaps/client.py
index <HASH>..<HASH> 100644
--- a/googlemaps/client.py
+++ b/googlemaps/client.py
@@ -47,7 +47,6 @@ _RETRIABLE_STATUSES = set([500, 503, 504])
class Client(object):
"""Performs requests to the Google Maps API web services."""
- session = requests.Sessi... | fixup! Allow a requests.Session object to be passed into Client | py |
diff --git a/annoying/decorators.py b/annoying/decorators.py
index <HASH>..<HASH> 100644
--- a/annoying/decorators.py
+++ b/annoying/decorators.py
@@ -1,5 +1,6 @@
from django.shortcuts import render_to_response
from django import forms
+from django import VERSION as DJANGO_VERSION
from django.template import Request... | Support unsupported versions of Django... | py |
diff --git a/pages/tests/test_unit.py b/pages/tests/test_unit.py
index <HASH>..<HASH> 100644
--- a/pages/tests/test_unit.py
+++ b/pages/tests/test_unit.py
@@ -732,4 +732,18 @@ class UnitTestCase(TestCase):
page = self.new_page({'slug': 'get-page-slug', 'somepage':
'get-page-slug' })
conte... | Try to reproduce a problem reported by a user. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -88,9 +88,8 @@ setup(
'numexpr',
'matplotlib',
'wheel',
+ 'canmatrix',
],
-
- dependecy_li... | move canmatrix to install_requires list | py |
diff --git a/pycosio/_core/functions_os.py b/pycosio/_core/functions_os.py
index <HASH>..<HASH> 100644
--- a/pycosio/_core/functions_os.py
+++ b/pycosio/_core/functions_os.py
@@ -1,10 +1,11 @@
# coding=utf-8
"""Cloud object compatibles standard library 'os' equivalent functions"""
import os
-from os import scandir a... | Fix "fspath" on Python <I>. | py |
diff --git a/djstripe/migrations/0001_initial.py b/djstripe/migrations/0001_initial.py
index <HASH>..<HASH> 100644
--- a/djstripe/migrations/0001_initial.py
+++ b/djstripe/migrations/0001_initial.py
@@ -245,6 +245,7 @@ class Migration(migrations.Migration):
models.CharField(
... | Fix backwards migrations to zero This fixes the command: manage.py migrate djstripe zero | py |
diff --git a/bcbio/variation/validate.py b/bcbio/variation/validate.py
index <HASH>..<HASH> 100644
--- a/bcbio/variation/validate.py
+++ b/bcbio/variation/validate.py
@@ -291,9 +291,9 @@ def _pick_best_quality_score(vrn_file):
for i, rec in enumerate(val_in):
if i > to_check:
brea... | Validation checking with new pysam <I> New release of pysam is stricter about retrieving non-existing values and requires and explicit check. Fixes #<I> | py |
diff --git a/keyboard/_canonical_names.py b/keyboard/_canonical_names.py
index <HASH>..<HASH> 100644
--- a/keyboard/_canonical_names.py
+++ b/keyboard/_canonical_names.py
@@ -1218,7 +1218,8 @@ if platform.system() == 'Darwin':
"windows": "command",
"cmd": "command",
"win": "command",
- ... | Map alt gr to alt in macOS (#<I>) | py |
diff --git a/testing/example_scripts/acceptance/fixture_mock_integration.py b/testing/example_scripts/acceptance/fixture_mock_integration.py
index <HASH>..<HASH> 100644
--- a/testing/example_scripts/acceptance/fixture_mock_integration.py
+++ b/testing/example_scripts/acceptance/fixture_mock_integration.py
@@ -1,6 +1,9 ... | Use unittest.mock if is only aviable from Python <I> is mock part of python standard library in unittest namespace | py |
diff --git a/semantic_version/base.py b/semantic_version/base.py
index <HASH>..<HASH> 100644
--- a/semantic_version/base.py
+++ b/semantic_version/base.py
@@ -460,7 +460,6 @@ class SpecItem(object):
return version != self.spec
elif self.kind == self.KIND_CARET:
return self.spec <= ver... | lint: Remove double return. | py |
diff --git a/xapian_backend.py b/xapian_backend.py
index <HASH>..<HASH> 100755
--- a/xapian_backend.py
+++ b/xapian_backend.py
@@ -17,7 +17,7 @@ from django.core.exceptions import ImproperlyConfigured
from django.utils.encoding import smart_unicode, force_unicode
from haystack.backends import BaseSearchBackend, Bas... | Import MoreLikeThisError. This resolves issue <I> | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -2,7 +2,7 @@
from distutils.core import setup
from setuptools import find_packages
-_version = "0.2.3"
+_version = "0.2.4"
_packages = find_packages(exclude=["*.tests", "*.tests.*", "tests.*", "tests"])
_short_descript... | Bumping version for hotfix release | py |
diff --git a/admin_tools/theming/templatetags/theming_tags.py b/admin_tools/theming/templatetags/theming_tags.py
index <HASH>..<HASH> 100644
--- a/admin_tools/theming/templatetags/theming_tags.py
+++ b/admin_tools/theming/templatetags/theming_tags.py
@@ -19,15 +19,3 @@ def render_theming_css():
css = '/'.join(... | The get_admin_media() helper is no longer needed | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -8,7 +8,7 @@ if sys.version_info < (3, 0):
setup(name='picotui',
- version='1.2',
+ version='1.2.1',
description="""A simple text user interface (TUI) library.""",
long_description=open('README.rst... | setup.py: Release <I>. | py |
diff --git a/hug/output_format.py b/hug/output_format.py
index <HASH>..<HASH> 100644
--- a/hug/output_format.py
+++ b/hug/output_format.py
@@ -36,6 +36,8 @@ def _json_converter(item):
return item.isoformat()
elif isinstance(item, bytes):
return item.decode('utf8')
+ elif isinstance(item, set):... | Update hug to automatically handle set serialization | py |
diff --git a/salt/utils/yamlloader.py b/salt/utils/yamlloader.py
index <HASH>..<HASH> 100644
--- a/salt/utils/yamlloader.py
+++ b/salt/utils/yamlloader.py
@@ -29,7 +29,7 @@ warnings.simplefilter('always', category=DuplicateKeyWarning)
# with code integrated from https://gist.github.com/844388
-class CustomLoader(y... | Rename CustomLoader to SaltYamlSafeLoader More descriptive this way. | py |
diff --git a/pyocd/coresight/ap.py b/pyocd/coresight/ap.py
index <HASH>..<HASH> 100644
--- a/pyocd/coresight/ap.py
+++ b/pyocd/coresight/ap.py
@@ -338,7 +338,7 @@ class AccessPort(object):
name, klass, flags = AP_TYPE_MAP[key]
except KeyError:
# The AP ID doesn't match, but we can rec... | AP: only identify unknown MEM-APs if the designer is Arm. | py |
diff --git a/programs/make_magic_plots.py b/programs/make_magic_plots.py
index <HASH>..<HASH> 100755
--- a/programs/make_magic_plots.py
+++ b/programs/make_magic_plots.py
@@ -172,7 +172,10 @@ def main():
if not new_model:
SiteDIs = pmag.get_dictitem(SiteDIs, 'data_type', 'i', 'has')
... | workaround certain missing column names in make_magic_plots, #<I> | py |
diff --git a/icekit/project/settings/_test.py b/icekit/project/settings/_test.py
index <HASH>..<HASH> 100644
--- a/icekit/project/settings/_test.py
+++ b/icekit/project/settings/_test.py
@@ -4,16 +4,14 @@ from ._base import *
DATABASE_NAME = 'test_%s' % DATABASES['default']['NAME']
-DATABASES = {
- 'default': {... | Update instead of overriding `DATABASES` setting in `test` settings. | py |
diff --git a/pipreqs/pipreqs.py b/pipreqs/pipreqs.py
index <HASH>..<HASH> 100755
--- a/pipreqs/pipreqs.py
+++ b/pipreqs/pipreqs.py
@@ -291,12 +291,16 @@ def compare_modules(file_, imports):
def diff(file_, imports):
- """Display the difference between modules in file a and imported modules."""
+ """Display t... | Improve function diff docstring, begin function clean | py |
diff --git a/ddt_request_history/panels/request_history.py b/ddt_request_history/panels/request_history.py
index <HASH>..<HASH> 100644
--- a/ddt_request_history/panels/request_history.py
+++ b/ddt_request_history/panels/request_history.py
@@ -18,7 +18,7 @@ from django.conf import settings
from django.template import T... | Fix RemovedInDjango<I>Warning | py |
diff --git a/geomdl/evaluators.py b/geomdl/evaluators.py
index <HASH>..<HASH> 100644
--- a/geomdl/evaluators.py
+++ b/geomdl/evaluators.py
@@ -194,7 +194,8 @@ class CurveEvaluator2(CurveEvaluator):
super(CurveEvaluator2, self).__init__(**kwargs)
# Computes the control points of all derivative curves up ... | Make _derivatives_ctrlpts a public static method Therefore, it becomes possible to access it without creating a new and possibly unnecessary instance of CurveEvaluator2 | py |
diff --git a/tests/test_pages.py b/tests/test_pages.py
index <HASH>..<HASH> 100644
--- a/tests/test_pages.py
+++ b/tests/test_pages.py
@@ -29,6 +29,12 @@ def test_empty_pdf(outdir):
q.save(outdir / 'empty.pdf')
+def test_delete_last_page(resources, outdir):
+ q = qpdf.Pdf.open(resources / 'graph.pdf')
+ ... | Make sure nothing blows up if we delete the page in a file then save | py |
diff --git a/mpd.py b/mpd.py
index <HASH>..<HASH> 100644
--- a/mpd.py
+++ b/mpd.py
@@ -215,7 +215,7 @@ class MPDClient(object):
if key in delimiters:
yield obj
obj = {}
- elif obj.has_key(key):
+ elif key in obj:
... | mpd.py: don't use has_key() key in obj is easier to read, and even a little faster. | py |
diff --git a/ospd/ospd.py b/ospd/ospd.py
index <HASH>..<HASH> 100644
--- a/ospd/ospd.py
+++ b/ospd/ospd.py
@@ -828,8 +828,6 @@ class OSPDaemon:
if _not_finished_clean and _not_stopped:
if not self.target_is_finished(scan_id):
self.stop_scan(scan_id)
- ... | Do not set the scan as finished. This will be set when it calculates the progress from the different host and target. Now the multitarget tasks work again. | py |
diff --git a/ca/django_ca/management/commands/init_ca.py b/ca/django_ca/management/commands/init_ca.py
index <HASH>..<HASH> 100644
--- a/ca/django_ca/management/commands/init_ca.py
+++ b/ca/django_ca/management/commands/init_ca.py
@@ -27,6 +27,9 @@ from ... import ca_settings
from ...extensions import IssuerAlternativ... | generate OCSP keys and cache CRLs when creating a CA | py |
diff --git a/python/setup.py b/python/setup.py
index <HASH>..<HASH> 100644
--- a/python/setup.py
+++ b/python/setup.py
@@ -146,11 +146,9 @@ requires = [
# The six module is required by pyarrow.
"six >= 1.0.0",
"flatbuffers",
+ "faulthandler;python_version<'3.3'",
]
-if sys.version_info < (3, 0):
- ... | Use environment markers to only install faulthandler in Python < <I>. (#<I>) | py |
diff --git a/test/test_service_runner.py b/test/test_service_runner.py
index <HASH>..<HASH> 100644
--- a/test/test_service_runner.py
+++ b/test/test_service_runner.py
@@ -364,7 +364,7 @@ def test_runner_with_duplicate_services(
# it should only be hosted once
assert len(runner.containers) == 1
- containe... | make a list before indexing for py3 | py |
diff --git a/stone/cli.py b/stone/cli.py
index <HASH>..<HASH> 100644
--- a/stone/cli.py
+++ b/stone/cli.py
@@ -198,7 +198,7 @@ def main():
sys.exit(1)
else:
with open(spec_path) as f:
- specs.append((spec_path, f.read()))
+ ... | Decoding intput files as utf8 after reading (#<I>) | py |
diff --git a/mot/cl_routines/optimizing/levenberg_marquardt.py b/mot/cl_routines/optimizing/levenberg_marquardt.py
index <HASH>..<HASH> 100644
--- a/mot/cl_routines/optimizing/levenberg_marquardt.py
+++ b/mot/cl_routines/optimizing/levenberg_marquardt.py
@@ -140,7 +140,8 @@ class LevenbergMarquardtWorker(AbstractParall... | Instead of the square root in the model, we take the square root in the LM method instead. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -6,6 +6,10 @@ try:
except ImportError:
from distutils.core import setup
+import re
+import os
+from codecs import open
+
version = ''
with open('koordinates/__init__.py', 'r') as fd:
version = re.search(r'^__ver... | Resolve import error introduced in last commit. | py |
diff --git a/scout/adapter/mongo/case.py b/scout/adapter/mongo/case.py
index <HASH>..<HASH> 100644
--- a/scout/adapter/mongo/case.py
+++ b/scout/adapter/mongo/case.py
@@ -375,7 +375,7 @@ class CaseHandler(object):
'has_strvariants': case_obj.get('has_strvariants'),
'is_research... | Fix problem in update case when no multiqc report existed | py |
diff --git a/scarlet/cms/internal_tags/taggit_handler.py b/scarlet/cms/internal_tags/taggit_handler.py
index <HASH>..<HASH> 100644
--- a/scarlet/cms/internal_tags/taggit_handler.py
+++ b/scarlet/cms/internal_tags/taggit_handler.py
@@ -63,7 +63,7 @@ def update_changed_tags(new_tags, old_tags):
args = q | ar... | Only add tags to objects that have all old tags | py |
diff --git a/pandas/tests/scalar/timedelta/test_arithmetic.py b/pandas/tests/scalar/timedelta/test_arithmetic.py
index <HASH>..<HASH> 100644
--- a/pandas/tests/scalar/timedelta/test_arithmetic.py
+++ b/pandas/tests/scalar/timedelta/test_arithmetic.py
@@ -18,7 +18,6 @@ from pandas import (
NaT,
Timedelta,
... | CI: runtime warning in npdev build (#<I>) | py |
diff --git a/src/parse_mapqtl_file.py b/src/parse_mapqtl_file.py
index <HASH>..<HASH> 100644
--- a/src/parse_mapqtl_file.py
+++ b/src/parse_mapqtl_file.py
@@ -24,31 +24,15 @@
"""
import datetime
+import logging
import os
import shutil
import tarfile
import tempfile
import zipfile
+from pymq2 import read_input_... | Import logging in the parse_mapqtl_file | py |
diff --git a/setuptools/_importlib.py b/setuptools/_importlib.py
index <HASH>..<HASH> 100644
--- a/setuptools/_importlib.py
+++ b/setuptools/_importlib.py
@@ -12,6 +12,17 @@ def disable_importlib_metadata_finder(metadata):
import importlib_metadata
except ImportError:
return
+ except Attribute... | Warn when an incompatible version of importlib is used | py |
diff --git a/tests/test_io.py b/tests/test_io.py
index <HASH>..<HASH> 100644
--- a/tests/test_io.py
+++ b/tests/test_io.py
@@ -12,6 +12,7 @@ from auditok.io import (
AudioParameterError,
BufferAudioSource,
check_audio_data,
+ _guess_audio_format,
_get_audio_parameters,
_array_to_bytes,
... | Add tests for _guess_audio_format | py |
diff --git a/cleverhans/attacks.py b/cleverhans/attacks.py
index <HASH>..<HASH> 100644
--- a/cleverhans/attacks.py
+++ b/cleverhans/attacks.py
@@ -7,9 +7,7 @@ from .utils import random_targets
class Attack:
"""
- Abstract base class for all attack classes. All attacks must override the
- `craft` method th... | moved docstring of Attack to methods | py |
diff --git a/salt/client/mixins.py b/salt/client/mixins.py
index <HASH>..<HASH> 100644
--- a/salt/client/mixins.py
+++ b/salt/client/mixins.py
@@ -370,21 +370,14 @@ class SyncClientMixin(object):
args = low['arg']
if 'kwarg' not in low:
- if f_call is None:
- ... | Handle deprecation of passing string kwargs in the WheelClient/RunnerClient All refs have been checked and confirmed to be passing args/kwargs in the correct way. This commit removes the deprecation notice and replaces it with a log message when string kwargs are passed. | py |
diff --git a/werkzeug/contrib/cache.py b/werkzeug/contrib/cache.py
index <HASH>..<HASH> 100644
--- a/werkzeug/contrib/cache.py
+++ b/werkzeug/contrib/cache.py
@@ -206,10 +206,11 @@ class BaseCache(object):
:param key: the key to check
"""
- raise self.get(key) is not None
-
- def __contain... | cache: Don't fall back to slower implementation | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -4,7 +4,7 @@ from setuptools import setup, find_packages
setup(
name="pgmpy",
- version="0.1.0",
+ version="0.1.3",
description="A library for Probabilistic Graphical Models",
packages=find_packages(exc... | update setup for uploading to pypi | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -10,7 +10,7 @@ setup(
'PyPDF2==1.26.0',
'PySimpleGUI',
'reportlab',
- 'interruptingcow'
+ 'tqdm'
],
include_package_data=True,
url='https://github.com/mrstephenneal/pdfwa... | tqdm added as install requirement | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -21,7 +21,6 @@ from distutils.command.build import build
from setuptools import setup, Command
from setuptools.command.sdist import sdist
from setuptools.command.install import install
-from setuptools.command.test import t... | setup.py: Drop retext_test class, just set test_suite instead | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -1,13 +1,17 @@
#!/usr/bin/env python
+# -*- coding: utf-8 -*-
+
+import io
+
+from setuptools import setup
-from distutils.core import setup
setup(name='django-messagegroups',
version='0.4.4',
description='... | Switched setup.py to setuptools | py |
diff --git a/gcalcli/gcal.py b/gcalcli/gcal.py
index <HASH>..<HASH> 100644
--- a/gcalcli/gcal.py
+++ b/gcalcli/gcal.py
@@ -1288,15 +1288,19 @@ class GoogleCalendarInterface:
if len(self.cals) != 1:
# Calendar not specified. Prompt the user to select it
+ writers = (self.ACCESS_OWNER, ... | Show only writable calendars in prompt for `add` (#<I>) Fixes #<I> | py |
diff --git a/config_resolver/core.py b/config_resolver/core.py
index <HASH>..<HASH> 100644
--- a/config_resolver/core.py
+++ b/config_resolver/core.py
@@ -23,7 +23,7 @@ from warnings import warn
from .exc import NoVersionError
from .util import PrefixFilter
-__version__ = '4.3.1'
+__version__ = '4.3.1.post1'
C... | Version bumped to <I>.post1 | py |
diff --git a/snap7/snap7types.py b/snap7/snap7types.py
index <HASH>..<HASH> 100644
--- a/snap7/snap7types.py
+++ b/snap7/snap7types.py
@@ -164,7 +164,7 @@ class BlocksList(ctypes.Structure):
" SDB: %s>" % (self.OBCount, self.FBCount, self.FCCount,
self.SFBCount, self.SFCCo... | Update snap7types.py | py |
diff --git a/fermipy/diffuse/fitting.py b/fermipy/diffuse/fitting.py
index <HASH>..<HASH> 100644
--- a/fermipy/diffuse/fitting.py
+++ b/fermipy/diffuse/fitting.py
@@ -297,6 +297,7 @@ class FitDiffuse_SG(ScatterGather):
# Tweak the batch job args
try:
self._interface._lsf_args.update(dict(... | Fix synatx for multicore batch submission | py |
diff --git a/bokeh/mpl.py b/bokeh/mpl.py
index <HASH>..<HASH> 100644
--- a/bokeh/mpl.py
+++ b/bokeh/mpl.py
@@ -46,7 +46,7 @@ def axes2plot(axes, xkcd):
datasource = ColumnDataSource()
plot.data_sources = [datasource]
- bokehaxes = extract_axis(axes, xkcd)
+ bokehaxes = _make_axis(axes.xaxis, 0, xkcd),... | Deleted extract_axes function. | py |
diff --git a/eli5/lime/utils.py b/eli5/lime/utils.py
index <HASH>..<HASH> 100644
--- a/eli5/lime/utils.py
+++ b/eli5/lime/utils.py
@@ -13,7 +13,7 @@ from eli5.utils import vstack
def fit_proba(clf, X, y_proba, expand_factor=10, sample_weight=None,
- shuffle=True, random_state=None, partial_fit=False,
... | drop partial_fit support for now (it was unfinished) | py |
diff --git a/wagtailmarkdown/__init__.py b/wagtailmarkdown/__init__.py
index <HASH>..<HASH> 100644
--- a/wagtailmarkdown/__init__.py
+++ b/wagtailmarkdown/__init__.py
@@ -9,6 +9,7 @@
#
from django.db.models import TextField
+from django.utils.translation import ugettext_lazy as _
from wagtail.wagtailcore.blocks ... | add MarkdownField with default help text rationale: usually, the markdown field in a model won't need explicit help text, because its purpose will be fairly obviously ('body', 'content', and so on). instead, we can display some brief help about the Markdown syntax. unfortunately Wagtail (<I>) seems to escape HTML in... | py |
diff --git a/tracer/tracer.py b/tracer/tracer.py
index <HASH>..<HASH> 100644
--- a/tracer/tracer.py
+++ b/tracer/tracer.py
@@ -650,8 +650,11 @@ class Tracer(object):
state = cache_path.state
l.warning("caching state to %s", self._cache_file)
- with open(self._cache_file, 'w') as f:
- ... | Flag page variable is cached and catch RuntimeErrors during pickling to avoid it ruining tracer runs | py |
diff --git a/src/parser.py b/src/parser.py
index <HASH>..<HASH> 100644
--- a/src/parser.py
+++ b/src/parser.py
@@ -801,7 +801,9 @@ class InBody(InsertionMode):
self.parser.openElements[-1])
# the real deal
- def processCharacter(self, data):
+ def processNonSpaceCharacter(self, data):
+ ... | fix the testcase we didn't pass; reported spec bug to <EMAIL> --HG-- extra : convert_revision : svn%3Aacbfec<I>-<I>-<I>-a<I>-<I>a<I>e<I>e0/trunk%<I> | py |
diff --git a/holoviews/core/layer.py b/holoviews/core/layer.py
index <HASH>..<HASH> 100644
--- a/holoviews/core/layer.py
+++ b/holoviews/core/layer.py
@@ -287,20 +287,6 @@ class Layers(Pane, NdMapping):
return l, b, r, t
- def __mul__(self, other):
- if isinstance(other, ViewMap):
- it... | Removed __mul__ method from Layers class | py |
diff --git a/common/download_release.py b/common/download_release.py
index <HASH>..<HASH> 100644
--- a/common/download_release.py
+++ b/common/download_release.py
@@ -11,7 +11,7 @@ def download(url, fn):
print(url, fn)
if os.path.exists(fn):
return
- with open(fn, 'w') as f:
+ with open(fn, 'wb... | update release script for python3 | py |
diff --git a/scs_core/data/timedelta.py b/scs_core/data/timedelta.py
index <HASH>..<HASH> 100644
--- a/scs_core/data/timedelta.py
+++ b/scs_core/data/timedelta.py
@@ -89,6 +89,13 @@ class Timedelta(JSONable):
# --------------------------------------------------------------------------------------------------------... | Added UptimeDatum class. | py |
diff --git a/web3/method.py b/web3/method.py
index <HASH>..<HASH> 100644
--- a/web3/method.py
+++ b/web3/method.py
@@ -113,7 +113,7 @@ class Method(Generic[TFunc]):
4. After the parameter processing from steps 1-3 the request is made using
the calling function returned by the module attribute ``retrieve_cal... | docs: fix simple typo, reponse -> response There is a small typo in web3/method.py. Should read `response` rather than `reponse`. | py |
diff --git a/master/buildbot/test/unit/test_status_logfile.py b/master/buildbot/test/unit/test_status_logfile.py
index <HASH>..<HASH> 100644
--- a/master/buildbot/test/unit/test_status_logfile.py
+++ b/master/buildbot/test/unit/test_status_logfile.py
@@ -382,14 +382,6 @@ class TestHTMLLogFile(unittest.TestCase, dirs.Di... | fixed the cleanup-gone-wrong | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -17,5 +17,6 @@ setup(
license='',
author='Michał Szostak',
author_email='michal.florian.szostak@cern.ch',
- description='Library providing means of conversion between oldhepdata format to new one, and new one... | added download_url to setup.py | py |
diff --git a/wechatpy/client/api/customservice.py b/wechatpy/client/api/customservice.py
index <HASH>..<HASH> 100644
--- a/wechatpy/client/api/customservice.py
+++ b/wechatpy/client/api/customservice.py
@@ -2,6 +2,7 @@
from __future__ import absolute_import, unicode_literals
import hashlib
+from wechatpy.utils impo... | Fix TypeError of hashlib.md5 in Py3K | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -4,7 +4,7 @@ from setuptools import setup, find_packages
setup(
name = 'pymemcache',
- version = '0.5',
+ version = '0.6',
author = 'Charles Gordon',
author_email = 'charles@pinterest.com',
package... | Increasing version for pypi | py |
diff --git a/python/ray/ray_constants.py b/python/ray/ray_constants.py
index <HASH>..<HASH> 100644
--- a/python/ray/ray_constants.py
+++ b/python/ray/ray_constants.py
@@ -151,7 +151,7 @@ REPORTER_UPDATE_INTERVAL_MS = env_integer("REPORTER_UPDATE_INTERVAL_MS", 2500)
# Number of attempts to ping the Redis server. See
... | Increase redis connection timeout (#<I>) | py |
diff --git a/configure.py b/configure.py
index <HASH>..<HASH> 100755
--- a/configure.py
+++ b/configure.py
@@ -320,7 +320,7 @@ if options.with_gtest:
gtest_all_incs = '-I%s -I%s' % (path, os.path.join(path, 'include'))
if platform == 'windows':
- gtest_cflags = '/nologo /EHsc ' + gtest_all_incs
+ ... | windows: pass /Zi to gtest compile as well | py |
diff --git a/python-xbrl/parser.py b/python-xbrl/parser.py
index <HASH>..<HASH> 100644
--- a/python-xbrl/parser.py
+++ b/python-xbrl/parser.py
@@ -334,7 +334,7 @@ class XBRLPreprocessedFile(XBRLFile):
new_fh.write("</%s>" % last_open_tag)
last_open_tag = None
if is... | strange bug where tokens are not being recognized in preprocessing step | py |
diff --git a/flask_security/datastore.py b/flask_security/datastore.py
index <HASH>..<HASH> 100644
--- a/flask_security/datastore.py
+++ b/flask_security/datastore.py
@@ -9,9 +9,6 @@
:license: MIT, see LICENSE for more details.
"""
-from peewee import fn as peeweeFn
-from sqlalchemy import func as alchemyFn
-
... | Fix global imports of sqlachemy and peewee Changes places where sqlalchemy and peewee functions are imported. (closes #<I>) | py |
diff --git a/kafka/consumer/fetcher.py b/kafka/consumer/fetcher.py
index <HASH>..<HASH> 100644
--- a/kafka/consumer/fetcher.py
+++ b/kafka/consumer/fetcher.py
@@ -361,6 +361,14 @@ class Fetcher(six.Iterator):
# If relative offset is used, we need to decompress the entire message first to compute
... | Log warning if message set appears double-compressed in KafkaConsumer | py |
diff --git a/tests.py b/tests.py
index <HASH>..<HASH> 100644
--- a/tests.py
+++ b/tests.py
@@ -22,12 +22,15 @@ def test_mdr_init():
assert mdr_obj.tie_break == 1
assert mdr_obj.default_label == 0
- assert mdr_obj.class_fraction == 0.
+ assert mdr_obj.class_count_matrix is None
+ assert mdr_obj.feat... | Fix unit tests Because we reworked the default states of the MDR internal variables, this change needs to be reflected in the unit tests. | py |
diff --git a/stimela/recipe.py b/stimela/recipe.py
index <HASH>..<HASH> 100644
--- a/stimela/recipe.py
+++ b/stimela/recipe.py
@@ -222,9 +222,15 @@ class StimelaJob(object):
'/scratch/configfile', perm='ro', noverify=True)
cont.add_volume(os.path.join(cabpath, "src"), "/scratch/code", ... | cater for singularity images without an ENTRYPOINT/CMD | py |
diff --git a/xarray/core/dataset.py b/xarray/core/dataset.py
index <HASH>..<HASH> 100644
--- a/xarray/core/dataset.py
+++ b/xarray/core/dataset.py
@@ -921,7 +921,6 @@ class Dataset(Mapping, ImplementsDatasetReduce, BaseDataObject,
store.store(variables, attrs, check_encoding,
unlimited_dim... | Remove debug print() (#<I>) | py |
diff --git a/shop_stripe/modifiers.py b/shop_stripe/modifiers.py
index <HASH>..<HASH> 100644
--- a/shop_stripe/modifiers.py
+++ b/shop_stripe/modifiers.py
@@ -11,7 +11,7 @@ class StripePaymentModifier(PaymentModifier):
commision_percentage = None
def get_choice(self):
- return (self.payment_provider.... | Enforce the usage of ‘identifier’ | py |
diff --git a/tasks.py b/tasks.py
index <HASH>..<HASH> 100644
--- a/tasks.py
+++ b/tasks.py
@@ -304,6 +304,10 @@ def release(ctx, version=datetime.datetime.now().strftime("%Y.%m.%d"), nodoc=Fal
ctx.run('git commit -a -m "Update docs"')
ctx.run("git push")
release_github(ctx, version)
+ ctx.run(... | Add upload of tar.gz for release task. | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.