diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/fitparse/processors.py b/fitparse/processors.py
index <HASH>..<HASH> 100644
--- a/fitparse/processors.py
+++ b/fitparse/processors.py
@@ -1,5 +1,5 @@
import datetime
-from fitparse.utils import scrub_method_name
+from fitparse.utils import scrub_method_name, is_iterable
# Datetimes (uint32) represent s... | Fix processing enhanced_speed when it's a tuple Fixes the issue described in <URL> | py |
diff --git a/foundations/tests/testsFoundations/testsIo.py b/foundations/tests/testsFoundations/testsIo.py
index <HASH>..<HASH> 100644
--- a/foundations/tests/testsFoundations/testsIo.py
+++ b/foundations/tests/testsFoundations/testsIo.py
@@ -136,7 +136,7 @@ class FileTestCase(unittest.TestCase):
"""
fileDescri... | Fix tests in "foundations.tests.testsFoundations.testsIo" module. | py |
diff --git a/docker/context/context.py b/docker/context/context.py
index <HASH>..<HASH> 100644
--- a/docker/context/context.py
+++ b/docker/context/context.py
@@ -127,8 +127,12 @@ class Context:
elif filename.startswith("key"):
key = os.path.join(tls_dir, endpoint, filename)
... | Verify TLS keys loaded from docker contexts This maches the behaviour of the docker cli when using contexts. | py |
diff --git a/mailing/__init__.py b/mailing/__init__.py
index <HASH>..<HASH> 100755
--- a/mailing/__init__.py
+++ b/mailing/__init__.py
@@ -1,6 +1,6 @@
# Versioning
# --------------------------------
-VERSION = (0, 1, 0, "beta", 9) # following PEP 386
+VERSION = (0, 1, 0, "beta", 10) # following PEP 386
DEV_N = N... | Change version to beta<I>. | py |
diff --git a/allegedb/allegedb/cache.py b/allegedb/allegedb/cache.py
index <HASH>..<HASH> 100644
--- a/allegedb/allegedb/cache.py
+++ b/allegedb/allegedb/cache.py
@@ -389,8 +389,12 @@ class WindowDict(MutableMapping):
def __bool__(self):
return bool(self._past) or bool(self._future)
- def __init__(se... | Make WindowDict take a sequence of pairs | py |
diff --git a/tinydb/queries.py b/tinydb/queries.py
index <HASH>..<HASH> 100644
--- a/tinydb/queries.py
+++ b/tinydb/queries.py
@@ -292,7 +292,7 @@ class Query(object):
:param cond: Either a query that at least one document has to match or
a list of which at least one document has to be co... | Remove stray dash Fix this: .../tinydb/queries.py:docstring of tinydb.queries.Query.any:<I>: WARNING: Block quote ends without a blank line; unexpected unindent. and gets rid of a spurious bullet poinnt in the docs. | py |
diff --git a/speedparser/speedparser.py b/speedparser/speedparser.py
index <HASH>..<HASH> 100644
--- a/speedparser/speedparser.py
+++ b/speedparser/speedparser.py
@@ -277,8 +277,9 @@ class SpeedParserEntriesRss20(object):
def parse_title(self, node, entry, ns=''):
if ns in ('media',) and 'title' in entry:... | Fix attribute error when titles are None (can't call strip on them). | py |
diff --git a/scapy.py b/scapy.py
index <HASH>..<HASH> 100755
--- a/scapy.py
+++ b/scapy.py
@@ -22,6 +22,9 @@
#
# $Log: scapy.py,v $
+# Revision 0.9.11.5 2003/04/27 10:04:03 pbi
+# - Fixed long int conversion in attach_filter()
+#
# Revision 0.9.11.4 2003/04/27 10:00:57 pbi
# - rectification in SetGen to unrol... | - Fixed long int conversion in attach_filter() | py |
diff --git a/plexapi/photo.py b/plexapi/photo.py
index <HASH>..<HASH> 100644
--- a/plexapi/photo.py
+++ b/plexapi/photo.py
@@ -70,13 +70,6 @@ class Photoalbum(PlexPartialObject):
return photo
raise NotFound('Unable to find photo: %s' % title)
- def reload(self):
- """ Reload the da... | remove reload since it interited. | py |
diff --git a/test.py b/test.py
index <HASH>..<HASH> 100755
--- a/test.py
+++ b/test.py
@@ -68,6 +68,15 @@ class ZimbraAdminClientTests(unittest.TestCase):
zc.login('admin@zimbratest.oasiswork.fr', 'admintest')
+class ZimbraAdminClientRequests(unittest.TestCase):
+ def setUp(self):
+ self.zc =... | added test to check if GetAllAccountsRequest is working | py |
diff --git a/microraiden/microraiden/examples/eth_ticker.py b/microraiden/microraiden/examples/eth_ticker.py
index <HASH>..<HASH> 100644
--- a/microraiden/microraiden/examples/eth_ticker.py
+++ b/microraiden/microraiden/examples/eth_ticker.py
@@ -18,7 +18,7 @@ log = logging.getLogger(__name__)
def start_proxy(rece... | added monkeypatch to the ticker example | py |
diff --git a/salt/cli/caller.py b/salt/cli/caller.py
index <HASH>..<HASH> 100644
--- a/salt/cli/caller.py
+++ b/salt/cli/caller.py
@@ -74,11 +74,13 @@ class Caller(object):
if self.opts.get('return', ''):
ret['id'] = self.opts['id']
ret['jid'] = '{0:%Y%m%d%H%M%S%f}'.format(datetime.da... | Caller needs to pass the fun in the return dict | py |
diff --git a/docs/conf.py b/docs/conf.py
index <HASH>..<HASH> 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -31,7 +31,7 @@ sys.path.insert(0, os.path.abspath('.') + "/../")
# ones.
extensions = [
'sphinx.ext.autodoc',
- 'sphinxcontrib.napoleon'
+ 'sphinx.ext.napoleon'
]
# Add any paths that contain t... | Use sphinx.ext.napoleon, which is the extension shipped with sphinx | py |
diff --git a/picoweb/__init__.py b/picoweb/__init__.py
index <HASH>..<HASH> 100644
--- a/picoweb/__init__.py
+++ b/picoweb/__init__.py
@@ -56,8 +56,11 @@ class HTTPRequest:
class WebApp:
- def __init__(self, routes):
- self.url_map = routes
+ def __init__(self, routes=None):
+ if routes:
+ ... | WebApp: Routes list to constructor is optional. | py |
diff --git a/sparklingpandas/test/pandas_groupby_tests.py b/sparklingpandas/test/pandas_groupby_tests.py
index <HASH>..<HASH> 100644
--- a/sparklingpandas/test/pandas_groupby_tests.py
+++ b/sparklingpandas/test/pandas_groupby_tests.py
@@ -12,7 +12,6 @@ import sys
import pandas as pd
from pandas import date_range, bda... | rands has been moved in pandas <I> | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -134,7 +134,12 @@ if _being_installed():
_before_install()
readme_file = open('README.txt')
-changes_file = open('CHANGES (links).txt')
+# the release script adds hyperlinks to issues
+if os.path.exists('CHANGES (links... | Allow the setup script to run even if the linked changelog hasn't been generated --HG-- branch : distribute extra : rebase_source : e<I>ca<I>b1a<I>b<I>ff6ae<I>dcdabbe<I>c3 | py |
diff --git a/historical/common/dynamodb.py b/historical/common/dynamodb.py
index <HASH>..<HASH> 100644
--- a/historical/common/dynamodb.py
+++ b/historical/common/dynamodb.py
@@ -45,7 +45,7 @@ def default_diff(latest_config, current_config):
def pop_no_diff_fields(latest_config, current_config):
"""Pops off fie... | Added the eventName to the ignored field in the differ. - This is important, because the eventName will change from the Poller vs. an actual event. | py |
diff --git a/python/ray/tune/utils/util.py b/python/ray/tune/utils/util.py
index <HASH>..<HASH> 100644
--- a/python/ray/tune/utils/util.py
+++ b/python/ray/tune/utils/util.py
@@ -303,6 +303,8 @@ def unflattened_lookup(flat_key, lookup, delimiter="/", **kwargs):
Unflatten `flat_key` and iteratively look up in `look... | [tune] Lookup flat key first before trying to split (#<I>) | py |
diff --git a/flask_social/views.py b/flask_social/views.py
index <HASH>..<HASH> 100644
--- a/flask_social/views.py
+++ b/flask_social/views.py
@@ -45,7 +45,7 @@ def login(provider_id):
provider = get_provider_or_404(provider_id)
callback_url = get_authorize_callback('login', provider_id)
post_login = req... | Post-login session key config option is now respected. | py |
diff --git a/bcloud/App.py b/bcloud/App.py
index <HASH>..<HASH> 100644
--- a/bcloud/App.py
+++ b/bcloud/App.py
@@ -412,7 +412,7 @@ class App:
menu.show_all()
self.status_menu = menu
- if hasattr(__package__, 'AppIndicator'):
+ if 'AppIndicator' in globals():
self.status_ic... | Fixed: check AppIndicator in global environment | py |
diff --git a/docx2html/core.py b/docx2html/core.py
index <HASH>..<HASH> 100644
--- a/docx2html/core.py
+++ b/docx2html/core.py
@@ -895,6 +895,8 @@ def get_list_type(meta_data, numId, ilvl):
This function only cares about ordered lists, unordered lists get dealt
with elsewhere.
"""
+
+ # Early return i... | refs #<I>: added a comment | py |
diff --git a/param/parameterized.py b/param/parameterized.py
index <HASH>..<HASH> 100644
--- a/param/parameterized.py
+++ b/param/parameterized.py
@@ -2807,7 +2807,7 @@ class ParameterizedFunction(Parameterized):
def __new__(class_,*args,**params):
# Create and __call__() an instance of this class.
- ... | Include params when calling instance in __new__ This way the object created when calling fn(**kwargs) has its params set with kwargs | py |
diff --git a/util.py b/util.py
index <HASH>..<HASH> 100644
--- a/util.py
+++ b/util.py
@@ -297,9 +297,10 @@ def byte_compile (py_files,
prefix=None, base_dir=None,
verbose=1, dry_run=0,
direct=None):
- """Byte-compile a collection of Python source files to eit... | Tweaked 'byte_compile()' so it silently skips non-Python files, rather than blowing up. | py |
diff --git a/crispy_forms/templatetags/crispy_forms_filters.py b/crispy_forms/templatetags/crispy_forms_filters.py
index <HASH>..<HASH> 100644
--- a/crispy_forms/templatetags/crispy_forms_filters.py
+++ b/crispy_forms/templatetags/crispy_forms_filters.py
@@ -19,7 +19,7 @@ uni_form_template = memoize(uni_form_template, ... | Removing old filter names, deprecated | py |
diff --git a/dynamic_scraper/spiders/django_spider.py b/dynamic_scraper/spiders/django_spider.py
index <HASH>..<HASH> 100644
--- a/dynamic_scraper/spiders/django_spider.py
+++ b/dynamic_scraper/spiders/django_spider.py
@@ -16,6 +16,7 @@ from scrapy.loader.processors import TakeFirst
from scrapy.exceptions import Close... | Fixed encoding bug in django_spider.py, unit tests are now running through | py |
diff --git a/physt/plotting/matplotlib.py b/physt/plotting/matplotlib.py
index <HASH>..<HASH> 100644
--- a/physt/plotting/matplotlib.py
+++ b/physt/plotting/matplotlib.py
@@ -950,7 +950,7 @@ def _apply_xy_lims(ax: Axes, h: Union[Histogram1D, Histogram2D], data: np.ndarra
if xlim[0] <= 0:
... | Fix: xlim in matplotlib Error suggested by PyCharm | py |
diff --git a/GPy/util/caching.py b/GPy/util/caching.py
index <HASH>..<HASH> 100644
--- a/GPy/util/caching.py
+++ b/GPy/util/caching.py
@@ -38,6 +38,9 @@ class Cacher(object):
if not all([isinstance(arg, Observable) for arg in observable_args]):
return self.operation(*args)
+ # TODO: WARNI... | WARNING: switched caching off | py |
diff --git a/src/specktre/specktre.py b/src/specktre/specktre.py
index <HASH>..<HASH> 100755
--- a/src/specktre/specktre.py
+++ b/src/specktre/specktre.py
@@ -18,9 +18,6 @@ Options:
""" # noqa
import collections
-import os
-import random
-import string
import sys
import docopt | Tidy up some unused imports | py |
diff --git a/cwltool/singularity.py b/cwltool/singularity.py
index <HASH>..<HASH> 100644
--- a/cwltool/singularity.py
+++ b/cwltool/singularity.py
@@ -113,7 +113,7 @@ class SingularityCommandLineJob(ContainerCommandLineJob):
ensure_writable(host_outdir_tgt)
elif vol.type == "WritableDi... | Fix writable directory staging inside Singularity | py |
diff --git a/salt/returners/mysql.py b/salt/returners/mysql.py
index <HASH>..<HASH> 100644
--- a/salt/returners/mysql.py
+++ b/salt/returners/mysql.py
@@ -10,6 +10,7 @@ config, these are the defaults::
mysql.passwd: 'salt'
mysql.db: 'salt'
mysql.port: 3306
+ mysql.unix_socket: '/var/lib/mysql/mysql.so... | Add unix_socket option to mysql connection args. | py |
diff --git a/docs/conf.py b/docs/conf.py
index <HASH>..<HASH> 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -293,4 +293,4 @@ disqus_shortname = 'python-dependency-injector'
def setup(app):
- app.add_stylesheet('sphinx_rtd_theme-hotfix.css')
+ app.add_css_file('sphinx_rtd_theme-hotfix.css') | Fix warning at docs/conf.py | py |
diff --git a/actstream/models.py b/actstream/models.py
index <HASH>..<HASH> 100644
--- a/actstream/models.py
+++ b/actstream/models.py
@@ -1,6 +1,6 @@
from __future__ import unicode_literals
-from django.contrib.auth.models import User
+from django.conf import settings
from django.contrib.contenttypes.fields import... | Use AUTH_USER_MODEL to get user model in foreign key This was correct in the migration but the models.py source uses the Django default user model. | py |
diff --git a/pyThreadpool/thread_job.py b/pyThreadpool/thread_job.py
index <HASH>..<HASH> 100644
--- a/pyThreadpool/thread_job.py
+++ b/pyThreadpool/thread_job.py
@@ -6,7 +6,7 @@ class thread_job:
kwargs = {}
return_value = None
- def __init__(self, exec_function, args, kwds):
+ def __init__(self, exe... | Added defaults for args and kwargs. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -93,7 +93,7 @@ def role_simplifier(processor, role, argument, content):
return format.get(role, "``{}``").format(content + extra.get(role, ""))
-@rst_pre_processor.add_role("pep8")
+@rst_pre_processor.add_role("pe... | Fixed minor issue with PyPI README fixer | py |
diff --git a/glue/ligolw/ligolw.py b/glue/ligolw/ligolw.py
index <HASH>..<HASH> 100644
--- a/glue/ligolw/ligolw.py
+++ b/glue/ligolw/ligolw.py
@@ -126,12 +126,24 @@ class Element(object):
def removeChild(self, child):
"""
Remove a child from this element. The child element is
- returned, and it's parentNode e... | Add unlink() method to Element class. | py |
diff --git a/sirmordred/_version.py b/sirmordred/_version.py
index <HASH>..<HASH> 100644
--- a/sirmordred/_version.py
+++ b/sirmordred/_version.py
@@ -1,2 +1,2 @@
# Versions compliant with PEP 440 https://www.python.org/dev/peps/pep-0440
-__version__ = "0.2.6"
+__version__ = "0.2.7" | [release] Update version number to <I> | py |
diff --git a/tests/geo/surface/complex_fault_test.py b/tests/geo/surface/complex_fault_test.py
index <HASH>..<HASH> 100644
--- a/tests/geo/surface/complex_fault_test.py
+++ b/tests/geo/surface/complex_fault_test.py
@@ -160,6 +160,17 @@ class ComplexFaultSurfaceProjectionTestCase(unittest.TestCase):
numpy.testi... | tests/geo/surface/complex_fault: Added a test case for the scenario where complex fault edges have non-uniform lengths. | py |
diff --git a/pyradio/player.py b/pyradio/player.py
index <HASH>..<HASH> 100644
--- a/pyradio/player.py
+++ b/pyradio/player.py
@@ -236,6 +236,7 @@ class Player(object):
if logger.isEnabledFor(logging.DEBUG):
logger.debug("Command: {}".format(command).strip())
self.... | finally fixing python 3 subprocess.stdin.write | py |
diff --git a/openquake/job/params.py b/openquake/job/params.py
index <HASH>..<HASH> 100644
--- a/openquake/job/params.py
+++ b/openquake/job/params.py
@@ -40,6 +40,8 @@ CALCULATION_MODE = {
'Event Based': 'event_based',
'Disaggregation': 'disaggregation',
'UHS': 'uhs',
+ 'Classical BCR': 'classical_bc... | job/params.py: added new calc modes to CALCULATION_MODE const | py |
diff --git a/pylast/__init__.py b/pylast/__init__.py
index <HASH>..<HASH> 100644
--- a/pylast/__init__.py
+++ b/pylast/__init__.py
@@ -3195,9 +3195,6 @@ class User(_BaseObject, _Chartable):
This method uses caching. Enable caching only if you're pulling a
large amount of data.
-
- Use extract... | Remove broken and untested extract_items | py |
diff --git a/amino/either.py b/amino/either.py
index <HASH>..<HASH> 100644
--- a/amino/either.py
+++ b/amino/either.py
@@ -17,6 +17,7 @@ from amino.util.exception import format_exception
A = TypeVar('A')
B = TypeVar('B')
C = TypeVar('C')
+D = TypeVar('D')
E = TypeVar('E', bound=Exception)
@@ -155,7 +156,7 @@ cl... | fix signature of `Either.bimap` | py |
diff --git a/allegedb/allegedb/__init__.py b/allegedb/allegedb/__init__.py
index <HASH>..<HASH> 100644
--- a/allegedb/allegedb/__init__.py
+++ b/allegedb/allegedb/__init__.py
@@ -477,7 +477,7 @@ class ORM(object):
self._childbranch[parent].add(child)
self._branch_parents[child].add(parent)
wh... | Fix ORM._upd_branch_parentage So that it actually does update the parentage. | py |
diff --git a/docs/extensions/fancy_include.py b/docs/extensions/fancy_include.py
index <HASH>..<HASH> 100644
--- a/docs/extensions/fancy_include.py
+++ b/docs/extensions/fancy_include.py
@@ -69,7 +69,7 @@ class IncludeDirective(Directive):
rst.append(".. figure:: {}".format(image_path))
# downlo... | update docs/extensions/fancy_include.py with git_cast_file2repos.py | py |
diff --git a/pyipmi/sel.py b/pyipmi/sel.py
index <HASH>..<HASH> 100644
--- a/pyipmi/sel.py
+++ b/pyipmi/sel.py
@@ -174,7 +174,7 @@ class SelEntry(State):
self.event_direction = EVENT_DEASSERTION
else:
self.event_direction = EVENT_ASSERTION
- self.event_type = event_desc & 0x3f
... | Bitwise and correction in sel event type decoding | py |
diff --git a/compliance_checker/base.py b/compliance_checker/base.py
index <HASH>..<HASH> 100644
--- a/compliance_checker/base.py
+++ b/compliance_checker/base.py
@@ -8,8 +8,6 @@ from functools import wraps
import collections
import pprint
-#from wicken.xml_dogma import MultipleXmlDogma
-#from wicken.exceptions imp... | Cleanup: remove commented wicken refs in base | py |
diff --git a/safe_qgis/map.py b/safe_qgis/map.py
index <HASH>..<HASH> 100644
--- a/safe_qgis/map.py
+++ b/safe_qgis/map.py
@@ -37,8 +37,7 @@ from safe_qgis.keyword_io import KeywordIO
from safe_qgis.map_legend import MapLegend
from safe_qgis.utilities import (setupPrinter,
pointsToMM... | and here comes the saviour bringing back the blue dots... hopefully | py |
diff --git a/salt/key.py b/salt/key.py
index <HASH>..<HASH> 100644
--- a/salt/key.py
+++ b/salt/key.py
@@ -522,7 +522,6 @@ class Key(object):
opts['transport'],
opts=opts,
listen=False)
- self.client = salt.client.get_local_client(mopts=self.opts)
def _ch... | Delay loading of client in key cli No need to load this early and doing so actually makes testing a little harder. | py |
diff --git a/socialregistration/contrib/twitter/tests.py b/socialregistration/contrib/twitter/tests.py
index <HASH>..<HASH> 100644
--- a/socialregistration/contrib/twitter/tests.py
+++ b/socialregistration/contrib/twitter/tests.py
@@ -4,7 +4,7 @@ from django.test import TestCase
from socialregistration.contrib.twitter... | Fix Twitter tests for #<I> The new endpoint returned JSON data and not urlencoded data | py |
diff --git a/tests/ipopo/test_validate_component.py b/tests/ipopo/test_validate_component.py
index <HASH>..<HASH> 100644
--- a/tests/ipopo/test_validate_component.py
+++ b/tests/ipopo/test_validate_component.py
@@ -146,7 +146,7 @@ class ValidateComponentTest(unittest.TestCase):
@decorators.ComponentFactory(f... | Fixed tests to work with Python <I> Was using @Property without inheriting object | py |
diff --git a/tests/test_core.py b/tests/test_core.py
index <HASH>..<HASH> 100644
--- a/tests/test_core.py
+++ b/tests/test_core.py
@@ -94,15 +94,3 @@ def test_transaction_exists(monkeypatch, items, exists):
RqlQuery, 'run', lambda x, y: namedtuple('response', 'items')(items))
bigchain = Bigchain(public_ke... | Remove unnecessary test Checking whether or not write_transaction modifies a dict is not relevant anymore, as no dict is passed. | py |
diff --git a/project_generator/commands/build.py b/project_generator/commands/build.py
index <HASH>..<HASH> 100644
--- a/project_generator/commands/build.py
+++ b/project_generator/commands/build.py
@@ -25,11 +25,15 @@ def run(args):
# Export if we know how, otherwise return
if os.path.exists(args.file):
... | Build command - failure return if any of the test fails to export/build | py |
diff --git a/example.py b/example.py
index <HASH>..<HASH> 100644
--- a/example.py
+++ b/example.py
@@ -12,11 +12,10 @@ bot = SirBot(token)
# Example quote of the day plugin
async def get_quote_of_the_day():
url = 'http://api.theysaidso.com/qod.json'
- async with aiohttp.ClientSession() as session:
- as... | Remove client session from example bot, we only need a single request | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -134,6 +134,10 @@ commands = {'build_doc': build_doc,
desc = open("README.rst").read() + "\n" + open("CHANGES.rst").read()
+system_specific_deps = {
+ 'posix': ['dbus', 'gobject'],
+ }
+
# start the distuti... | Mark python-dbus and python-gobject POSIX-specific requirements. | py |
diff --git a/btlewrap/base.py b/btlewrap/base.py
index <HASH>..<HASH> 100644
--- a/btlewrap/base.py
+++ b/btlewrap/base.py
@@ -42,7 +42,7 @@ class _BackendConnection(object): # pylint: disable=too-few-public-methods
self._lock.acquire()
try:
self._backend.connect(self._mac)
- exce... | Release lock unconditionally if connect() fails | py |
diff --git a/sciunit/scores/base.py b/sciunit/scores/base.py
index <HASH>..<HASH> 100644
--- a/sciunit/scores/base.py
+++ b/sciunit/scores/base.py
@@ -8,15 +8,15 @@ from sciunit.base import SciUnit
from sciunit.utils import log, config_get
from sciunit.errors import InvalidScoreError
from typing import Union, Tuple
... | Update type hints for Score's constructor | py |
diff --git a/everett/manager.py b/everett/manager.py
index <HASH>..<HASH> 100644
--- a/everett/manager.py
+++ b/everett/manager.py
@@ -603,7 +603,7 @@ class ConfigIniEnv(object):
self.cfg.update(self.parse_ini_file(path))
break
- def parse_ini_file(cls, path):
+ def parse_ini_f... | Cosmetic: Fix cls -> self | py |
diff --git a/telethon/client/messages.py b/telethon/client/messages.py
index <HASH>..<HASH> 100644
--- a/telethon/client/messages.py
+++ b/telethon/client/messages.py
@@ -1210,9 +1210,7 @@ class MessageMethods:
message = await client.send_message(chat, 'Pinotifying is fun!')
await clie... | Fix pin_message not accepting Message objects (#<I>) | py |
diff --git a/ELiDE/ELiDE/statlist.py b/ELiDE/ELiDE/statlist.py
index <HASH>..<HASH> 100644
--- a/ELiDE/ELiDE/statlist.py
+++ b/ELiDE/ELiDE/statlist.py
@@ -240,7 +240,7 @@ class StatListView(ListView):
return {
k: (k, v) for (k, v) in self.mirror.items()
if (
- k[0] != '... | Permit viewing of non-str keys | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -5,6 +5,10 @@ from setuptools import setup
from capidup.version import __version__
+def read_file(path):
+ with open(path, 'r') as f:
+ return f.read()
+
setup(
name='capidup',
description='Quickly fi... | setup.py: Use long description directly from README.rst. Will be useful for PyPi, which formats the description nicely. | py |
diff --git a/src/rez/plugin_managers.py b/src/rez/plugin_managers.py
index <HASH>..<HASH> 100644
--- a/src/rez/plugin_managers.py
+++ b/src/rez/plugin_managers.py
@@ -9,6 +9,7 @@ from rez.utils.data_utils import LazySingleton, cached_property
from rez.utils.logging_ import print_debug, print_warning
from rez.exceptio... | plugin_managers: don't reload plugin modules | py |
diff --git a/programs/pmag_gui.py b/programs/pmag_gui.py
index <HASH>..<HASH> 100755
--- a/programs/pmag_gui.py
+++ b/programs/pmag_gui.py
@@ -25,10 +25,7 @@ from dialogs import ErMagicBuilder
from dialogs import demag_dialogs
from dialogs import pmag_widgets as pw
-try:
- from programs import demag_gui
-except:... | Pmag GUI should always import demag gui and demag gui should not write to log file when called from Pmag GUI | py |
diff --git a/phoebe/parameters/parameters.py b/phoebe/parameters/parameters.py
index <HASH>..<HASH> 100644
--- a/phoebe/parameters/parameters.py
+++ b/phoebe/parameters/parameters.py
@@ -2274,7 +2274,14 @@ class ParameterSet(object):
# TODO: include zparam.uniquetwig if axes_3d
default_label =... | fixed broken plot legend labels closes #<I> problem wasn't that the labels were being truncated, but rather that the logic which compared the twigs for the x and y parameter was causing overlap in the end of the parameter. For example, 'fluxes' and 'times' would still result in keeping the 'es@' at the beginning of ... | py |
diff --git a/ceph_deploy/misc.py b/ceph_deploy/misc.py
index <HASH>..<HASH> 100644
--- a/ceph_deploy/misc.py
+++ b/ceph_deploy/misc.py
@@ -1,14 +1,4 @@
-def get_file(path):
- """
- Run on mon node, grab a file.
- """
- try:
- with file(path, 'rb') as f:
- return f.read()
- except IOEr... | move a misc function to remotes | py |
diff --git a/asammdf/utils.py b/asammdf/utils.py
index <HASH>..<HASH> 100644
--- a/asammdf/utils.py
+++ b/asammdf/utils.py
@@ -45,6 +45,7 @@ __all__ = [
'MDF2_VERSIONS',
'MDF3_VERSIONS',
'MDF4_VERSIONS',
+ 'SUPPORTED_VERSIONS',
]
CHANNEL_COUNT = (
@@ -693,7 +694,7 @@ def validate_memory_argument(m... | small fix for warning message in case of wrong memory option | py |
diff --git a/dynamic_dynamodb/dynamic_dynamodb.py b/dynamic_dynamodb/dynamic_dynamodb.py
index <HASH>..<HASH> 100755
--- a/dynamic_dynamodb/dynamic_dynamodb.py
+++ b/dynamic_dynamodb/dynamic_dynamodb.py
@@ -260,7 +260,12 @@ class DynamicDynamoDB:
"""
self._ensure_dynamodb_connection()
table =... | Now supporting dry run And some output fixed | py |
diff --git a/mapchete/config/_parse_input.py b/mapchete/config/_parse_input.py
index <HASH>..<HASH> 100644
--- a/mapchete/config/_parse_input.py
+++ b/mapchete/config/_parse_input.py
@@ -182,6 +182,8 @@ def _input_worker(conf_dir, pyramid, pixelbuffer, kv):
input_obj, _input_reader
... | raise more meaningful TypeError if input type cannot be identified | py |
diff --git a/c7n/policy.py b/c7n/policy.py
index <HASH>..<HASH> 100644
--- a/c7n/policy.py
+++ b/c7n/policy.py
@@ -32,6 +32,7 @@ from c7n.ctx import ExecutionContext
from c7n.credentials import SessionFactory
from c7n.manager import resources
from c7n.output import DEFAULT_NAMESPACE
+from c7n.resources import load_r... | cli - add warning when policies malformed (rather than a stacktrace) #<I> (#<I>) | py |
diff --git a/psiturk/experiment.py b/psiturk/experiment.py
index <HASH>..<HASH> 100644
--- a/psiturk/experiment.py
+++ b/psiturk/experiment.py
@@ -460,7 +460,7 @@ def completed():
adequately debriefed, and that response is logged in the database.
"""
print "accessing the /complete route"
- if not (req... | fixing request.args typo in /complete route | py |
diff --git a/arcana/repository/xnat.py b/arcana/repository/xnat.py
index <HASH>..<HASH> 100644
--- a/arcana/repository/xnat.py
+++ b/arcana/repository/xnat.py
@@ -138,7 +138,8 @@ class XnatRepository(BaseRepository):
@property
def session_filter(self):
- return re.compile(self._session_filter)
+ ... | fixed up session filter if it is None | py |
diff --git a/adafruit_mcp230xx/mcp23017.py b/adafruit_mcp230xx/mcp23017.py
index <HASH>..<HASH> 100644
--- a/adafruit_mcp230xx/mcp23017.py
+++ b/adafruit_mcp230xx/mcp23017.py
@@ -3,6 +3,8 @@
#
# SPDX-License-Identifier: MIT
+# pylint: disable=too-many-public-methods
+
"""
`mcp23017`
=============================... | Update mcp<I>.py fixing incorrect ipol property setters | py |
diff --git a/netmiko/base_connection.py b/netmiko/base_connection.py
index <HASH>..<HASH> 100644
--- a/netmiko/base_connection.py
+++ b/netmiko/base_connection.py
@@ -1034,7 +1034,8 @@ class BaseConnection(object):
delay_factor = self.select_delay_factor(delay_factor)
command = self.normalize_cmd(comm... | Improving reliability of set_terminal_width (#<I>) | py |
diff --git a/scanpy/neighbors/__init__.py b/scanpy/neighbors/__init__.py
index <HASH>..<HASH> 100644
--- a/scanpy/neighbors/__init__.py
+++ b/scanpy/neighbors/__init__.py
@@ -38,7 +38,7 @@ def neighbors(
----------
adata : :class:`~scanpy.api.AnnData`
Annotated data matrix.
- n_neighbors : `int`, ... | default n_neighbors to <I> | py |
diff --git a/zinnia/views/trackback.py b/zinnia/views/trackback.py
index <HASH>..<HASH> 100644
--- a/zinnia/views/trackback.py
+++ b/zinnia/views/trackback.py
@@ -30,8 +30,8 @@ def entry_trackback(request, slug):
if not error:
comment, created = Comment.objects.get_or_create(
cont... | better get_or_create for trackbacks | py |
diff --git a/Tree/draw.py b/Tree/draw.py
index <HASH>..<HASH> 100644
--- a/Tree/draw.py
+++ b/Tree/draw.py
@@ -69,7 +69,7 @@ class Drawer(object):
for branch in level:
self._draw_branch(branch, color, thickness, age)
-class PillowDrawer(Drawer):
+class PilDrawer(Drawer):
"""A drawer... | change PillowDrawer to PilDrawer and dict with supported Canvases | py |
diff --git a/indra/explanation/pathfinding/util.py b/indra/explanation/pathfinding/util.py
index <HASH>..<HASH> 100644
--- a/indra/explanation/pathfinding/util.py
+++ b/indra/explanation/pathfinding/util.py
@@ -90,12 +90,17 @@ def get_sorted_neighbors(G, node, reverse, hashes=[]):
List of hashes specifying (if... | Fix edge filtering by hashes on BFS | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -31,6 +31,10 @@ setup(name='delocate',
author_email='matthew.brett@gmail.com',
url='http://github.com/matthew-brett/delocate',
packages=['delocate', 'delocate.tests'],
+ install_requires=[
+ ... | Add windows requirements to setup.py | py |
diff --git a/taskw/warrior.py b/taskw/warrior.py
index <HASH>..<HASH> 100644
--- a/taskw/warrior.py
+++ b/taskw/warrior.py
@@ -501,6 +501,26 @@ class TaskWarriorShellout(TaskWarriorBase):
return results
def filter_tasks(self, filter_dict):
+ """ Return a filtered list of tasks from taskwarrior.
+... | Adding a docstring. | py |
diff --git a/mot/model_building/model_builders.py b/mot/model_building/model_builders.py
index <HASH>..<HASH> 100644
--- a/mot/model_building/model_builders.py
+++ b/mot/model_building/model_builders.py
@@ -410,6 +410,13 @@ class OptimizeModelBuilder(ModelBuilder):
return [self._upper_bounds['{}.{}'.format(m.n... | Adds method to get the initial parameters of a model | py |
diff --git a/pysnmp/entity/config.py b/pysnmp/entity/config.py
index <HASH>..<HASH> 100644
--- a/pysnmp/entity/config.py
+++ b/pysnmp/entity/config.py
@@ -327,7 +327,7 @@ def addV3User(snmpEngine, userName,
authKey and authKey.prettyPrint(),
privKey and privKey.prettyPrint(),
secu... | Fix USM configuration for the case of partial keys | py |
diff --git a/astrobase/varclass/fakelcrecovery.py b/astrobase/varclass/fakelcrecovery.py
index <HASH>..<HASH> 100644
--- a/astrobase/varclass/fakelcrecovery.py
+++ b/astrobase/varclass/fakelcrecovery.py
@@ -1426,6 +1426,8 @@ def periodicvar_recovery(fakepfpkl,
# period_tolerance
for rp... | fakelcrecovery: added periodicvar_recovery fn, now testing... | py |
diff --git a/pychromecast/controllers/__init__.py b/pychromecast/controllers/__init__.py
index <HASH>..<HASH> 100644
--- a/pychromecast/controllers/__init__.py
+++ b/pychromecast/controllers/__init__.py
@@ -138,7 +138,7 @@ class BaseController(abc.ABC):
no_add_request_id=no_add_request_id,
)
- ... | Prepare for pylint <I> (#<I>) | py |
diff --git a/klab/box_backup.py b/klab/box_backup.py
index <HASH>..<HASH> 100644
--- a/klab/box_backup.py
+++ b/klab/box_backup.py
@@ -194,7 +194,8 @@ class BoxAPI:
self.lock_files( uploaded_file_ids )
if verify:
- assert( self.verify_uploaded_file( destination... | Changing verify function to return False instead of throw exception if verification fails This enables the logic that repeats upload failures to not have to repeat failed verifications | py |
diff --git a/import-js.py b/import-js.py
index <HASH>..<HASH> 100644
--- a/import-js.py
+++ b/import-js.py
@@ -63,11 +63,12 @@ class ImportJsCommand(sublime_plugin.TextCommand):
except FileNotFoundError as e:
sublime.error_message(no_executable_error(executable))
raise e
+
result = proc.communic... | Add line breaks to sublime error message It was a little difficult to understand where the stderr output started so I improved this by adding some line breaks. | py |
diff --git a/salt/config/__init__.py b/salt/config/__init__.py
index <HASH>..<HASH> 100644
--- a/salt/config/__init__.py
+++ b/salt/config/__init__.py
@@ -1912,7 +1912,7 @@ def cloud_config(path, env_var='SALT_CLOUD_CONFIG', defaults=None,
providers_config_path=None, providers_config=None,
... | Fix reading and applying Salt Cloud default configuration | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -5,7 +5,7 @@ from distutils.core import setup
description = "A wrapper around Kenneth Reitz' tablib to work with Django models."
-VERSION = '2.4'
+VERSION = '2.4.1'
setup(
name='django-tablib', | Upped version to <I>. | py |
diff --git a/_setup_support.py b/_setup_support.py
index <HASH>..<HASH> 100644
--- a/_setup_support.py
+++ b/_setup_support.py
@@ -182,7 +182,7 @@ def fixup_for_packaged():
None
'''
- if exists(join(ROOT, 'PKG-INFOvi ')):
+ if exists(join(ROOT, 'PKG-INFO')):
if "--build-js" in sys.argv or... | fix typo that breaks sdists (#<I>) | py |
diff --git a/dvc/command/merge.py b/dvc/command/merge.py
index <HASH>..<HASH> 100644
--- a/dvc/command/merge.py
+++ b/dvc/command/merge.py
@@ -10,7 +10,6 @@ from dvc.command.checkout import CmdCheckout
from dvc.command.run import CommandFile
-
class CmdMerge(CmdBase):
def __init__(self, settings):
s... | merge: just throw exception when can't load *state file | py |
diff --git a/sigal/writer.py b/sigal/writer.py
index <HASH>..<HASH> 100644
--- a/sigal/writer.py
+++ b/sigal/writer.py
@@ -144,6 +144,8 @@ class Writer(object):
if relpath != '.':
ctx['breadcumb'] = self.get_breadcumb(paths, relpath)
+ ctx['settings']['zip_gallery'] = not not paths[relpat... | Set zip_gallery to TRUE only if archive exists | py |
diff --git a/creepy/crawler.py b/creepy/crawler.py
index <HASH>..<HASH> 100644
--- a/creepy/crawler.py
+++ b/creepy/crawler.py
@@ -76,6 +76,7 @@ class Crawler(object):
def process_document(self, doc):
print 'GET', doc.status, doc.url
+ #to do stuff with url depth use self.calc_depth(doc.url)
... | Update crawler.py added feature for max url depth | py |
diff --git a/plugins/worker/server/__init__.py b/plugins/worker/server/__init__.py
index <HASH>..<HASH> 100644
--- a/plugins/worker/server/__init__.py
+++ b/plugins/worker/server/__init__.py
@@ -64,7 +64,8 @@ class CustomJobStatus(object):
valid_celery_transitions = {
JobStatus.QUEUED: [JobStatus.INACTIVE... | Allow transition from inactive to canceled This is the transition that occurs when a celery sheduled task is revoked. | py |
diff --git a/cmsplugin_filer_utils/__init__.py b/cmsplugin_filer_utils/__init__.py
index <HASH>..<HASH> 100644
--- a/cmsplugin_filer_utils/__init__.py
+++ b/cmsplugin_filer_utils/__init__.py
@@ -10,5 +10,5 @@ class FilerPluginManager(models.Manager):
def get_query_set(self):
qs = super(FilerPluginManager,... | Use prefetch related to trigger polymorphic downcast. | py |
diff --git a/mutant/tests/models/model.py b/mutant/tests/models/model.py
index <HASH>..<HASH> 100644
--- a/mutant/tests/models/model.py
+++ b/mutant/tests/models/model.py
@@ -5,11 +5,11 @@ from django.core.management import call_command
from django.db import models, router
from django.db.utils import IntegrityError
... | Added additionnal tests to make sure _ModelClassProxy is considered a MutantModel instance | py |
diff --git a/src/python/pants/backend/jvm/tasks/jvm_compile/java/java_compile.py b/src/python/pants/backend/jvm/tasks/jvm_compile/java/java_compile.py
index <HASH>..<HASH> 100644
--- a/src/python/pants/backend/jvm/tasks/jvm_compile/java/java_compile.py
+++ b/src/python/pants/backend/jvm/tasks/jvm_compile/java/java_comp... | Align JmakeCompile error messages with reality. Point suppliers of -source and -target directly to the jvm to use [jvm-platform]. Testing Done: CI is away here: <URL> | py |
diff --git a/curdling/services/downloader.py b/curdling/services/downloader.py
index <HASH>..<HASH> 100644
--- a/curdling/services/downloader.py
+++ b/curdling/services/downloader.py
@@ -297,13 +297,24 @@ class Downloader(Service):
response.read(cache_content=True, decode_content=False))
def _downlo... | Support for most common VCS links. Closes #9 | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -10,7 +10,7 @@ def unique_flatten_dict(d):
core_requires = ['numpy', 'pandas >= 0.17.0', 'pyarrow >= 0.15.0', 'requests', 'protobuf >= 2.6.0']
dev_extras = {
- 'docs': ['sphinx==3.2.1', 'sphinx_autodoc_typehints==1.11.1... | fix(docs): force theme | py |
diff --git a/cli/system.py b/cli/system.py
index <HASH>..<HASH> 100644
--- a/cli/system.py
+++ b/cli/system.py
@@ -53,11 +53,11 @@ class metaclass(type):
try:
result = getattr(cls.__originmodule__, value)(*args, **kwargs)
if log:
- log.write(' # OK\n')
... | [minor] Remove indents from log | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -20,7 +20,7 @@
from setuptools import setup, find_packages
-from launch_control import get_version
+from dashboard_app import get_version
setup( | Use dashboard_app for version information for setup.py | py |
diff --git a/netpyne/metadata/metadata.py b/netpyne/metadata/metadata.py
index <HASH>..<HASH> 100644
--- a/netpyne/metadata/metadata.py
+++ b/netpyne/metadata/metadata.py
@@ -1205,7 +1205,6 @@ metadata = {
"options": [
"i",
... | #<I> clean up first draft of metadata | py |
diff --git a/charmhelpers/contrib/openstack/context.py b/charmhelpers/contrib/openstack/context.py
index <HASH>..<HASH> 100644
--- a/charmhelpers/contrib/openstack/context.py
+++ b/charmhelpers/contrib/openstack/context.py
@@ -37,7 +37,6 @@ from charmhelpers.contrib.hahelpers.apache import (
)
from charmhelpers.con... | Pass network manager to plugin attribute from base context. | py |
diff --git a/src/foremast/exceptions.py b/src/foremast/exceptions.py
index <HASH>..<HASH> 100644
--- a/src/foremast/exceptions.py
+++ b/src/foremast/exceptions.py
@@ -75,10 +75,13 @@ class SpinnakerTaskError(SpinnakerError):
def __init__(self, task_state):
errors = []
+
+ skip_statuses = GOOD_STA... | refactor: Avoid extra union in loop | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.