diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/satpy/writers/cf_writer.py b/satpy/writers/cf_writer.py
index <HASH>..<HASH> 100644
--- a/satpy/writers/cf_writer.py
+++ b/satpy/writers/cf_writer.py
@@ -114,10 +114,6 @@ from satpy.writers import Writer
from satpy.writers.utils import flatten_dict
from distutils.version import LooseVersion
-import pyp... | Reintroduce support for pygrib <I> The create_grid_mapping need a newer version of pyproj, by moving the import to that function data with lat/lon can still be written. | py |
diff --git a/nazs/core/module.py b/nazs/core/module.py
index <HASH>..<HASH> 100644
--- a/nazs/core/module.py
+++ b/nazs/core/module.py
@@ -230,6 +230,9 @@ class Module(object):
"""
name = self.__class__.__module__ + '.' + self.__class__.__name__
info, created = ModuleInfo.objects.get_or_creat... | Commit info changes when module was just installed | py |
diff --git a/arch/zx48k/translator.py b/arch/zx48k/translator.py
index <HASH>..<HASH> 100644
--- a/arch/zx48k/translator.py
+++ b/arch/zx48k/translator.py
@@ -64,6 +64,13 @@ class TranslatorVisitor(NodeVisitor):
__DEBUG__('EMIT ' + str(quad))
MEMORY.append(quad)
+ @staticmethod
+ def dumpMemor... | Static dumpMemory method added. | py |
diff --git a/threaded/__init__.py b/threaded/__init__.py
index <HASH>..<HASH> 100644
--- a/threaded/__init__.py
+++ b/threaded/__init__.py
@@ -66,7 +66,7 @@ if GThreadPooled is not None: # pragma: no cover
'gthreadpooled'
)
-__version__ = '1.0.5'
+__version__ = '1.0.6'
__author__ = "Alexey Stepanov"
... | Bump with fresh types (#<I>) | py |
diff --git a/sherlock/transient_catalogue_crossmatch.py b/sherlock/transient_catalogue_crossmatch.py
index <HASH>..<HASH> 100644
--- a/sherlock/transient_catalogue_crossmatch.py
+++ b/sherlock/transient_catalogue_crossmatch.py
@@ -96,6 +96,7 @@ class transient_catalogue_crossmatch():
# FOR EACH TRANSIENT SOU... | allowing for search modules with no magnitude filters | py |
diff --git a/visidata/loaders/sqlite.py b/visidata/loaders/sqlite.py
index <HASH>..<HASH> 100644
--- a/visidata/loaders/sqlite.py
+++ b/visidata/loaders/sqlite.py
@@ -37,6 +37,7 @@ class SqliteSheet(DeferredSaveSheet):
with (_conn or self.conn()) as conn:
tblname = self.tableName
self... | [sqlite] call recalc to set .sheet on columns | py |
diff --git a/awslimitchecker/services/elasticache.py b/awslimitchecker/services/elasticache.py
index <HASH>..<HASH> 100644
--- a/awslimitchecker/services/elasticache.py
+++ b/awslimitchecker/services/elasticache.py
@@ -169,7 +169,7 @@ class _ElastiCacheService(_AwsService):
limits['Nodes'] = AwsLimit(
... | issue #<I> - increase default ElastiCache/Nodes limit from <I> to <I> | py |
diff --git a/pipenv/core.py b/pipenv/core.py
index <HASH>..<HASH> 100644
--- a/pipenv/core.py
+++ b/pipenv/core.py
@@ -461,7 +461,7 @@ def ensure_python(three=None, python=None):
if not PYENV_INSTALLED:
abort()
else:
- if (not PIPENV_DONT_USE_PYENV) and (SESSION_IS_INTERACTIVE)... | Allow pyenv installs in non-interactive sessions in PIPENV_YES is set | py |
diff --git a/kconfiglib.py b/kconfiglib.py
index <HASH>..<HASH> 100644
--- a/kconfiglib.py
+++ b/kconfiglib.py
@@ -2301,10 +2301,11 @@ class Kconfig(object):
# than the first line
help_lines = []
- # Small optimization
+ # Small optimizations
add_help_line = help_lines.append
... | Micro-optimize help text parsing some more This code is surprisingly hot. | py |
diff --git a/synapse/lib/cli.py b/synapse/lib/cli.py
index <HASH>..<HASH> 100644
--- a/synapse/lib/cli.py
+++ b/synapse/lib/cli.py
@@ -6,6 +6,8 @@ import collections
import synapse.exc as s_exc
import synapse.eventbus as s_eventbus
+
+import synapse.lib.coro as s_coro
import synapse.lib.mixins as s_mixins
import ... | be more careful with cli onfini | py |
diff --git a/tests/util.py b/tests/util.py
index <HASH>..<HASH> 100644
--- a/tests/util.py
+++ b/tests/util.py
@@ -62,14 +62,14 @@ needs_singularity = pytest.mark.skipif(
)
needs_singularity_2_6 = pytest.mark.skipif(
- not (distutils.spawn.find_executable("singularity") and is_version_2_6()),
+ not bool(distu... | fix singularity 3 test (#<I>) | py |
diff --git a/pdftools/_cli.py b/pdftools/_cli.py
index <HASH>..<HASH> 100644
--- a/pdftools/_cli.py
+++ b/pdftools/_cli.py
@@ -112,10 +112,10 @@ def main():
formatter_class=argparse.ArgumentDefaultsHelpFormatter,
)
parser_merge.add_argument(
- "output", type=str, default=None, help="Output fil... | Adding default output file for merge command | py |
diff --git a/account/models.py b/account/models.py
index <HASH>..<HASH> 100644
--- a/account/models.py
+++ b/account/models.py
@@ -12,7 +12,7 @@ from django.db.models.signals import post_save
from django.dispatch import receiver
from django.template.loader import render_to_string
from django.utils import timezone, t... | Fix admin issue due to gettext_lazy. | py |
diff --git a/openstack_dashboard/dashboards/identity/projects/workflows.py b/openstack_dashboard/dashboards/identity/projects/workflows.py
index <HASH>..<HASH> 100644
--- a/openstack_dashboard/dashboards/identity/projects/workflows.py
+++ b/openstack_dashboard/dashboards/identity/projects/workflows.py
@@ -114,7 +114,7 ... | Change Quota tab title to be plural There are multiple quotas on the tab so the title should be plural. Closes-bug: #<I> Change-Id: Ia1e0c<I>b<I>b<I>a4bf<I>e<I> | py |
diff --git a/axolotl/__init__.py b/axolotl/__init__.py
index <HASH>..<HASH> 100644
--- a/axolotl/__init__.py
+++ b/axolotl/__init__.py
@@ -1,2 +1,2 @@
-__version__ = "0.1.4"
+__version__ = "0.1.5"
__author__ = "Tarek Galal" | bumped to <I> | py |
diff --git a/src/aja/tests/test_utils.py b/src/aja/tests/test_utils.py
index <HASH>..<HASH> 100644
--- a/src/aja/tests/test_utils.py
+++ b/src/aja/tests/test_utils.py
@@ -1,5 +1,6 @@
# -*- coding: utf-8 -*-
import os
+import shutil
import unittest
from fabric import api
@@ -67,7 +68,7 @@ if __name__ == '__main__'... | Fix issue where test was unable to delete its tmp directory | py |
diff --git a/bct/algorithms/clustering.py b/bct/algorithms/clustering.py
index <HASH>..<HASH> 100644
--- a/bct/algorithms/clustering.py
+++ b/bct/algorithms/clustering.py
@@ -342,7 +342,7 @@ def clustering_coef_wu_sign(W, coef_type='default'):
for q in range(n):
cyc3[i] += W[j, i] ... | mirror <I> bugfix - Bugfix in computation of the denominator of the Costantini & Perugini (flag 3) version (Chiara Pintossi) - take the absolute value of denominator | py |
diff --git a/telethon/extensions/markdown.py b/telethon/extensions/markdown.py
index <HASH>..<HASH> 100644
--- a/telethon/extensions/markdown.py
+++ b/telethon/extensions/markdown.py
@@ -84,8 +84,10 @@ def parse(message, delimiters=None):
current = Mode.NONE
break
- offset... | Fix markdown parsing failing if delimiter was last character | py |
diff --git a/django_extensions/management/commands/shell_plus.py b/django_extensions/management/commands/shell_plus.py
index <HASH>..<HASH> 100644
--- a/django_extensions/management/commands/shell_plus.py
+++ b/django_extensions/management/commands/shell_plus.py
@@ -68,8 +68,12 @@ class Command(NoArgsCommand):
... | fix ticket #<I> IPython.frontend is deprecated fix import with backwards compatibility | py |
diff --git a/test/test_functional_tensor.py b/test/test_functional_tensor.py
index <HASH>..<HASH> 100644
--- a/test/test_functional_tensor.py
+++ b/test/test_functional_tensor.py
@@ -719,7 +719,7 @@ def test_autocontrast(device, dtype):
@pytest.mark.parametrize('device', cpu_and_gpu())
def test_equalize(device):
- ... | Replace set_deterministic with non-deprecated spelling (#<I>) | py |
diff --git a/prompt.py b/prompt.py
index <HASH>..<HASH> 100644
--- a/prompt.py
+++ b/prompt.py
@@ -109,7 +109,7 @@ class PromptInterface(object):
'wallet {verbose}',
'wallet rebuild {start block}',
'send {assetId or name} {address} {amount}',
- 'testinvo... | removed unused keyword "contract" from testinvoke in help output | py |
diff --git a/salt/modules/apache.py b/salt/modules/apache.py
index <HASH>..<HASH> 100644
--- a/salt/modules/apache.py
+++ b/salt/modules/apache.py
@@ -269,7 +269,7 @@ def a2ensite(site):
command = 'a2ensite {0}'.format(site)
try:
- status = os.system(command)
+ status = __salt__['cmd.run'](command)
exc... | switch command to __salt__['cmd.run'] | py |
diff --git a/pyvodb/calendar.py b/pyvodb/calendar.py
index <HASH>..<HASH> 100644
--- a/pyvodb/calendar.py
+++ b/pyvodb/calendar.py
@@ -43,6 +43,8 @@ def get_calendar(db, first_year=None, first_month=None, num_months=3,
query = db.query(tables.Series)
for series_slug in series_slugs:
serie... | Calendar: Skip non-existing series when getting next occurences | py |
diff --git a/great_expectations/data_context/data_context.py b/great_expectations/data_context/data_context.py
index <HASH>..<HASH> 100644
--- a/great_expectations/data_context/data_context.py
+++ b/great_expectations/data_context/data_context.py
@@ -408,6 +408,8 @@ class BaseDataContext(object):
url = sit... | ayirp suite rename allow site with no url to be shown in docs list | py |
diff --git a/salt/version.py b/salt/version.py
index <HASH>..<HASH> 100644
--- a/salt/version.py
+++ b/salt/version.py
@@ -542,6 +542,7 @@ def versions_information(include_salt_cloud=False):
('RAET', 'raet', '__version__'),
('ZMQ', 'zmq', 'zmq_version'),
('Mako', 'mako', '__version__'),
+ ... | Include Tornado in versions report Fixes #<I> | py |
diff --git a/gargoyle/urls.py b/gargoyle/urls.py
index <HASH>..<HASH> 100644
--- a/gargoyle/urls.py
+++ b/gargoyle/urls.py
@@ -7,9 +7,9 @@ GARGOYLE_ROOT = os.path.dirname(__file__)
print GARGOYLE_ROOT
print "test"
-urlpatterns = patterns('',
+urlpatterns = patterns('gargoyle.views',
url(r'^media/(?P<path>.+)?/... | Ensure we're using full namespaced path for urls | py |
diff --git a/pst_handler.py b/pst_handler.py
index <HASH>..<HASH> 100644
--- a/pst_handler.py
+++ b/pst_handler.py
@@ -100,6 +100,22 @@ class pst(object):
og_df["weight"]) ** 2)
return components
+ @property
+ def phi_components_normalized(self):
+ """ get t... | Added property of normalized PHI components to the pst class | py |
diff --git a/eqcorrscan/utils/Sfile_util.py b/eqcorrscan/utils/Sfile_util.py
index <HASH>..<HASH> 100644
--- a/eqcorrscan/utils/Sfile_util.py
+++ b/eqcorrscan/utils/Sfile_util.py
@@ -582,11 +582,14 @@ def readpicks(sfile):
try:
time = UTCDateTime(evtime.year, evtime.month, evtime.day,
... | Fix bug in second reading Bug occurred when seconds column of picks were not aligned correctly - seisan copes with this, so so should we. Former-commit-id: e<I>b0fca6f<I>de<I>a<I>a<I>f<I> | py |
diff --git a/flake8_import_order_fuzeman.py b/flake8_import_order_fuzeman.py
index <HASH>..<HASH> 100644
--- a/flake8_import_order_fuzeman.py
+++ b/flake8_import_order_fuzeman.py
@@ -1,4 +1,5 @@
-from flake8_import_order import (IMPORT_3RD_PARTY, IMPORT_APP, IMPORT_APP_PACKAGE, IMPORT_APP_RELATIVE, IMPORT_STDLIB)
+from... | Fixed the ordering of `__future__` imports | py |
diff --git a/OpenSSL/crypto.py b/OpenSSL/crypto.py
index <HASH>..<HASH> 100644
--- a/OpenSSL/crypto.py
+++ b/OpenSSL/crypto.py
@@ -1004,7 +1004,8 @@ class X509(object):
if ext._extension == _api.NULL:
raise IndexError("extension index out of bounds")
- ext._extension = _api.X509_EXTENSION... | Fix memory leaks in dump_certificate | py |
diff --git a/alot/commands/globals.py b/alot/commands/globals.py
index <HASH>..<HASH> 100644
--- a/alot/commands/globals.py
+++ b/alot/commands/globals.py
@@ -863,7 +863,7 @@ class ComposeCommand(Command):
self.envelope.sign_key = account.gpg_key
else:
msg = 'Cannot find g... | py3k: Use logging.warning instead of warn The short version is deprecated as of python3. Both are available in both python versions. | py |
diff --git a/autofit/messages/abstract.py b/autofit/messages/abstract.py
index <HASH>..<HASH> 100644
--- a/autofit/messages/abstract.py
+++ b/autofit/messages/abstract.py
@@ -352,6 +352,7 @@ class AbstractMessage(ABC):
grad_logl[it.multi_index] = (logl - l0) / eps
xv -=... | cast to float for a considerable speed up | py |
diff --git a/example2.arrows.py b/example2.arrows.py
index <HASH>..<HASH> 100755
--- a/example2.arrows.py
+++ b/example2.arrows.py
@@ -20,8 +20,14 @@ if __name__ == "__main__":
# arrow_connector_lchar=u'\u255A',
)
+def unhandled_input(k):
+ #exit on q
+ if k in ['q'... | Update example2.arrows.py | py |
diff --git a/tests/test_integration.py b/tests/test_integration.py
index <HASH>..<HASH> 100644
--- a/tests/test_integration.py
+++ b/tests/test_integration.py
@@ -167,8 +167,8 @@ class TestTrickyCases(unittest.TestCase):
token
for token in data[0]
if isinstance(token["... | Fix broken test, how did this ever work? | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -75,11 +75,6 @@ setup(
include_package_data=True,
platforms='any',
install_requires=get_requirements(),
- extras_require={
- ':python_version=="2.7"': [
- 'importlib>=1.0.1'
- ]
- ... | remove importlib as drop support for py<I> | py |
diff --git a/tests/managers/hardware_tests.py b/tests/managers/hardware_tests.py
index <HASH>..<HASH> 100644
--- a/tests/managers/hardware_tests.py
+++ b/tests/managers/hardware_tests.py
@@ -845,6 +845,13 @@ class HardwareTests(testing.TestCase):
options = self.hardware.authorize_storage(1234, "SL01SEL301234-1... | Add a unit test to manager for storage username. | py |
diff --git a/ipyrad/assemble/write_outputs.py b/ipyrad/assemble/write_outputs.py
index <HASH>..<HASH> 100644
--- a/ipyrad/assemble/write_outputs.py
+++ b/ipyrad/assemble/write_outputs.py
@@ -360,8 +360,10 @@ class Step7:
np.any(
self.data.stats_dfs.s7_snps.loc[:, ["var", "pis"]] != 0, axis... | stats trim fix for no pis | py |
diff --git a/pyaardvark/aardvark.py b/pyaardvark/aardvark.py
index <HASH>..<HASH> 100644
--- a/pyaardvark/aardvark.py
+++ b/pyaardvark/aardvark.py
@@ -76,7 +76,10 @@ def find_devices(filter_in_use=True):
# first fetch the number of attached devices, so we can create a buffer
# with the exact amount of entries... | don't assert if no device is found Return an empty list if no Aardvark device is connected. Fixes #2. | py |
diff --git a/testing/acceptance_test.py b/testing/acceptance_test.py
index <HASH>..<HASH> 100644
--- a/testing/acceptance_test.py
+++ b/testing/acceptance_test.py
@@ -763,3 +763,21 @@ class TestDurationWithFixture:
* call *test_1*
""")
+
+def test_zipimport_hook(testdir, tmpdir):
+ """Test pa... | Add acceptance test for module loader Related to #<I> | py |
diff --git a/reference/cwltool/avro_ld/validate.py b/reference/cwltool/avro_ld/validate.py
index <HASH>..<HASH> 100644
--- a/reference/cwltool/avro_ld/validate.py
+++ b/reference/cwltool/avro_ld/validate.py
@@ -139,8 +139,13 @@ def validate_ex(expected_schema, datum, strict=False):
errors = []
for f... | Make validation aware of defaults, validate default (if provided) when is field is missing. | py |
diff --git a/email_confirm_la/admin.py b/email_confirm_la/admin.py
index <HASH>..<HASH> 100644
--- a/email_confirm_la/admin.py
+++ b/email_confirm_la/admin.py
@@ -7,11 +7,21 @@ from django.contrib import admin
from email_confirm_la.models import EmailConfirmation
+def resend_confirmation_email(modeladmin, request,... | admin action: resend_confirmation_email Fixes #5 | py |
diff --git a/periphery/gpio.py b/periphery/gpio.py
index <HASH>..<HASH> 100644
--- a/periphery/gpio.py
+++ b/periphery/gpio.py
@@ -994,6 +994,9 @@ class SysfsGPIO(GPIO):
if not self._exported:
self.direction = direction
+ # Initialize inverted
+ self.inverted = False
+
# Metho... | gpio: initialize inverted property in open for sysfs implementation | py |
diff --git a/ryu/lib/hub.py b/ryu/lib/hub.py
index <HASH>..<HASH> 100644
--- a/ryu/lib/hub.py
+++ b/ryu/lib/hub.py
@@ -35,6 +35,7 @@ if HUB_TYPE == 'eventlet':
import eventlet.wsgi
import greenlet
import ssl
+ import socket
import traceback
getcurrent = eventlet.getcurrent
@@ -78,7 +79,12 ... | Support bind IPv6 addresses in StreamServer Use a very loose condition to determine if the address is an IPv6 address or not. | py |
diff --git a/src/p4p/gw.py b/src/p4p/gw.py
index <HASH>..<HASH> 100644
--- a/src/p4p/gw.py
+++ b/src/p4p/gw.py
@@ -625,6 +625,11 @@ class App(object):
providers = [statusp]
self.__lifesupport += [statusp]
+ # Fetch the list of ignored addresses for this server
+ ignored... | ENH: Add ignoreaddr option into pvagw. | py |
diff --git a/scripts/make_release.py b/scripts/make_release.py
index <HASH>..<HASH> 100644
--- a/scripts/make_release.py
+++ b/scripts/make_release.py
@@ -1,14 +1,25 @@
import os
+import sys
import re
import tarfile
import zipfile
import shutil
+import version
+print('Brython', version.version[:2])
+print('CPyth... | In make_release.py, check that CPython version used to run the script is the same as Brython version | py |
diff --git a/chalice/deployer.py b/chalice/deployer.py
index <HASH>..<HASH> 100644
--- a/chalice/deployer.py
+++ b/chalice/deployer.py
@@ -656,7 +656,7 @@ class LambdaDeployer(object):
policy_file = os.path.join(config.project_dir,
'.chalice', 'policy.json')
with op... | Prevent trailing whitespace in policy.json. Python's `json.dumps` function places trailing whitespace on some lines when `indent` is specified. Among other things, this can cause spurious diffs when a correctly formatted, non-autogen policy is processed for deployment. Adding an appropriate `seperators` argument supp... | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -544,8 +544,7 @@ ext_data = {
'_libs.parsers': {
'pyxfile': '_libs/parsers',
'depends': ['pandas/_libs/src/parser/tokenizer.h',
- 'pandas/_libs/src/parser/io.h',
- '... | BLD: Drop nonexistent dependency of _libs/parsers (#<I>) Follow-up to gh-<I>. Closes gh-<I>. | py |
diff --git a/mesh_tensorflow/transformer/utils.py b/mesh_tensorflow/transformer/utils.py
index <HASH>..<HASH> 100644
--- a/mesh_tensorflow/transformer/utils.py
+++ b/mesh_tensorflow/transformer/utils.py
@@ -1607,10 +1607,9 @@ def train_model(estimator, vocabulary, sequence_length, batch_size,
# On the first time... | Fix check for skip_seen_data to not skip data if there are no checkpoints in the model directory. PiperOrigin-RevId: <I> | py |
diff --git a/src/ossos-pipeline/pymop/pymop/gui/models.py b/src/ossos-pipeline/pymop/pymop/gui/models.py
index <HASH>..<HASH> 100644
--- a/src/ossos-pipeline/pymop/pymop/gui/models.py
+++ b/src/ossos-pipeline/pymop/pymop/gui/models.py
@@ -41,7 +41,6 @@ class UIModel(object):
self._get_new_workunit()
... | Removed redundant call to model's exit method. | py |
diff --git a/pygubu/__init__.py b/pygubu/__init__.py
index <HASH>..<HASH> 100644
--- a/pygubu/__init__.py
+++ b/pygubu/__init__.py
@@ -5,7 +5,7 @@ __all__ = ['Builder', 'TkApplication']
from pygubu.builder import Builder
-__version__ = '0.9.6.5'
+__version__ = '0.9.6.6'
class TkApplication: | Increase version number to sync code with pypi | py |
diff --git a/webkit_server.py b/webkit_server.py
index <HASH>..<HASH> 100644
--- a/webkit_server.py
+++ b/webkit_server.py
@@ -116,9 +116,21 @@ class Node(SelectionMixin):
else:
raise NodeError, "Unselect not allowed."
+ def _simple_mouse_event(self, event_name):
+ """ Fires a simple mouse event such ... | trigger mousedown, mouseup before click | py |
diff --git a/salt/pillar/__init__.py b/salt/pillar/__init__.py
index <HASH>..<HASH> 100644
--- a/salt/pillar/__init__.py
+++ b/salt/pillar/__init__.py
@@ -341,10 +341,18 @@ class Pillar(object):
errors = []
fn_ = self.client.get_state(sls, saltenv).get('dest', False)
if not fn_:
- ... | Fixed issue #<I> If an ext_pillar item is not loaded and its branch is not present in pillar_roots, the corresponding salt environment will not be available. However, this is not an issue, since it will be available when all of ext_pillar items are parsed; therefore, when trying to get the SLS from that non-present sa... | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -78,7 +78,7 @@ setup(
license=__license__,
keywords='Sovrin Client',
packages=find_packages(exclude=['test', 'test.*', 'docs', 'docs*']) + [
- 'sample'],
+ 'sample', 'data'],
package_data={
... | including data package in setup.py | py |
diff --git a/xclim/testing/tests/test_indices.py b/xclim/testing/tests/test_indices.py
index <HASH>..<HASH> 100644
--- a/xclim/testing/tests/test_indices.py
+++ b/xclim/testing/tests/test_indices.py
@@ -1055,12 +1055,12 @@ class TestJetStreamIndices:
da_ua = xr.DataArray(
fake_jet,
coords={
- ... | change coord from T to time for js metric | py |
diff --git a/pygccxml/declarations/declaration.py b/pygccxml/declarations/declaration.py
index <HASH>..<HASH> 100644
--- a/pygccxml/declarations/declaration.py
+++ b/pygccxml/declarations/declaration.py
@@ -78,7 +78,7 @@ class declaration_t(object):
'_get__cmp__items not implemented for class ',
... | Raise NotImplementedError() instead of raise NotImplemented() Maybe there was a confusion with the NotImplemented builtin, which probably makes sense in a comparison scheme between objects (we are in the _get__cmp__items method here) (often used for performance reasons). Anyway, this method is correctly overridden by... | py |
diff --git a/course.py b/course.py
index <HASH>..<HASH> 100644
--- a/course.py
+++ b/course.py
@@ -207,7 +207,7 @@ class Course(CanvasObject):
)
return Course(self._requester, response.json())
- def list_quizzes(self):
+ def list_quizzes(self, **kwargs):
"""
Returns the list ... | changed return to paginated list and added import statement | py |
diff --git a/src/foremast/utils/tasks.py b/src/foremast/utils/tasks.py
index <HASH>..<HASH> 100644
--- a/src/foremast/utils/tasks.py
+++ b/src/foremast/utils/tasks.py
@@ -100,17 +100,17 @@ def _check_task(taskid):
raise ValueError
-def check_task(taskid, timeout=DEFAULT_TASK_TIMEOUT):
+def check_task(taski... | refactor: Move Check Task wait to argument | py |
diff --git a/kitnirc/contrib/cron.py b/kitnirc/contrib/cron.py
index <HASH>..<HASH> 100644
--- a/kitnirc/contrib/cron.py
+++ b/kitnirc/contrib/cron.py
@@ -175,8 +175,10 @@ class CronModule(Module):
Timespecs are strings in the following formats:
Plain integer - specifies that exact value for the... | Add ?/X to docstring for ADDCRON handler | py |
diff --git a/astropy_helpers/sphinx/ext/doctest.py b/astropy_helpers/sphinx/ext/doctest.py
index <HASH>..<HASH> 100644
--- a/astropy_helpers/sphinx/ext/doctest.py
+++ b/astropy_helpers/sphinx/ext/doctest.py
@@ -46,6 +46,10 @@ def setup(app):
app.add_directive('doctest-skip', DoctestSkipDirective)
app.add_dire... | Add comment for new `testsetup` directive [skip ci] | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -258,6 +258,7 @@ setup(
os.path.join('bin','ligolw_publish_dqxml'),
os.path.join('bin','ligolw_diff'),
os.path.join('bin','segdb_coalesce'),
+ os.path.join('bin', 'glue_nmi_genbuild'),
os.path.join('bin'... | added bin/glue_nmi_genbuild | py |
diff --git a/pymc3/step_methods/hmc/nuts.py b/pymc3/step_methods/hmc/nuts.py
index <HASH>..<HASH> 100644
--- a/pymc3/step_methods/hmc/nuts.py
+++ b/pymc3/step_methods/hmc/nuts.py
@@ -420,7 +420,7 @@ class NutsReport(object):
warnings.warn('Step size tuning was enabled throughout the whole '
... | Do not print divergence warnings for empty trace | py |
diff --git a/anteater/src/project_scan.py b/anteater/src/project_scan.py
index <HASH>..<HASH> 100644
--- a/anteater/src/project_scan.py
+++ b/anteater/src/project_scan.py
@@ -135,6 +135,9 @@ def scan_file(project, project_dir, binaries, ips, urls, file_audit_list,
except IOError:
... | Handle UnicodeDecodeError and skip files that are not valid utf-8 This error popped up while scanning `.git` - shouldn't prevent us from scanning other files. | py |
diff --git a/tests/tests.py b/tests/tests.py
index <HASH>..<HASH> 100644
--- a/tests/tests.py
+++ b/tests/tests.py
@@ -1003,6 +1003,17 @@ class VersatileImageFieldTestCase(VersatileImageFieldBaseTestCase):
with self.assertRaises((IOError, OSError)):
instance.image.thumbnail['200x200']
- #... | Test that the widget is still shown even though the image is corrupt | py |
diff --git a/wilson/classes.py b/wilson/classes.py
index <HASH>..<HASH> 100644
--- a/wilson/classes.py
+++ b/wilson/classes.py
@@ -122,6 +122,12 @@ class Wilson(ConfigurableClass):
self.wc.validate()
self._cache = {}
+ def __hash__(self):
+ """Return a hash of the `Wilson` instance.
+ ... | add custom __hash__() method to Wilson class (#<I>) | py |
diff --git a/steam/util/__init__.py b/steam/util/__init__.py
index <HASH>..<HASH> 100644
--- a/steam/util/__init__.py
+++ b/steam/util/__init__.py
@@ -3,6 +3,12 @@
import weakref
import struct
import socket
+import sys
+
+if sys.version_info < (3,):
+ _range = xrange
+else:
+ _range = range
def ip_from_int(... | added list chunking function to utils | py |
diff --git a/python/sparkts/test/__init__.py b/python/sparkts/test/__init__.py
index <HASH>..<HASH> 100644
--- a/python/sparkts/test/__init__.py
+++ b/python/sparkts/test/__init__.py
@@ -24,7 +24,7 @@ os.system(CHECK_SPARK_HOME)
# Dynamically load project root dir and jars.
project_root = os.getcwd() + "/../"
-jars... | Correct main jar reference for Python test | py |
diff --git a/salt/modules/file.py b/salt/modules/file.py
index <HASH>..<HASH> 100644
--- a/salt/modules/file.py
+++ b/salt/modules/file.py
@@ -3542,7 +3542,17 @@ def set_selinux_context(path,
.. code-block:: bash
salt '*' file.set_selinux_context path <user> <role> <type> <range>
- salt '*' file.... | Added another example of how to use the module when it's inside an SLS file. | py |
diff --git a/cmsplugin_filer_image/models.py b/cmsplugin_filer_image/models.py
index <HASH>..<HASH> 100644
--- a/cmsplugin_filer_image/models.py
+++ b/cmsplugin_filer_image/models.py
@@ -107,5 +107,17 @@ class ThumbnailOption(models.Model):
def __unicode__(self):
return u'%s -- %s x %s' %(self.n... | Added as_dict property to ThumnailOption to return a thumbnailer-compatible dictionary | py |
diff --git a/bcbio/pipeline/main.py b/bcbio/pipeline/main.py
index <HASH>..<HASH> 100644
--- a/bcbio/pipeline/main.py
+++ b/bcbio/pipeline/main.py
@@ -253,9 +253,8 @@ def rnaseqpipeline(config, run_info_yaml, parallel, dirs, samples):
with profile.report("estimate expression (single threaded)", dirs):
... | Add vardict to RNA-seq variant calling resources. | py |
diff --git a/hvac/v1/__init__.py b/hvac/v1/__init__.py
index <HASH>..<HASH> 100644
--- a/hvac/v1/__init__.py
+++ b/hvac/v1/__init__.py
@@ -497,13 +497,15 @@ class Client(object):
return self._post('/v1/auth/token/renew-self', json=params, wrap_ttl=wrap_ttl).json()
def create_token_role(self, role,
-... | add support for disallowed_policies on create_token_role per the vault api (#<I>) | py |
diff --git a/rawdisk/util/singleton.py b/rawdisk/util/singleton.py
index <HASH>..<HASH> 100644
--- a/rawdisk/util/singleton.py
+++ b/rawdisk/util/singleton.py
@@ -1,12 +1,10 @@
-class Singleton(object):
+class Singleton(type):
+ _instances = {}
+ def __init__(cls, *args, **kwargs):
+ setattr(cls, "_drop", ... | Converted Singleton class to metaclass Also added _drop method, used in unit tests to clear instance dictionary | py |
diff --git a/pygubu/uidesigner/widgeteditor.py b/pygubu/uidesigner/widgeteditor.py
index <HASH>..<HASH> 100644
--- a/pygubu/uidesigner/widgeteditor.py
+++ b/pygubu/uidesigner/widgeteditor.py
@@ -107,6 +107,7 @@ class WidgetsTreeEditor:
self.previewer.delete(item)
del self.treedata[item]
... | Set application changed when an item is deleted. Set default values for layout properties when adding a widget. | py |
diff --git a/src/gimpy/graph.py b/src/gimpy/graph.py
index <HASH>..<HASH> 100755
--- a/src/gimpy/graph.py
+++ b/src/gimpy/graph.py
@@ -1677,9 +1677,13 @@ After installation, ensure that the PATH variable is properly set.'''
if not isinstance(n, Node):
n = self.get_node(n)
... | Partially addressing #6 by fixing small error in example, adding some checks for that error, and disabling dot2tex for now due to bugs intrpduced into the dot2tex package (see <URL>) | py |
diff --git a/imgaug/augmenters/weather.py b/imgaug/augmenters/weather.py
index <HASH>..<HASH> 100644
--- a/imgaug/augmenters/weather.py
+++ b/imgaug/augmenters/weather.py
@@ -865,8 +865,8 @@ class SnowflakesLayer(meta.Augmenter):
height, width, nb_channels = image.shape
downscale_factor = np.clip(1.... | Fix SnowflakesLayer intermittent crash on gate noise size of 0. | py |
diff --git a/holoviews/ipython/display_hooks.py b/holoviews/ipython/display_hooks.py
index <HASH>..<HASH> 100644
--- a/holoviews/ipython/display_hooks.py
+++ b/holoviews/ipython/display_hooks.py
@@ -179,8 +179,14 @@ def element_display(element, max_frames):
@display_hook
def map_display(vmap, max_frames):
if not... | Raising warning about unbounded dynamic map in display_hooks.map_display | py |
diff --git a/src/test/resources/main.py b/src/test/resources/main.py
index <HASH>..<HASH> 100644
--- a/src/test/resources/main.py
+++ b/src/test/resources/main.py
@@ -195,7 +195,7 @@ auto_mapper = DataFrameMapper([
("displacement", None),
(["horsepower"], Imputer(missing_values = "NaN")),
(["weight"], MinMaxScale... | Resolved deprecation warnings | py |
diff --git a/easywebdav/__version__.py b/easywebdav/__version__.py
index <HASH>..<HASH> 100644
--- a/easywebdav/__version__.py
+++ b/easywebdav/__version__.py
@@ -1 +1 @@
-__version__ = "1.0.3"
+__version__ = "1.0.4" | Bumped version to <I> | py |
diff --git a/isovar/dataframe_helpers.py b/isovar/dataframe_helpers.py
index <HASH>..<HASH> 100644
--- a/isovar/dataframe_helpers.py
+++ b/isovar/dataframe_helpers.py
@@ -217,4 +217,4 @@ def isovar_results_to_dataframe(isovar_results):
records = []
for isovar_result in isovar_results:
records.append(... | actually create DataFrame for results | py |
diff --git a/claripy/backends/backend.py b/claripy/backends/backend.py
index <HASH>..<HASH> 100644
--- a/claripy/backends/backend.py
+++ b/claripy/backends/backend.py
@@ -23,7 +23,7 @@ class Backend(object):
if hasattr(op_module, o):
self._op_raw[o] = getattr(op_module, o)
... | cut down on the on-load warnings from backend | py |
diff --git a/test_windows/test_pipenv.py b/test_windows/test_pipenv.py
index <HASH>..<HASH> 100644
--- a/test_windows/test_pipenv.py
+++ b/test_windows/test_pipenv.py
@@ -151,7 +151,7 @@ class TestPipenvWindows():
pipfile_output = delegator.run('type Pipfile').out
pipfile_list = pipfile_output.split('... | all tests pass on my local windows <I> machine, come on app veyor | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -12,7 +12,7 @@ except (IOError, ImportError, RuntimeError):
long_description = 'Tools for manipulating and parsing vcf files'
setup(name='vcftoolbox',
- version='0.1.1',
+ version='0.1.2',
description='Tools... | Bumped version to <I> | py |
diff --git a/abydos/phonetic.py b/abydos/phonetic.py
index <HASH>..<HASH> 100644
--- a/abydos/phonetic.py
+++ b/abydos/phonetic.py
@@ -188,8 +188,6 @@ def soundex(word, maxlength=4, var='American', reverse=False, zero_pad=True):
consonants but as vowels.
Cf. http://creativyst.com/Doc/Articles/Soun... | removed German mode (didn't really do anything different) | py |
diff --git a/seleniumbase/fixtures/page_actions.py b/seleniumbase/fixtures/page_actions.py
index <HASH>..<HASH> 100755
--- a/seleniumbase/fixtures/page_actions.py
+++ b/seleniumbase/fixtures/page_actions.py
@@ -394,7 +394,7 @@ def wait_for_ready_state_complete(driver, timeout=settings.EXTREME_TIMEOUT):
except ... | Update return statement to match the other one | py |
diff --git a/salt/states/pip_state.py b/salt/states/pip_state.py
index <HASH>..<HASH> 100644
--- a/salt/states/pip_state.py
+++ b/salt/states/pip_state.py
@@ -188,20 +188,20 @@ def _check_if_installed(prefix, state_pkg_name, version_spec, ignore_installed,
force_reinstall, upgrade, user, cwd, b... | Removed whitespaces at end of added comments lines | py |
diff --git a/Mixtape/ghmm.py b/Mixtape/ghmm.py
index <HASH>..<HASH> 100644
--- a/Mixtape/ghmm.py
+++ b/Mixtape/ghmm.py
@@ -30,6 +30,7 @@ import time
import warnings
import numpy as np
from sklearn import cluster
+import sklearn.mixture
_AVAILABLE_PLATFORMS = ['cpu', 'sklearn']
from mixtape import _ghmm, _reversibi... | Fixed imports after adding sklearn.mixture to GHMM init | py |
diff --git a/python/ray/util/collective/collective.py b/python/ray/util/collective/collective.py
index <HASH>..<HASH> 100644
--- a/python/ray/util/collective/collective.py
+++ b/python/ray/util/collective/collective.py
@@ -99,6 +99,14 @@ class GroupManager(object):
# Release the communicator resources
... | [Collective] Enhance the collective group GC a bit (#<I>) | py |
diff --git a/phonopy/interface/FHIaims.py b/phonopy/interface/FHIaims.py
index <HASH>..<HASH> 100644
--- a/phonopy/interface/FHIaims.py
+++ b/phonopy/interface/FHIaims.py
@@ -161,7 +161,7 @@ def read_aims_output(filename):
forces = []
for i in range(N):
l += 1
- ... | phonophy/interface/FHI-aims.py: Bugfix (read of forces) FHI-aims output of forces for atoms is | <I> force1 force2 force3 for less than <I> atoms and |<I> force1 force2 force3 for more than <I> atoms. Therefore column have to be counted in reversed order. | py |
diff --git a/bakery/project/views.py b/bakery/project/views.py
index <HASH>..<HASH> 100644
--- a/bakery/project/views.py
+++ b/bakery/project/views.py
@@ -116,13 +116,13 @@ def setup(project_id):
return render_template('project/setup.html', project=p,
subsetvals=DEFAULT_SUBSET_L... | Set config['local']['setup'] only after first 'bake' | py |
diff --git a/salt/states/pkg.py b/salt/states/pkg.py
index <HASH>..<HASH> 100644
--- a/salt/states/pkg.py
+++ b/salt/states/pkg.py
@@ -2,7 +2,7 @@
State enforcing for packages
'''
-def install(name):
+def installed(name):
'''
Verify that the package is installed, return the packages changed in the
op... | Change state names for packages to sound more "stateful" | py |
diff --git a/tasklib/task.py b/tasklib/task.py
index <HASH>..<HASH> 100644
--- a/tasklib/task.py
+++ b/tasklib/task.py
@@ -228,16 +228,24 @@ class Task(TaskResource):
def _get_modified_fields_as_args(self):
args = []
+ def add_field(field):
+ # Task version older than 2.4.0 ignores fir... | Task: Add workaround for task bug in older versions, which eats up a part of description | py |
diff --git a/salt/state.py b/salt/state.py
index <HASH>..<HASH> 100644
--- a/salt/state.py
+++ b/salt/state.py
@@ -1035,6 +1035,7 @@ class HighState(object):
'''
top = self.get_top()
matches = self.top_matches(top)
+ self.load_dynamic(matches)
high, errors = self.render_highst... | Add load_dynamic to show_highstate and show_lowstate This change repairs an isue where the accuracy of these calls could be bad if dynamic modules had not been previously loaded | py |
diff --git a/netpyne/plotting/plotter.py b/netpyne/plotting/plotter.py
index <HASH>..<HASH> 100644
--- a/netpyne/plotting/plotter.py
+++ b/netpyne/plotting/plotter.py
@@ -137,6 +137,11 @@ class MultiFigure:
def finishFig(self, **kwargs):
+ if 'tightLayout' not in kwargs:
+ plt.tight_layout()
... | added tightLayout option to plotter (True by default) | py |
diff --git a/lib/python/dxpy/bindings/dxgtable.py b/lib/python/dxpy/bindings/dxgtable.py
index <HASH>..<HASH> 100644
--- a/lib/python/dxpy/bindings/dxgtable.py
+++ b/lib/python/dxpy/bindings/dxgtable.py
@@ -29,8 +29,8 @@ class DXGTable(DXDataObject):
_close = staticmethod(dxpy.api.gtableClose)
_list_projects ... | Lower write buffer size for Python gtable bindings. | py |
diff --git a/yamcs-client/yamcs/core/helpers.py b/yamcs-client/yamcs/core/helpers.py
index <HASH>..<HASH> 100644
--- a/yamcs-client/yamcs/core/helpers.py
+++ b/yamcs-client/yamcs/core/helpers.py
@@ -3,7 +3,7 @@ from collections import OrderedDict
from datetime import datetime, timezone
from google.protobuf import t... | Forbid naive datetimes (for now) | py |
diff --git a/command/install_data.py b/command/install_data.py
index <HASH>..<HASH> 100644
--- a/command/install_data.py
+++ b/command/install_data.py
@@ -10,7 +10,7 @@ __revision__ = "$Id$"
import os
from types import StringType
from distutils.core import Command
-from distutils.util import change_root
+from distut... | Data pathnames were not converted from URL-style to local style. Fixed. | py |
diff --git a/radiotool/composer.py b/radiotool/composer.py
index <HASH>..<HASH> 100644
--- a/radiotool/composer.py
+++ b/radiotool/composer.py
@@ -3,19 +3,23 @@
# Has all the classes for speech, songs, and fade types
# Additionally, has class for actual composition
+import sys
+
from math import sqrt
import num... | bug fix in composer with resample | py |
diff --git a/website/sphinx/conf.py b/website/sphinx/conf.py
index <HASH>..<HASH> 100644
--- a/website/sphinx/conf.py
+++ b/website/sphinx/conf.py
@@ -50,6 +50,7 @@ coverage_ignore_functions = [
]
html_static_path = [os.path.abspath("../static")]
+html_theme = 'default'
html_style = "sphinx.css"
highlight_languag... | sphinx: Set the html_theme variable explicitly. This should let our custom css show on readthedocs.org. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -23,6 +23,12 @@ setup(
"Programming Language :: Python :: 3",
]
+ [("Programming Language :: Python :: %s" % x) for x in "3.6 3.7 3.8 3.9".split()],
+ project_urls={
+ "Documentation": "https://spl... | setup.py: Add project URLs for PyPI (#<I>) | py |
diff --git a/fontbakery-check-ttf.py b/fontbakery-check-ttf.py
index <HASH>..<HASH> 100755
--- a/fontbakery-check-ttf.py
+++ b/fontbakery-check-ttf.py
@@ -1399,7 +1399,10 @@ def main():
if found != "multiple":
if found is False:
fb.error("No license file was found."
- " Please add a... | add hint to a simple way to deal with missing license files (issue #<I>) | py |
diff --git a/pinax/likes/templatetags/pinax_likes_tags.py b/pinax/likes/templatetags/pinax_likes_tags.py
index <HASH>..<HASH> 100644
--- a/pinax/likes/templatetags/pinax_likes_tags.py
+++ b/pinax/likes/templatetags/pinax_likes_tags.py
@@ -71,7 +71,7 @@ def likes_widget(context, user, obj, template_name="pinax/likes/_wi... | Refactored single quotes to double quotes | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.