diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/gsh/remote_dispatcher.py b/gsh/remote_dispatcher.py
index <HASH>..<HASH> 100644
--- a/gsh/remote_dispatcher.py
+++ b/gsh/remote_dispatcher.py
@@ -283,6 +283,8 @@ class remote_dispatcher(buffered_dispatcher):
"""Change the name of the shell, possibly updating the maximum name
length"""
... | Use the hostname in case a blank name is returned | py |
diff --git a/astroplan/scheduling.py b/astroplan/scheduling.py
index <HASH>..<HASH> 100644
--- a/astroplan/scheduling.py
+++ b/astroplan/scheduling.py
@@ -32,7 +32,7 @@ class ObservingBlock(object):
"""
Parameters
----------
- target : `~astroplan.FixedTarget'
+ target : `~astro... | Small documentation fixes that should clear up some test failures | py |
diff --git a/monasca_persister/persister.py b/monasca_persister/persister.py
index <HASH>..<HASH> 100644
--- a/monasca_persister/persister.py
+++ b/monasca_persister/persister.py
@@ -308,7 +308,7 @@ class AlarmPersister(AbstractPersister):
ts = time_stamp / 1000.0
data = {"measurement": 'alarm_state... | Lack of time field caused loss of Alarm History The time field was name timestamp which caused influxdb to use the write time for the time field. If multiple Alarm History messages were written, Influxdb only kept the last because the times were not unique. Change-Id: I<I>bb8a<I>d7a<I>ab<I>c3e<I>a<I>f<I> | py |
diff --git a/tofu/openadas2tofu/_read_files.py b/tofu/openadas2tofu/_read_files.py
index <HASH>..<HASH> 100644
--- a/tofu/openadas2tofu/_read_files.py
+++ b/tofu/openadas2tofu/_read_files.py
@@ -139,9 +139,11 @@ def _format_for_DataCollection_adf15(dout):
}
# dlines
+ inds = np.argsort([v0['lambda0'] for... | [#<I>] TBF: sorting lines by wavelength in openadas2tofu._read_files.py | py |
diff --git a/hide_code/hide_code.py b/hide_code/hide_code.py
index <HASH>..<HASH> 100644
--- a/hide_code/hide_code.py
+++ b/hide_code/hide_code.py
@@ -204,7 +204,7 @@ def setup_info():
break
custom_js = ''
- with open(path.join(Utils.get_notebook_module_dir(), 'notebook','static','custom','custom.js'), 'r') as ... | Updated hide_code with new path helpers. | py |
diff --git a/toml.py b/toml.py
index <HASH>..<HASH> 100644
--- a/toml.py
+++ b/toml.py
@@ -232,7 +232,8 @@ def loads(s, _dict=dict):
multilinestr = ""
multibackslash = False
for line in s:
- line = line.strip()
+ if not multilinestr:
+ line = line.strip()
if line == "":
... | Do not strip() line if its part of multiline str Fixes #<I> | py |
diff --git a/johnny/tests/cache.py b/johnny/tests/cache.py
index <HASH>..<HASH> 100644
--- a/johnny/tests/cache.py
+++ b/johnny/tests/cache.py
@@ -44,6 +44,20 @@ class SingleModelTest(QueryCacheBase):
self.failUnless(len(connection.queries) == 1)
self.failUnless(new_count == 2)
+ def test_queryca... | add in a test to make sure that we aren't mistakenly passing lists back from the querycache when we shouldn't | py |
diff --git a/testing/test_txnode.py b/testing/test_txnode.py
index <HASH>..<HASH> 100644
--- a/testing/test_txnode.py
+++ b/testing/test_txnode.py
@@ -80,7 +80,7 @@ class TestMasterSlaveConnection:
node.send(123) # invalid item
kwargs = mysetup.geteventargs("pytest_testnodedown")
assert kwar... | fix bug related to remoteerror/eoferror separation | py |
diff --git a/astroid/__pkginfo__.py b/astroid/__pkginfo__.py
index <HASH>..<HASH> 100644
--- a/astroid/__pkginfo__.py
+++ b/astroid/__pkginfo__.py
@@ -30,7 +30,8 @@ install_requires = [
"six",
"wrapt",
'typing;python_version<"3.5"',
- 'typed-ast>=1.3.0;implementation_name== "cpython"',
+ 'typed-ast... | Install typed ast <I> for Python <I> and earlier versions for Python <I> We still need to emit errors on pylint's side when keywords such as `async` are assigned to variables, but with the latest typed-ast that is already a syntax error. | py |
diff --git a/nodeconductor/core/permissions.py b/nodeconductor/core/permissions.py
index <HASH>..<HASH> 100644
--- a/nodeconductor/core/permissions.py
+++ b/nodeconductor/core/permissions.py
@@ -165,9 +165,7 @@ class FilteredCollaboratorsPermissionLogic(PermissionLogic):
return True
if self.... | Is resource's user is none, only staff can see it (ITACLOUD-<I>) | py |
diff --git a/qutepart/syntaxhlighter.py b/qutepart/syntaxhlighter.py
index <HASH>..<HASH> 100644
--- a/qutepart/syntaxhlighter.py
+++ b/qutepart/syntaxhlighter.py
@@ -60,7 +60,7 @@ class GlobalTimer:
class SyntaxHighlighter(QObject):
# when initially parsing text, it is better, if highlighted text is drawn ... | Increase max parsing time for big change. <I> sec. | py |
diff --git a/DemoPrograms/Demo_All_Elements_Simple.py b/DemoPrograms/Demo_All_Elements_Simple.py
index <HASH>..<HASH> 100644
--- a/DemoPrograms/Demo_All_Elements_Simple.py
+++ b/DemoPrograms/Demo_All_Elements_Simple.py
@@ -84,7 +84,7 @@ window = make_window()
while True:
event, values = window.read()
- sg.Pr... | Fixed use custom title & menubar bug - wasn't remembering the setting and was stuck in custom mode after selecting it once. Removed the debug window print | py |
diff --git a/pandas/tools/tests/test_merge.py b/pandas/tools/tests/test_merge.py
index <HASH>..<HASH> 100644
--- a/pandas/tools/tests/test_merge.py
+++ b/pandas/tools/tests/test_merge.py
@@ -1155,8 +1155,6 @@ class TestConcatenate(unittest.TestCase):
self.assertRaises(ValueError, concat, [df, df2],
... | TST: oops, delete stray line | py |
diff --git a/django_auth_ldap/config.py b/django_auth_ldap/config.py
index <HASH>..<HASH> 100644
--- a/django_auth_ldap/config.py
+++ b/django_auth_ldap/config.py
@@ -80,12 +80,8 @@ class _LDAPConfig(object):
Initializes and returns our logger instance.
"""
if cls.logger is None:
- ... | Remove unnecessary compatibility shim for logging.NullHandler The logging.NullHandler class was introduced in Python <I>. It is available in all supported Python versions. Can remove the compatibility shim and use the version in the stdlib instead. For additional information, see: <URL> | py |
diff --git a/salt/grains/core.py b/salt/grains/core.py
index <HASH>..<HASH> 100644
--- a/salt/grains/core.py
+++ b/salt/grains/core.py
@@ -710,7 +710,7 @@ def _windows_virtual(osdata):
elif "VirtualBox" in productname:
grains["virtual"] = "VirtualBox"
# Product Name: VMware Virtual Platform
- elif... | add another conditional to checking for vmware in productname | py |
diff --git a/txairbrake/__init__.py b/txairbrake/__init__.py
index <HASH>..<HASH> 100644
--- a/txairbrake/__init__.py
+++ b/txairbrake/__init__.py
@@ -1,2 +1,2 @@
-version_info = (0, 3)
+version_info = (0, 4)
version = '.'.join(map(str, version_info)) | bumped version to <I> | py |
diff --git a/djangoratings/__init__.py b/djangoratings/__init__.py
index <HASH>..<HASH> 100644
--- a/djangoratings/__init__.py
+++ b/djangoratings/__init__.py
@@ -279,4 +279,6 @@ class RatingField(IntegerField):
class AnonymousRatingField(RatingField):
- allow_anonymous = True
+ def __init__(self, *args, **k... | Quick fix for AnonymousRatingField not working as intended | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -1,4 +1,5 @@
import os
+import sys
from setuptools import setup, find_packages
__here__ = os.path.dirname(os.path.abspath(__file__))
@@ -25,7 +26,6 @@ entry_points = {
}
runtime = set([
- 'pyyaml>=3.10,<=3.13',
... | pyyaml dep set to version <I> (#<I>) * used different versions of pyyaml for different python versions | py |
diff --git a/api/models.py b/api/models.py
index <HASH>..<HASH> 100644
--- a/api/models.py
+++ b/api/models.py
@@ -626,6 +626,16 @@ def _etcd_purge_user(**kwargs):
pass
+def _etcd_create_app(**kwargs):
+ appname = kwargs['instance']
+ _etcd_client.write('/deis/services/{}'.format(appname), None, dir=... | feat(controller): set app dir in etcd If you add or remove the app from the controller, the corresponding etcd key is not modified. This ensures that the etcd keyspace is created/removed when an app is modified in the database. | py |
diff --git a/pep8ify/fixes/fix_tabs.py b/pep8ify/fixes/fix_tabs.py
index <HASH>..<HASH> 100644
--- a/pep8ify/fixes/fix_tabs.py
+++ b/pep8ify/fixes/fix_tabs.py
@@ -2,7 +2,7 @@ from __future__ import unicode_literals
from lib2to3.fixer_base import BaseFix
from lib2to3.pytree import Leaf
-SPACES = ' ' * 4
+from .utils... | Clean-up: Use globally define number of spaces. | py |
diff --git a/launch_control/commands/dispatcher.py b/launch_control/commands/dispatcher.py
index <HASH>..<HASH> 100644
--- a/launch_control/commands/dispatcher.py
+++ b/launch_control/commands/dispatcher.py
@@ -29,8 +29,8 @@ class LaunchControlDispatcher(object):
sub_parser.set_defaults(command_cls=command... | Add ability to pass explicit arguments to LaunchControlDispatcher | py |
diff --git a/drivers/python/rethinkdb/__init__.py b/drivers/python/rethinkdb/__init__.py
index <HASH>..<HASH> 100644
--- a/drivers/python/rethinkdb/__init__.py
+++ b/drivers/python/rethinkdb/__init__.py
@@ -1,17 +1,15 @@
# Copyright 2010-2014 RethinkDB, all rights reserved.
+# Define this before importing so nothing... | fixing compatibility for pypy - modules cannot be used as a dict | py |
diff --git a/wily/__main__.py b/wily/__main__.py
index <HASH>..<HASH> 100644
--- a/wily/__main__.py
+++ b/wily/__main__.py
@@ -66,7 +66,7 @@ def cli(ctx, debug, config, path):
@cli.command()
@click.option(
- "-h",
+ "-n",
"--max-revisions",
default=None,
type=click.INT, | rename the -h flag to -n (was a typo): | py |
diff --git a/tests/test_history.py b/tests/test_history.py
index <HASH>..<HASH> 100644
--- a/tests/test_history.py
+++ b/tests/test_history.py
@@ -26,9 +26,12 @@ def test_base_help_history(base_app):
assert out == normalize(HELP_HISTORY)
def test_exclude_from_history(base_app, monkeypatch):
- # Mock out the ... | Fixed unit test which was slow on macOS and hung forever on Windows | py |
diff --git a/gmaps/conf.py b/gmaps/conf.py
index <HASH>..<HASH> 100644
--- a/gmaps/conf.py
+++ b/gmaps/conf.py
@@ -55,3 +55,6 @@ class GmapsConf(AppConf):
self._meta.holder.GMAPS_LANGUAGE_CODE = value
return value
return getattr(settings, 'GMAPS_LANGUAGE_CODE')
+
+ class Meta:
+ ... | fix GMAPS_LANGUAGE_CODE | py |
diff --git a/tests/gui/test_i18n.py b/tests/gui/test_i18n.py
index <HASH>..<HASH> 100644
--- a/tests/gui/test_i18n.py
+++ b/tests/gui/test_i18n.py
@@ -2,7 +2,7 @@ from __future__ import print_function
from tests.core.test_i18n import use_locale, create_mo_files
-def test_gtk_translation(gui, monkeypatch):
+def _te... | fix: disable gui tests that requires de_DE locale | py |
diff --git a/python_modules/dagster/dagster/core/definitions/configurable.py b/python_modules/dagster/dagster/core/definitions/configurable.py
index <HASH>..<HASH> 100644
--- a/python_modules/dagster/dagster/core/definitions/configurable.py
+++ b/python_modules/dagster/dagster/core/definitions/configurable.py
@@ -122,7... | Remove dangling references to SystemStorageDefinition Test Plan: Unit Reviewers: sandyryza, yuhan Reviewed By: sandyryza, yuhan Differential Revision: <URL> | py |
diff --git a/src/pdfCropMargins/external_program_calls.py b/src/pdfCropMargins/external_program_calls.py
index <HASH>..<HASH> 100644
--- a/src/pdfCropMargins/external_program_calls.py
+++ b/src/pdfCropMargins/external_program_calls.py
@@ -443,8 +443,9 @@ def init_and_test_pdftoppm_executable(prefer_local=False, exit_on... | minor formatting and comments to exernal programs module | py |
diff --git a/gwpy/types/array2d.py b/gwpy/types/array2d.py
index <HASH>..<HASH> 100644
--- a/gwpy/types/array2d.py
+++ b/gwpy/types/array2d.py
@@ -116,7 +116,7 @@ class Array2D(Series):
# create new object
new = super(Array2D, cls).__new__(cls, data, unit=unit, xindex=xindex,
- ... | gwpy.types: fixed xunit spec for Array2D wasn't being set previously | py |
diff --git a/database_sanitizer/utils/postgres.py b/database_sanitizer/utils/postgres.py
index <HASH>..<HASH> 100644
--- a/database_sanitizer/utils/postgres.py
+++ b/database_sanitizer/utils/postgres.py
@@ -10,6 +10,7 @@ https://www.postgresql.org/docs/9.2/static/sql-copy.html
from __future__ import unicode_literals... | Fix str vs. unicode problem Function `chr()` does not return Unicode string in Python 2, so use the one provided by six library instead. | py |
diff --git a/dmf_device_ui/canvas.py b/dmf_device_ui/canvas.py
index <HASH>..<HASH> 100644
--- a/dmf_device_ui/canvas.py
+++ b/dmf_device_ui/canvas.py
@@ -797,4 +797,14 @@ class DmfDeviceCanvas(GtkShapesCanvasView):
cr_warped, np_warped_view = np_to_cairo(np_frame)
self.set_surface('video', cr... | Improve mouseover response at high video framerate | py |
diff --git a/FlowCal/plot.py b/FlowCal/plot.py
index <HASH>..<HASH> 100644
--- a/FlowCal/plot.py
+++ b/FlowCal/plot.py
@@ -576,7 +576,7 @@ def scatter2d(data_list,
elif hasattr(data_plot, 'channels'):
plt.ylabel(data_plot.channels[1])
- # Set plot limits if specified, else extract range from range
+ ... | Fixed bad comments in plot.py. | py |
diff --git a/storage/tests/system.py b/storage/tests/system.py
index <HASH>..<HASH> 100644
--- a/storage/tests/system.py
+++ b/storage/tests/system.py
@@ -27,6 +27,7 @@ from google.cloud.storage._helpers import _base64_md5hash
from google.cloud.storage.bucket import LifecycleRuleDelete
from google.cloud.storage.bucke... | Skip signing tests for insufficient credentials (#<I>) * Skip signing tests for insufficient credentials | py |
diff --git a/cwltool/main.py b/cwltool/main.py
index <HASH>..<HASH> 100755
--- a/cwltool/main.py
+++ b/cwltool/main.py
@@ -431,8 +431,8 @@ def load_job_order(args, t, stdin, print_input_deps=False, relative_deps=False,
if len(args.job_order) == 1 and args.job_order[0][0] != "-":
job_order_file = args.job_... | Doc object from stdin (#<I>) Use yaml.round_trip_load() | py |
diff --git a/trie/trie.py b/trie/trie.py
index <HASH>..<HASH> 100644
--- a/trie/trie.py
+++ b/trie/trie.py
@@ -616,12 +616,16 @@ class BinaryTrie(object):
return self._hash_and_save(encode_branch_node(new_left_child, new_right_child))
def exists(self, key):
+ validate_is_bytes(key)
+
... | patch: add a few more validate_is_bytes check | py |
diff --git a/tofu/spectro/_rockingcurve.py b/tofu/spectro/_rockingcurve.py
index <HASH>..<HASH> 100644
--- a/tofu/spectro/_rockingcurve.py
+++ b/tofu/spectro/_rockingcurve.py
@@ -12,7 +12,6 @@ import scipy.interpolate
import matplotlib.pyplot as plt
import matplotlib.gridspec as gridspec
from matplotlib.axes._axes i... | [#<I>] datastock module deleted | py |
diff --git a/Lib/fontbakery/profiles/adobefonts.py b/Lib/fontbakery/profiles/adobefonts.py
index <HASH>..<HASH> 100644
--- a/Lib/fontbakery/profiles/adobefonts.py
+++ b/Lib/fontbakery/profiles/adobefonts.py
@@ -89,7 +89,6 @@ SET_EXPLICIT_CHECKS = {
#
# =======================================
# From googl... | Remove reference to removed check Check removed in #<I> | py |
diff --git a/openquake/supervising/supervisor.py b/openquake/supervising/supervisor.py
index <HASH>..<HASH> 100644
--- a/openquake/supervising/supervisor.py
+++ b/openquake/supervising/supervisor.py
@@ -165,8 +165,9 @@ class SupervisorLogMessageConsumer(logs.AMQPLogSource):
... | fixed logic of killing the job on ERROR or CRITICAL log messages | py |
diff --git a/salt/utils/win_update.py b/salt/utils/win_update.py
index <HASH>..<HASH> 100644
--- a/salt/utils/win_update.py
+++ b/salt/utils/win_update.py
@@ -238,7 +238,8 @@ class WindowsUpdateAgent(object):
# Error codes found at the following site:
# https://msdn.microsoft.com/en-us/library/windows/desktop... | Add faile code for WinHTTP send/receive error | py |
diff --git a/spillway/serializers.py b/spillway/serializers.py
index <HASH>..<HASH> 100644
--- a/spillway/serializers.py
+++ b/spillway/serializers.py
@@ -60,9 +60,9 @@ class RasterModelSerializer(GeoModelSerializer):
for field in meta.fields:
if isinstance(field, models.FileField):
... | Use request object to find accepted renderer | py |
diff --git a/pypureomapi.py b/pypureomapi.py
index <HASH>..<HASH> 100644
--- a/pypureomapi.py
+++ b/pypureomapi.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python
# -*- coding: utf8 -*-
#
# library for communicating with an isc dhcp server over the omapi protocol | Replace shebang by /usr/bin/env | py |
diff --git a/optlang/interface.py b/optlang/interface.py
index <HASH>..<HASH> 100644
--- a/optlang/interface.py
+++ b/optlang/interface.py
@@ -1118,7 +1118,7 @@ class Model(object):
constraint.expression
keys = [constraint.name for constraint in constraints]
if len(constraints) > 350: # ... | fix: remove large number of constraints (#<I>) By calling self.constraints in line <I> it was starting a never ending recursion. | py |
diff --git a/metpy/plots/tests/test_station_plot.py b/metpy/plots/tests/test_station_plot.py
index <HASH>..<HASH> 100644
--- a/metpy/plots/tests/test_station_plot.py
+++ b/metpy/plots/tests/test_station_plot.py
@@ -158,7 +158,7 @@ def test_simple_layout():
return fig
-@pytest.mark.mpl_image_compare(tolerance={... | MNT: Reduce image test threshold This seems to be the only option to get this test to pass on my mac. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -13,6 +13,9 @@ if sys.argv[-1] == 'setup.py':
print("To install, run 'python setup.py install'\n")
if sys.argv[-1] == 'publish':
+ if sys.version_info.major < 3:
+ print('Error: do not publish release with py... | [packaging] Forbid publishing releases with python2 Because it generates broken wheels. | py |
diff --git a/tests/pathops_test.py b/tests/pathops_test.py
index <HASH>..<HASH> 100644
--- a/tests/pathops_test.py
+++ b/tests/pathops_test.py
@@ -75,10 +75,8 @@ class PathTest(object):
('moveTo', ((0.0, 0.0),)),
('qCurveTo', ((1.0, 1.0), (1.5, 1.5))),
('qCurveTo', ((2.0, 2.0), (3... | adjust tests after using SkPath::RawIter in draw should be more faithful to the original content now | py |
diff --git a/examples/embed/animated.py b/examples/embed/animated.py
index <HASH>..<HASH> 100644
--- a/examples/embed/animated.py
+++ b/examples/embed/animated.py
@@ -40,7 +40,6 @@ rmax = r_base + sin(r_x) + 1
colors = ["FFFFCC", "#C7E9B4", "#7FCDBB", "#41B6C4", "#2C7FB8",
"#253494", "#2C7FB8", "#41B6C4", "... | Update animated.py (#<I>) | py |
diff --git a/features/eolearn/features/interpolation.py b/features/eolearn/features/interpolation.py
index <HASH>..<HASH> 100644
--- a/features/eolearn/features/interpolation.py
+++ b/features/eolearn/features/interpolation.py
@@ -393,6 +393,14 @@ class LinearInterpolation(InterpolationTask):
super().__init__(... | added LinearInterpolationNP(InterpolationTask) | py |
diff --git a/hydpy/core/timetools.py b/hydpy/core/timetools.py
index <HASH>..<HASH> 100644
--- a/hydpy/core/timetools.py
+++ b/hydpy/core/timetools.py
@@ -373,6 +373,10 @@ class Date(object):
self.datetime = date
elif isinstance(date, str):
self._initfromstr(date)
+ elif isinst... | Allow TOY objects as initialization arguments for class Date. Note that the year is generally set to <I>, which is a leap year. | py |
diff --git a/mistune.py b/mistune.py
index <HASH>..<HASH> 100644
--- a/mistune.py
+++ b/mistune.py
@@ -792,8 +792,10 @@ class Markdown(object):
if not self.footnotes:
return out
- self.footnotes = filter(lambda o: keys.get(o['key']), self.footnotes)
- self.footnotes.sort(key=lambda... | In Python 3, filter function return a filter object, which is a generator-like object, it has no filter method. | py |
diff --git a/elasticsearch_dsl/field.py b/elasticsearch_dsl/field.py
index <HASH>..<HASH> 100644
--- a/elasticsearch_dsl/field.py
+++ b/elasticsearch_dsl/field.py
@@ -9,7 +9,7 @@ except ImportError:
from datetime import date, datetime
from dateutil import parser, tz
-from six import string_types, iteritems
+from si... | Check for long in python 2 as well Fixes #<I> | 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
@@ -2,7 +2,8 @@ patterns = ['permission denied',
'EACCES',
'pkg: Insufficient privileges',
'you cannot perform this operation unless you a... | sudo rule: add support for "Operation not permitted" errors | py |
diff --git a/insights/contrib/soscleaner.py b/insights/contrib/soscleaner.py
index <HASH>..<HASH> 100644
--- a/insights/contrib/soscleaner.py
+++ b/insights/contrib/soscleaner.py
@@ -95,7 +95,7 @@ class SOSCleaner:
#if mode == '200' or mode == '444' or mode == '400':
# skip_... | whitelist json mimetype for soscleaner (#<I>) | py |
diff --git a/pyqode/core/modes/code_completion.py b/pyqode/core/modes/code_completion.py
index <HASH>..<HASH> 100644
--- a/pyqode/core/modes/code_completion.py
+++ b/pyqode/core/modes/code_completion.py
@@ -368,7 +368,7 @@ class CodeCompletionMode(Mode, QtCore.QObject):
self._completer.completionMo... | Code completion: do not replace whole word when inserting as this can be quite annoying | py |
diff --git a/pyxid/serial_wrapper.py b/pyxid/serial_wrapper.py
index <HASH>..<HASH> 100644
--- a/pyxid/serial_wrapper.py
+++ b/pyxid/serial_wrapper.py
@@ -20,6 +20,8 @@ class SerialPort(object):
def available_ports():
if sys.platform == 'darwin':
return MacSerialPort.available_ports()
+ ... | update to the available_ports() method of SerialPort | py |
diff --git a/src/main/python/jpyutil.py b/src/main/python/jpyutil.py
index <HASH>..<HASH> 100644
--- a/src/main/python/jpyutil.py
+++ b/src/main/python/jpyutil.py
@@ -26,7 +26,7 @@ PYTHON_LIB_DIR_CONFIG_VAR_NAMES = ('LDLIBRARYDIR', 'srcdir',
'BINDIR', 'DESTLIB', 'DESTSHARED',
... | Removed 'LDLIBRARY' var from shared lib name list, as it returns an '*.a' file on Ubuntu <I> | py |
diff --git a/odl/discr/discr_ops.py b/odl/discr/discr_ops.py
index <HASH>..<HASH> 100644
--- a/odl/discr/discr_ops.py
+++ b/odl/discr/discr_ops.py
@@ -748,9 +748,11 @@ class Laplacian(Operator):
>>> f = space.element(data)
>>> lap = Laplacian(space)
>>> print(lap(f))
- [[0.0, 1.0, 0.0]... | MAINT: fix doctest in discr_ops | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -211,9 +211,9 @@ setup(
setup_requires=setup_requirements,
install_requires=requirements,
extras_require={
- "tests": ["pytest!=3.2.0"],
+ "tests": ["pytest>=3.2.1"],
},
- tests_require=["p... | bump pytest version (#<I>) | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -8,7 +8,7 @@ from astropy_helpers.setup_helpers import register_commands, get_package_info
from astropy_helpers.version_helpers import generate_version_py
NAME = 'astropy_helpers'
-VERSION = '1.1rc1'
+VERSION = '1.1.dev'
... | Finishing <I>rc1 release | py |
diff --git a/etc/flasgger_package/setup.py b/etc/flasgger_package/setup.py
index <HASH>..<HASH> 100644
--- a/etc/flasgger_package/setup.py
+++ b/etc/flasgger_package/setup.py
@@ -17,6 +17,6 @@ setup(
zip_safe=False,
platforms='any',
install_requires=[
- 'flasgger>=0.6.4',
+ 'flasgger>=0.9.4... | Fix flasgger-package install_requires | py |
diff --git a/beeswarm/drones/honeypot/honeypot.py b/beeswarm/drones/honeypot/honeypot.py
index <HASH>..<HASH> 100644
--- a/beeswarm/drones/honeypot/honeypot.py
+++ b/beeswarm/drones/honeypot/honeypot.py
@@ -83,7 +83,7 @@ class Honeypot(object):
with open(key_path, 'w') as keyfile:
keyfile.... | honeypot was sending file object instead of private key | py |
diff --git a/wpull/http.py b/wpull/http.py
index <HASH>..<HASH> 100644
--- a/wpull/http.py
+++ b/wpull/http.py
@@ -148,6 +148,10 @@ class Body(object, metaclass=abc.ABCMeta):
return self.content_file.tell()
def to_dict(self):
+ if not hasattr(self.content_file, 'name'):
+ # Make Sp... | Works around SpooledTemporaryFile.name attribute missing. | py |
diff --git a/salt/states/file.py b/salt/states/file.py
index <HASH>..<HASH> 100644
--- a/salt/states/file.py
+++ b/salt/states/file.py
@@ -2199,7 +2199,7 @@ def replace(name,
not_found_content=None,
backup='.bak',
show_changes=True):
- '''
+ r'''
Maintain an edit in a f... | Added note to file.replace about avoiding quoting and escaping in YAML | py |
diff --git a/tests/test_occurrence.py b/tests/test_occurrence.py
index <HASH>..<HASH> 100644
--- a/tests/test_occurrence.py
+++ b/tests/test_occurrence.py
@@ -20,13 +20,6 @@ class TestOccurrence(TestCase):
'rule': rule,
'calendar': cal
}
- self.data = {
- 'title': 'R... | Remove unused instance member TestOccurrence.data | py |
diff --git a/tests/test_compat.py b/tests/test_compat.py
index <HASH>..<HASH> 100644
--- a/tests/test_compat.py
+++ b/tests/test_compat.py
@@ -13,3 +13,9 @@ from .strategies import legal_path_chars
@example(path=u"unicode\u0141")
def test_decode_encode(path):
assert vistir.compat.fs_decode(vistir.compat.fs_encod... | Add test to make sure samefile works on all platforms | py |
diff --git a/examples/bs3demo/tests/settings.py b/examples/bs3demo/tests/settings.py
index <HASH>..<HASH> 100644
--- a/examples/bs3demo/tests/settings.py
+++ b/examples/bs3demo/tests/settings.py
@@ -10,7 +10,7 @@ SECRET_KEY = 'secret'
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
- ... | renamed to sqlite.db | py |
diff --git a/tests/classes_test.py b/tests/classes_test.py
index <HASH>..<HASH> 100755
--- a/tests/classes_test.py
+++ b/tests/classes_test.py
@@ -55,6 +55,7 @@ from glyphsLib.classes import (
)
from glyphsLib.types import Point, Transform, Rect
+
TESTFILE_PATH = os.path.join(
os.path.dirname(__file__), os.pa... | Add test for removing glyphs | py |
diff --git a/scapy/config.py b/scapy/config.py
index <HASH>..<HASH> 100755
--- a/scapy/config.py
+++ b/scapy/config.py
@@ -12,6 +12,7 @@ from __future__ import print_function
import os,time,socket,sys
from scapy import VERSION, base_classes
+from scapy.consts import DARWIN
from scapy.data import ETHER_TYPES, IP_PR... | Use xdg-open (or open for MacOS) to open PDF & PS files by default | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -72,15 +72,12 @@ install_requires = [
'counter-robots>=2018.6',
'Flask>=0.11.1',
'invenio-cache>=1.0.0',
- 'invenio-celery>=1.1.1',
+ 'invenio-celery>=1.1.3',
'invenio-queues>=1.0.0a2',
'maxmindd... | global: bump invenio-celery version * removes the kombu pinned version | py |
diff --git a/ffn/core.py b/ffn/core.py
index <HASH>..<HASH> 100644
--- a/ffn/core.py
+++ b/ffn/core.py
@@ -207,7 +207,7 @@ class PerformanceStats(object):
self.log_returns = p.to_log_returns()
r = self.returns
# Replace all positive returns with nan so that downside volatility can be calculat... | Added Calmar & Sortino ratios | py |
diff --git a/mayalauncher.py b/mayalauncher.py
index <HASH>..<HASH> 100755
--- a/mayalauncher.py
+++ b/mayalauncher.py
@@ -19,14 +19,14 @@ import subprocess
import ConfigParser
import collections
-from pathlib2 import Path
+from pathlib import Path
logger = logging.getLogger(__name__)
logger.setLevel(... | Updated dependency, fixed critical bug. fix: ciritcal bug in find application trying to use paths that does not exists. | py |
diff --git a/labm8/py/sqlutil.py b/labm8/py/sqlutil.py
index <HASH>..<HASH> 100644
--- a/labm8/py/sqlutil.py
+++ b/labm8/py/sqlutil.py
@@ -1097,6 +1097,9 @@ class BufferedDatabaseWriter(threading.Thread):
def _Flush(self):
"""Flush the buffer."""
+ if not self._buffer:
+ return
+
with self.ctx.Pr... | Don't print profiling when there's nothing to flush. | py |
diff --git a/py/selenium/webdriver/ie/webdriver.py b/py/selenium/webdriver/ie/webdriver.py
index <HASH>..<HASH> 100644
--- a/py/selenium/webdriver/ie/webdriver.py
+++ b/py/selenium/webdriver/ie/webdriver.py
@@ -51,8 +51,6 @@ class WebDriver(RemoteWebDriver):
- keep_alive - Whether to configure RemoteConnectio... | [py] Remove unused port selection in IE Driver The Service does a port selection and has for a while | py |
diff --git a/scoop/_comm.py b/scoop/_comm.py
index <HASH>..<HASH> 100644
--- a/scoop/_comm.py
+++ b/scoop/_comm.py
@@ -167,12 +167,12 @@ class ZMQCommunicator(object):
# If element not picklable, pickle its name
# TODO: use its fully qualified name
scoop.logger.warn("Pickling Erro... | * Renamed misnamed variable. | py |
diff --git a/spyder/utils/vcs.py b/spyder/utils/vcs.py
index <HASH>..<HASH> 100644
--- a/spyder/utils/vcs.py
+++ b/spyder/utils/vcs.py
@@ -124,7 +124,7 @@ def get_git_revision(repopath):
error
"""
try:
- git = programs.find_program('git')
+ git = programs.find_git()
assert git... | Avoid command line tools dialog when starting spyder | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -230,6 +230,9 @@ setup_args = {
'sdist_test': SdistTestCommand},
}
+py_25 = sys.version_info[0] > 2 or (sys.version_info[0] == 2 and sys.version_info[1] >= 5)
+py_26 = sys.version_info[0] > 2 or (sys.v... | require simplejson on <Python-<I> Similar to ticket #<I> - we should use the same technique there. | py |
diff --git a/intercom/minion2.py b/intercom/minion2.py
index <HASH>..<HASH> 100644
--- a/intercom/minion2.py
+++ b/intercom/minion2.py
@@ -110,5 +110,5 @@ class Minion:
self.receive(topic, msg)
if __name__ == '__main__':
- m = Minion()
+ m = Minion('minion.test')
m.run() | [fix] Added name to __main__ minion2 | py |
diff --git a/zeronimo/components.py b/zeronimo/components.py
index <HASH>..<HASH> 100644
--- a/zeronimo/components.py
+++ b/zeronimo/components.py
@@ -13,7 +13,11 @@ from types import MethodType
from gevent import GreenletExit, spawn, Timeout
from gevent.queue import Empty, Queue
-from libuuid import uuid4_bytes
+t... | libuuid is just optional | py |
diff --git a/bettercache/tests/settings.py b/bettercache/tests/settings.py
index <HASH>..<HASH> 100644
--- a/bettercache/tests/settings.py
+++ b/bettercache/tests/settings.py
@@ -11,7 +11,13 @@ CACHES = {
},
}
-DATABASES = {}
+BETTERCACHE_LOCAL_POSTCHECK = 120
+DATABASES = {
+ 'default': {
+ ... | use an in-memory sqlite database for the one test failing | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -217,7 +217,7 @@ metadata = dict(
'matplotlib',
'msmtools',
'thermotools>=0.1.14',
- 'bhmm<0.7',
+ 'bhmm>=0.6,<0.7'... | [setup] fix bhmm version range | py |
diff --git a/jaraco/packaging/release.py b/jaraco/packaging/release.py
index <HASH>..<HASH> 100644
--- a/jaraco/packaging/release.py
+++ b/jaraco/packaging/release.py
@@ -181,7 +181,8 @@ def do_release():
next_ver = bump_versions(infer_next_version(release.version))
# push the changes
- subprocess.check_... | Allow the release module to override the push command. | py |
diff --git a/tornado/tcpserver.py b/tornado/tcpserver.py
index <HASH>..<HASH> 100644
--- a/tornado/tcpserver.py
+++ b/tornado/tcpserver.py
@@ -39,7 +39,21 @@ class TCPServer(object):
r"""A non-blocking, single-threaded TCP server.
To use `TCPServer`, define a subclass which overrides the `handle_stream`
- ... | Include pared-down version of echo server in docs | py |
diff --git a/pyplink/tests/test_pyplink.py b/pyplink/tests/test_pyplink.py
index <HASH>..<HASH> 100644
--- a/pyplink/tests/test_pyplink.py
+++ b/pyplink/tests/test_pyplink.py
@@ -26,6 +26,7 @@
from __future__ import print_function
import os
+import sys
import stat
import random
import shutil
@@ -66,10 +67,11 @@ ... | We now provide Plink for download since the website is down | py |
diff --git a/lib/webcomment_webinterface.py b/lib/webcomment_webinterface.py
index <HASH>..<HASH> 100644
--- a/lib/webcomment_webinterface.py
+++ b/lib/webcomment_webinterface.py
@@ -634,7 +634,7 @@ class WebInterfaceCommentsPages(WebInterfaceDirectory):
user_info = collect_user_info(req)
(auth_code... | WebComment: only logged users to use report abuse * Makes sure that a guest user is redirected to the login page before he/she can report comment as abuse. (closes #<I>) | py |
diff --git a/ford/__init__.py b/ford/__init__.py
index <HASH>..<HASH> 100644
--- a/ford/__init__.py
+++ b/ford/__init__.py
@@ -263,7 +263,7 @@ def initialize():
if proj_data['preprocessor']:
preprocessor = proj_data['preprocessor'].split()
else:
- preprocessor = ['cpp','-tradit... | Fixed regressions introduced by switch from gfortran preprocessor to CPP. | py |
diff --git a/beautysh/__init__.py b/beautysh/__init__.py
index <HASH>..<HASH> 100644
--- a/beautysh/__init__.py
+++ b/beautysh/__init__.py
@@ -1,4 +1,4 @@
"""__init__: Holds version info."""
from .beautysh import Beautify
-__version__ = '6.0.0'
+__version__ = '6.0.1' | beautysh: bump to <I> | py |
diff --git a/billy/importers/utils.py b/billy/importers/utils.py
index <HASH>..<HASH> 100644
--- a/billy/importers/utils.py
+++ b/billy/importers/utils.py
@@ -289,7 +289,12 @@ def merge_legislators(leg1, leg2):
try:
leg1[old_roles][crole['term']].append( crole )
except KeyError:
- ... | Dear bejeezus how is this sane. | py |
diff --git a/analyzers/Virusshare/virusshare.py b/analyzers/Virusshare/virusshare.py
index <HASH>..<HASH> 100755
--- a/analyzers/Virusshare/virusshare.py
+++ b/analyzers/Virusshare/virusshare.py
@@ -28,7 +28,7 @@ class VirusshareAnalyzer(Analyzer):
value = "\"Unknown\""
if raw["isonvs"]:
- ... | Implemented better fix so the templates are not affected. :) | py |
diff --git a/molo/usermetadata/views.py b/molo/usermetadata/views.py
index <HASH>..<HASH> 100644
--- a/molo/usermetadata/views.py
+++ b/molo/usermetadata/views.py
@@ -4,21 +4,19 @@ from django.http import HttpResponseRedirect
from django.utils.translation import get_language_from_request
from molo.core.utils import g... | use request.site as opposed to the default site | py |
diff --git a/girder/api/sftp.py b/girder/api/sftp.py
index <HASH>..<HASH> 100644
--- a/girder/api/sftp.py
+++ b/girder/api/sftp.py
@@ -216,7 +216,10 @@ class _ServerAdapter(paramiko.ServerInterface, ModelImporter):
return 'password'
def check_auth_none(self, username):
- return paramiko.AUTH_FAIL... | Support anonymous sftp when check_auth_none is not called | py |
diff --git a/test/test_execution.py b/test/test_execution.py
index <HASH>..<HASH> 100644
--- a/test/test_execution.py
+++ b/test/test_execution.py
@@ -26,6 +26,17 @@ def test_name_main(module_name):
pytest.fail("autocommand function didn't exit")
+def test_no_args():
+ with patch('sys.argv', ['prog'... | Added test Added test for no-args autocommand | py |
diff --git a/doapi/cli/_util.py b/doapi/cli/_util.py
index <HASH>..<HASH> 100644
--- a/doapi/cli/_util.py
+++ b/doapi/cli/_util.py
@@ -218,7 +218,7 @@ def currentActions(objs):
yield act
def add_actioncmds(cmds, objtype, multiple=True):
- cmd_act = cmds.add_parser('act', parents=[waitbase])
+ cmd_... | `act` commands are supposed to have a `--wait` option. | py |
diff --git a/opendatalake/detection/utils.py b/opendatalake/detection/utils.py
index <HASH>..<HASH> 100644
--- a/opendatalake/detection/utils.py
+++ b/opendatalake/detection/utils.py
@@ -475,7 +475,7 @@ class Detection3dSimplified(Detection):
for i, j in connections:
cv2.line(image, corners[i], co... | Fixed detections3d to work stable with kitti evaluation. | py |
diff --git a/linode_api4/linode_client.py b/linode_api4/linode_client.py
index <HASH>..<HASH> 100644
--- a/linode_api4/linode_client.py
+++ b/linode_api4/linode_client.py
@@ -979,7 +979,7 @@ class ObjectStorageGroup(Group):
{
"permissions": c.get("permissions"),
... | Fixed type checking issue with bucket_access in keys_create | py |
diff --git a/django_extensions/management/base.py b/django_extensions/management/base.py
index <HASH>..<HASH> 100644
--- a/django_extensions/management/base.py
+++ b/django_extensions/management/base.py
@@ -48,6 +48,6 @@ class LoggingBaseCommand(BaseCommand):
def execute(self, *args, **options):
try:
... | use as in except, refs #<I> | py |
diff --git a/spyderlib/widgets/sourcecode/base.py b/spyderlib/widgets/sourcecode/base.py
index <HASH>..<HASH> 100644
--- a/spyderlib/widgets/sourcecode/base.py
+++ b/spyderlib/widgets/sourcecode/base.py
@@ -768,13 +768,13 @@ class TextEditBaseWidget(QPlainTextEdit, BaseEditMixin):
if signature:
s... | Editor/External Console: Improve calltips format - Make calltip text a bit smaller than its title. - Make its title to have the same font as the one of the surrounding text. | py |
diff --git a/tracer/tracer.py b/tracer/tracer.py
index <HASH>..<HASH> 100644
--- a/tracer/tracer.py
+++ b/tracer/tracer.py
@@ -220,6 +220,20 @@ class Tracer(object):
rpg = self.path_group
+ # something weird... maybe we hit a rep? qemu and vex have slightly different behaviors...
+ if not sel... | Handle a new case where qemu and angr emulate rep differently | py |
diff --git a/avatar/views.py b/avatar/views.py
index <HASH>..<HASH> 100644
--- a/avatar/views.py
+++ b/avatar/views.py
@@ -107,8 +107,7 @@ def change(request, extra_context={}, next_override=None):
request.user.avatar.avatar = full_filename
request.user.avatar.save()
request.user.message_set.... | Screw it, change the wording to be easier on me and translators, yet not be any worsly-worded. git-svn-id: <URL> | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -37,7 +37,7 @@ setup(
include_package_data=True,
install_requires=[
'click==5.1',
- 'frigg-coverage>=1.1.1,<2.0.0',
+ 'frigg-coverage>=1.2.0,<2.0.0',
'frigg-settings>=1.1.1,<2.0.0',
... | Upgrade dependency frigg-coverage to >=<I>,<<I> | py |
diff --git a/elpy/server.py b/elpy/server.py
index <HASH>..<HASH> 100644
--- a/elpy/server.py
+++ b/elpy/server.py
@@ -87,7 +87,8 @@ class ElpyRPCServer(JSONRPCServer):
results = self._call_backend("rpc_get_completions", [], filename,
get_source(source), offset)
#... | Portably uniquify results from rpc_get_completions. Dictionary comprehensions do not work in Python <I>. And in Python 3, dict.values returns a view, not a list. Work around both. | py |
diff --git a/raven/utils/stacks.py b/raven/utils/stacks.py
index <HASH>..<HASH> 100644
--- a/raven/utils/stacks.py
+++ b/raven/utils/stacks.py
@@ -103,8 +103,10 @@ def iter_traceback_frames(tb):
def iter_stack_frames(frames=None):
if not frames:
frames = inspect.stack()[1:]
- for frame_crud in frames:... | Support __traceback_hide__ on stacks | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.