diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/doc/conf.py b/doc/conf.py
index <HASH>..<HASH> 100644
--- a/doc/conf.py
+++ b/doc/conf.py
@@ -157,7 +157,8 @@ pygments_style = 'sphinx'
# The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes.
-html_theme = 'alabaster'
+# html_theme = 'alabaster'
+html_the... | switch documentation from alabaster to rtd | py |
diff --git a/scrubadub/__init__.py b/scrubadub/__init__.py
index <HASH>..<HASH> 100644
--- a/scrubadub/__init__.py
+++ b/scrubadub/__init__.py
@@ -8,7 +8,7 @@ from . import detectors
from . import post_processors
from .filth import Filth
-__version__ = VERSION = "2.0.0-rc0"
+__version__ = VERSION = "2.0.0.rc0"
__a... | use python versioning needed for pypi | py |
diff --git a/stravalib/tests/functional/test_client_rate_limiter.py b/stravalib/tests/functional/test_client_rate_limiter.py
index <HASH>..<HASH> 100644
--- a/stravalib/tests/functional/test_client_rate_limiter.py
+++ b/stravalib/tests/functional/test_client_rate_limiter.py
@@ -18,8 +18,8 @@ class ClientDefaultRateLimi... | Added long rate limit to prevent test from breaking | py |
diff --git a/wagtailmenus/settings/base.py b/wagtailmenus/settings/base.py
index <HASH>..<HASH> 100644
--- a/wagtailmenus/settings/base.py
+++ b/wagtailmenus/settings/base.py
@@ -122,7 +122,6 @@ if DJANGO_VERSION >= (2, 0):
STATICFILES_FINDERS = (
'django.contrib.staticfiles.finders.FileSystemFinder',
'djang... | Remove unnecessary line from STATICFILES_FINDERS setting | py |
diff --git a/tests/test_views.py b/tests/test_views.py
index <HASH>..<HASH> 100644
--- a/tests/test_views.py
+++ b/tests/test_views.py
@@ -186,9 +186,10 @@ class RenderSetupTests(TestCase):
def test_generate_data_is_called_once_with_fields_and_queryset(self):
self.mixin.generate_data = mock.MagicMock()
... | Pass a real QuerySet instead of a fake one to render_excel_response. It needs something that it can call .model() on. | py |
diff --git a/coaster/sqlalchemy/statemanager.py b/coaster/sqlalchemy/statemanager.py
index <HASH>..<HASH> 100644
--- a/coaster/sqlalchemy/statemanager.py
+++ b/coaster/sqlalchemy/statemanager.py
@@ -196,6 +196,7 @@ over direct state value changes:
from __future__ import absolute_import
+import collections
from co... | Use ABCs for future proofing against set-like and list-like objects | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -48,7 +48,7 @@ setup(
# copyright
author = 'Andrey Mikhaylenko',
- author_email = 'andy@neithere.net',
+ author_email = 'neithere@gmail.com',
license = 'GNU Lesser General Public License (LGPL), Versi... | Update author's e-mail. | py |
diff --git a/menu_launcher.py b/menu_launcher.py
index <HASH>..<HASH> 100755
--- a/menu_launcher.py
+++ b/menu_launcher.py
@@ -14,12 +14,13 @@ try:
screen = curses.initscr()
screen.keypad(1)
curses.noecho()
+ h = curses.A_BOLD
+ n = curses.A_NORMAL
# Check if terminal can support color
if... | h now has a default value for terminals that don't support color. | py |
diff --git a/sos/plugins/kimchi.py b/sos/plugins/kimchi.py
index <HASH>..<HASH> 100644
--- a/sos/plugins/kimchi.py
+++ b/sos/plugins/kimchi.py
@@ -19,7 +19,6 @@ class Kimchi(Plugin, RedHatPlugin, UbuntuPlugin, DebianPlugin):
packages = ('kimchi',)
def setup(self):
- log_limit = self.get_option('log_s... | [kimchi] Remove unused log-size check Removes a check against the log-size option that is not subsequently used later in the plugin. | py |
diff --git a/centinel/primitives/tls.py b/centinel/primitives/tls.py
index <HASH>..<HASH> 100644
--- a/centinel/primitives/tls.py
+++ b/centinel/primitives/tls.py
@@ -6,7 +6,13 @@ import M2Crypto
def get_fingerprint(host, port):
- cert = ssl.get_server_certificate((host, port))
+ try:
+ cert = ssl.get... | added SSLv3 fallback to TLSv1 in TLS primitive, fixes #<I> | py |
diff --git a/moto/core/responses.py b/moto/core/responses.py
index <HASH>..<HASH> 100644
--- a/moto/core/responses.py
+++ b/moto/core/responses.py
@@ -20,7 +20,6 @@ import six
from six.moves.urllib.parse import parse_qs, urlparse
import xmltodict
-from pkg_resources import resource_filename
from werkzeug.exception... | Keep pkg_resources import function-local (~<I>s) | py |
diff --git a/spyderlib/utils/introspection/fallback_plugin.py b/spyderlib/utils/introspection/fallback_plugin.py
index <HASH>..<HASH> 100644
--- a/spyderlib/utils/introspection/fallback_plugin.py
+++ b/spyderlib/utils/introspection/fallback_plugin.py
@@ -34,10 +34,15 @@ class FallbackPlugin(IntrospectionPlugin):
... | Fix handling of icons for fallback import completions | py |
diff --git a/api.py b/api.py
index <HASH>..<HASH> 100644
--- a/api.py
+++ b/api.py
@@ -10,12 +10,12 @@
:license: GNU GPL v3 or above, see LICENSE for more details.
"""
+from dragonlib.CoCo.basic_tokens import COCO_BASIC_TOKENS
from dragonlib.core.basic import BasicListing, RenumTool, BasicTokenUtil,\
Basi... | Bugfix: CoCo used the same default start address | py |
diff --git a/twiggy_goodies/json.py b/twiggy_goodies/json.py
index <HASH>..<HASH> 100644
--- a/twiggy_goodies/json.py
+++ b/twiggy_goodies/json.py
@@ -21,13 +21,13 @@ class JsonOutput(outputs.Output):
if source_host is None:
source_host = socket.gethostname()
- severity_names = {
- ... | Fixed errors related to missing severity_names in JsonOutput, when source_host argument was specified. | py |
diff --git a/netmiko/ssh_autodetect.py b/netmiko/ssh_autodetect.py
index <HASH>..<HASH> 100644
--- a/netmiko/ssh_autodetect.py
+++ b/netmiko/ssh_autodetect.py
@@ -102,6 +102,7 @@ SSH_MAPPER_BASE = {
},
}
+
class SSHDetect(object):
"""
The SSHDetect class tries to automatically guess the device type r... | Update line <I> with 2 blank lines | py |
diff --git a/pyt/__main__.py b/pyt/__main__.py
index <HASH>..<HASH> 100644
--- a/pyt/__main__.py
+++ b/pyt/__main__.py
@@ -17,8 +17,11 @@ def console():
parser.add_argument('names', metavar='NAME', nargs='*', default=[], help='the test(s) you want to run')
parser.add_argument('--basedir', dest='basedir', defa... | removes --python flag in favor of also printing the python version when --version is passed in | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -65,7 +65,7 @@ setup(name="datrie",
license=LICENSE,
url='https://github.com/kmike/datrie',
classifiers=CLASSIFIERS,
- libraries=[('libdatrie', {
+ libraries=[('datrie', {
"sources": L... | Fix bug: ld cannot find libdatrie | py |
diff --git a/pyana/examples/gp_panel.py b/pyana/examples/gp_panel.py
index <HASH>..<HASH> 100644
--- a/pyana/examples/gp_panel.py
+++ b/pyana/examples/gp_panel.py
@@ -7,7 +7,14 @@ from ..ccsgp.utils import getOpts
from ..ccsgp.config import default_colors
def gp_panel(version):
- """example for a panel plot using ... | include panelQM<I> plot | py |
diff --git a/src/collectors/postgres/postgres.py b/src/collectors/postgres/postgres.py
index <HASH>..<HASH> 100644
--- a/src/collectors/postgres/postgres.py
+++ b/src/collectors/postgres/postgres.py
@@ -260,7 +260,7 @@ class DatabaseStats(QueryStats):
JOIN pg_stat_database
ON pg_database.datname = pg_... | Add 'rdsadmin' database in the blacklist of DatabaseStats I want to use this collector on a Amazon RDS database. The collector is failing because it has no permission to read the 'rdsadmin' database. I don't have much idea how I should modify cleanly this plugin, but this modification works. | py |
diff --git a/bittrex/bittrex.py b/bittrex/bittrex.py
index <HASH>..<HASH> 100644
--- a/bittrex/bittrex.py
+++ b/bittrex/bittrex.py
@@ -342,7 +342,7 @@ class Bittrex(object):
"""
return self.api_query('getorderhistory', {'market':market, 'count': count})
- def get_order_history(self, uuid):
+ d... | Added get_order to retrieve details of buy/sell order | py |
diff --git a/volapi/volapi.py b/volapi/volapi.py
index <HASH>..<HASH> 100644
--- a/volapi/volapi.py
+++ b/volapi/volapi.py
@@ -22,7 +22,7 @@ import random
import re
import string
import time
-from collections import deque
+from collections import deque, OrderedDict
import requests
import websocket
@@ -311,7 +311... | Use OrderedDict so that Room.files preserves the order of added files | py |
diff --git a/spyder/plugins/tests/test_ipythonconsole.py b/spyder/plugins/tests/test_ipythonconsole.py
index <HASH>..<HASH> 100644
--- a/spyder/plugins/tests/test_ipythonconsole.py
+++ b/spyder/plugins/tests/test_ipythonconsole.py
@@ -18,7 +18,6 @@ def botipython(qtbot):
widget = IPythonConsole(None, testing=True)... | IPython Console: Don't show it when running tests | py |
diff --git a/nupic/support/configuration_base.py b/nupic/support/configuration_base.py
index <HASH>..<HASH> 100644
--- a/nupic/support/configuration_base.py
+++ b/nupic/support/configuration_base.py
@@ -47,7 +47,7 @@ class Configuration(object):
If the environment variable 'NTA_CONF_PATH' is defined, then the config... | Fixed confusing and erroneous comments | py |
diff --git a/salt/cloud/__init__.py b/salt/cloud/__init__.py
index <HASH>..<HASH> 100644
--- a/salt/cloud/__init__.py
+++ b/salt/cloud/__init__.py
@@ -1290,11 +1290,13 @@ class Cloud(object):
)
)
- client = salt.client.get_local_client(mopts=mopts_)
+ ... | Use get_local_client with MASTER opts, not MINION | py |
diff --git a/tests/pytests/unit/modules/test_aix_status.py b/tests/pytests/unit/modules/test_aix_status.py
index <HASH>..<HASH> 100644
--- a/tests/pytests/unit/modules/test_aix_status.py
+++ b/tests/pytests/unit/modules/test_aix_status.py
@@ -1,14 +1,10 @@
import logging
import sys
+import pytest
import salt.modul... | After reviewer comments, removed try/except around import pytest | py |
diff --git a/holoviews/plotting/mpl/annotation.py b/holoviews/plotting/mpl/annotation.py
index <HASH>..<HASH> 100644
--- a/holoviews/plotting/mpl/annotation.py
+++ b/holoviews/plotting/mpl/annotation.py
@@ -2,6 +2,7 @@ import matplotlib
from matplotlib import patches as patches
from ...core.util import match_spec
+... | draw_annotation now wrapped in abbreviated_exception context | py |
diff --git a/aiortc/rtcsctptransport.py b/aiortc/rtcsctptransport.py
index <HASH>..<HASH> 100644
--- a/aiortc/rtcsctptransport.py
+++ b/aiortc/rtcsctptransport.py
@@ -906,8 +906,8 @@ class RTCSctpTransport(EventEmitter):
if tsn_gt(schunk.tsn, self._last_sacked_tsn):
break
... | [sctp] rework calculation of partial_bytes_acked | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -23,6 +23,7 @@ setup(
'License :: OSI Approved :: ISC License (ISCL)',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.6',
+ 'Programming Language :: Python :: 3.7'... | Indicate python <I> support | py |
diff --git a/stockcrawler/tests/test_loaders.py b/stockcrawler/tests/test_loaders.py
index <HASH>..<HASH> 100644
--- a/stockcrawler/tests/test_loaders.py
+++ b/stockcrawler/tests/test_loaders.py
@@ -168,6 +168,24 @@ class ReportItemLoaderTest(TestCaseBase):
'cash': 1148925000.0
})
+ def test_... | Test AGN <I> annual report. | py |
diff --git a/parsedmarc/__init__.py b/parsedmarc/__init__.py
index <HASH>..<HASH> 100644
--- a/parsedmarc/__init__.py
+++ b/parsedmarc/__init__.py
@@ -1202,13 +1202,15 @@ def get_dmarc_reports_from_inbox(host=None, user=None, password=None,
if type(msg_uids) == str:
msg_uids = [msg_uids]
... | Move/delete <I> IMAP messages at a time | py |
diff --git a/pep257.py b/pep257.py
index <HASH>..<HASH> 100755
--- a/pep257.py
+++ b/pep257.py
@@ -142,7 +142,7 @@ class Error(object):
def __init__(self, filename, source, docstring, context,
explanation, message, start=None, end=None):
- self.filename = filename
+ self.filename ... | Print only file name, not full path. | py |
diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index <HASH>..<HASH> 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -7284,11 +7284,11 @@ class DataFrame(NDFrame):
When ``values`` is a Series or DataFrame:
>>> df = pd.DataFrame({'A': [1, 2, 3], 'B': ['a', 'b', 'f']})
- ... | DOC: isin() docstring change DataFrame to pd.DataFrame (#<I>) | py |
diff --git a/sendgrid/message.py b/sendgrid/message.py
index <HASH>..<HASH> 100644
--- a/sendgrid/message.py
+++ b/sendgrid/message.py
@@ -119,6 +119,8 @@ class Mail(SMTPAPIHeader):
self.reply_to = replyto
def add_attachment(self, name, file_):
+ if sys.version_info < (3, 0) and isinstance(nam... | Encode unicode object file attachment names to Python str objects Currently, the method sendgrid.message.Mail.add_attachment_stream encodes unicode object filenames to Python str objects. However, the method sendgrid.message.Mail.add_attachment does not do the same encoding. This commit fixes that. | py |
diff --git a/lenstronomy/Workflow/fitting_sequence.py b/lenstronomy/Workflow/fitting_sequence.py
index <HASH>..<HASH> 100644
--- a/lenstronomy/Workflow/fitting_sequence.py
+++ b/lenstronomy/Workflow/fitting_sequence.py
@@ -278,8 +278,7 @@ class FittingSequence(object):
samples, means, logZ, logZ_err, logL,... | update state of FittingSequence manually possible | py |
diff --git a/podcast/feeds.py b/podcast/feeds.py
index <HASH>..<HASH> 100644
--- a/podcast/feeds.py
+++ b/podcast/feeds.py
@@ -135,6 +135,9 @@ class ShowFeed(Feed):
def item_description(self, item):
return '%s' % item.description
+ def item_guid(self, item):
+ return self.item_enclosure_url()
... | Item guid points to enclosure URL in show feed | py |
diff --git a/geoviews/operation/projection.py b/geoviews/operation/projection.py
index <HASH>..<HASH> 100644
--- a/geoviews/operation/projection.py
+++ b/geoviews/operation/projection.py
@@ -185,6 +185,10 @@ class project_quadmesh(_project_operation):
zs[mask] = np.NaN
params = get_param_val... | Fixed projecting of rectilinear QuadMesh (#<I>) | py |
diff --git a/python/proton/reactor.py b/python/proton/reactor.py
index <HASH>..<HASH> 100644
--- a/python/proton/reactor.py
+++ b/python/proton/reactor.py
@@ -20,6 +20,7 @@
from __future__ import absolute_import
from ._reactor import Container, ApplicationEvent, EventInjector, Handler,\
+ LinkOption, ReceiverOpt... | PROTON-<I>: [Python] Added back some needed symbols removed previously | py |
diff --git a/trionyx/trionyx/auditlog.py b/trionyx/trionyx/auditlog.py
index <HASH>..<HASH> 100644
--- a/trionyx/trionyx/auditlog.py
+++ b/trionyx/trionyx/auditlog.py
@@ -36,7 +36,7 @@ def model_instance_diff(old, new):
new_value = get_field_value(new, field)
if old_value != new_value:
- ... | [BUGFIX] Fix rendering on None type error | py |
diff --git a/hcalendar.py b/hcalendar.py
index <HASH>..<HASH> 100644
--- a/hcalendar.py
+++ b/hcalendar.py
@@ -82,11 +82,13 @@ class vEvent(object):
soup = subs if subs else [soup]
content = ''
for elem in soup:
- if elem.name == 'abbr':
+ if elem... | Check for the existence of tag attributes before accessing them | py |
diff --git a/nlppln/wfgenerator.py b/nlppln/wfgenerator.py
index <HASH>..<HASH> 100644
--- a/nlppln/wfgenerator.py
+++ b/nlppln/wfgenerator.py
@@ -12,13 +12,14 @@ class WorkflowGenerator(WFGenerator):
self.load(step_file='https://raw.githubusercontent.com/nlppln/'
'pattern-docker/m... | Update save method Because scriptcwl has a new way of saving. | py |
diff --git a/ceph_deploy/mds.py b/ceph_deploy/mds.py
index <HASH>..<HASH> 100644
--- a/ceph_deploy/mds.py
+++ b/ceph_deploy/mds.py
@@ -108,6 +108,16 @@ def create_mds(distro, name, cluster, init):
],
timeout=7
)
+ elif init == 'systemd':
+ remoto.process.run(
+ co... | mds: enable on create with systemd Enable MDS services for distros having systemd. | py |
diff --git a/pyzotero/zotero.py b/pyzotero/zotero.py
index <HASH>..<HASH> 100644
--- a/pyzotero/zotero.py
+++ b/pyzotero/zotero.py
@@ -37,7 +37,7 @@ import datetime
import re
import pytz
from urlparse import urlparse
-from xml.dom import minidom
+import xml.etree.ElementTree as et
import zotero_errors as ze
@@ ... | Replace MiniDOM with ElementTree for XML parsing | py |
diff --git a/nodeconductor/structure/views.py b/nodeconductor/structure/views.py
index <HASH>..<HASH> 100644
--- a/nodeconductor/structure/views.py
+++ b/nodeconductor/structure/views.py
@@ -1238,7 +1238,10 @@ class ResourceViewSet(viewsets.GenericViewSet):
return response
data = []
- for... | Enable filtering resource by resource_type (NC-<I>) | py |
diff --git a/modin/pandas/io.py b/modin/pandas/io.py
index <HASH>..<HASH> 100644
--- a/modin/pandas/io.py
+++ b/modin/pandas/io.py
@@ -23,7 +23,7 @@ from ..data_management.partitioning.axis_partition import (
)
from ..data_management.data_manager import PandasDataManager
-PQ_INDEX_REGEX = re.compile("__index_level_... | Ignoring flake8 error in regex (#<I>) | py |
diff --git a/config/kube_config.py b/config/kube_config.py
index <HASH>..<HASH> 100644
--- a/config/kube_config.py
+++ b/config/kube_config.py
@@ -141,9 +141,10 @@ class KubeConfigLoader(object):
self._config_persister = config_persister
def _refresh_credentials():
- credentials, project_... | Add email scope to GCP provided credential refresh | py |
diff --git a/src/hamster/applet.py b/src/hamster/applet.py
index <HASH>..<HASH> 100755
--- a/src/hamster/applet.py
+++ b/src/hamster/applet.py
@@ -423,7 +423,7 @@ class HamsterApplet(object):
"""main window display and positioning"""
self.button.set_active(is_active)
- if not is_active:
+ ... | calling show_toggle after showing the requested window as otherwise it seems to have some positioning strangeness | py |
diff --git a/progressbar/bar.py b/progressbar/bar.py
index <HASH>..<HASH> 100644
--- a/progressbar/bar.py
+++ b/progressbar/bar.py
@@ -533,7 +533,7 @@ class ProgressBar(StdRedirectMixin, ResizableMixin, ProgressBarBase):
except StopIteration:
self.finish()
raise
- except Genera... | ignoring "impossible" use case for test coverage | py |
diff --git a/salt/client/ssh/shell.py b/salt/client/ssh/shell.py
index <HASH>..<HASH> 100644
--- a/salt/client/ssh/shell.py
+++ b/salt/client/ssh/shell.py
@@ -125,7 +125,7 @@ class Shell(object):
Return the string to execute ssh-copy-id
'''
if self.passwd and salt.utils.which('sshpass'):
- ... | Use single quotes in command string to prevent shell expansion of passwords When salt-ssh asks for a password to deploy its key it fails if the password contains a '$' because the generated shell command expands the '$' sign and the following characters as shell variable. Using single quotes prevents shell expansio... | py |
diff --git a/pymysql/tests/test_nextset.py b/pymysql/tests/test_nextset.py
index <HASH>..<HASH> 100644
--- a/pymysql/tests/test_nextset.py
+++ b/pymysql/tests/test_nextset.py
@@ -1,6 +1,11 @@
from pymysql.tests import base
from pymysql import util
+try:
+ import unittest2 as unittest
+except ImportError:
+ im... | Add multi cursor test currently failed. | py |
diff --git a/pykechain/models/part2.py b/pykechain/models/part2.py
index <HASH>..<HASH> 100644
--- a/pykechain/models/part2.py
+++ b/pykechain/models/part2.py
@@ -92,7 +92,7 @@ class Part2(Base):
self._cached_children = None
self.properties = [Property2.create(p, client=self._client)
- ... | Fall-back in case of json changes. | py |
diff --git a/raiden/tasks.py b/raiden/tasks.py
index <HASH>..<HASH> 100644
--- a/raiden/tasks.py
+++ b/raiden/tasks.py
@@ -195,7 +195,7 @@ class AlarmTask(Runnable):
if missed_blocks > 2:
log.info(
'Missed block(s)',
- missed_blocks=missed_blocks,
+ ... | Fix block number for missed blocks message [no ci integration] | py |
diff --git a/discord/ext/commands/core.py b/discord/ext/commands/core.py
index <HASH>..<HASH> 100644
--- a/discord/ext/commands/core.py
+++ b/discord/ext/commands/core.py
@@ -281,7 +281,15 @@ class Command:
else:
if origin is typing.Union:
errors = []
+ _NoneType = ... | [commands] Allow for backtracking parsing with typing.Optional Original code by zephyrkul. This new parsing mode allows for backtracking in case of failure when a typing.Union[..., NoneType] or a typing.Optional[...] is used. This means that if a type would fail to parse, the view is undo'd to a previous state, pass... | py |
diff --git a/tests/unit/test_http.py b/tests/unit/test_http.py
index <HASH>..<HASH> 100644
--- a/tests/unit/test_http.py
+++ b/tests/unit/test_http.py
@@ -95,6 +95,7 @@ class TestHTTP(object):
assert response.consume() == 'toby'
h.stop()
+ @pytest.mark.skipif(True, reason='TODO')
def test_po... | skip failing post chunk test for the moment | py |
diff --git a/StudDP.py b/StudDP.py
index <HASH>..<HASH> 100755
--- a/StudDP.py
+++ b/StudDP.py
@@ -85,14 +85,24 @@ class APIWrapper(object):
for i, folder in enumerate(folders):
folders[i]['path'] = os.path.join(self.__local_path, course['title'])
+ import traceback
while folders... | added retry for downloads on Unauthorized | py |
diff --git a/spyderlib/spyder.py b/spyderlib/spyder.py
index <HASH>..<HASH> 100644
--- a/spyderlib/spyder.py
+++ b/spyderlib/spyder.py
@@ -1286,6 +1286,14 @@ class MainWindow(QMainWindow):
except ImportError:
rope_version = not_installed
import spyderlib.qt.QtCore
+ qt_api = os.... | Spyder's about dialog box: added PyQt's API version number | py |
diff --git a/sorl/thumbnail/fields.py b/sorl/thumbnail/fields.py
index <HASH>..<HASH> 100644
--- a/sorl/thumbnail/fields.py
+++ b/sorl/thumbnail/fields.py
@@ -65,7 +65,7 @@ class ImageFormField(forms.FileField):
else:
raw_data = data['content']
if not default.engine.is_valid_image(raw_dat... | Raise correct error message when image is not valid according to the image engine | py |
diff --git a/psyplot/data.py b/psyplot/data.py
index <HASH>..<HASH> 100755
--- a/psyplot/data.py
+++ b/psyplot/data.py
@@ -2566,7 +2566,8 @@ class InteractiveArray(InteractiveBase):
self.arr._variable = res._variable
self.arr._coords = res._coords
try:
- self.arr._indexes = res.ind... | Use DataArray._indexes rather than DataArray.indexes for update The other one implictly transforms into a Indexes object from pandas | py |
diff --git a/slave/core.py b/slave/core.py
index <HASH>..<HASH> 100644
--- a/slave/core.py
+++ b/slave/core.py
@@ -148,7 +148,7 @@ class Command(object):
if len(parsed) == 1:
return parsed[0]
- return parsed
+ return tuple(parsed)
def write(self, value):
"""Construc... | Command returns a tuple instead of a list, closes #<I>. | py |
diff --git a/hazelcast/client.py b/hazelcast/client.py
index <HASH>..<HASH> 100644
--- a/hazelcast/client.py
+++ b/hazelcast/client.py
@@ -47,7 +47,7 @@ _logger = logging.getLogger(__name__)
class HazelcastClient(object):
- """Hazelcast client instance to access access and manipulate
+ """Hazelcast client in... | Clean up comment. Word 'access' used twice consecutively. (#<I>) | py |
diff --git a/sgqlc/types/__init__.py b/sgqlc/types/__init__.py
index <HASH>..<HASH> 100644
--- a/sgqlc/types/__init__.py
+++ b/sgqlc/types/__init__.py
@@ -1534,6 +1534,9 @@ class ContainerType(BaseType, metaclass=ContainerTypeMeta):
'''
def __init__(self, json_data, selection_list=None):
+ assert jso... | assert json_data is None or a JSON object (dict) | py |
diff --git a/toml.py b/toml.py
index <HASH>..<HASH> 100644
--- a/toml.py
+++ b/toml.py
@@ -523,8 +523,11 @@ def load_array(a):
new_a = []
start_group_index = 1
end_group_index = 2
+ in_str = False
while end_group_index < len(a[1:-1]):
- if a[... | Support } whithin string in inline objects within arrays | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -5,7 +5,7 @@ from setuptools import setup, find_packages
from setuptools.command.test import test as TestCommand
HERE = path.abspath(path.dirname(__file__))
-__version__ = '0.6.1-5'
+__version__ = '0.6.1-6'
__project_name... | incrementing setup.py for more testing | py |
diff --git a/validators/__init__.py b/validators/__init__.py
index <HASH>..<HASH> 100644
--- a/validators/__init__.py
+++ b/validators/__init__.py
@@ -9,10 +9,10 @@ file that comes with the source code, or http://www.gnu.org/licenses/gpl.txt.
from .chain import ReturnEarly, chainable, make_chain
from .validators impo... | fixed last instance of content_type sticking around | py |
diff --git a/tests/test_mongo.py b/tests/test_mongo.py
index <HASH>..<HASH> 100644
--- a/tests/test_mongo.py
+++ b/tests/test_mongo.py
@@ -20,7 +20,7 @@ class TestMongo(object):
config = yaml.load(config_file.read())
self.mongo_host = config['MongoBackend']['host']
- self.mongo_port = int(con... | Remove int holdover from ConfigParser | py |
diff --git a/pyemma/_base/progress/reporter/notebook.py b/pyemma/_base/progress/reporter/notebook.py
index <HASH>..<HASH> 100644
--- a/pyemma/_base/progress/reporter/notebook.py
+++ b/pyemma/_base/progress/reporter/notebook.py
@@ -35,6 +35,12 @@ class my_tqdm_notebook(tqdm_notebook):
from IPython.core.display ... | [progress] fix python2 issue with html escaping | py |
diff --git a/thefuck/rules/sudo.py b/thefuck/rules/sudo.py
index <HASH>..<HASH> 100644
--- a/thefuck/rules/sudo.py
+++ b/thefuck/rules/sudo.py
@@ -1,6 +1,7 @@
def match(command, settings):
return ('permission denied' in command.stderr.lower()
or 'EACCES' in command.stderr
+ or 'error: you ... | make sudo rule work with pacman | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -31,9 +31,9 @@ setup(
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
- 'Programming Language :: Python :: 3.2',
... | No longer bothering with Python <I>, add <I> | py |
diff --git a/sonnet/src/reshape_test.py b/sonnet/src/reshape_test.py
index <HASH>..<HASH> 100644
--- a/sonnet/src/reshape_test.py
+++ b/sonnet/src/reshape_test.py
@@ -193,7 +193,7 @@ class FlattenTest(test_utils.TestCase, parameterized.TestCase):
inputs = tf.ones([batch_size] + in_shape)
mod = reshape.Flatten... | Fixed cases where tf.TensorShape was constructed with float dimensions This is a prerequisite for making TensorShape and Dimension more strict about the types of their arguments. PiperOrigin-RevId: <I> Change-Id: Id2be<I>daabf8e<I>d<I>c<I>c<I>a | py |
diff --git a/argcomplete/__init__.py b/argcomplete/__init__.py
index <HASH>..<HASH> 100644
--- a/argcomplete/__init__.py
+++ b/argcomplete/__init__.py
@@ -284,7 +284,7 @@ class CompletionFinder(object):
if not completer.completing:
self._orig_callable(parser, name... | Allow overridden _SubParsersAction Use an `issubclass` check rather than `==` to allow subclassing of `argparse._SubParsersAction` in applications. Allows useful extensions such as aliasing of subcommands: <URL> | py |
diff --git a/microsoftbotframework/msbot.py b/microsoftbotframework/msbot.py
index <HASH>..<HASH> 100644
--- a/microsoftbotframework/msbot.py
+++ b/microsoftbotframework/msbot.py
@@ -64,7 +64,7 @@ class MsBot(Flask):
else:
self.state = None
- def run(self, host=None, port=None, debug=None, lo... | removed load_dotenv from run args | py |
diff --git a/src/python/grpcio_tests/tests/unit/_server_shutdown_scenarios.py b/src/python/grpcio_tests/tests/unit/_server_shutdown_scenarios.py
index <HASH>..<HASH> 100644
--- a/src/python/grpcio_tests/tests/unit/_server_shutdown_scenarios.py
+++ b/src/python/grpcio_tests/tests/unit/_server_shutdown_scenarios.py
@@ -8... | bazel docker image does not support ipv6 | py |
diff --git a/spyderlib/widgets/projectexplorer.py b/spyderlib/widgets/projectexplorer.py
index <HASH>..<HASH> 100644
--- a/spyderlib/widgets/projectexplorer.py
+++ b/spyderlib/widgets/projectexplorer.py
@@ -436,7 +436,7 @@ class ExplorerTreeWidget(OneColumnTree):
actions = []
- if not only_folder... | Project explorer/bugfix: error when menu pops up and project list is empty | py |
diff --git a/scriptworker/constants.py b/scriptworker/constants.py
index <HASH>..<HASH> 100644
--- a/scriptworker/constants.py
+++ b/scriptworker/constants.py
@@ -283,7 +283,7 @@ DEFAULT_CONFIG = frozendict({
# mozilla-esr68 too.
'project:releng:googleplay:aurora': 'esr68',
... | Bug <I> - Move Fennec Release to the esr<I> channel | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -8,8 +8,21 @@ execfile(os.path.join(os.path.abspath(os.path.dirname(__file__)),
setup(
name='doctor',
version=__version__, # noqa -- flake8 should ignore this line
- description='Helpers for using JSON schema in... | Updating setup.py Adding required fields for pypi. | py |
diff --git a/rocketchat/calls/channels/get_history.py b/rocketchat/calls/channels/get_history.py
index <HASH>..<HASH> 100644
--- a/rocketchat/calls/channels/get_history.py
+++ b/rocketchat/calls/channels/get_history.py
@@ -9,7 +9,7 @@ class GetRoomHistory(RocketChatBase):
endpoint = '/api/v1/channels.history'
... | fixed history method for Python 3 compatibility | py |
diff --git a/napalm/junos/junos.py b/napalm/junos/junos.py
index <HASH>..<HASH> 100644
--- a/napalm/junos/junos.py
+++ b/napalm/junos/junos.py
@@ -383,7 +383,7 @@ class JunOSDriver(NetworkDriver):
def discard_config(self):
"""Discard changes (rollback 0)."""
- self.device.cu.rollback(rb_id=0)
+ ... | if we are ignoring warnings, also ignore them on discard | py |
diff --git a/graphics/nbinput.py b/graphics/nbinput.py
index <HASH>..<HASH> 100644
--- a/graphics/nbinput.py
+++ b/graphics/nbinput.py
@@ -102,7 +102,7 @@ class _GetchMacCarbon:
# number is converted to an ASCII character with chr() and
# returned.
- (what, msg, when, where, mod) ... | Cleaned up nbinput mac a bit | py |
diff --git a/test_wptools.py b/test_wptools.py
index <HASH>..<HASH> 100755
--- a/test_wptools.py
+++ b/test_wptools.py
@@ -20,9 +20,9 @@ class ExtractTestCase(unittest.TestCase):
def test_html_lead(self):
from wptools.extract import html_lead
- data = ("<div>templates</div>"
+ data = ("<di... | added <table/> to test_html_lead() | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -47,7 +47,8 @@ setup(
],
entry_points={"console_scripts": ["fusesoc = fusesoc.main:main"]},
setup_requires=[
- "setuptools_scm",
+ "setuptools_scm < 7.0; python_version<'3.7'",
+ "setuptools... | fix: `python<I>` build by using different `setuptools_scm` version fixes: #<I> | py |
diff --git a/vcs/backends/base.py b/vcs/backends/base.py
index <HASH>..<HASH> 100644
--- a/vcs/backends/base.py
+++ b/vcs/backends/base.py
@@ -427,3 +427,12 @@ class BaseInMemoryChangeset(object):
"""
raise NotImplementedError
+ def reset(self):
+ """
+ Resets this instance to initi... | Added reset method for InMemoryChangeset at base backend --HG-- branch : workdir | py |
diff --git a/pygam/tests/test_GAM_methods.py b/pygam/tests/test_GAM_methods.py
index <HASH>..<HASH> 100644
--- a/pygam/tests/test_GAM_methods.py
+++ b/pygam/tests/test_GAM_methods.py
@@ -45,11 +45,25 @@ def test_LogisticGAM_accuracy(default):
def test_PoissonGAM_exposure(coal):
"""
- check that we can fit a ... | testing poisson loglikelihood with exposure | py |
diff --git a/dynash/dynash.py b/dynash/dynash.py
index <HASH>..<HASH> 100755
--- a/dynash/dynash.py
+++ b/dynash/dynash.py
@@ -580,6 +580,33 @@ class DynamoDBShell(Cmd):
if self.consumed:
print "consumed units:", item.consumed_units
+ def do_rmattr(self, line):
+ "rmattr [:tablename] [... | Added new command "rmattr" to remove attributes from an item | py |
diff --git a/treeherder/perf/management/commands/remove_duplicate_signatures.py b/treeherder/perf/management/commands/remove_duplicate_signatures.py
index <HASH>..<HASH> 100644
--- a/treeherder/perf/management/commands/remove_duplicate_signatures.py
+++ b/treeherder/perf/management/commands/remove_duplicate_signatures.... | Bug <I> - Another fix to the signature cleanup script | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -22,7 +22,6 @@ install_reqs = parse_requirements('requirements.txt',
session=False)
# reqs is a list of requirement
-# e.g. ['django==1.5.1', 'mezzanine==1.4.6']
reqs = [str(ir.req) for i... | removing comment that confuses versioneye | py |
diff --git a/run_deploy_job_wr.py b/run_deploy_job_wr.py
index <HASH>..<HASH> 100755
--- a/run_deploy_job_wr.py
+++ b/run_deploy_job_wr.py
@@ -26,6 +26,7 @@ def main():
'artifacts': {'artifacts': [
'artifacts/machine*/*log*',
'artifacts/*.jenv',
+ 'artifacts... | Add cache.yaml to list of files archived to s3. | py |
diff --git a/tornado/ioloop.py b/tornado/ioloop.py
index <HASH>..<HASH> 100644
--- a/tornado/ioloop.py
+++ b/tornado/ioloop.py
@@ -102,7 +102,7 @@ class IOLoop(object):
"""Returns a global IOLoop instance.
Most single-threaded applications have a single, global IOLoop.
- Use this method inste... | Catch IOError in addition to OSError in IOLoop.remove_handler (friendfeed's epoll module throws OSError, while the one in the standard library throws IOError) | py |
diff --git a/emit/multilang.py b/emit/multilang.py
index <HASH>..<HASH> 100644
--- a/emit/multilang.py
+++ b/emit/multilang.py
@@ -1,6 +1,9 @@
'class to communicate with other languages over stdin/out'
import logging
-import msgpack
+try:
+ import msgpack
+except ImportError:
+ import msgpack_pure
import shlex... | get the one msgpack reference I missed | py |
diff --git a/angr/storage/paged_memory.py b/angr/storage/paged_memory.py
index <HASH>..<HASH> 100644
--- a/angr/storage/paged_memory.py
+++ b/angr/storage/paged_memory.py
@@ -483,13 +483,12 @@ class SimPagedMemory:
pass
elif isinstance(self._memory_backer, cle.Clemory):
# find permiss... | Fix sources of truth for page permissions - fix a rex testcase | py |
diff --git a/core/match_filter.py b/core/match_filter.py
index <HASH>..<HASH> 100644
--- a/core/match_filter.py
+++ b/core/match_filter.py
@@ -469,6 +469,10 @@ def match_filter(template_names, templates, stream, threshold,
# Set up a trace object for the cccsum as this is easier to plot and
# maintins... | Added non-interactive plotting Former-commit-id: <I>d<I>fb<I>adfaae3ea<I>caa2d<I>a8f | py |
diff --git a/molo/core/templatetags/core_tags.py b/molo/core/templatetags/core_tags.py
index <HASH>..<HASH> 100644
--- a/molo/core/templatetags/core_tags.py
+++ b/molo/core/templatetags/core_tags.py
@@ -688,7 +688,11 @@ def get_next_article(context, article):
try:
return next_article.translated_pages.get(... | handle show only translated pages for next article section | py |
diff --git a/salt/modules/cp.py b/salt/modules/cp.py
index <HASH>..<HASH> 100644
--- a/salt/modules/cp.py
+++ b/salt/modules/cp.py
@@ -121,7 +121,6 @@ def cache_file(path):
payload['load'] = auth.crypticle.dumps(load)
socket.send_pyobj(payload)
data = auth.crypticle.loads(socket.r... | Remove print from cp.py | py |
diff --git a/satpy/resample.py b/satpy/resample.py
index <HASH>..<HASH> 100644
--- a/satpy/resample.py
+++ b/satpy/resample.py
@@ -536,9 +536,12 @@ class NativeResampler(BaseResampler):
c_size = max(x[0] for x in d_arr.chunks)
def _calc_chunks(c, c_size):
- return tuple(([c_si... | Fix chunk calculations in native resampler for uneven chunk sizes | py |
diff --git a/pnc_cli/buildconfigurations.py b/pnc_cli/buildconfigurations.py
index <HASH>..<HASH> 100644
--- a/pnc_cli/buildconfigurations.py
+++ b/pnc_cli/buildconfigurations.py
@@ -156,13 +156,26 @@ def delete_build_configuration(id=None, name=None):
:param name:
:return:
"""
+
to_delete_id = get_... | NCL-<I> Adding in a check for a BuildConfiguration being a dependency of another when attempting to delete. This check will need to be refined once there is a better way to retrieve ALL BuildConfigurations | py |
diff --git a/stl/__about__.py b/stl/__about__.py
index <HASH>..<HASH> 100644
--- a/stl/__about__.py
+++ b/stl/__about__.py
@@ -1,6 +1,6 @@
__package_name__ = 'numpy-stl'
__import_name__ = 'stl'
-__version__ = '2.12.0'
+__version__ = '2.13.0'
__author__ = 'Rick van Hattem'
__author_email__ = 'Wolph@Wol.ph'
__descri... | Incrementing version to <I> | py |
diff --git a/examples/fp.py b/examples/fp.py
index <HASH>..<HASH> 100644
--- a/examples/fp.py
+++ b/examples/fp.py
@@ -47,10 +47,12 @@ factor = @ _ factor mk_map
primary = decimal mk_aref
| ~ _ integer mk_literal
| name mk_call
- ... | fix: parser conflict for - and ->; missing > operator | py |
diff --git a/eqcorrscan/core/match_filter.py b/eqcorrscan/core/match_filter.py
index <HASH>..<HASH> 100644
--- a/eqcorrscan/core/match_filter.py
+++ b/eqcorrscan/core/match_filter.py
@@ -666,8 +666,7 @@ def match_filter(template_names, template_list, st, threshold,
if (tr.stats.station, tr.stats.ch... | pick time to output to catalog Should the pick time be just the detect time and not detecttime + template start time - detect time (which I think is just template start time)? Since plotting the events in catalog will trim to around the pick time. So choosing the template start time as pick time doesn't cut the stre... | py |
diff --git a/custodian/qchem/jobs.py b/custodian/qchem/jobs.py
index <HASH>..<HASH> 100644
--- a/custodian/qchem/jobs.py
+++ b/custodian/qchem/jobs.py
@@ -278,7 +278,7 @@ class QchemJob(Job):
out_file_object.writelines(header_lines)
out_file_object.writelines(sub_out)
... | append multiple blank lines after exit code | py |
diff --git a/glue_vispy_viewers/scatter/layer_style_widget.py b/glue_vispy_viewers/scatter/layer_style_widget.py
index <HASH>..<HASH> 100644
--- a/glue_vispy_viewers/scatter/layer_style_widget.py
+++ b/glue_vispy_viewers/scatter/layer_style_widget.py
@@ -28,7 +28,7 @@ class ScatterLayerStyleWidget(QtGui.QWidget):
... | Make use of log= option in ValueProperty for size_scaling | py |
diff --git a/qface/generator.py b/qface/generator.py
index <HASH>..<HASH> 100644
--- a/qface/generator.py
+++ b/qface/generator.py
@@ -56,8 +56,8 @@ class Generator(object):
logger.info('write {0}'.format(path))
data = self.render(template, context)
if self.hasDifferentContent(data, path):
- ... | fixes logic issue around preserving changed file flag | py |
diff --git a/docker/api/secret.py b/docker/api/secret.py
index <HASH>..<HASH> 100644
--- a/docker/api/secret.py
+++ b/docker/api/secret.py
@@ -2,12 +2,13 @@ import base64
import six
+from .. import errors
from .. import utils
class SecretApiMixin(object):
@utils.minimum_version('1.25')
- def create_s... | Add support for secret driver in create_secret | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.