diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/vent/menus/tools.py b/vent/menus/tools.py
index <HASH>..<HASH> 100644
--- a/vent/menus/tools.py
+++ b/vent/menus/tools.py
@@ -130,7 +130,7 @@ class ToolForm(npyscreen.ActionForm):
reconfirmation_str = "Are you sure you want to " + self.action['action_name'] + " core containers?"
... | Deleted extra whitespace on blank line | py |
diff --git a/wordcloud/tokenization.py b/wordcloud/tokenization.py
index <HASH>..<HASH> 100644
--- a/wordcloud/tokenization.py
+++ b/wordcloud/tokenization.py
@@ -5,7 +5,7 @@ from collections import defaultdict
from math import log
-def l(k, n, x): # noqa: E743
+def l(k, n, x): # noqa: E741, E743
# dunning'... | flake8: Address error reported when using flake8 >= <I> | py |
diff --git a/src/pytest_cov/embed.py b/src/pytest_cov/embed.py
index <HASH>..<HASH> 100644
--- a/src/pytest_cov/embed.py
+++ b/src/pytest_cov/embed.py
@@ -97,8 +97,8 @@ def cleanup():
_active_cov = None
_cleanup_in_progress = False
if _pending_signal:
- _signal_cleanup_handler(*_pending_signal)
... | Avoid getting into infinite recursion when clearing off _pending_signal. Better to lose a _pending_signal. The alternative is to use a signal mask but that is not so portable (we can still add that for linux tho). Ref #<I>. | py |
diff --git a/ns_api/ns_api.py b/ns_api/ns_api.py
index <HASH>..<HASH> 100644
--- a/ns_api/ns_api.py
+++ b/ns_api/ns_api.py
@@ -140,7 +140,16 @@ def list_merge(list_a, list_b):
Returns:
New list with deduplicated items from list_a and list_b
"""
- return list(collections.OrderedDict.fromkeys(list_a +... | List merge didn't work for more complicated objects | py |
diff --git a/Lib/fontbakery/specifications/general.py b/Lib/fontbakery/specifications/general.py
index <HASH>..<HASH> 100644
--- a/Lib/fontbakery/specifications/general.py
+++ b/Lib/fontbakery/specifications/general.py
@@ -159,6 +159,8 @@ def com_google_fonts_check_037(font):
fval_exec = 'FontValidator'
e... | Raise NotImplementedError if user's system is not Unix based or Win | py |
diff --git a/tests/stub_sftp.py b/tests/stub_sftp.py
index <HASH>..<HASH> 100644
--- a/tests/stub_sftp.py
+++ b/tests/stub_sftp.py
@@ -172,7 +172,7 @@ class StubSFTPServer (SFTPServerInterface):
target_path = '<error>'
try:
os.symlink(target_path, path)
- except:
+ e... | [project @ <EMAIL><I>-1c<I>c<I>b<I>d] fix exception-catching error found by alexander belchenko | py |
diff --git a/SQL.py b/SQL.py
index <HASH>..<HASH> 100644
--- a/SQL.py
+++ b/SQL.py
@@ -150,6 +150,16 @@ class Database( object ):
result = {}
return result
+ def GetAllRows( self ):
+ if not self.recordSet.EOF:
+ data = self.recordSet.GetRows( -1, 0 )
+ # transpose the data
+ data = apply( zip, d... | Restored method GetAllRows() which returns all data as a list of lists. | py |
diff --git a/duolingo.py b/duolingo.py
index <HASH>..<HASH> 100644
--- a/duolingo.py
+++ b/duolingo.py
@@ -26,6 +26,8 @@ class DuolingoException(Exception):
class Duolingo(object):
+ USER_AGENT = "Python Duolingo API/{}".format(__version__)
+
def __init__(self, username, password):
self.username =... | Setting user agent, as sessions endpoint is blocked for python requests | py |
diff --git a/proselint/checks/weasel_words/very.py b/proselint/checks/weasel_words/very.py
index <HASH>..<HASH> 100644
--- a/proselint/checks/weasel_words/very.py
+++ b/proselint/checks/weasel_words/very.py
@@ -10,7 +10,7 @@ date: 2014-06-10 12:31:19
categories: writing
---
-Substitute 'damn' every time you'r... | Move semicolon out of quotes in weasel_words/very | py |
diff --git a/psamm/datasource/sbml.py b/psamm/datasource/sbml.py
index <HASH>..<HASH> 100644
--- a/psamm/datasource/sbml.py
+++ b/psamm/datasource/sbml.py
@@ -81,7 +81,7 @@ class ParseError(Exception):
class _SBMLEntry(object):
- """Base class for compound and reaction entries"""
+ """Base class for compound... | sbml: Allow access to annotations | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -8,7 +8,7 @@ setup(
version = __version__,
packages = ['dolo'],
- test_suite='tests',
+ test_suite='dolo.tests',
scripts = ['bin/dolo-recs.py', 'bin/dolo-matlab.py'], | BUG: corrected test location in setup.py | py |
diff --git a/pkglib/tests/unit/setuptools/command/runner.py b/pkglib/tests/unit/setuptools/command/runner.py
index <HASH>..<HASH> 100644
--- a/pkglib/tests/unit/setuptools/command/runner.py
+++ b/pkglib/tests/unit/setuptools/command/runner.py
@@ -778,8 +778,7 @@ def run_setuptools(f, cmd, dist=None, dist_attrs=None, ar... | __create__ isn't used in pkglib. | py |
diff --git a/calloway/settings.py b/calloway/settings.py
index <HASH>..<HASH> 100644
--- a/calloway/settings.py
+++ b/calloway/settings.py
@@ -185,6 +185,8 @@ CATEGORIES_RELATION_MODELS = ['pollit.poll',]
INTERNAL_IPS = ('127.0.0.1',)
+STATIC_MEDIA_PURGE_OLD_FILES = False
+
DEBUG_TOOLBAR_PANELS = (
'debug_to... | Have staticmediamgr NOT purge the destination directory by default. | py |
diff --git a/form_error_reporting.py b/form_error_reporting.py
index <HASH>..<HASH> 100644
--- a/form_error_reporting.py
+++ b/form_error_reporting.py
@@ -183,7 +183,8 @@ class GARequestErrorReportingMixin(GAErrorReportingMixin):
request = self.get_ga_request()
if not request:
return quer... | Respect forwarded header when reporting user’s IP address | py |
diff --git a/config/src/main/config/portal/default/redbox/scripts/report/lookup.py b/config/src/main/config/portal/default/redbox/scripts/report/lookup.py
index <HASH>..<HASH> 100644
--- a/config/src/main/config/portal/default/redbox/scripts/report/lookup.py
+++ b/config/src/main/config/portal/default/redbox/scripts/re... | UoN Reporting - keeping up with creator index rename | py |
diff --git a/falafel/mappers/uname.py b/falafel/mappers/uname.py
index <HASH>..<HASH> 100644
--- a/falafel/mappers/uname.py
+++ b/falafel/mappers/uname.py
@@ -260,6 +260,7 @@ class Uname(MapperOutput):
data['arch'] = None
else:
data['release'] = data['release_arch']
+ d... | If no arch info, set self.arch to None by default | py |
diff --git a/edisgo/flex_opt/storage_integration.py b/edisgo/flex_opt/storage_integration.py
index <HASH>..<HASH> 100644
--- a/edisgo/flex_opt/storage_integration.py
+++ b/edisgo/flex_opt/storage_integration.py
@@ -69,7 +69,8 @@ def storage_at_hvmv_substation(mv_grid, parameters, nominal_capacity=1000):
... | Add missing geom for storage (takes MV stations geom) | py |
diff --git a/autopep8.py b/autopep8.py
index <HASH>..<HASH> 100755
--- a/autopep8.py
+++ b/autopep8.py
@@ -1738,9 +1738,15 @@ def refactor(source, fixer_names, ignore=None, filename=''):
Skip if ignore string is produced in the refactored code.
"""
+ not_found_end_of_file_newline = source and source.rstr... | when processing 2to3, be sure to add end of file newline | py |
diff --git a/colormath/color_diff.py b/colormath/color_diff.py
index <HASH>..<HASH> 100644
--- a/colormath/color_diff.py
+++ b/colormath/color_diff.py
@@ -131,7 +131,7 @@ def delta_e_cie2000(color1, color2, Kl=1, Kc=1, Kh=1):
delta_hp = diff_h2p_h1p
elif (fabs(diff_h2p_h1p) > 180) and (h2p <= h1p):
... | Make sure delta_hp gets set, worse case. | py |
diff --git a/pychromecast/socket_client.py b/pychromecast/socket_client.py
index <HASH>..<HASH> 100644
--- a/pychromecast/socket_client.py
+++ b/pychromecast/socket_client.py
@@ -665,7 +665,11 @@ class HeartbeatController(BaseController):
def ping(self):
""" Send a ping message. """
self.last_pin... | Handle NotConnected exception while pinging. NotConnected exceptions were not being caught be the HeartbeatController. This was causing exceptions while trying to Ping the Chromecast after the socket dropped out. | py |
diff --git a/cme/protocols/rdp.py b/cme/protocols/rdp.py
index <HASH>..<HASH> 100644
--- a/cme/protocols/rdp.py
+++ b/cme/protocols/rdp.py
@@ -131,7 +131,7 @@ class rdp(connection):
self.domain = self.args.domain
if self.args.local_auth:
- self.domain = self.args.domain
+ ... | Fix rdp local-auth issue | py |
diff --git a/lib/search_engine.py b/lib/search_engine.py
index <HASH>..<HASH> 100644
--- a/lib/search_engine.py
+++ b/lib/search_engine.py
@@ -354,8 +354,11 @@ except Exception:
def get_collection_reclist(coll):
"""Return hitset of recIDs that belong to the collection 'coll'."""
collection_reclist_cache.recr... | WebSearch: get_collection_reclist() fix * For non-existing collections, get_collection_reclist() was leading to a traceback. (This could have been observed e.g. when the admin sets up a viewrestrcoll rule with a typo in the collection name.) This patch fixes the problem. | py |
diff --git a/chatterbot/adapters/storage/mongodb.py b/chatterbot/adapters/storage/mongodb.py
index <HASH>..<HASH> 100644
--- a/chatterbot/adapters/storage/mongodb.py
+++ b/chatterbot/adapters/storage/mongodb.py
@@ -170,7 +170,7 @@ class MongoDatabaseAdapter(StorageAdapter):
statement.remove_response(statem... | Update depricated delete method in mongo adapter. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -276,11 +276,11 @@ PACKAGE_DIRECTORIES = {
}
INSTALL_REQUIRES = (
- 'six>=1.5.2',
+ "six>=1.5.2",
+ "futures>=2.2.0 ; python_version<'3.2'",
+ "enum34>=1.0.4 ; python_version<'3.4'"
)
-if not PY3:
- INSTALL... | adding python version environmental markers in the new style | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -26,7 +26,7 @@ from os import path
root = 'genometools'
name = 'genometools'
-version = '0.2.5'
+version = '0.2.6'
here = path.abspath(path.dirname(__file__))
description = 'GenomeTools: A Python Framework for Analyzin... | update xlmhg version dependency | py |
diff --git a/csv_ical/convert.py b/csv_ical/convert.py
index <HASH>..<HASH> 100644
--- a/csv_ical/convert.py
+++ b/csv_ical/convert.py
@@ -4,6 +4,7 @@ There are a bunch of configurable variables
"""
import csv
+import datetime
from platform import uname
from typing import Dict, List # NOQA
from uuid import uuid... | Add a dtstamp even property to the ical output | py |
diff --git a/bika/lims/browser/analysisrequest.py b/bika/lims/browser/analysisrequest.py
index <HASH>..<HASH> 100644
--- a/bika/lims/browser/analysisrequest.py
+++ b/bika/lims/browser/analysisrequest.py
@@ -12,7 +12,7 @@ from bika.lims import logger
from bika.lims.browser.analyses import AnalysesView
from bika.lims.b... | Name collision: Publish Function and permission. | py |
diff --git a/autocorrect/utils.py b/autocorrect/utils.py
index <HASH>..<HASH> 100644
--- a/autocorrect/utils.py
+++ b/autocorrect/utils.py
@@ -23,7 +23,7 @@ RE = '[A-Za-z]+'
def words_from_archive(filename, include_dups=False, map_case=False):
"""extract words from a text file in the archive"""
bz2 = os.path... | Fix problem when loading the txt files on windows os.path.join('words', filename) created a windows like address while the tarfile package uses linux like file addresses | py |
diff --git a/sherlock/transient_classifier.py b/sherlock/transient_classifier.py
index <HASH>..<HASH> 100644
--- a/sherlock/transient_classifier.py
+++ b/sherlock/transient_classifier.py
@@ -1329,6 +1329,8 @@ class transient_classifier():
# start_time = time.time()
# print "COLLECTING TRANSIENTS WITH ... | fixing memory issue with query that updates the annotations | py |
diff --git a/src/cattrs/__init__.py b/src/cattrs/__init__.py
index <HASH>..<HASH> 100644
--- a/src/cattrs/__init__.py
+++ b/src/cattrs/__init__.py
@@ -1,14 +1,15 @@
-from .converters import BaseConverter, Converter, UnstructureStrategy
+from .converters import BaseConverter, Converter, GenConverter, UnstructureStrategy... | Reëxport GenConverter from cattrs | py |
diff --git a/salt/modules/aptpkg.py b/salt/modules/aptpkg.py
index <HASH>..<HASH> 100644
--- a/salt/modules/aptpkg.py
+++ b/salt/modules/aptpkg.py
@@ -2552,7 +2552,7 @@ def set_selections(path=None, selection=None, clear=False, saltenv='base'):
)
if clear:
- cmd = 'dpkg --clear-select... | Pass cmd as a list to _call_apt, not a string | py |
diff --git a/spyderlib/widgets/sourcecode/syntaxhighlighters.py b/spyderlib/widgets/sourcecode/syntaxhighlighters.py
index <HASH>..<HASH> 100644
--- a/spyderlib/widgets/sourcecode/syntaxhighlighters.py
+++ b/spyderlib/widgets/sourcecode/syntaxhighlighters.py
@@ -203,7 +203,8 @@ class BaseSH(QSyntaxHighlighter):
... | Ensured lines are max <I> characters. | py |
diff --git a/aiger/aig.py b/aiger/aig.py
index <HASH>..<HASH> 100644
--- a/aiger/aig.py
+++ b/aiger/aig.py
@@ -81,9 +81,7 @@ class AIG:
return repr(self._to_aag())
def __getitem__(self, others):
- if not isinstance(others, tuple):
- return super().__getitem__(others)
-
+ assert ... | change getitem to only support substitute | py |
diff --git a/pprofile.py b/pprofile.py
index <HASH>..<HASH> 100755
--- a/pprofile.py
+++ b/pprofile.py
@@ -481,8 +481,8 @@ class ThreadProfile(Profile):
trace event (typically a "line" event) before they can notice the
disabling.
"""
- def __init__(self, verbose=False):
- super(ThreadProfile, s... | ThreadProfile: Forward all keyword args to superclass. | py |
diff --git a/chess/__init__.py b/chess/__init__.py
index <HASH>..<HASH> 100644
--- a/chess/__init__.py
+++ b/chess/__init__.py
@@ -610,6 +610,15 @@ class BaseBoard:
if king_mask:
return msb(king_mask)
+ def queen(self, color):
+ """
+ Finds the queen square of the given side. Re... | Added function to get the queen square - queen(self, color): | py |
diff --git a/karaage/people/views/admin_user_detail.py b/karaage/people/views/admin_user_detail.py
index <HASH>..<HASH> 100644
--- a/karaage/people/views/admin_user_detail.py
+++ b/karaage/people/views/admin_user_detail.py
@@ -104,7 +104,7 @@ def password_change(request, username):
form.save(person)
... | Make sure account is unlocked when password is changed | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -70,7 +70,7 @@ else:
setup(
name='nodeconductor',
- version='0.77.0',
+ version='0.78.0',
author='OpenNode Team',
author_email='info@opennodecloud.com',
url='https://github.com/opennode/nodeconduct... | Preparing new release: <I> | py |
diff --git a/source/rafcon/statemachine/states/state.py b/source/rafcon/statemachine/states/state.py
index <HASH>..<HASH> 100644
--- a/source/rafcon/statemachine/states/state.py
+++ b/source/rafcon/statemachine/states/state.py
@@ -330,7 +330,7 @@ class State(Observable, yaml.YAMLObject):
return None
def... | Fix data port id bug from previous commit | py |
diff --git a/src/_pytest/python_api.py b/src/_pytest/python_api.py
index <HASH>..<HASH> 100644
--- a/src/_pytest/python_api.py
+++ b/src/_pytest/python_api.py
@@ -101,6 +101,7 @@ class ApproxBase:
)
def __bool__(self):
+ __tracebackhide__ = True
raise AssertionError(
"approx... | Hide internal stack when using pytest.approx() in bool context (#<I>) This makes the error traceback point directly to the offending usage, rather than to the internal `Approx.__bool__` method. | py |
diff --git a/automat/_test/test_visualize.py b/automat/_test/test_visualize.py
index <HASH>..<HASH> 100644
--- a/automat/_test/test_visualize.py
+++ b/automat/_test/test_visualize.py
@@ -28,16 +28,16 @@ def sampleMachine():
class SampleObject(object):
@mm.state(initial=True)
def begin(self):
- ... | I feel like coverage is cheating somehow here. | py |
diff --git a/ravel.py b/ravel.py
index <HASH>..<HASH> 100644
--- a/ravel.py
+++ b/ravel.py
@@ -2254,20 +2254,18 @@ def _message_interface_dispatch(connection, message, bus) :
)
#end try
kwargs = {}
- argtable = \
+ ... | I don’t think this workaround is right either; revert. | py |
diff --git a/src/dotenvy/parser.py b/src/dotenvy/parser.py
index <HASH>..<HASH> 100644
--- a/src/dotenvy/parser.py
+++ b/src/dotenvy/parser.py
@@ -2,6 +2,7 @@ from __future__ import unicode_literals
from __future__ import print_function
from __future__ import division
from __future__ import absolute_import
+from bui... | Pasteurize dict builtins | py |
diff --git a/markdownify/__init__.py b/markdownify/__init__.py
index <HASH>..<HASH> 100644
--- a/markdownify/__init__.py
+++ b/markdownify/__init__.py
@@ -59,6 +59,11 @@ class MarkdownConverter(object):
def process_tag(self, node, children_only=False):
text = ''
+ # Clean newline-only textnodes o... | Remove newline-only textnodes outside <pre> | py |
diff --git a/django_yaml_redirects/__init__.py b/django_yaml_redirects/__init__.py
index <HASH>..<HASH> 100644
--- a/django_yaml_redirects/__init__.py
+++ b/django_yaml_redirects/__init__.py
@@ -60,9 +60,10 @@ def load_redirects():
if exists(redirect_file_path):
with open(redirect_file_path) as redirect_f... | Prevent error when reading empty yaml file | py |
diff --git a/alot/commands/thread.py b/alot/commands/thread.py
index <HASH>..<HASH> 100644
--- a/alot/commands/thread.py
+++ b/alot/commands/thread.py
@@ -83,18 +83,18 @@ class ReplyCommand(Command):
if cleared:
logging.info(mail['From'] + ', ' + cleared)
to = mail['From']... | decode headers in reply code otherwise envelope.construct_mail will encode them a second time. also, the EnvelopeBuffer will show encoded headers, which is ugly. issue #<I> | py |
diff --git a/pylas/lasdatas/base.py b/pylas/lasdatas/base.py
index <HASH>..<HASH> 100644
--- a/pylas/lasdatas/base.py
+++ b/pylas/lasdatas/base.py
@@ -93,6 +93,13 @@ class LasBase(object):
self.header.number_of_points_by_return = counts
def write_to(self, out_stream, do_compress=False):
+ try... | raise when trying to compress Las with extrabytes as its not supported | py |
diff --git a/peewee.py b/peewee.py
index <HASH>..<HASH> 100644
--- a/peewee.py
+++ b/peewee.py
@@ -2234,6 +2234,9 @@ class CompoundSelectQuery(SelectBase):
if ctx.scope == SCOPE_COLUMN:
return self.apply_column(ctx)
+ # Call parent method to handle any CTEs.
+ super(CompoundSelectQ... | Support CTEs bound to compound queries. Refs #<I> | py |
diff --git a/jwt/__init__.py b/jwt/__init__.py
index <HASH>..<HASH> 100644
--- a/jwt/__init__.py
+++ b/jwt/__init__.py
@@ -220,13 +220,14 @@ def load(jwt):
def verify_signature(payload, signing_input, header, signature, key='',
verify_expiration=True, leeway=0):
try:
- key = prepare_key_method... | Allow algorithm names to be upper- or lower-case The standard doesn't seem to specify whether algorithm names must be capitalized or lower-case. I had an issue with spurious failures due to a lower-case algorithm name ("hs<I>"), so here is a patch that converts the incoming name to capital letters before looking it u... | py |
diff --git a/pymemcache/client/base.py b/pymemcache/client/base.py
index <HASH>..<HASH> 100644
--- a/pymemcache/client/base.py
+++ b/pymemcache/client/base.py
@@ -43,6 +43,13 @@ SOCKET_KEEPALIVE_SUPPORTED_SYSTEM = {
'Linux',
}
+STORE_RESULTS_VALUE = {
+ b'STORED': True,
+ b'NOT_STORED': False,
+ b'NOT_... | Reduce method complexity to pass linter tests The _store_cmd method became a bit to complexe and the linter complains when we add new conditions or try/except clause. These changes outsource some some processsing to reduce the complexity of the method. | py |
diff --git a/django_x509/base/admin.py b/django_x509/base/admin.py
index <HASH>..<HASH> 100644
--- a/django_x509/base/admin.py
+++ b/django_x509/base/admin.py
@@ -99,7 +99,8 @@ class AbstractCaAdmin(BaseAdmin):
'modified']
class Media:
- js = ('django-x509/js/x509-admin.js',)
+ js = ... | [bug] Fix JavaScript error on django <I> #<I> This commit fixes JS error on django <I>. Changes: - added pointer to `jquery.init.js` in admin.py `Media` classes according to django <I> release notes Fixes #<I> | py |
diff --git a/src/marshmallow/fields.py b/src/marshmallow/fields.py
index <HASH>..<HASH> 100644
--- a/src/marshmallow/fields.py
+++ b/src/marshmallow/fields.py
@@ -1650,8 +1650,7 @@ class IP(String):
# marshalling, integer and binary address representation parsing may lead to
# confusio... | Skip input value logging in IP field validation | py |
diff --git a/pysat/_instrument.py b/pysat/_instrument.py
index <HASH>..<HASH> 100644
--- a/pysat/_instrument.py
+++ b/pysat/_instrument.py
@@ -2838,9 +2838,9 @@ class Instrument(object):
del self._curr_data
del self._next_data
self._prev_data, self._prev_me... | STY: Adjusted line parsing per reviewer comment | py |
diff --git a/raiden/utils/ethereum_clients.py b/raiden/utils/ethereum_clients.py
index <HASH>..<HASH> 100644
--- a/raiden/utils/ethereum_clients.py
+++ b/raiden/utils/ethereum_clients.py
@@ -30,14 +30,14 @@ def support_check(
highest_supported_version_string: str,
lowest_supported_version_string: str,
) -> b... | Use the release tuple of _version instead of _key This avoids the conditional check as it's not filtered | py |
diff --git a/salt/modules/znc.py b/salt/modules/znc.py
index <HASH>..<HASH> 100644
--- a/salt/modules/znc.py
+++ b/salt/modules/znc.py
@@ -1,6 +1,10 @@
# -*- coding: utf-8 -*-
'''
znc - An advanced IRC bouncer
+
+.. versionadded:: Helium
+
+Provides an interace to basic ZNC functionality
'''
# Import python libs | Add versionadded directive for new znc module | py |
diff --git a/termdown.py b/termdown.py
index <HASH>..<HASH> 100755
--- a/termdown.py
+++ b/termdown.py
@@ -38,6 +38,7 @@ def setup(stdscr):
curses.use_default_colors()
curses.init_pair(1, curses.COLOR_RED, -1)
curses.init_pair(2, curses.COLOR_RED, curses.COLOR_RED)
+ curses.init_pair(3, curses.COLOR_G... | draw counter in green while paused | py |
diff --git a/tornado_pyuv/__init__.py b/tornado_pyuv/__init__.py
index <HASH>..<HASH> 100644
--- a/tornado_pyuv/__init__.py
+++ b/tornado_pyuv/__init__.py
@@ -179,8 +179,11 @@ class IOLoop(object):
def _handle_poll_events(self, handle, poll_events, error):
events = 0
- if error is None:
- ... | Signal readability and writability when a Poll handle returns error | py |
diff --git a/pymongo/helpers.py b/pymongo/helpers.py
index <HASH>..<HASH> 100644
--- a/pymongo/helpers.py
+++ b/pymongo/helpers.py
@@ -124,13 +124,13 @@ def callable_value(value, prop_name):
if "CallableVal" in str(t):
return value
- if t in __class_cache:
- cls = __class_cache[t]
+ if (t, ... | minor: was caching a little too aggressively | py |
diff --git a/dataql/parsers/generic.py b/dataql/parsers/generic.py
index <HASH>..<HASH> 100644
--- a/dataql/parsers/generic.py
+++ b/dataql/parsers/generic.py
@@ -58,7 +58,7 @@ class DataQLParser(FiltersWithSlicingParserMixin, BaseParser):
# Now with a parser that will try to get a better error message
... | Allow first resource in list/object to be named | py |
diff --git a/docs/source/conf.py b/docs/source/conf.py
index <HASH>..<HASH> 100644
--- a/docs/source/conf.py
+++ b/docs/source/conf.py
@@ -28,7 +28,7 @@ sys.path.insert(0, os.path.abspath('../..'))
# which is unused, so that pandoc will run
#
-if 'READTHEDOCS' in os.environ and not 'HOME' in os.environ:
+if 'READT... | Fix check on read the docs. HOME check only applies to setting HOME. | py |
diff --git a/bcbio/srna/sample.py b/bcbio/srna/sample.py
index <HASH>..<HASH> 100644
--- a/bcbio/srna/sample.py
+++ b/bcbio/srna/sample.py
@@ -60,7 +60,7 @@ def sample_annotation(data):
mirbase = op.abspath(op.dirname(dd.get_mirbase_hairpin(data)))
data['seqbuster'] = _miraligner(data["collapse"], out... | Fix logic to do novel miRNA quantification | py |
diff --git a/sherlock/transient_classifier.py b/sherlock/transient_classifier.py
index <HASH>..<HASH> 100644
--- a/sherlock/transient_classifier.py
+++ b/sherlock/transient_classifier.py
@@ -1565,6 +1565,20 @@ END""" % locals())
self.log.info(
"Could not create table (`%(crossmatchTable)s`... | don't create triggers on database if they already exist | py |
diff --git a/test/integration/029_docs_generate_tests/test_docs_generate.py b/test/integration/029_docs_generate_tests/test_docs_generate.py
index <HASH>..<HASH> 100644
--- a/test/integration/029_docs_generate_tests/test_docs_generate.py
+++ b/test/integration/029_docs_generate_tests/test_docs_generate.py
@@ -146,7 +14... | redshift can just change this on you apparently | py |
diff --git a/tests/test_conformance.py b/tests/test_conformance.py
index <HASH>..<HASH> 100644
--- a/tests/test_conformance.py
+++ b/tests/test_conformance.py
@@ -3,10 +3,13 @@ import os
import os.path
import json
import collections
-from jsonselect import select
+from jsonselect import jsonselect
from unittest imp... | log test name and selector when creating the test. | py |
diff --git a/MAVProxy/modules/mavproxy_calibration.py b/MAVProxy/modules/mavproxy_calibration.py
index <HASH>..<HASH> 100644
--- a/MAVProxy/modules/mavproxy_calibration.py
+++ b/MAVProxy/modules/mavproxy_calibration.py
@@ -77,6 +77,10 @@ class CalibrationModule(mp_module.MPModule):
self.magcal_progess[m.co... | calibration: ack completion of mag cal | py |
diff --git a/skew/bin/skew_consumer.py b/skew/bin/skew_consumer.py
index <HASH>..<HASH> 100644
--- a/skew/bin/skew_consumer.py
+++ b/skew/bin/skew_consumer.py
@@ -76,12 +76,14 @@ class Consumer(object):
def schedule_commands(self):
while 1:
start = time.time()
- self.logger.debug('... | Beginning work on repurposing the scheduler | py |
diff --git a/zipline/testing/core.py b/zipline/testing/core.py
index <HASH>..<HASH> 100644
--- a/zipline/testing/core.py
+++ b/zipline/testing/core.py
@@ -710,7 +710,7 @@ class FakeDataPortal(DataPortal):
]
df = pd.DataFrame(
- np.full((bar_count, len(assets)), 100),
+ ... | MAINT: Pass float explicitly to numpy. | py |
diff --git a/src/python/grpcio/grpc/_channel.py b/src/python/grpcio/grpc/_channel.py
index <HASH>..<HASH> 100644
--- a/src/python/grpcio/grpc/_channel.py
+++ b/src/python/grpcio/grpc/_channel.py
@@ -32,6 +32,7 @@
import sys
import threading
import time
+import logging
import grpc
from grpc import _common
@@ -197... | Handle non-iterator objects in consume_request_iterator Restructure the consume_request_iterator method to handle exceptions where the object being passed is not an iterator. Fixes #<I> and #<I>. | py |
diff --git a/pytorch_pretrained_bert/tokenization_openai.py b/pytorch_pretrained_bert/tokenization_openai.py
index <HASH>..<HASH> 100644
--- a/pytorch_pretrained_bert/tokenization_openai.py
+++ b/pytorch_pretrained_bert/tokenization_openai.py
@@ -232,7 +232,7 @@ class OpenAIGPTTokenizer(object):
else:
... | Allow tokenization of sequences > <I> for caching For many applications requiring randomized data access, it's easier to cache the tokenized representations than the words. So why not turn this into a warning? | py |
diff --git a/bigchaindb/config_utils.py b/bigchaindb/config_utils.py
index <HASH>..<HASH> 100644
--- a/bigchaindb/config_utils.py
+++ b/bigchaindb/config_utils.py
@@ -5,7 +5,6 @@ By calling `file_config`, the global configuration (stored in
configuration file.
Note that there is a precedence in reading configuratio... | Remove reference to command line params | py |
diff --git a/src/sos/_version.py b/src/sos/_version.py
index <HASH>..<HASH> 100644
--- a/src/sos/_version.py
+++ b/src/sos/_version.py
@@ -17,7 +17,7 @@ if _py_ver.major == 2 or (_py_ver.major == 3 and (_py_ver.minor, _py_ver.micro)
# version of the SoS language
__sos_version__ = '1.0'
# version of the sos command
... | Release sos <I> for improved reporting | py |
diff --git a/ibis/backends/base/sql/compiler/select_builder.py b/ibis/backends/base/sql/compiler/select_builder.py
index <HASH>..<HASH> 100644
--- a/ibis/backends/base/sql/compiler/select_builder.py
+++ b/ibis/backends/base/sql/compiler/select_builder.py
@@ -570,7 +570,7 @@ class SelectBuilder:
sort_ke... | style: check for truthiness not length | py |
diff --git a/tests/integration/modules/test_sysctl.py b/tests/integration/modules/test_sysctl.py
index <HASH>..<HASH> 100644
--- a/tests/integration/modules/test_sysctl.py
+++ b/tests/integration/modules/test_sysctl.py
@@ -30,7 +30,7 @@ class SysctlModuleTest(ModuleCase):
def test_show_freebsd(self):
ret ... | Fix integration.modules.test_sysctl.SysctlModuleTest.test_show_freebsd This test was originally committed incorrectly, but it passed by accident on Python 2. However, Python 3 does not allow comparisons between lists and ints, so now the test fails. | py |
diff --git a/bcbio/pipeline/datadict.py b/bcbio/pipeline/datadict.py
index <HASH>..<HASH> 100644
--- a/bcbio/pipeline/datadict.py
+++ b/bcbio/pipeline/datadict.py
@@ -112,7 +112,7 @@ LOOKUPS = {
"offtarget_stats": {"keys": ["regions", "offtarget_stats"]},
"salmon": {"keys": ["salmon"]},
"umi_type": {"key... | Look up cellular_barcode entry properly in the world dict. | py |
diff --git a/titlecase/__init__.py b/titlecase/__init__.py
index <HASH>..<HASH> 100755
--- a/titlecase/__init__.py
+++ b/titlecase/__init__.py
@@ -176,7 +176,7 @@ def cmd():
in_group.add_argument('-f', '--input-file',
help='File to read from to titlecase')
parser.add_argument('-o', '--output-file... | Remove closing bracket in parser help text | py |
diff --git a/varify/samples/models.py b/varify/samples/models.py
index <HASH>..<HASH> 100644
--- a/varify/samples/models.py
+++ b/varify/samples/models.py
@@ -212,6 +212,7 @@ class Cohort(ObjectSet):
allele_freq_modified = models.DateTimeField(null=True)
set_object_rel = 'samples'
+ label_field = 'name'
... | Use 'name' field as the label field for Cohort models | py |
diff --git a/nfc/llcp/llc.py b/nfc/llcp/llc.py
index <HASH>..<HASH> 100644
--- a/nfc/llcp/llc.py
+++ b/nfc/llcp/llc.py
@@ -133,6 +133,7 @@ class ServiceDiscovery(object):
self.sent = dict()
self.sdreq = collections.deque()
self.sdres = collections.deque()
+ self.dmpdu = collections.deq... | fixed handling of connect-by-name when service does not exist | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -187,6 +187,7 @@ setup(
},
scripts=[],
install_requires=REQUIRED_PKGS,
+ python_requires='>=3.6',
extras_require=EXTRAS_REQUIRE,
classifiers=[
'Development Status :: 4 - Beta', | Set minimal supported Python version in setup.py | py |
diff --git a/pyiso.py b/pyiso.py
index <HASH>..<HASH> 100644
--- a/pyiso.py
+++ b/pyiso.py
@@ -1193,6 +1193,12 @@ class RockRidge(object):
self.posix_file_links += 1
+ def name(self):
+ if not self.initialized:
+ raise PyIsoException("Rock Ridge extension not yet initialized")
+
+ ... | Add in an API for fetching the posix name. | py |
diff --git a/cafe/utilities.py b/cafe/utilities.py
index <HASH>..<HASH> 100644
--- a/cafe/utilities.py
+++ b/cafe/utilities.py
@@ -1,3 +1,4 @@
+from os import getenv
from six import string_types
@@ -22,3 +23,32 @@ def is_str(arg):
:rtype:
"""
return isinstance(arg, string_types)
+
+
+def resolve_set... | Add function to resolve settings from multiple sources utilities.resolve_setting() takes values for a setting from multiple sources and picks the appropriate value in order of source priority. | py |
diff --git a/experiment_creator_v2.py b/experiment_creator_v2.py
index <HASH>..<HASH> 100755
--- a/experiment_creator_v2.py
+++ b/experiment_creator_v2.py
@@ -1,4 +1,7 @@
#!/bin/env python2
+# This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of
+# the MPL was not distribut... | Add licence header to source I.e. actually state rather than leave the licence as implicit | py |
diff --git a/cumulusci/core/tests/test_salesforce.py b/cumulusci/core/tests/test_salesforce.py
index <HASH>..<HASH> 100644
--- a/cumulusci/core/tests/test_salesforce.py
+++ b/cumulusci/core/tests/test_salesforce.py
@@ -35,6 +35,10 @@ class TestKeyword_wait_until_loading_is_complete(unittest.TestCase):
with moc... | Make one test compatible with py2. Not elegant, but it's too late in the day for elegance. | py |
diff --git a/troposphere/awslambda.py b/troposphere/awslambda.py
index <HASH>..<HASH> 100644
--- a/troposphere/awslambda.py
+++ b/troposphere/awslambda.py
@@ -119,6 +119,7 @@ class Function(AWSObject):
'Environment': (dict, False),
'FunctionName': (basestring, False),
'Handler': (basestring, ... | Add KmsKeyArn to Lambda Function | py |
diff --git a/ayrton/__init__.py b/ayrton/__init__.py
index <HASH>..<HASH> 100644
--- a/ayrton/__init__.py
+++ b/ayrton/__init__.py
@@ -431,7 +431,7 @@ class Ayrton (object):
logger.debug ('waiting for %s failed; ignoring', child)
- def global_tracer (self, frame, event, arg):
+ def global_tra... | [*] more code left out of coverage. | py |
diff --git a/tests/test_var.py b/tests/test_var.py
index <HASH>..<HASH> 100644
--- a/tests/test_var.py
+++ b/tests/test_var.py
@@ -83,16 +83,16 @@ class TestVAR(unittest.TestCase):
self.assertTrue(np.allclose(c, np.eye(c.shape[0]), 1e-2, 1e-2))
def test_whiteness(self):
- r = np.random.randn(100,... | Tests : (whiteness test) improved comments. Former-commit-id: <I>ea<I>c<I>d<I>b<I>f<I>b0a8ac<I>a<I>dc | py |
diff --git a/any_urlfield/models/values.py b/any_urlfield/models/values.py
index <HASH>..<HASH> 100644
--- a/any_urlfield/models/values.py
+++ b/any_urlfield/models/values.py
@@ -149,3 +149,15 @@ class AnyUrlValue(StrAndUnicode):
def __len__(self):
return len(unicode(self))
+
+
+ def __repr__(self):
... | Fix access to AnyUrlValue as 'str' object. | py |
diff --git a/plenum/test/monitoring/test_revival_spike_resistant_ema_throughput_measurement.py b/plenum/test/monitoring/test_revival_spike_resistant_ema_throughput_measurement.py
index <HASH>..<HASH> 100644
--- a/plenum/test/monitoring/test_revival_spike_resistant_ema_throughput_measurement.py
+++ b/plenum/test/monitor... | INDY-<I>: refactoring tests for throughput measurement refactoring test_revival_spike_resistant_ema_throughput_measurement.py | py |
diff --git a/python/lookout/sdk/service_analyzer.py b/python/lookout/sdk/service_analyzer.py
index <HASH>..<HASH> 100644
--- a/python/lookout/sdk/service_analyzer.py
+++ b/python/lookout/sdk/service_analyzer.py
@@ -23,8 +23,9 @@ class AnalyzerServicerMetaclass(type):
if name.startswith("__"):
... | Do not ignore defined Notify{Review,Push}Event methods in analyzers if present | py |
diff --git a/danceschool/default_settings.py b/danceschool/default_settings.py
index <HASH>..<HASH> 100644
--- a/danceschool/default_settings.py
+++ b/danceschool/default_settings.py
@@ -85,7 +85,7 @@ CKEDITOR_SETTINGS = {
{'name': 'insert', 'items': ['FilerImage', 'Table', 'HorizontalRule', 'Smiley', 'Iframe'... | Fix rich textbox edit fields Certain textboxes, like the Location Directions or Dance Series Description, were not appearing using the default styling configuration. The requests for the css and js were <I>'ing. This is because the default settings for ckeditor referred to the skin 'moono' which is not included in the... | py |
diff --git a/pyte/superclasses.py b/pyte/superclasses.py
index <HASH>..<HASH> 100644
--- a/pyte/superclasses.py
+++ b/pyte/superclasses.py
@@ -70,6 +70,14 @@ class _PyteAugmentedValidator(object):
self.partial = get_partial
self._l_name = name
+ def to_load(self):
+ if self._l_name == "con... | Add to_load to AugmentedValidator to have a nice shortcut | py |
diff --git a/rllib/policy/torch_policy.py b/rllib/policy/torch_policy.py
index <HASH>..<HASH> 100644
--- a/rllib/policy/torch_policy.py
+++ b/rllib/policy/torch_policy.py
@@ -480,7 +480,8 @@ class TorchPolicy(Policy):
state = super().get_state()
state["_optimizer_variables"] = []
for i, o in ... | [rllib] Fix for Torch checkpoint taken on GPU fails to deserialize on CPU (#<I>) (#<I>) | py |
diff --git a/bin/sanger_qiimify.py b/bin/sanger_qiimify.py
index <HASH>..<HASH> 100644
--- a/bin/sanger_qiimify.py
+++ b/bin/sanger_qiimify.py
@@ -1,3 +1,5 @@
+#!/usr/bin/env python
+
'''
Created on Sep 19, 2012
@@ -207,8 +209,6 @@ def handle_program_options():
data, and output... | Minor fixes and cleanup to sanger_qiimify.py Removes version parameter, unused return from handle_program_options. Adds proper #! to allow script to be run by python listed in env. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -32,7 +32,6 @@ setup(
'python-dateutil>=2.1',
'PyJWT>=1.6.4', # This is required as part of oauthlib but doesn't seem to get included sometimes.
'cryptography>=1.3.1', # As above, but fixes issue wit... | Remove setuptools; install it as part of the test configuration. | py |
diff --git a/gwpy/cli/cliproduct.py b/gwpy/cli/cliproduct.py
index <HASH>..<HASH> 100644
--- a/gwpy/cli/cliproduct.py
+++ b/gwpy/cli/cliproduct.py
@@ -41,7 +41,7 @@ import time
from dateutil.parser import parser
-from ..timeseries import TimeSeries
+from gwpy.timeseries import TimeSeries
__author__ = 'Joseph Ar... | deal with '*' as a unit | py |
diff --git a/saltcloud/config.py b/saltcloud/config.py
index <HASH>..<HASH> 100644
--- a/saltcloud/config.py
+++ b/saltcloud/config.py
@@ -403,7 +403,7 @@ def get_config_value(name, vm_, opts, default=None, search_global=True):
if name in entry:
return entry[name]
... | Don't assume the provider is defined when searching for configuration. | py |
diff --git a/brownant/dinergate.py b/brownant/dinergate.py
index <HASH>..<HASH> 100644
--- a/brownant/dinergate.py
+++ b/brownant/dinergate.py
@@ -53,5 +53,5 @@ class Dinergate(with_metaclass(DinergateType)):
a different implementation of this property.
"""
if not self.URL_TEMPLATE:
- ... | fix the wrong exception type found on testing. | py |
diff --git a/cmsplugin_cascade/templatetags/cascade_tags.py b/cmsplugin_cascade/templatetags/cascade_tags.py
index <HASH>..<HASH> 100644
--- a/cmsplugin_cascade/templatetags/cascade_tags.py
+++ b/cmsplugin_cascade/templatetags/cascade_tags.py
@@ -5,6 +5,7 @@ import io
import json
import os
+from cms.toolbar.utils i... | In cms <I>, The ‘cms_content_renderer’ is no more added to the context in cms.context_processors.cms_settings, generating a KeyError in cascade_tags when rendering for example TexEditorPlugin. | py |
diff --git a/backtrader/observers/benchmark.py b/backtrader/observers/benchmark.py
index <HASH>..<HASH> 100644
--- a/backtrader/observers/benchmark.py
+++ b/backtrader/observers/benchmark.py
@@ -87,6 +87,9 @@ class Benchmark(TimeReturn):
return labels
def __init__(self):
+ if self.p.data is None:... | Use the 1st data if None is specified | py |
diff --git a/aloe_django/steps/models.py b/aloe_django/steps/models.py
index <HASH>..<HASH> 100644
--- a/aloe_django/steps/models.py
+++ b/aloe_django/steps/models.py
@@ -201,10 +201,10 @@ def _dump_model(model, attrs=None):
for field in model._meta.many_to_many:
vals = getattr(model, field.name)
- ... | Fix number of brackets on list.append | py |
diff --git a/lib/python/dxpy/bindings/dxtable.py b/lib/python/dxpy/bindings/dxtable.py
index <HASH>..<HASH> 100644
--- a/lib/python/dxpy/bindings/dxtable.py
+++ b/lib/python/dxpy/bindings/dxtable.py
@@ -216,6 +216,7 @@ class DXTable(DXClass):
while self._part_index <= 250000:
if str(self._part_ind... | fixed bug for getting unused part index | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -17,7 +17,7 @@ setup(
"kombu>=3.0.1",
"mock>=1.0.1",
"path.py>=6.2",
- "pyyaml>=3.11",
+ "pyyaml>=3.10",
"requests>=1.2.0",
"six>=1.9.0",
"werkzeug>=0.9", | lowering minimum pyyaml version to earliest availble | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.