diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/openid/test/datadriven.py b/openid/test/datadriven.py
index <HASH>..<HASH> 100644
--- a/openid/test/datadriven.py
+++ b/openid/test/datadriven.py
@@ -31,15 +31,7 @@ class DataDrivenTestCase(unittest.TestCase):
def loadTests(module_name):
loader = unittest.defaultTestLoader
- this_module = __impo... | Replace ad-hoc pain with builtin methods | py |
diff --git a/test/test_messaging.py b/test/test_messaging.py
index <HASH>..<HASH> 100644
--- a/test/test_messaging.py
+++ b/test/test_messaging.py
@@ -5,6 +5,7 @@ from kombu import Exchange, Queue
from mock import patch, Mock
from nameko.dependencies import DependencyFactory
+from nameko.exceptions import Container... | test for requeue on ContainerBeingKilled | py |
diff --git a/indra/tools/reading/readers/isi/__init__.py b/indra/tools/reading/readers/isi/__init__.py
index <HASH>..<HASH> 100644
--- a/indra/tools/reading/readers/isi/__init__.py
+++ b/indra/tools/reading/readers/isi/__init__.py
@@ -3,7 +3,7 @@ import json
from indra.tools.reading.readers.core import Reader
from in... | Use get_isi_version to for in-docker compatibility. | py |
diff --git a/pyexchange/exchange2010/soap_request.py b/pyexchange/exchange2010/soap_request.py
index <HASH>..<HASH> 100644
--- a/pyexchange/exchange2010/soap_request.py
+++ b/pyexchange/exchange2010/soap_request.py
@@ -269,13 +269,13 @@ def new_event(event):
T.DaysOfWeek(event.recurrence_days),
)
e... | Fixed issues in monthly & yearly recurrence, still untested | py |
diff --git a/salt/transport/table/__init__.py b/salt/transport/table/__init__.py
index <HASH>..<HASH> 100644
--- a/salt/transport/table/__init__.py
+++ b/salt/transport/table/__init__.py
@@ -145,7 +145,7 @@ class Public(object):
if keyfile:
if os.path.isfile(keyfile):
# Keyfiles a... | read/write binary w/msgpack and others | py |
diff --git a/modeltranslation/translator.py b/modeltranslation/translator.py
index <HASH>..<HASH> 100644
--- a/modeltranslation/translator.py
+++ b/modeltranslation/translator.py
@@ -304,6 +304,9 @@ def delete_cache_fields(model):
except AttributeError:
pass
+ if hasattr(model._meta, '_expire... | fix proxy model inheritance for django >=<I> | py |
diff --git a/springboard/views/core.py b/springboard/views/core.py
index <HASH>..<HASH> 100644
--- a/springboard/views/core.py
+++ b/springboard/views/core.py
@@ -123,8 +123,7 @@ class CoreViews(SpringboardViews):
response = Response()
language = self.request.matchdict.get('language') or \
... | removed unnecessary check for 'next' in url | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -21,6 +21,7 @@ setup(
packages=find_packages(),
install_requires=['clyent',
'requests>=2.0',
+ 'pillow',
'pyyaml',
'python-dat... | Add pillow as dependency in setup.py | py |
diff --git a/Qt.py b/Qt.py
index <HASH>..<HASH> 100644
--- a/Qt.py
+++ b/Qt.py
@@ -917,6 +917,7 @@ These members from the original submodule are misplaced relative PySide2
"""
_misplaced_members = {
"PySide2": {
+ "QtCore.QStringListModel": "QtCore.QStringListModel",
"QtGui.QStringListModel": "Qt... | Supporting the two versions of PySide2 one where the QtGui used to own the QStringListModel and the other where it was in QtCore | py |
diff --git a/angr/path.py b/angr/path.py
index <HASH>..<HASH> 100644
--- a/angr/path.py
+++ b/angr/path.py
@@ -144,6 +144,16 @@ class PathHistory(object):
def _record_run(self, run):
self._runstr = str(run)
+ def copy(self):
+ c = PathHistory(parent=self._parent)
+ c.addr = self.addr
+ ... | copy the path history when a path is copied, since trim_history makes path histories mutable | py |
diff --git a/keyring/tests/backends/test_Windows.py b/keyring/tests/backends/test_Windows.py
index <HASH>..<HASH> 100644
--- a/keyring/tests/backends/test_Windows.py
+++ b/keyring/tests/backends/test_Windows.py
@@ -3,6 +3,8 @@ from __future__ import print_function
import sys
import unittest
+import pytest
+
import... | Add a test to ensure winvault is always viable on Windows. Ref #<I>. | py |
diff --git a/twilio/rest/base.py b/twilio/rest/base.py
index <HASH>..<HASH> 100644
--- a/twilio/rest/base.py
+++ b/twilio/rest/base.py
@@ -139,11 +139,6 @@ class Version(object):
}
def read(self, pager, instance, instance_kwargs, method, uri, limit, page_limit, **kwargs):
- return Replayable(
- ... | Removing support for Replayable reads | py |
diff --git a/sos/plugins/logs.py b/sos/plugins/logs.py
index <HASH>..<HASH> 100644
--- a/sos/plugins/logs.py
+++ b/sos/plugins/logs.py
@@ -61,6 +61,9 @@ class Logs(Plugin):
if os.path.isfile(i):
self.add_copy_spec(i, sizelimit=self.limit)
+ if self.get_option('all_logs'):
+ ... | [logs] collect journalctl verbosed logs with --all-logs only Resolves: #<I> | py |
diff --git a/armstrong/hatband/tests/http.py b/armstrong/hatband/tests/http.py
index <HASH>..<HASH> 100644
--- a/armstrong/hatband/tests/http.py
+++ b/armstrong/hatband/tests/http.py
@@ -14,5 +14,5 @@ class JsonResponseTestCase(TestCase):
}
response = JsonResponse(data)
- self.assertIsA(respo... | tests - use the native assertIsInstance() and check for basestring ArmDev <I> dropped assertIsA() | py |
diff --git a/salt/modules/openbsdservice.py b/salt/modules/openbsdservice.py
index <HASH>..<HASH> 100644
--- a/salt/modules/openbsdservice.py
+++ b/salt/modules/openbsdservice.py
@@ -239,7 +239,7 @@ def get_enabled():
salt '*' service.get_enabled
'''
services = []
- for daemon, is_enabled in list(... | List call not needed. Changing it back to what it was | py |
diff --git a/cherrypy/__init__.py b/cherrypy/__init__.py
index <HASH>..<HASH> 100644
--- a/cherrypy/__init__.py
+++ b/cherrypy/__init__.py
@@ -65,10 +65,10 @@ def expose(func=None, alias=None):
func.exposed = True
if alias is not None:
if isinstance(alias, basestring):
- pa... | Fix for #<I> (cherrypy.expose alias problems with dots). | py |
diff --git a/raiden/transfer/node.py b/raiden/transfer/node.py
index <HASH>..<HASH> 100644
--- a/raiden/transfer/node.py
+++ b/raiden/transfer/node.py
@@ -1073,11 +1073,11 @@ def is_transaction_effect_satisfied(
anymore and therefore are not dispatched.
On the number of state changes: Accepting a transactio... | Some wording fixes in is_transaction_effect_satisfied [skip ci] | py |
diff --git a/sphinxcontrib/paverutils.py b/sphinxcontrib/paverutils.py
index <HASH>..<HASH> 100644
--- a/sphinxcontrib/paverutils.py
+++ b/sphinxcontrib/paverutils.py
@@ -106,7 +106,9 @@ def pdf(options):
the name of the command to use to make a PDF
default: pdflatex
"""
- run_sphinx(options, 'pdf... | handle errors in the sphinx portion of the build Skip building the PDF if sphinx reports some sort of error. | py |
diff --git a/devassistant/command_helpers.py b/devassistant/command_helpers.py
index <HASH>..<HASH> 100644
--- a/devassistant/command_helpers.py
+++ b/devassistant/command_helpers.py
@@ -107,11 +107,16 @@ class ClHelper(object):
@classmethod
def format_for_another_user(cls, cmd_str, as_user):
# TODO:... | Run commands as another user in heredocs (for possibility of more commands run with '&&'/'||', etc | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -16,7 +16,7 @@ _PACKAGES = lambda: [os.path.join(r, s) for r, d, _ in os.walk(NAME_FILE) for s
_VERSION_RE = re.compile(r"^__(version|author|license)__ = '([\w\.@]+)'$", re.MULTILINE)
CLASSIFIERS = (
- 'Development Sta... | Forgot to change dev status. | py |
diff --git a/git/diff.py b/git/diff.py
index <HASH>..<HASH> 100644
--- a/git/diff.py
+++ b/git/diff.py
@@ -509,9 +509,9 @@ class Diff(object):
def _handle_diff_line(lines_bytes: bytes, repo: 'Repo', index: DiffIndex) -> None:
lines = lines_bytes.decode(defenc)
- for line in lines.split(':')[1:]:
... | Use NUL character to extract meta and path from git diff Use NUL character instead of semicolon to extract meta and path. Avoid errors in during git diff when dealing with filenames containing semicolons | py |
diff --git a/ella/oldcomments/register.py b/ella/oldcomments/register.py
index <HASH>..<HASH> 100644
--- a/ella/oldcomments/register.py
+++ b/ella/oldcomments/register.py
@@ -1,6 +1,6 @@
# register admin options
-from ella.oldcomments import admin
+#from ella.oldcomments import admin
# register custom urls
-from el... | Don't register custom urls for oldcomments. | py |
diff --git a/docs/conf.py b/docs/conf.py
index <HASH>..<HASH> 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -18,10 +18,12 @@
import datetime
import os
+import sys
import cid
+sys.path.insert(0, '.')
os.environ['DJANGO_SETTINGS_MODULE'] = 'sandbox.settings' | docs: Blindy try to fix the docs. It works locally but Travis doc build fails. | py |
diff --git a/lib/bibformat_xslt_engine.py b/lib/bibformat_xslt_engine.py
index <HASH>..<HASH> 100644
--- a/lib/bibformat_xslt_engine.py
+++ b/lib/bibformat_xslt_engine.py
@@ -76,7 +76,7 @@ if processor_type == -1:
# No XSLT processor found
sys.stderr.write('No XSLT processor could be found.\n' \
... | BibFormat: do not exit if no XSLT processor found * Do not sys.exit when there is no XSLT processor available. (addresses #<I>) * Cherry-picked from <I>aa<I>a<I>c<I>bf<I>f<I>dfa<I>f<I>c<I>ba. | py |
diff --git a/plenum/config.py b/plenum/config.py
index <HASH>..<HASH> 100644
--- a/plenum/config.py
+++ b/plenum/config.py
@@ -386,4 +386,4 @@ OUTDATED_INSTANCE_CHANGES_CHECK_INTERVAL = 7200 # seconds
ACCEPTABLE_FRESHNESS_INTERVALS_COUNT = 2
# Limit for numbers of 3pc and checkpoint messages stashed in replica
-RE... | INDY-<I>: change REPLICA_STASH_LIMIT by default | py |
diff --git a/amo2kinto/exporter.py b/amo2kinto/exporter.py
index <HASH>..<HASH> 100644
--- a/amo2kinto/exporter.py
+++ b/amo2kinto/exporter.py
@@ -85,8 +85,8 @@ def write_addons_items(xml_tree, records, app_id, api_ver=3):
emItem = groupby[item['guid']]
# Remove the first caracter whic... | Fix according to addons-server. | py |
diff --git a/DemoPrograms/Demo_Graph_pymunk_2D_Graphics.py b/DemoPrograms/Demo_Graph_pymunk_2D_Graphics.py
index <HASH>..<HASH> 100644
--- a/DemoPrograms/Demo_Graph_pymunk_2D_Graphics.py
+++ b/DemoPrograms/Demo_Graph_pymunk_2D_Graphics.py
@@ -53,7 +53,7 @@ graph_elem = sg.Graph((600, 400), (0, 400), (600, 0), enable_ev... | Removed up and down arrows | py |
diff --git a/salt/utils/pyobjects.py b/salt/utils/pyobjects.py
index <HASH>..<HASH> 100644
--- a/salt/utils/pyobjects.py
+++ b/salt/utils/pyobjects.py
@@ -71,8 +71,8 @@ class StateRegistry(object):
id_,
state.full_func
))
- else:
- att... | Oops. <I>d9ef was wrong. The indent was right the first time. Undoing. | py |
diff --git a/molecule/command/test.py b/molecule/command/test.py
index <HASH>..<HASH> 100644
--- a/molecule/command/test.py
+++ b/molecule/command/test.py
@@ -135,8 +135,8 @@ def test(ctx, scenario_name, driver_name, __all, destroy): # pragma: no cover
base.execute_subcommand(scenario.config, action)
... | Add information about the action which failed (#<I>) An error occurred during the test sequence action: 'lint'. Cleaning up. Fixes: #<I> | py |
diff --git a/cauldron/test/invoke/test_invoke.py b/cauldron/test/invoke/test_invoke.py
index <HASH>..<HASH> 100644
--- a/cauldron/test/invoke/test_invoke.py
+++ b/cauldron/test/invoke/test_invoke.py
@@ -53,5 +53,4 @@ class TestInvoke(unittest.TestCase):
with self.assertRaises(SystemExit):
invoke.r... | <I> Support Change test to patch import locally to module to confirm exit behavior. | py |
diff --git a/cnxarchive/views.py b/cnxarchive/views.py
index <HASH>..<HASH> 100644
--- a/cnxarchive/views.py
+++ b/cnxarchive/views.py
@@ -489,10 +489,10 @@ def get_content_html(request):
result = _get_content_json()
media_type = result['mediaType']
- if media_type == MODULE_MIMETYPE:
- content = ... | :bug: Fix html view for composite-page | py |
diff --git a/sos/plugins/foreman.py b/sos/plugins/foreman.py
index <HASH>..<HASH> 100644
--- a/sos/plugins/foreman.py
+++ b/sos/plugins/foreman.py
@@ -139,6 +139,13 @@ class Foreman(Plugin):
'ping -c1 -W1 localhost'
])
+ # Dynflow Sidekiq
+ self.add_cmd_output('systemctl list-units... | [foreman] Collect debugging info for Dynflow Sidekiq Collect sidekiq logs and services lists and statuses. Resolves: #<I> | py |
diff --git a/tests/integration/WatchmanTapTests.py b/tests/integration/WatchmanTapTests.py
index <HASH>..<HASH> 100644
--- a/tests/integration/WatchmanTapTests.py
+++ b/tests/integration/WatchmanTapTests.py
@@ -62,6 +62,8 @@ class TapExeTestCase(unittest.TestCase):
lines = stdout.split('\n')
last_test... | tests: make sure plan is initialized | py |
diff --git a/tests/test_concordance.py b/tests/test_concordance.py
index <HASH>..<HASH> 100644
--- a/tests/test_concordance.py
+++ b/tests/test_concordance.py
@@ -28,7 +28,7 @@ curdir = os.path.dirname(os.path.abspath(__file__))
# the test data with your own data, you will need to replace this file,
# or change the f... | update concordance test to point to three-genome JSpecies output | py |
diff --git a/importmagic/index.py b/importmagic/index.py
index <HASH>..<HASH> 100644
--- a/importmagic/index.py
+++ b/importmagic/index.py
@@ -167,7 +167,7 @@ class SymbolIndex(object):
return
try:
module = __import__(name, fromlist=['.'])
- except ImportError:
+ except ... | Ignore all exceptions when importing C modules There are lots of exceptions that can be raised when importing modules, e.g. RuntimeError for Qt-related modules with wrong installed library versions. | py |
diff --git a/pyontutils/librdf.py b/pyontutils/librdf.py
index <HASH>..<HASH> 100644
--- a/pyontutils/librdf.py
+++ b/pyontutils/librdf.py
@@ -14,7 +14,12 @@ cp python/Redland.py ${site_packages}
cp python/_Redland.pypy3*.so ${site_packages}
"""
-import RDF
+import sys
+try:
+ import RDF
+except ImportError as e... | librdf added exit if RDF module not found | py |
diff --git a/test/test_step_detect.py b/test/test_step_detect.py
index <HASH>..<HASH> 100644
--- a/test/test_step_detect.py
+++ b/test/test_step_detect.py
@@ -91,17 +91,18 @@ def test_detect_regressions():
y = 0.7 * np.random.rand(t.size)
y -= 0.3 * (t >= 1000)
- y += 1.0 * (t >= 3234 + (seed... | Add an intermediate dip to detect_regressions test | py |
diff --git a/tools/py_stress/stress.py b/tools/py_stress/stress.py
index <HASH>..<HASH> 100644
--- a/tools/py_stress/stress.py
+++ b/tools/py_stress/stress.py
@@ -185,7 +185,10 @@ def make_keyspaces():
colms = [ColumnDef(name='C1', validation_class='UTF8Type', index_type=IndexType.KEYS_BITMAP)]
cfams = [C... | update stress.py for KsDef replication_factor change patch by Robert Jackson; reviewed by jbellis for CASSANDRA-<I> git-svn-id: <URL> | py |
diff --git a/world.py b/world.py
index <HASH>..<HASH> 100644
--- a/world.py
+++ b/world.py
@@ -285,14 +285,14 @@ class WorldLayer(cocos.layer.Layer, mc.RectMapCollider):
self.player.update_center(newPos)
self.player.update_terminal()
- # TODO: Display messages for humans at some point
- ... | update_visited could end game | py |
diff --git a/pylogit/choice_tools.py b/pylogit/choice_tools.py
index <HASH>..<HASH> 100644
--- a/pylogit/choice_tools.py
+++ b/pylogit/choice_tools.py
@@ -10,6 +10,7 @@ Created on Mon Feb 22 08:32:48 2016
"""
import warnings
from collections import OrderedDict
+from collections import Iterable
from numbers import N... | use collections.Iterable to check if an argument is an iterable | py |
diff --git a/osrparse/utils.py b/osrparse/utils.py
index <HASH>..<HASH> 100644
--- a/osrparse/utils.py
+++ b/osrparse/utils.py
@@ -64,7 +64,7 @@ class KeyMania(IntFlag):
K7 = 1 << 6
K8 = 1 << 7
-class ReplayEvent:
+class ReplayEvent(abc.ABC):
def __init__(self, time_delta: int):
self.time_delt... | fix _members not being defined for ReplayEventOsu | py |
diff --git a/ripe/atlas/sagan/__init__.py b/ripe/atlas/sagan/__init__.py
index <HASH>..<HASH> 100644
--- a/ripe/atlas/sagan/__init__.py
+++ b/ripe/atlas/sagan/__init__.py
@@ -1,6 +1,6 @@
from __future__ import absolute_import
-from .base import ResultParseError
+from .base import Result, ResultParseError
from .dns ... | Added Result to __init__ | py |
diff --git a/pubsub/setup.py b/pubsub/setup.py
index <HASH>..<HASH> 100644
--- a/pubsub/setup.py
+++ b/pubsub/setup.py
@@ -84,7 +84,7 @@ setuptools.setup(
namespace_packages=namespaces,
install_requires=dependencies,
extras_require=extras,
- python_requires=">=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*",
+ ... | chore(pubsub): declaratively drop Python <I> support (#<I>) | py |
diff --git a/pandas/io/tests/test_pytables.py b/pandas/io/tests/test_pytables.py
index <HASH>..<HASH> 100644
--- a/pandas/io/tests/test_pytables.py
+++ b/pandas/io/tests/test_pytables.py
@@ -468,9 +468,10 @@ class TesttHDFStore(unittest.TestCase):
store.close()
def test_store_datetime_fractional_secs(se... | changed datetime fractional second test's assertion to make entire datetime comparison | py |
diff --git a/molo/yourwords/wagtail_hooks.py b/molo/yourwords/wagtail_hooks.py
index <HASH>..<HASH> 100644
--- a/molo/yourwords/wagtail_hooks.py
+++ b/molo/yourwords/wagtail_hooks.py
@@ -74,7 +74,7 @@ class YourWordsEntriesModelAdmin(ModelAdmin):
'is_winner', '_convert']
list_filter = [('sub... | Filter by competition rather than competition slug | py |
diff --git a/ontobio/model/association.py b/ontobio/model/association.py
index <HASH>..<HASH> 100644
--- a/ontobio/model/association.py
+++ b/ontobio/model/association.py
@@ -42,15 +42,14 @@ class ExtensionExpression(NamedTuple):
"""
conjunctions: List[ExtensionConjunctions]
-@dataclass(repr=False, unsafe_h... | experimenting with typing.NamedTuple. Its virtually identical to dataclasses | py |
diff --git a/scoop/broker/broker.py b/scoop/broker/broker.py
index <HASH>..<HASH> 100644
--- a/scoop/broker/broker.py
+++ b/scoop/broker/broker.py
@@ -251,7 +251,7 @@ class Broker(object):
askResult,
msg[3],
pickle.dumps(
- self.group... | * Fixed broker crash in reduction case (was handled serially) | py |
diff --git a/widgetsnbextension/setup.py b/widgetsnbextension/setup.py
index <HASH>..<HASH> 100644
--- a/widgetsnbextension/setup.py
+++ b/widgetsnbextension/setup.py
@@ -205,7 +205,7 @@ setup_args = dict(
'widgetsnbextension/static/extension.js',
'widgetsnbextension/static/extension.j... | data_files should not have a trailing slash This causes an error installing on windows. | py |
diff --git a/pymatgen/analysis/phase_diagram.py b/pymatgen/analysis/phase_diagram.py
index <HASH>..<HASH> 100644
--- a/pymatgen/analysis/phase_diagram.py
+++ b/pymatgen/analysis/phase_diagram.py
@@ -329,7 +329,9 @@ class PhaseDiagram(MSONable):
energy, energy_per_atom and composition.
elem... | update docstring to reflect sorting behavior | py |
diff --git a/hnmp.py b/hnmp.py
index <HASH>..<HASH> 100644
--- a/hnmp.py
+++ b/hnmp.py
@@ -50,7 +50,10 @@ def _convert_value_to_native(value):
return value
-class CountingList(list):
+class CountingTuple(tuple):
+ """
+ A tuple that automatically counts its values.
+ """
@cached_property
def... | make CountingList a CountingTuple | py |
diff --git a/great_expectations/dataset/sparkdf_dataset.py b/great_expectations/dataset/sparkdf_dataset.py
index <HASH>..<HASH> 100644
--- a/great_expectations/dataset/sparkdf_dataset.py
+++ b/great_expectations/dataset/sparkdf_dataset.py
@@ -170,9 +170,9 @@ class SparkDFDataset(MetaSparkDFDataset):
raise ... | Update sparkDF init to set self.spark_df before calling super | py |
diff --git a/tensorlayer/files/utils.py b/tensorlayer/files/utils.py
index <HASH>..<HASH> 100644
--- a/tensorlayer/files/utils.py
+++ b/tensorlayer/files/utils.py
@@ -1842,14 +1842,9 @@ def load_and_assign_npz(name=None, network=None):
-------------
name : str
The name of the `.npz` file.
- networ... | tl.files save/load weights methods doc finished | py |
diff --git a/utlz/__init__.py b/utlz/__init__.py
index <HASH>..<HASH> 100644
--- a/utlz/__init__.py
+++ b/utlz/__init__.py
@@ -481,7 +481,8 @@ def lazy_val(func, with_del_hook=False):
def add_to_del_hook_cache(that):
if with_del_hook:
try:
- that._del_hook_cache[id(that)] = hoo... | self could be a non-hashable list | py |
diff --git a/aospy/proj.py b/aospy/proj.py
index <HASH>..<HASH> 100644
--- a/aospy/proj.py
+++ b/aospy/proj.py
@@ -16,7 +16,6 @@ class Proj(object):
self.direc_out = direc_out
self.nc_dir_struc = nc_dir_struc
- self.vars = dict_name_keys(vars)
if models:
self.models = di... | Delete unnecessary vars attr of Proj | py |
diff --git a/cli/cumulusci.py b/cli/cumulusci.py
index <HASH>..<HASH> 100644
--- a/cli/cumulusci.py
+++ b/cli/cumulusci.py
@@ -478,6 +478,9 @@ def run_ant_target(target, env, config, check_credentials=None, no_exit=None):
except SalesforceCredentialsException as e:
click.echo('BUILD FAILED: %s' % ... | Run ant with <I>m heap space | 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
setup(
name = "JustIRC",
py_modules = ["JustIRC"],
- version = "0.2",
+ version = "0.2.1",
description = "An event-driven IRC library",
author = "Gokberk... | Updated pypi package | py |
diff --git a/src/transformers/modeling_auto.py b/src/transformers/modeling_auto.py
index <HASH>..<HASH> 100644
--- a/src/transformers/modeling_auto.py
+++ b/src/transformers/modeling_auto.py
@@ -906,7 +906,7 @@ class AutoModelForQuestionAnswering:
Examples::
config = BertConfig.from_pretrained('... | [docs] fix typo (#<I>) | py |
diff --git a/OpenPNM/Geometry/__GenericGeometry__.py b/OpenPNM/Geometry/__GenericGeometry__.py
index <HASH>..<HASH> 100644
--- a/OpenPNM/Geometry/__GenericGeometry__.py
+++ b/OpenPNM/Geometry/__GenericGeometry__.py
@@ -43,7 +43,8 @@ class GenericGeometry(OpenPNM.Utilities.Base):
--------
>>> pn = OpenPNM.Net... | GenericGeometry no longer accepts locations during initialization Former-commit-id: <I>b5b<I>e4abae<I>dbad<I>ab<I>e<I>c1e Former-commit-id: <I>b<I>ced<I>cc<I>c<I>b<I>b<I> | py |
diff --git a/pysc2/tests/render_test.py b/pysc2/tests/render_test.py
index <HASH>..<HASH> 100644
--- a/pysc2/tests/render_test.py
+++ b/pysc2/tests/render_test.py
@@ -70,8 +70,10 @@ class TestRender(utils.TestCase):
game_info = controller.game_info()
+ self.assertEqual(interface.raw, game_info.options.r... | Be more specific which bits of the interface should match. PiperOrigin-RevId: <I> | py |
diff --git a/ELiDE/ELiDE/dialog.py b/ELiDE/ELiDE/dialog.py
index <HASH>..<HASH> 100644
--- a/ELiDE/ELiDE/dialog.py
+++ b/ELiDE/ELiDE/dialog.py
@@ -71,7 +71,14 @@ class DialogMenu(Box):
class Dialog(BoxLayout):
- """MessageBox with a DialogMenu beneath it"""
+ """MessageBox with a DialogMenu beneath it.
+
+ ... | Make Dialog's docstring more informative | py |
diff --git a/xero/utils.py b/xero/utils.py
index <HASH>..<HASH> 100644
--- a/xero/utils.py
+++ b/xero/utils.py
@@ -11,6 +11,7 @@ DATE = re.compile(
)
OBJECT_NAMES = {
+ "Addresses": "Address",
"Attachments": "Attachment",
"Accounts": "Account",
"BankTransactions": "BankTransaction", | Add missing plural/singular item Need to add Addresses/Address item to OBJECT_NAMES dictionary to use for adding contacts. Otherwise, the request will faill with <I> ValidationException. | py |
diff --git a/angr/path_group.py b/angr/path_group.py
index <HASH>..<HASH> 100644
--- a/angr/path_group.py
+++ b/angr/path_group.py
@@ -286,7 +286,7 @@ class PathGroup(ana.Storable):
if (check_func is not None and check_func(a)) or (check_func is None and a.errored):
# Thi... | explore now prunes 'found' paths | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -135,6 +135,10 @@ setup(
description="Pythonic cffi port of libtcod.",
long_description=get_long_description(),
url="https://github.com/libtcod/python-tcod",
+ project_urls={
+ "Documentation": "https:... | Add project_urls to setup.py. | py |
diff --git a/adventure/interpret.py b/adventure/interpret.py
index <HASH>..<HASH> 100644
--- a/adventure/interpret.py
+++ b/adventure/interpret.py
@@ -6,8 +6,8 @@ from .data import parse
def read_data_from_nearby_file(data):
datapath = os.path.join(os.path.dirname(__file__), 'advent.dat')
- datafile = codecs... | Fixed warning about not-closed file on Python exit. | py |
diff --git a/serfclient/connection.py b/serfclient/connection.py
index <HASH>..<HASH> 100644
--- a/serfclient/connection.py
+++ b/serfclient/connection.py
@@ -21,13 +21,12 @@ class SerfConnection(object):
umsgpack.compatibility = True
def __repr__(self):
- return "%(class)s<counter=%(c)s,host=%(h... | Pep8: line too long fix serfclient/connection.py:<I>:<I>: E<I> line too long (<I> > <I> characters) | py |
diff --git a/pyres/failure/base.py b/pyres/failure/base.py
index <HASH>..<HASH> 100644
--- a/pyres/failure/base.py
+++ b/pyres/failure/base.py
@@ -4,33 +4,36 @@ import traceback
class BaseBackend(object):
"""Provides a base class that custom backends can subclass. Also provides basic
traceback and message pa... | Save our backtraces in a compatible manner with resque. | py |
diff --git a/python/phonenumbers/__init__.py b/python/phonenumbers/__init__.py
index <HASH>..<HASH> 100644
--- a/python/phonenumbers/__init__.py
+++ b/python/phonenumbers/__init__.py
@@ -147,7 +147,7 @@ from .phonenumbermatcher import PhoneNumberMatch, PhoneNumberMatcher, Leniency
# Version number is taken from the ... | Prep for <I> release | py |
diff --git a/pymatgen/electronic_structure/bandstructure.py b/pymatgen/electronic_structure/bandstructure.py
index <HASH>..<HASH> 100644
--- a/pymatgen/electronic_structure/bandstructure.py
+++ b/pymatgen/electronic_structure/bandstructure.py
@@ -804,6 +804,8 @@ class BandStructureSymmLine(BandStructure, MSONable):
... | better automatic detection of old dict format in from_dict() | py |
diff --git a/pymatgen/io/vasp/outputs.py b/pymatgen/io/vasp/outputs.py
index <HASH>..<HASH> 100644
--- a/pymatgen/io/vasp/outputs.py
+++ b/pymatgen/io/vasp/outputs.py
@@ -3261,7 +3261,7 @@ class VolumetricData(MSONable):
with h5py.File(filename, "r") as f:
data = {k: np.array(v) for k, v in f["vda... | bug fix in constructor for Volumetric data | py |
diff --git a/isochrones/starmodel.py b/isochrones/starmodel.py
index <HASH>..<HASH> 100644
--- a/isochrones/starmodel.py
+++ b/isochrones/starmodel.py
@@ -516,6 +516,8 @@ class StarModel(object):
# Compute masses from eeps
eeps = [eep for eep in p[i:i+N[s]]]
masses = [self.ic.init... | make sure lnprior does not return nan if out of eep range | py |
diff --git a/comment/mixins.py b/comment/mixins.py
index <HASH>..<HASH> 100644
--- a/comment/mixins.py
+++ b/comment/mixins.py
@@ -10,6 +10,6 @@ class BaseCommentMixin(LoginRequiredMixin):
class AJAXRequiredMixin:
def dispatch(self, request, *args, **kwargs):
- if not request.is_ajax():
+ if not r... | Fix AJAX Mixing as per django-<I> release | py |
diff --git a/zk_shell/copy.py b/zk_shell/copy.py
index <HASH>..<HASH> 100644
--- a/zk_shell/copy.py
+++ b/zk_shell/copy.py
@@ -167,10 +167,14 @@ class ZKProxy(Proxy):
return self.zk_walk(self.path, "")
def zk_walk(self, root_path, path):
+ """ skip ephemeral znodes since there's no point in copyi... | Skip ephemeral znodes since there's no point in copying those | py |
diff --git a/pyfolio/timeseries.py b/pyfolio/timeseries.py
index <HASH>..<HASH> 100644
--- a/pyfolio/timeseries.py
+++ b/pyfolio/timeseries.py
@@ -795,9 +795,8 @@ def perf_stats_bootstrap(returns, factor_returns=None, return_stats=True):
bootstrap_values = pd.DataFrame(bootstrap_values)
if return_stats:
- ... | BUG Apply over index, then transpose. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -50,12 +50,14 @@ setup(
'Topic :: Text Editors',
'Framework :: Django :: 2.1',
'Framework :: Django :: 2.2',
+ 'Framework :: Django :: 3.0',
'Programming Language :: Python :: 3',
... | Add Django <I> and Python <I> as supported versions. (#<I>) | py |
diff --git a/compara/synteny.py b/compara/synteny.py
index <HASH>..<HASH> 100755
--- a/compara/synteny.py
+++ b/compara/synteny.py
@@ -279,11 +279,14 @@ def read_blast(blast_file, qorder, sorder, is_self=False, ostrip=True):
qi, q = qorder[query]
si, s = sorder[subject]
- if is_self and qi > ... | [compara] filter tandem repeats in synteny.scan() | py |
diff --git a/drivers/python/setup.py b/drivers/python/setup.py
index <HASH>..<HASH> 100644
--- a/drivers/python/setup.py
+++ b/drivers/python/setup.py
@@ -5,7 +5,7 @@ from setuptools import setup
setup(
name="rethinkdb",
zip_safe=True,
- version="1.15.0-0",
+ version="1.15.0-1",
description="This ... | Bump Python driver to <I>-1 | py |
diff --git a/mordred/task_panels.py b/mordred/task_panels.py
index <HASH>..<HASH> 100644
--- a/mordred/task_panels.py
+++ b/mordred/task_panels.py
@@ -261,12 +261,11 @@ class TaskPanelsMenu(Task):
omenu = OrderedDict()
if 'kibana' in self.conf and self.conf['kibana'] == '5':
# Kibana5 men... | [menus] Convert menu for kibana5 to use one level menu entries for Overview, Data Status and About. The final format for the menu is: Overview, <Data Sources panels>, Data Status, About | py |
diff --git a/glim/app.py b/glim/app.py
index <HASH>..<HASH> 100644
--- a/glim/app.py
+++ b/glim/app.py
@@ -1,6 +1,6 @@
# application initiation script
import os, sys, traceback
-from glim.core import Config as C, Database as D, Orm as O, App
+from glim.core import Facade, Config as C, Database as D, Orm as O, App
fr... | initial extension system is finished, working correctly | py |
diff --git a/lib/autokey/qtui/dialogs/windowfiltersettings.py b/lib/autokey/qtui/dialogs/windowfiltersettings.py
index <HASH>..<HASH> 100644
--- a/lib/autokey/qtui/dialogs/windowfiltersettings.py
+++ b/lib/autokey/qtui/dialogs/windowfiltersettings.py
@@ -23,8 +23,6 @@ from autokey import iomediator
from autokey import... | Removed already implemented TODO entry. | py |
diff --git a/usb/backend/libusb1.py b/usb/backend/libusb1.py
index <HASH>..<HASH> 100644
--- a/usb/backend/libusb1.py
+++ b/usb/backend/libusb1.py
@@ -957,10 +957,9 @@ class _LibUSB(usb.backend.IBackend):
def get_backend(find_library=None):
global _lib, _lib_object
try:
- if _lib is None:
+ if ... | libusb1: discard partial prototypes if previous load failed If loading libusb1 failed, perhaps due to a missing symbol, a second call to libusb1.get_backend would reuse partially constructed prototypes and return an unsound _LibUSB instance.[1] To fix this, remove the previous optimization and load/setup the library ... | py |
diff --git a/src/boost/python/databaseds/db_access/beacon.py b/src/boost/python/databaseds/db_access/beacon.py
index <HASH>..<HASH> 100644
--- a/src/boost/python/databaseds/db_access/beacon.py
+++ b/src/boost/python/databaseds/db_access/beacon.py
@@ -955,7 +955,7 @@ class beacon(object):
cache = settings.get_c... | beacon: fixed bug in method get_csdb_server_list | py |
diff --git a/pysnmp/proto/secmod/rfc2576.py b/pysnmp/proto/secmod/rfc2576.py
index <HASH>..<HASH> 100644
--- a/pysnmp/proto/secmod/rfc2576.py
+++ b/pysnmp/proto/secmod/rfc2576.py
@@ -1,7 +1,7 @@
# SNMP v1 & v2c security models implementation
from pyasn1.codec.ber import encoder
from pysnmp.proto.secmod import base
-... | support snmpLocalDomain tagging | py |
diff --git a/pyDLib/Core/data_model.py b/pyDLib/Core/data_model.py
index <HASH>..<HASH> 100644
--- a/pyDLib/Core/data_model.py
+++ b/pyDLib/Core/data_model.py
@@ -280,8 +280,9 @@ class abstractBase:
"""Return a dictionnary of current tables"""
return {table_name: getattr(self, table_name).dumps() for ... | _get_table -> Class method | py |
diff --git a/competition/tests.py b/competition/tests.py
index <HASH>..<HASH> 100755
--- a/competition/tests.py
+++ b/competition/tests.py
@@ -50,4 +50,7 @@ class ModelTestCase(unittest.TestCase):
competition_obj.end_date = datetime.now() - timedelta(days=1)
competition_obj.save()
self.failIf... | added test for CompetitionEntry method correct_answer | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -16,6 +16,10 @@ setup(
author="Sentry Team and Contributors",
author_email="hello@sentry.io",
url="https://github.com/getsentry/sentry-python",
+ project_urls={
+ "Documentation": "https://docs.sentry.... | Add documentation and changelog links on PyPI (#<I>) These appear on the sidebar and provide neat, somewhat standard shortcuts to useful places. cf. [scout-apm](<URL>) , as defined in <URL> | py |
diff --git a/salt/grains/core.py b/salt/grains/core.py
index <HASH>..<HASH> 100644
--- a/salt/grains/core.py
+++ b/salt/grains/core.py
@@ -9,9 +9,6 @@ module can be overwritten just by returning dict keys with the same value
as those returned here
'''
-# TODO: This needs some refactoring, I made it "as fast as I co... | This has been refactored since I wrote the TODO over a year ago Also make the command missing execution get skipped on windows, this still needs to be skipped on ARM per #<I> | py |
diff --git a/satpy/writers/mitiff.py b/satpy/writers/mitiff.py
index <HASH>..<HASH> 100644
--- a/satpy/writers/mitiff.py
+++ b/satpy/writers/mitiff.py
@@ -162,6 +162,10 @@ class MITIFFWriter(ImageWriter):
def _make_channel_list(self, datasets, **kwargs):
channels = []
try:
+ xrange
+ ... | Adapt to python3 | py |
diff --git a/sos/plugins/firewalld.py b/sos/plugins/firewalld.py
index <HASH>..<HASH> 100644
--- a/sos/plugins/firewalld.py
+++ b/sos/plugins/firewalld.py
@@ -32,6 +32,9 @@ class FirewallD(Plugin, RedHatPlugin):
"/var/log/firewalld",
])
+ # collect nftables ruleset
+ self.add_cmd_o... | [firewalld] collect nftables ruleset Collect "nft list ruleset". Resolves: #<I> | py |
diff --git a/tools/azure-sdk-tools/packaging_tools/code_report.py b/tools/azure-sdk-tools/packaging_tools/code_report.py
index <HASH>..<HASH> 100644
--- a/tools/azure-sdk-tools/packaging_tools/code_report.py
+++ b/tools/azure-sdk-tools/packaging_tools/code_report.py
@@ -15,7 +15,7 @@ from typing import Dict, Any, Optio... | Update code_report to support python <I> (#<I>) | py |
diff --git a/luminoso_api/json_stream.py b/luminoso_api/json_stream.py
index <HASH>..<HASH> 100644
--- a/luminoso_api/json_stream.py
+++ b/luminoso_api/json_stream.py
@@ -155,6 +155,12 @@ def detect_file_encoding(filename):
"but it's likely to be wrong." % encoding)
encoding = 'windows-1252'
... | made CSV encoding detection more robust | py |
diff --git a/tests/datawriter_test.py b/tests/datawriter_test.py
index <HASH>..<HASH> 100644
--- a/tests/datawriter_test.py
+++ b/tests/datawriter_test.py
@@ -187,7 +187,7 @@ class DicomWriterTest(unittest.TestCase):
#
dw = dwriter.DataWriter()
- dw.save_image_stack(data3d, testdatadir + '/so... | test fix - write stack does not work for dcm files | py |
diff --git a/src/sos/step_executor.py b/src/sos/step_executor.py
index <HASH>..<HASH> 100755
--- a/src/sos/step_executor.py
+++ b/src/sos/step_executor.py
@@ -1800,11 +1800,6 @@ class Base_Step_Executor:
#
# endfor loop for each input group
#
- # if error ha... | Make sure results are received before raising exec_error | py |
diff --git a/tests/test_exceptions_formatting.py b/tests/test_exceptions_formatting.py
index <HASH>..<HASH> 100644
--- a/tests/test_exceptions_formatting.py
+++ b/tests/test_exceptions_formatting.py
@@ -30,7 +30,7 @@ def normalize(exception):
relpath = "".join(groups)
else:
... | Fix unit tests failing on Windows for Python <I>+ | py |
diff --git a/dvc/fs/repo.py b/dvc/fs/repo.py
index <HASH>..<HASH> 100644
--- a/dvc/fs/repo.py
+++ b/dvc/fs/repo.py
@@ -1,3 +1,4 @@
+import errno
import logging
import os
import threading
@@ -475,7 +476,9 @@ class RepoFileSystem(FileSystem): # pylint:disable=abstract-method
info_result = fs.info(fs_path... | fs: repo: raise proper FileNotFoundError in metadata Related: #<I> | py |
diff --git a/peerplays/cli/wallet.py b/peerplays/cli/wallet.py
index <HASH>..<HASH> 100644
--- a/peerplays/cli/wallet.py
+++ b/peerplays/cli/wallet.py
@@ -16,7 +16,7 @@ from .main import main
)
@offlineChain
def createwallet(ctx, password):
- """ Change the wallet passphrase
+ """ Create a wallet
"""
... | Corrected help message for createwallet | py |
diff --git a/py/selenium/webdriver/firefox/webdriver.py b/py/selenium/webdriver/firefox/webdriver.py
index <HASH>..<HASH> 100644
--- a/py/selenium/webdriver/firefox/webdriver.py
+++ b/py/selenium/webdriver/firefox/webdriver.py
@@ -103,7 +103,7 @@ class WebDriver(RemoteWebDriver):
HTTP keep-alive.
... | [py] Correct check on DEFAULT_EXECUTABLE_PATH | py |
diff --git a/heron/tracker/src/python/topology.py b/heron/tracker/src/python/topology.py
index <HASH>..<HASH> 100644
--- a/heron/tracker/src/python/topology.py
+++ b/heron/tracker/src/python/topology.py
@@ -46,7 +46,6 @@ class Topology:
self.cluster = None
self.environ = None
self.tmaster = None
- sel... | Remove unused fields in tracker/topology.py. (#<I>) | py |
diff --git a/gdapi.py b/gdapi.py
index <HASH>..<HASH> 100755
--- a/gdapi.py
+++ b/gdapi.py
@@ -119,6 +119,9 @@ class Schema(object):
self.text = text
self.types = {}
for t in obj:
+ if t.type != 'schema':
+ continue
+
self.types[t.id] = t
t.... | When URL is not schema, ignore objects that aren't type=schema | py |
diff --git a/pyzotero/zotero.py b/pyzotero/zotero.py
index <HASH>..<HASH> 100644
--- a/pyzotero/zotero.py
+++ b/pyzotero/zotero.py
@@ -1,5 +1,6 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
+# pylint: disable=R0904
"""
zotero.py | Disabling Pylint warning about too many public methods It's an API wrapper ffs | py |
diff --git a/ding0/examples/example_analyze_multiple_grid_districts.py b/ding0/examples/example_analyze_multiple_grid_districts.py
index <HASH>..<HASH> 100644
--- a/ding0/examples/example_analyze_multiple_grid_districts.py
+++ b/ding0/examples/example_analyze_multiple_grid_districts.py
@@ -47,7 +47,6 @@ def ding0_exemp... | Moved the information in plot_km_cable_vs_line into plot_cable_length | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.