diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/cpenv/api.py b/cpenv/api.py
index <HASH>..<HASH> 100644
--- a/cpenv/api.py
+++ b/cpenv/api.py
@@ -573,7 +573,14 @@ def _init():
configured_repos = read_config('repos', {})
for name, config in configured_repos.items():
repo_cls = repos.registry[config.pop('type')]
- add_repo(repo_c... | fix: _init failed when Repo construction raised | py |
diff --git a/openquake/risklib/riskinput.py b/openquake/risklib/riskinput.py
index <HASH>..<HASH> 100644
--- a/openquake/risklib/riskinput.py
+++ b/openquake/risklib/riskinput.py
@@ -146,12 +146,12 @@ class CompositeRiskModel(collections.Mapping):
'an exposure' % oqparam.inputs['job_ini'])
... | Added sorting of risk functions [skip hazardlib] | py |
diff --git a/sc2/bot_ai.py b/sc2/bot_ai.py
index <HASH>..<HASH> 100644
--- a/sc2/bot_ai.py
+++ b/sc2/bot_ai.py
@@ -141,8 +141,9 @@ class BotAI:
if not location:
location = await self.get_next_expansion()
-
- await self.build(building, near=location, max_distance=max_distance, random_alter... | Stop expand if no more places for expanding It complained "AttributeError: 'NoneType' object has no attribute 'rounded'" when my bot take every available places to build main bases. In that case, the location got from `get_next_expansion` will be None and cause the error. | py |
diff --git a/blinkpy/helpers/constants.py b/blinkpy/helpers/constants.py
index <HASH>..<HASH> 100644
--- a/blinkpy/helpers/constants.py
+++ b/blinkpy/helpers/constants.py
@@ -4,7 +4,7 @@ import os
MAJOR_VERSION = 0
MINOR_VERSION = 15
-PATCH_VERSION = '0.dev0'
+PATCH_VERSION = '0-rc.0'
__version__ = '{}.{}.{}'.fo... | Change to SemVer for dev versions (now rc) | py |
diff --git a/gandi/cli/tests/commands/test_vm.py b/gandi/cli/tests/commands/test_vm.py
index <HASH>..<HASH> 100644
--- a/gandi/cli/tests/commands/test_vm.py
+++ b/gandi/cli/tests/commands/test_vm.py
@@ -1,4 +1,6 @@
# -*- coding: utf-8 -*-
+from __future__ import unicode_literals
+
import re
import socket
@@ -796,7... | Fixes tests for python3 compatibility | py |
diff --git a/salesforce/management/commands/inspectdb.py b/salesforce/management/commands/inspectdb.py
index <HASH>..<HASH> 100644
--- a/salesforce/management/commands/inspectdb.py
+++ b/salesforce/management/commands/inspectdb.py
@@ -140,7 +140,7 @@ class Command(InspectDBCommand):
).normalize_col... | Additional minor change to inspectdb.py for Django 2.x compatability | py |
diff --git a/bcbio/bed/__init__.py b/bcbio/bed/__init__.py
index <HASH>..<HASH> 100644
--- a/bcbio/bed/__init__.py
+++ b/bcbio/bed/__init__.py
@@ -47,4 +47,8 @@ def minimize(bed_file):
if not bed_file:
return bed_file
else:
- return bt.BedTool(bed_file).cut(range(3))
+ sorted_bed = bt.B... | Cleanup BED files after minimizing. Return a sorted BED file and also a file with a .bed extension, since some tools use the extension to figure out what type of file it is (like tabix, etc). | py |
diff --git a/samples/dumpit.py b/samples/dumpit.py
index <HASH>..<HASH> 100755
--- a/samples/dumpit.py
+++ b/samples/dumpit.py
@@ -165,6 +165,7 @@ for s in slots:
try:
attributes = session.getAttributeValue(o, all_attributes)
except PyKCS11.PyKCS11Error as e:
+ ... | dumpit: display the error if getAttributeValue() fails Display the exception description returned by .getAttributeValue() instead of silently continuing to the next object. | py |
diff --git a/publish/run_all.py b/publish/run_all.py
index <HASH>..<HASH> 100644
--- a/publish/run_all.py
+++ b/publish/run_all.py
@@ -6,8 +6,8 @@ import time
import sys
import platform
import pip
-pip.main(["install", "--upgrade", "pip"])
-pip.main(["install", "--upgrade", "gitpython"])
+pip.main(["install", "--upg... | changed pip installs to local" | py |
diff --git a/raiden/network/proxies/token_network.py b/raiden/network/proxies/token_network.py
index <HASH>..<HASH> 100644
--- a/raiden/network/proxies/token_network.py
+++ b/raiden/network/proxies/token_network.py
@@ -1799,7 +1799,7 @@ class TokenNetwork:
raise RaidenUnrecoverableError("Unlocked fai... | Fix unlock using wrong block to check latest channel state | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -10,7 +10,7 @@ with open(path.join(here, 'README.rst'), encoding='utf-8') as f:
setup(
name='nyaalib',
- version='0.0.4',
+ version='0.0.5',
description='Python library for Nyaa',
long_description=readm... | bumping version to <I> | py |
diff --git a/field_history/middleware.py b/field_history/middleware.py
index <HASH>..<HASH> 100644
--- a/field_history/middleware.py
+++ b/field_history/middleware.py
@@ -1,7 +1,8 @@
from .tracker import FieldHistoryTracker
+from django.utils.deprecation import MiddlewareMixin
-class FieldHistoryMiddleware(object)... | Added inheritance from django.utils.deprecation.MiddlewareMixin to correct incompatibility with Django <I> Django <I> changed MIDDLEWARE_CLASSES to MIDDLEWARE. This patch adjusts for that. | py |
diff --git a/ELiDE/ELiDE/screen.py b/ELiDE/ELiDE/screen.py
index <HASH>..<HASH> 100644
--- a/ELiDE/ELiDE/screen.py
+++ b/ELiDE/ELiDE/screen.py
@@ -270,7 +270,6 @@ class MainScreen(Screen):
if not self.app:
Clock.schedule_once(self.on_statpanel, 0)
return
- self._update_statlist... | Avoid crash when resuming ELiDE on non-trunk branches | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -7,7 +7,7 @@ from os import path
setup(
name = "acos-client",
- version = "2.2.0",
+ version = "2.3.0",
packages = find_packages(),
author = "A10 Networks", | Bumped version after lastest additions | py |
diff --git a/grimoire/arthur.py b/grimoire/arthur.py
index <HASH>..<HASH> 100755
--- a/grimoire/arthur.py
+++ b/grimoire/arthur.py
@@ -85,7 +85,7 @@ def feed_backend(url, clean, fetch_cache, backend_name, backend_params):
logging.error("Error feeding ocean %s" % ex)
repo['success'] = False
- ... | [feed_backend] Convert exception to string so it can be converted to JSON later. | py |
diff --git a/cinje/inline/text.py b/cinje/inline/text.py
index <HASH>..<HASH> 100644
--- a/cinje/inline/text.py
+++ b/cinje/inline/text.py
@@ -75,7 +75,7 @@ class Text(object):
yield Line(0, PREFIX + part + (')' if single else ','), (context.scope + (0 if single else 1)))
elif token == 'format':
- pass... | Correctly raise a NotImplementedError for missing functionality. | py |
diff --git a/src/websockets/legacy/protocol.py b/src/websockets/legacy/protocol.py
index <HASH>..<HASH> 100644
--- a/src/websockets/legacy/protocol.py
+++ b/src/websockets/legacy/protocol.py
@@ -466,11 +466,6 @@ class WebSocketCommonProtocol(asyncio.Protocol):
:exc:`~websockets.exceptions.ConnectionClosedError... | Remove backwards-compatibility from docs after 5 years. | py |
diff --git a/PySimpleGUI.py b/PySimpleGUI.py
index <HASH>..<HASH> 100644
--- a/PySimpleGUI.py
+++ b/PySimpleGUI.py
@@ -3909,7 +3909,11 @@ class Window:
return self
def FindElement(self, key, silent_on_error=False):
- element = _FindElementFromKeyInSubForm(self, key)
+ try:
+ ele... | Added back automatic key creation. Changed FindElement to use new Key Dictionary | py |
diff --git a/sciunit/utils.py b/sciunit/utils.py
index <HASH>..<HASH> 100644
--- a/sciunit/utils.py
+++ b/sciunit/utils.py
@@ -1092,4 +1092,4 @@ def memoize(fn=None):
class_intern = intern.intern
-method_memoize = memoize
\ No newline at end of file
+method_memoize = memoize | Add a line at EOF | py |
diff --git a/openquake/calculators/event_based.py b/openquake/calculators/event_based.py
index <HASH>..<HASH> 100644
--- a/openquake/calculators/event_based.py
+++ b/openquake/calculators/event_based.py
@@ -46,8 +46,9 @@ def weight(src):
"""
:returns: source weight multiplied by the total occurrence rate
... | Changed weight [skip hazardlib] | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -1,3 +1,18 @@
+# nhlib: A New Hazard Library
+# Copyright (C) 2012 GEM Foundation
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Affero General Public License as
+# ... | setup: added license header and copyright info | py |
diff --git a/spyderlib/widgets/sourcecode/codeeditor.py b/spyderlib/widgets/sourcecode/codeeditor.py
index <HASH>..<HASH> 100644
--- a/spyderlib/widgets/sourcecode/codeeditor.py
+++ b/spyderlib/widgets/sourcecode/codeeditor.py
@@ -2099,8 +2099,7 @@ class CodeEditor(TextEditBaseWidget):
char = {Qt.Key_QuoteDbl:... | Editor: Improve detection of open quotes in a given line | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -15,7 +15,7 @@ setup(
classifiers=[
'Environment :: Web Environment',
'Intended Audience :: Developers',
- 'License :: OSI Approved :: BSD License',
+ 'License :: OSI Approved :: MIT Licens... | Addressing #<I> by replacing the BSD license reference with MIT to match what's in the repo. | py |
diff --git a/lib/webaccessadmin_lib.py b/lib/webaccessadmin_lib.py
index <HASH>..<HASH> 100644
--- a/lib/webaccessadmin_lib.py
+++ b/lib/webaccessadmin_lib.py
@@ -1832,7 +1832,9 @@ def perform_addrole(req, id_role=0, name_role='', description='put description h
if result:
subtitle ... | fixed bug in perform_addrole, tmp conversion of tuple to list for assignement. | py |
diff --git a/system_tests/bigquery.py b/system_tests/bigquery.py
index <HASH>..<HASH> 100644
--- a/system_tests/bigquery.py
+++ b/system_tests/bigquery.py
@@ -269,8 +269,8 @@ class TestBigQuery(unittest.TestCase):
# Allow for 90 seconds of "warm up" before rows visible. See:
# https://cloud.google.... | Fix comment, number of tries to ensure <I> seconds. Addresses: <URL> | py |
diff --git a/voxgenerator/core/dbusplugin.py b/voxgenerator/core/dbusplugin.py
index <HASH>..<HASH> 100644
--- a/voxgenerator/core/dbusplugin.py
+++ b/voxgenerator/core/dbusplugin.py
@@ -28,8 +28,7 @@ class DbusPlugin(DbusSessionPlugin):
raise NotImplementedError('Subclasses must override !')
def __is_c... | removing unusefull thing in dbusplugin | py |
diff --git a/salt/modules/win_pkg.py b/salt/modules/win_pkg.py
index <HASH>..<HASH> 100644
--- a/salt/modules/win_pkg.py
+++ b/salt/modules/win_pkg.py
@@ -249,9 +249,12 @@ def _get_msi_software():
swbem_services = wmi_service.ConnectServer(this_computer, "root\\cimv2")
products = swbem_services.ExecQuery("Sel... | Add try/except to not fail on missing info Fixes #<I> | py |
diff --git a/kafka/conn.py b/kafka/conn.py
index <HASH>..<HASH> 100644
--- a/kafka/conn.py
+++ b/kafka/conn.py
@@ -423,6 +423,7 @@ class BrokerConnection(object):
else:
log.info('%s: Connection complete.', self)
self.state = ConnectionStates.CONNECTED
+ ... | Reset reconnect backoff on SSL connection (#<I>) | py |
diff --git a/satin/aapp1b.py b/satin/aapp1b.py
index <HASH>..<HASH> 100644
--- a/satin/aapp1b.py
+++ b/satin/aapp1b.py
@@ -72,9 +72,13 @@ def load_avhrr(satscene, options):
if len(file_list) > 1:
raise IOError("More than one l1b file matching!")
elif len(file_list) == 0:
- raise IOError("No l1... | Cosmetics: enhanced error description and debug message in aapp1b, giving names to loaded/missing files. | py |
diff --git a/host/pybar/scans/tune_fei4.py b/host/pybar/scans/tune_fei4.py
index <HASH>..<HASH> 100644
--- a/host/pybar/scans/tune_fei4.py
+++ b/host/pybar/scans/tune_fei4.py
@@ -123,7 +123,7 @@ class Fei4Tuning(GdacTuning, TdacTuning, FeedbackTuning, FdacTuning):
start_bit = 7
for iteration in range... | ENH: remove speed optimization, because it can fail easily | py |
diff --git a/benchexec/tools/depthk.py b/benchexec/tools/depthk.py
index <HASH>..<HASH> 100644
--- a/benchexec/tools/depthk.py
+++ b/benchexec/tools/depthk.py
@@ -38,7 +38,8 @@ class Tool(benchexec.tools.template.BaseTool):
"esbmc",
"__init__.py",
"modules",
- ... | Correct problem with missing directory (esbmc) | py |
diff --git a/run_tests.py b/run_tests.py
index <HASH>..<HASH> 100755
--- a/run_tests.py
+++ b/run_tests.py
@@ -7,10 +7,8 @@ from __future__ import absolute_import, division, print_function, with_statement
import unittest
import sys
import os
-import subprocess
import argparse
import tmuxp.testsuite
-from tmuxp.uti... | Remove unused packages from run_tests.py | py |
diff --git a/xcat/features.py b/xcat/features.py
index <HASH>..<HASH> 100644
--- a/xcat/features.py
+++ b/xcat/features.py
@@ -57,10 +57,7 @@ features = [
]),
Feature('codepoint-search',
[
- func.string_to_codepoints("test")[1] == 116,
- func.string_to_codepo... | Include a single test in codepoint search | py |
diff --git a/openquake/db/models.py b/openquake/db/models.py
index <HASH>..<HASH> 100644
--- a/openquake/db/models.py
+++ b/openquake/db/models.py
@@ -1440,6 +1440,14 @@ class SESRupture(djm.Model):
lats = fields.PickleField()
depths = fields.PickleField()
result_grp_ordinal = djm.IntegerField()
+ # N... | db/models: Added better doc to the SESRupture.rupture_ordinal field. | py |
diff --git a/holoviews/plotting/bokeh/plot.py b/holoviews/plotting/bokeh/plot.py
index <HASH>..<HASH> 100644
--- a/holoviews/plotting/bokeh/plot.py
+++ b/holoviews/plotting/bokeh/plot.py
@@ -532,14 +532,9 @@ class LayoutPlot(CompositePlot, GenericLayoutPlot):
if adjoined:
plots = layout_padding(pl... | Fixed table titles on (Nd)Layout plots | py |
diff --git a/tests/model_sql.py b/tests/model_sql.py
index <HASH>..<HASH> 100644
--- a/tests/model_sql.py
+++ b/tests/model_sql.py
@@ -368,7 +368,7 @@ class TestModelSQL(ModelDatabaseTestCase):
'UPDATE "account" SET '
'"contact_first" = "first", '
'"contact_last" = "last" '
- ... | Update failing test in model sql generation. | py |
diff --git a/gcloud/datastore/helpers.py b/gcloud/datastore/helpers.py
index <HASH>..<HASH> 100644
--- a/gcloud/datastore/helpers.py
+++ b/gcloud/datastore/helpers.py
@@ -1,7 +1,9 @@
"""Helper functions for dealing with Cloud Datastore's Protobuf API.
-These functions are *not* part of the API.
+The non-private func... | Update 'gcloud.datastore.helpers' to indicate API-ness. Correct docstring. Add '__all__' to indicate public members. | py |
diff --git a/claripy/backends/backend_z3.py b/claripy/backends/backend_z3.py
index <HASH>..<HASH> 100644
--- a/claripy/backends/backend_z3.py
+++ b/claripy/backends/backend_z3.py
@@ -992,13 +992,11 @@ class BackendZ3(Backend):
#print "MISS CACHE"
- l.debug("SIMPLIFYING EXPRESSION")
-
- #p... | tweak commented simplification debug logging | py |
diff --git a/indra/assemblers/pysb/kappa_util.py b/indra/assemblers/pysb/kappa_util.py
index <HASH>..<HASH> 100644
--- a/indra/assemblers/pysb/kappa_util.py
+++ b/indra/assemblers/pysb/kappa_util.py
@@ -159,7 +159,15 @@ def cm_json_to_graph(cm_json):
graph : pygraphviz.Agraph
A graph representing the cont... | Start adapting to changes for CM structure | py |
diff --git a/salt/client/ssh/state.py b/salt/client/ssh/state.py
index <HASH>..<HASH> 100644
--- a/salt/client/ssh/state.py
+++ b/salt/client/ssh/state.py
@@ -195,7 +195,7 @@ def prep_trans_tar(opts, file_client, chunks, file_refs, pillar=None, id_=None,
cachedir = os.path.join('salt-ssh', id_).rstrip(os.sep)... | Fix incorrect use of six.string_types in ssh client This was broken a few days ago when making PY3 incompatibility changes. `six_text_type` needed to be used instead of `six.string_types`. | py |
diff --git a/lib/svtplay_dl/__init__.py b/lib/svtplay_dl/__init__.py
index <HASH>..<HASH> 100644
--- a/lib/svtplay_dl/__init__.py
+++ b/lib/svtplay_dl/__init__.py
@@ -6,6 +6,7 @@ import re
import os
import logging
import copy
+import platform
from optparse import OptionParser
from svtplay_dl.error import UIExcep... | get_one_media: This will fix #<I>. the problem is that c:\test will became c:_tab_est and that is a wrong filename. because \t is tab. | py |
diff --git a/salesforce/backend/query.py b/salesforce/backend/query.py
index <HASH>..<HASH> 100644
--- a/salesforce/backend/query.py
+++ b/salesforce/backend/query.py
@@ -271,7 +271,8 @@ class SalesforceQuerySet(query.QuerySet):
if model is None:
model = self.model
try:
- if field.name in only_load[... | Fixed test_integration.BasicSOQLTest.test_only_fields for Django <I> This was an ugly bug with Django <I> caused by merge in the commit <I> with result of a few hundred repeated queries and "RuntimeError: maximum recursion depth exceeded". | py |
diff --git a/src/colab/custom_settings.py b/src/colab/custom_settings.py
index <HASH>..<HASH> 100644
--- a/src/colab/custom_settings.py
+++ b/src/colab/custom_settings.py
@@ -231,8 +231,8 @@ STATICFILES_DIRS = (
os.path.join(BASE_DIR, 'static'),
)
-STATIC_ROOT = os.path.join(BASE_DIR, '..', 'www', 'static')
-ME... | Sending static and media to new location | py |
diff --git a/ansible_runner/runner_config.py b/ansible_runner/runner_config.py
index <HASH>..<HASH> 100644
--- a/ansible_runner/runner_config.py
+++ b/ansible_runner/runner_config.py
@@ -288,12 +288,12 @@ class RunnerConfig(object):
output.debug("Not loading settings")
self.settings = dict()
... | Revert accidental indentation change from ac<I>d0. | py |
diff --git a/dataviews/sheetviews.py b/dataviews/sheetviews.py
index <HASH>..<HASH> 100644
--- a/dataviews/sheetviews.py
+++ b/dataviews/sheetviews.py
@@ -146,7 +146,8 @@ class SheetView(SheetLayer, SheetCoordinateSystem):
_deep_indexable = True
- def __init__(self, data, bounds, **kwargs):
+ def __init_... | The second positional argument to SheetView (bounds) is now optional | py |
diff --git a/airtest/core/win/directinput.py b/airtest/core/win/directinput.py
index <HASH>..<HASH> 100644
--- a/airtest/core/win/directinput.py
+++ b/airtest/core/win/directinput.py
@@ -189,11 +189,16 @@ def key_press(key):
:param key: A string indicating which key to be pressed.
Available key op... | Add exception handling (cherry picked from commit <I>f<I>f<I>c<I>a<I>e<I>ff<I>fa<I>f6fa) | py |
diff --git a/batchbuild.py b/batchbuild.py
index <HASH>..<HASH> 100755
--- a/batchbuild.py
+++ b/batchbuild.py
@@ -193,6 +193,8 @@ def run_python(pkg, args):
if args.prefix:
buildargs += " --pyrap=%s" % args.prefix
if args.pyprefix:
+ if not os.path.exists(args.pyprefix):
+ os.make... | create --python-prefix dir if it doesn't exist | py |
diff --git a/spyder/app/tests/test_mainwindow.py b/spyder/app/tests/test_mainwindow.py
index <HASH>..<HASH> 100644
--- a/spyder/app/tests/test_mainwindow.py
+++ b/spyder/app/tests/test_mainwindow.py
@@ -553,12 +553,12 @@ def test_change_cwd_dbg(main_window, qtbot):
main_window.workingdirectory.chdir(osp.dirname(LO... | Testing: Increase waiting time for test_change_cwd_dbg | py |
diff --git a/pymatgen/analysis/defects/generators.py b/pymatgen/analysis/defects/generators.py
index <HASH>..<HASH> 100644
--- a/pymatgen/analysis/defects/generators.py
+++ b/pymatgen/analysis/defects/generators.py
@@ -247,10 +247,13 @@ class SimpleChargeGenerator(DefectGenerator):
"""
self.defect = d... | some bug fixes in chg generators | py |
diff --git a/teams/forms.py b/teams/forms.py
index <HASH>..<HASH> 100644
--- a/teams/forms.py
+++ b/teams/forms.py
@@ -56,7 +56,10 @@ class TeamInviteUserForm(forms.Form):
try:
return User.objects.get(email=self.cleaned_data["invitee"])
except User.DoesNotExist:
- return self.c... | Handle case where invitee is username and not email | py |
diff --git a/nfc/dev/acr122.py b/nfc/dev/acr122.py
index <HASH>..<HASH> 100644
--- a/nfc/dev/acr122.py
+++ b/nfc/dev/acr122.py
@@ -78,7 +78,7 @@ class Chipset(pn53x.Chipset):
if frame[0] != 0x80:
log.error("expected a RDR_to_PC_DataBlock")
raise IOError(errno.EIO, os.strerror(errno.EI... | fix: struct.unpack does not accept bytearray in Python <I> and earlier | py |
diff --git a/hmmlearn/tests/test_utils.py b/hmmlearn/tests/test_utils.py
index <HASH>..<HASH> 100644
--- a/hmmlearn/tests/test_utils.py
+++ b/hmmlearn/tests/test_utils.py
@@ -2,9 +2,6 @@ import numpy as np
from hmmlearn.utils import normalize, logsumexp
-rng = np.random.RandomState(0)
-np.seterr(all='warn')
-
d... | TST don't fix the seed in ``test_utils`` | py |
diff --git a/build_tasks.py b/build_tasks.py
index <HASH>..<HASH> 100644
--- a/build_tasks.py
+++ b/build_tasks.py
@@ -36,6 +36,7 @@ class SupportedPlatformEnum(Enum):
OPENBSD_64 = 6
OSX_ARM64 = 7
LINUX_ARM64 = 8
+ LINUX_ARM32 = 9
CURRENT_PLATFORM = None
@@ -56,7 +57,10 @@ if architecture()[0] ==... | feat: add build support for armhf7 (Raspberry) | py |
diff --git a/insights/client/config.py b/insights/client/config.py
index <HASH>..<HASH> 100644
--- a/insights/client/config.py
+++ b/insights/client/config.py
@@ -110,8 +110,7 @@ DEFAULT_OPTS = {
'display_name': {
'default': None,
'opt': ['--display-name'],
- 'help': 'Display name for this... | odds and ends (#<I>) | py |
diff --git a/bcbio/upload/__init__.py b/bcbio/upload/__init__.py
index <HASH>..<HASH> 100644
--- a/bcbio/upload/__init__.py
+++ b/bcbio/upload/__init__.py
@@ -447,7 +447,7 @@ def _get_files_project(sample, upload_config):
out.append({"path": dd.get_combined_fpkm(sample)})
if dd.get_combined_fpkm_isoform(s... | upload assembly only if transcript assembly is on. | py |
diff --git a/tests/test_main.py b/tests/test_main.py
index <HASH>..<HASH> 100755
--- a/tests/test_main.py
+++ b/tests/test_main.py
@@ -883,6 +883,26 @@ def test_solemn_vigil():
assert game.player1.used_mana == 0
+def test_sorcerers_apprentice():
+ game = prepare_game()
+ apprentice1 = game.player1.give("EX1_608")... | Add test for Sorcerer's Apprentice | py |
diff --git a/allauth/socialaccount/providers/keycloak/provider.py b/allauth/socialaccount/providers/keycloak/provider.py
index <HASH>..<HASH> 100644
--- a/allauth/socialaccount/providers/keycloak/provider.py
+++ b/allauth/socialaccount/providers/keycloak/provider.py
@@ -1,8 +1,17 @@
# -*- coding: utf-8 -*-
+from djang... | feat(keycloak): Add configuration to override provider name * Add configuration to override provider name displayed in UI * Formatted by black * Sort the imports * Applied isort fix to imports | py |
diff --git a/vk/groups.py b/vk/groups.py
index <HASH>..<HASH> 100644
--- a/vk/groups.py
+++ b/vk/groups.py
@@ -1,5 +1,6 @@
# coding=utf-8
from .fetch import fetch
+from .users import get_users
__all__ = ("groups",)
@@ -33,6 +34,21 @@ class Group(object):
response = fetch("groups.getById", group_ids=self... | Add method `Group.get_members()` | py |
diff --git a/sawtooth_rps/cli.py b/sawtooth_rps/cli.py
index <HASH>..<HASH> 100644
--- a/sawtooth_rps/cli.py
+++ b/sawtooth_rps/cli.py
@@ -46,13 +46,16 @@ def do_list(args, config):
state = v.get('State')
print "%s\tplayers: %s status: %s creator: %s" % (k, players, state.capitalize(), creator)
... | Edit do_list to hide players hands before completion and show hands after | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -9,7 +9,7 @@ install_requirements = [
"pyswagger >= 0.8.31",
"six",
"pytz",
- "futures",
+ 'futures; python_version == "2.7"',
]
# test requirements | Fixing futures version for py2 only | py |
diff --git a/twitter_scraper.py b/twitter_scraper.py
index <HASH>..<HASH> 100644
--- a/twitter_scraper.py
+++ b/twitter_scraper.py
@@ -14,7 +14,8 @@ def get_tweets(user, pages=25):
'Referer': f'https://twitter.com/{user}',
'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/603.... | Add `Accept-Language` as `en-US` and add test | py |
diff --git a/pyghmi/ipmi/private/session.py b/pyghmi/ipmi/private/session.py
index <HASH>..<HASH> 100644
--- a/pyghmi/ipmi/private/session.py
+++ b/pyghmi/ipmi/private/session.py
@@ -471,6 +471,7 @@ class Session(object):
self.iterwaiters.append(onlogon)
return
self.broken = F... | Have logged set to 0 early The logged attribute is not guaranteed to exist, which can cause certain actions early on to produce a trace. Make sure it is present and accurate. Change-Id: Ifb<I>e<I>c5fc<I>d<I>e<I>a<I> | py |
diff --git a/gphoto2cffi/gphoto2.py b/gphoto2cffi/gphoto2.py
index <HASH>..<HASH> 100644
--- a/gphoto2cffi/gphoto2.py
+++ b/gphoto2cffi/gphoto2.py
@@ -558,6 +558,7 @@ class Camera(object):
# pre-Allocate some more dynamic memory to be used for preview capture
self.__camfile_p = ffi.new("CameraFile**... | Forgot to move `gp_file_new()` to constructor | py |
diff --git a/ndb/tasks.py b/ndb/tasks.py
index <HASH>..<HASH> 100644
--- a/ndb/tasks.py
+++ b/ndb/tasks.py
@@ -572,10 +572,10 @@ class QueueIteratingFuture(Future):
except EOFError:
self.__value = None
self.__nextf = None
- self.set_result(None)
+ self.set_result(False)
else:
se... | Fixed QueueIterationFuture basics. | py |
diff --git a/test/common_utils.py b/test/common_utils.py
index <HASH>..<HASH> 100644
--- a/test/common_utils.py
+++ b/test/common_utils.py
@@ -102,11 +102,11 @@ def cycle_over(objs):
def int_dtypes():
- return torch.testing.integral_types()
+ return (torch.uint8, torch.int8, torch.int16, torch.int32, torch.i... | remove dependency for dtype getters (#<I>) | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -15,7 +15,7 @@ with open('LICENSE') as fl:
setup(
name='CurrencyConverter',
- version='0.13.10',
+ version='0.13.11',
author='Alex Prengère',
author_email='alexprengere@gmail.com',
url='https://git... | Bump to version <I> | py |
diff --git a/ksamsok/ksamsok.py b/ksamsok/ksamsok.py
index <HASH>..<HASH> 100644
--- a/ksamsok/ksamsok.py
+++ b/ksamsok/ksamsok.py
@@ -195,7 +195,7 @@ class KSamsok:
def geoSearch(self, west, south, east, north, start, hits = 60):
#create the request URL
- request_query = self.endpoint + 'ksamsok... | geoSearch(): make sure everything passed to the query are str()ed | py |
diff --git a/pyoko/node.py b/pyoko/node.py
index <HASH>..<HASH> 100644
--- a/pyoko/node.py
+++ b/pyoko/node.py
@@ -375,7 +375,7 @@ class Node(object):
# get keys of linked models
for lnk in self.get_links(is_set=False):
lnkd_mdl = getattr(self, lnk['field'])
- dct[un_camel_id(l... | FIX for allow emptying of a linked model field by assignment with None | py |
diff --git a/wp_info.py b/wp_info.py
index <HASH>..<HASH> 100755
--- a/wp_info.py
+++ b/wp_info.py
@@ -12,14 +12,21 @@ class wp_info:
'''extract Infobox from Mediawiki API text output'''
# format=txt output is predictable PHP print_r()
start = False
+ ignore = 0
import re
... | handle multiline double-brace enclosures | py |
diff --git a/demo/demo/models.py b/demo/demo/models.py
index <HASH>..<HASH> 100644
--- a/demo/demo/models.py
+++ b/demo/demo/models.py
@@ -3,9 +3,9 @@ from django.db import models
ABODE_TYPES = (
('SH', 'Small house'),
- ('H', 'House'),
+ ('H', 'House'),
('SB', 'Small building'),
- ('B', 'Buildi... | fixed #<I> -- removed small flake8 errors in models.py | 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
@@ -152,6 +152,38 @@ class LockTestCase(StateClearingTestCase):
greenhouse.pause()
assert l[0] == 2
+ def test_release_race(self):
+ lock = self.LOCK()
+ ... | good test case, though it doesn't reproduce the lock issue I (thought I) saw | py |
diff --git a/grimoire/arthur.py b/grimoire/arthur.py
index <HASH>..<HASH> 100755
--- a/grimoire/arthur.py
+++ b/grimoire/arthur.py
@@ -27,13 +27,12 @@ from datetime import datetime
from dateutil import parser
import logging
import requests
-
+import traceback
from grimoire.elk.sortinghat import SortingHat
from g... | [arthur] Reoder imports. Comment testing incremental date. | py |
diff --git a/tests/test_find_extra_reqs.py b/tests/test_find_extra_reqs.py
index <HASH>..<HASH> 100644
--- a/tests/test_find_extra_reqs.py
+++ b/tests/test_find_extra_reqs.py
@@ -7,7 +7,7 @@ import optparse
import pytest
import pretend
-from pip_check_reqs import find_extra_reqs, common
+from pip_check_reqs import ... | Some assertions were not being run. Move them so that they are run | py |
diff --git a/pyrogram/__init__.py b/pyrogram/__init__.py
index <HASH>..<HASH> 100644
--- a/pyrogram/__init__.py
+++ b/pyrogram/__init__.py
@@ -16,7 +16,7 @@
# You should have received a copy of the GNU Lesser General Public License
# along with Pyrogram. If not, see <http://www.gnu.org/licenses/>.
-__version__ =... | Update Pyrogram to <I> | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -12,10 +12,6 @@ setup(name='hawkrest',
include_package_data=True,
classifiers=[
'Framework :: Django',
- 'Framework :: Django :: 1.8',
- 'Framework :: Django :: 1.9',
- 'Fram... | Removed PyPI identifiers because the PyPI API said they were invalid. *shrug* | py |
diff --git a/scss/types.py b/scss/types.py
index <HASH>..<HASH> 100644
--- a/scss/types.py
+++ b/scss/types.py
@@ -134,8 +134,6 @@ class NumberValue(Value):
self.units = {}
if tokens is None:
self.value = 0.0
- elif isinstance(tokens, ParserValue):
- self.value = float(t... | Remove ParserValue support from types which no longer use ParserValues. | py |
diff --git a/moto/ec2/responses/instances.py b/moto/ec2/responses/instances.py
index <HASH>..<HASH> 100644
--- a/moto/ec2/responses/instances.py
+++ b/moto/ec2/responses/instances.py
@@ -450,7 +450,7 @@ EC2_DESCRIBE_INSTANCES = """<DescribeInstancesResponse xmlns="http://ec2.amazona
</blockDeviceMa... | Fixed it again i should of seen that as well soz. | py |
diff --git a/libzfs/manager.py b/libzfs/manager.py
index <HASH>..<HASH> 100644
--- a/libzfs/manager.py
+++ b/libzfs/manager.py
@@ -227,7 +227,7 @@ class BindingManager(object):
line = AR_DIM.sub(shift_replace, line, 1)
return line
- def process_headers(self, output):
+ def process_headers(... | -Fix: silence flake8 warnings. Optimizing those functions will come at a later point in time. | py |
diff --git a/GEOparse/GEOTypes.py b/GEOparse/GEOTypes.py
index <HASH>..<HASH> 100755
--- a/GEOparse/GEOTypes.py
+++ b/GEOparse/GEOTypes.py
@@ -258,7 +258,7 @@ class SimpleGEO(BaseGEO):
summary.append(" " * 40 + "..." + " " * 40 + "\n")
summary.append(" " * 40 + "..." + " " * 40 + "\n")
summar... | fix: UnicodeDecodeError in head method | py |
diff --git a/asv/machine.py b/asv/machine.py
index <HASH>..<HASH> 100644
--- a/asv/machine.py
+++ b/asv/machine.py
@@ -7,6 +7,7 @@ from __future__ import (absolute_import, division, print_function,
import six
import os
+import multiprocessing
import platform
import sys
import textwrap
@@ -119,10 +120,10 @@ class... | FIX use six.text_type, rename ncores to num_cpu | py |
diff --git a/coursera/coursera_dl.py b/coursera/coursera_dl.py
index <HASH>..<HASH> 100755
--- a/coursera/coursera_dl.py
+++ b/coursera/coursera_dl.py
@@ -86,8 +86,8 @@ _see_url = " See https://github.com/coursera-dl/coursera/issues/139"
import bs4
import six
-assert V(requests.__version__) >= V('2.2.1'), "Upgrade ... | Complain about modules that are too old to work correctly. | py |
diff --git a/easy_thumbnails/management/commands/thumbnail_cleanup.py b/easy_thumbnails/management/commands/thumbnail_cleanup.py
index <HASH>..<HASH> 100644
--- a/easy_thumbnails/management/commands/thumbnail_cleanup.py
+++ b/easy_thumbnails/management/commands/thumbnail_cleanup.py
@@ -93,11 +93,11 @@ class ThumbnailCo... | Have thumbnail_cleanup work in Python <I> too | py |
diff --git a/hgvs/dataproviders/uta.py b/hgvs/dataproviders/uta.py
index <HASH>..<HASH> 100644
--- a/hgvs/dataproviders/uta.py
+++ b/hgvs/dataproviders/uta.py
@@ -143,7 +143,7 @@ class UTABase(Interface, SeqFetcher):
where ac=?
""",
"tx_similar": """
- select distinct tx_ac... | use autocommit to prevent transaction overhead and locks | py |
diff --git a/mdx_superscript.py b/mdx_superscript.py
index <HASH>..<HASH> 100644
--- a/mdx_superscript.py
+++ b/mdx_superscript.py
@@ -25,9 +25,9 @@ from markdown.inlinepatterns import SimpleTagPattern
SUPERSCRIPT_RE = r'(\^)([^\^]+)\2'
-def makeExtension(configs=None):
+def makeExtension(*args, **kwargs):
""... | Fixed #1 by changing function signature. Thanks @adi- ! | py |
diff --git a/tests/inputs.py b/tests/inputs.py
index <HASH>..<HASH> 100644
--- a/tests/inputs.py
+++ b/tests/inputs.py
@@ -7,6 +7,7 @@ import unittest
import anyconfig.backend.ini
import anyconfig.backend.json
+import anyconfig.compat
import anyconfig.inputs as TT
import anyconfig.utils
@@ -49,8 +50,9 @@ class ... | fix: update to follow change not to import .compat in .utils | py |
diff --git a/src/livestreamer/packages/pbs.py b/src/livestreamer/packages/pbs.py
index <HASH>..<HASH> 100644
--- a/src/livestreamer/packages/pbs.py
+++ b/src/livestreamer/packages/pbs.py
@@ -164,7 +164,7 @@ class RunningCommand(object):
def __unicode__(self):
if self.process:
if self.call_arg... | packages.pbs: Minor fix after previous changes broke __unicode__. | py |
diff --git a/python/ccxt/async_support/base/exchange.py b/python/ccxt/async_support/base/exchange.py
index <HASH>..<HASH> 100644
--- a/python/ccxt/async_support/base/exchange.py
+++ b/python/ccxt/async_support/base/exchange.py
@@ -294,3 +294,6 @@ class Exchange(BaseExchange):
self.accounts = await self... | async_support/base/exchange.py fetch_ticker() declaration | py |
diff --git a/src/satosa/internal_data.py b/src/satosa/internal_data.py
index <HASH>..<HASH> 100644
--- a/src/satosa/internal_data.py
+++ b/src/satosa/internal_data.py
@@ -112,6 +112,7 @@ class UserIdHasher(object):
(lambda salt, value: value)
if hash_type in [
UserIdHashType.e... | Do not hash user_id if hash_type is unspecified | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -108,7 +108,7 @@ setup(
url='https://github.com/tomduck/pandoc-fignos',
download_url='https://github.com/tomduck/pandoc-fignos/tarball/'+VERSION,
- install_requires=['pandoc-xnos>=1.0.0,<2'],
+ install_requir... | Bumped pandoc-xnos requirement to >=<I>,<2 | py |
diff --git a/insights/core/dr.py b/insights/core/dr.py
index <HASH>..<HASH> 100644
--- a/insights/core/dr.py
+++ b/insights/core/dr.py
@@ -377,11 +377,9 @@ def register_component(component, delegate, component_type,
fava.add_shared_parser(component.__name__, component)
if alias:
- msg = "Alias %s... | Allow replacement of specs with same alias. | py |
diff --git a/oauthlib/oauth2/rfc6749/tokens.py b/oauthlib/oauth2/rfc6749/tokens.py
index <HASH>..<HASH> 100644
--- a/oauthlib/oauth2/rfc6749/tokens.py
+++ b/oauthlib/oauth2/rfc6749/tokens.py
@@ -257,6 +257,7 @@ def get_token_from_header(request):
class TokenBase:
+ __slots__ = ()
def __call__(self, reque... | add missing slots to TokenBase | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -18,5 +18,12 @@ setup(
license='Apache 2.0',
author='nhumrich',
author_email='nick.humrich@canopytax.com',
- description='sqlalchemy support for asyncpg'
+ description='sqlalchemy support for asyncpg',
+ ... | Add trove classifiers for pypi discovery and other compat reporting (#<I>) | py |
diff --git a/examples/test.py b/examples/test.py
index <HASH>..<HASH> 100644
--- a/examples/test.py
+++ b/examples/test.py
@@ -208,7 +208,7 @@ def main():
)
grid_flow = urwid.GridFlow(
- [urwid.BoxAdapter(t, 20) for t in tables], 60, 1, 1, "left"
+ [urwid.BoxAdapter(t, 50) for t in tables]... | Make tables in test program taller. | py |
diff --git a/fusionbox/decorators.py b/fusionbox/decorators.py
index <HASH>..<HASH> 100644
--- a/fusionbox/decorators.py
+++ b/fusionbox/decorators.py
@@ -2,14 +2,14 @@ from functools import wraps
from django.utils import simplejson as json
from django.views.decorators.http import require_http_methods
-from django.... | changed error type to <I> Bad Request | py |
diff --git a/pysnmp/carrier/asyncore/dispatch.py b/pysnmp/carrier/asyncore/dispatch.py
index <HASH>..<HASH> 100644
--- a/pysnmp/carrier/asyncore/dispatch.py
+++ b/pysnmp/carrier/asyncore/dispatch.py
@@ -34,12 +34,13 @@ else:
class AsynsockDispatcher(AbstractTransportDispatcher):
"""Implements I/O over asynchronou... | AsynsockDispatcher now uses its own socket map by default for MT safety. Also, getSocketMap() method added. | py |
diff --git a/greenhouse/io.py b/greenhouse/io.py
index <HASH>..<HASH> 100644
--- a/greenhouse/io.py
+++ b/greenhouse/io.py
@@ -39,11 +39,7 @@ def unmonkeypatch():
class Socket(object):
def __init__(self, *args, **kwargs):
# wrap a basic socket or build our own
- self._sock = kwargs.pop('fromsock',... | kind of ridiculous, all those failure cases. bad input tracebacking isn't so bad | py |
diff --git a/trepan/lib/breakpoint.py b/trepan/lib/breakpoint.py
index <HASH>..<HASH> 100644
--- a/trepan/lib/breakpoint.py
+++ b/trepan/lib/breakpoint.py
@@ -121,9 +121,8 @@ class BreakpointManager:
if (filename, lineno) not in self.bplist:
return []
breakpoints = self.bplist[(filename, ... | .copy() -> list(.) to be compatible with Python2 | py |
diff --git a/webarticle2text.py b/webarticle2text.py
index <HASH>..<HASH> 100755
--- a/webarticle2text.py
+++ b/webarticle2text.py
@@ -25,7 +25,7 @@ License along with this library; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
"""
-VERSION = (2, 0... | Added field to retrieve raw HTML. | py |
diff --git a/dfply/base.py b/dfply/base.py
index <HASH>..<HASH> 100644
--- a/dfply/base.py
+++ b/dfply/base.py
@@ -134,7 +134,10 @@ class pipe(object):
def __rrshift__(self, other):
other_copy = other.copy()
- other_copy._grouped_by = getattr(other, '_grouped_by', None)
+
+ with warnings.c... | Suppressing attribute assignment warnings, which are annoying | py |
diff --git a/pyfakefs/pytest_tests/pytest_plugin_test.py b/pyfakefs/pytest_tests/pytest_plugin_test.py
index <HASH>..<HASH> 100644
--- a/pyfakefs/pytest_tests/pytest_plugin_test.py
+++ b/pyfakefs/pytest_tests/pytest_plugin_test.py
@@ -2,8 +2,6 @@
import os
import tempfile
-import pytest
-
from pyfakefs.fake_filesy... | Remove test that causes errors in test shutdown - using fs_module can cause such errors with some combinations of tests - should fix #<I> | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.