diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/command/build_ext.py b/command/build_ext.py
index <HASH>..<HASH> 100644
--- a/command/build_ext.py
+++ b/command/build_ext.py
@@ -247,11 +247,10 @@ class build_ext(Command):
# building python standard extensions
self.library_dirs.append('.')
- # for extensions und... | Issue #<I>: Fix building extensions on all platforms when --enable-shared is used. | py |
diff --git a/aiogram/dispatcher/__init__.py b/aiogram/dispatcher/__init__.py
index <HASH>..<HASH> 100644
--- a/aiogram/dispatcher/__init__.py
+++ b/aiogram/dispatcher/__init__.py
@@ -916,7 +916,9 @@ class Dispatcher:
def process_response(task):
response = task.result()
- self.loop.cre... | Check response when callback is running in task. | py |
diff --git a/engineio/asyncio_client.py b/engineio/asyncio_client.py
index <HASH>..<HASH> 100644
--- a/engineio/asyncio_client.py
+++ b/engineio/asyncio_client.py
@@ -504,6 +504,7 @@ class AsyncClient(client.Client):
timeout=self.ping_interval + self.ping_timeout)
p = p.data
... | Remove asyncio client delay before attempting reconnection (Fixes <URL>) | py |
diff --git a/versionner/cli.py b/versionner/cli.py
index <HASH>..<HASH> 100755
--- a/versionner/cli.py
+++ b/versionner/cli.py
@@ -286,7 +286,11 @@ def command_set(cfg):
if value:
new = new.set(type_, value)
else:
- parsed = semver.parse(cfg.value)
+ try:
+ pa... | for commands 'set' and 'init', catch semver exception and raise our own one | py |
diff --git a/firenado/test/conf.py b/firenado/test/conf.py
index <HASH>..<HASH> 100644
--- a/firenado/test/conf.py
+++ b/firenado/test/conf.py
@@ -45,6 +45,18 @@ class ApplicationComponentTestCase(unittest.TestCase):
self.assertEquals(firenado.conf.stack[1],
firenado.conf.APP_CONFIG_... | Add app port and pythonpath tests to the conf test. Refs: #<I> | py |
diff --git a/flakes.py b/flakes.py
index <HASH>..<HASH> 100644
--- a/flakes.py
+++ b/flakes.py
@@ -1,22 +1,22 @@
-import __builtin__
-import os
-import sys
-
-from pyflakes.scripts.pyflakes import main
-
"""
wrapper for pyflakes to ignore gettext based warning:
"undefined name '_'"
From https://bugs.launch... | Update tools/flakes to work with pydoc Change-Id: Ib<I>aa<I>d6edb<I>b5d<I>c<I>a<I> | py |
diff --git a/test/test_context.py b/test/test_context.py
index <HASH>..<HASH> 100644
--- a/test/test_context.py
+++ b/test/test_context.py
@@ -54,6 +54,9 @@ class TestCartoContext(unittest.TestCase):
'table_{ver}_{mpl}'.format(
ver=pyver,
... | adding test for dtypes2pg and adding test_delete_table | py |
diff --git a/linshareapi/user/jwt.py b/linshareapi/user/jwt.py
index <HASH>..<HASH> 100644
--- a/linshareapi/user/jwt.py
+++ b/linshareapi/user/jwt.py
@@ -28,14 +28,11 @@
from __future__ import unicode_literals
-import urllib
-
from linshareapi.core import ResourceBuilder
from linshareapi.core import LinShareExc... | reorder fields in RBU for jwt endpoint | py |
diff --git a/src/toil/lib/docker.py b/src/toil/lib/docker.py
index <HASH>..<HASH> 100644
--- a/src/toil/lib/docker.py
+++ b/src/toil/lib/docker.py
@@ -164,11 +164,16 @@ def _docker(job,
if outfile:
subprocess.check_call(call, stdout=outfile)
+ _fixPermissions(tool=tool, workDir=workDir)
else... | Ensure _fixPermissions is called during dockerCall (resolves #<I>) | py |
diff --git a/wakatime/stats.py b/wakatime/stats.py
index <HASH>..<HASH> 100644
--- a/wakatime/stats.py
+++ b/wakatime/stats.py
@@ -25,8 +25,9 @@ log = logging.getLogger(__name__)
# force file name extensions to be recognized as a certain language
EXTENSIONS = {
- 'md': 'Markdown',
'j2': 'HTML',
+ 'markdo... | recognize markdown file extension as Markdown language | py |
diff --git a/tests/__init__.py b/tests/__init__.py
index <HASH>..<HASH> 100644
--- a/tests/__init__.py
+++ b/tests/__init__.py
@@ -2002,10 +2002,9 @@ def get_random_int(min=0, max=2147483647):
def get_random_decimal(min=0, max=100):
- # Return a random decimal with 6-digit precision
- major = get_random_int(... | Survive low-precision server-side rounding Also, write better Python | py |
diff --git a/trunk/languagetool/SentenceSplitter.py b/trunk/languagetool/SentenceSplitter.py
index <HASH>..<HASH> 100644
--- a/trunk/languagetool/SentenceSplitter.py
+++ b/trunk/languagetool/SentenceSplitter.py
@@ -10,7 +10,7 @@ import sys
class SentenceSplitter:
- ABBR_FILE = os.path.join(sys.path[0], "data/abbr.... | fix path for non-unix platforms | py |
diff --git a/trezorlib/client.py b/trezorlib/client.py
index <HASH>..<HASH> 100644
--- a/trezorlib/client.py
+++ b/trezorlib/client.py
@@ -6,6 +6,7 @@ import hashlib
import unicodedata
import mapping
import json
+import getpass
import tools
import messages_pb2 as proto
@@ -165,15 +166,19 @@ class TextUIMixin(obj... | Use getpass('') and confirm passphrase Added getpass as a dependency Switched pin entry from raw_input() to getpass.getpass('') Switch passphrase entry from raw_input() to getpass.getpass('') Ask user to confirm passphrase | py |
diff --git a/xiaomi_gateway/__init__.py b/xiaomi_gateway/__init__.py
index <HASH>..<HASH> 100644
--- a/xiaomi_gateway/__init__.py
+++ b/xiaomi_gateway/__init__.py
@@ -19,6 +19,7 @@ MULTICAST_ADDRESS = '224.0.0.50'
def create_mcast_socket(interface, port):
+ """Create and bind a socket for communication."""
... | fix pylint and docstring errors (#<I>) | py |
diff --git a/grimoire/elk/bugzillarest.py b/grimoire/elk/bugzillarest.py
index <HASH>..<HASH> 100644
--- a/grimoire/elk/bugzillarest.py
+++ b/grimoire/elk/bugzillarest.py
@@ -295,44 +295,3 @@ class BugzillaRestEnrich(Enrich):
self.requests.put(url, data=bulk_json)
logging.debug("Adding issues to ES ... | [enrich][bugzillarest] Remove old mappings before the not analyzed by default changes. | py |
diff --git a/fluxions/test/test_elementary_functions.py b/fluxions/test/test_elementary_functions.py
index <HASH>..<HASH> 100644
--- a/fluxions/test/test_elementary_functions.py
+++ b/fluxions/test/test_elementary_functions.py
@@ -93,7 +93,7 @@ def test_basics_singlevar():
# ***************************************... | activated test_compositions in test_elementary_functions | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -11,7 +11,7 @@ setup(
license="MIT",
author="Andreas Bresser",
packages=find_packages(),
- tests_require=["numpy"]
+ tests_require=["numpy"],
include_package_data=True,
install_requires=[],
) | Bugfix for setup.py (forgot comma) | py |
diff --git a/tests/jardiff.py b/tests/jardiff.py
index <HASH>..<HASH> 100644
--- a/tests/jardiff.py
+++ b/tests/jardiff.py
@@ -60,6 +60,11 @@ class JardiffTest(TestCase):
self.cli_jardiff_wrap(1, "ec.jar", "ec-sig-mf-tampered.jar",
"Change in manifest signature file is not detected")
+ def te... | Added test for JSON report with binary difference | py |
diff --git a/djangular/tests/__init__.py b/djangular/tests/__init__.py
index <HASH>..<HASH> 100644
--- a/djangular/tests/__init__.py
+++ b/djangular/tests/__init__.py
@@ -1 +1,3 @@
+# -*- coding: utf-8 -*-
from forms import *
+from views import * | added test for view JSONResponseMixin | py |
diff --git a/pyfilemail/__main__.py b/pyfilemail/__main__.py
index <HASH>..<HASH> 100755
--- a/pyfilemail/__main__.py
+++ b/pyfilemail/__main__.py
@@ -193,4 +193,9 @@ def main():
logger.info(msg)
if __name__ == '__main__':
- main()
\ No newline at end of file
+ try:
+ main()
+
+ except Keybo... | added catch for keyboard interrupt in __main__ | py |
diff --git a/mr/awsome/plain.py b/mr/awsome/plain.py
index <HASH>..<HASH> 100644
--- a/mr/awsome/plain.py
+++ b/mr/awsome/plain.py
@@ -15,7 +15,8 @@ class InstanceFormattingWrapper(object):
class Instance(FabricMixin):
def __init__(self, master, sid, config):
- self.id = sid
+ validate_id = getatt... | Add possibility of id validation for instance subclasses. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -77,16 +77,6 @@ except ImportError:
if sys.platform.lower()[:3] != 'win':
params['requires'].append('pycryptodome')
-if sys.platform.lower()[:3] == 'win':
- try:
- import Crypto
- except Im... | obsolete comment on PyCrypto removed | py |
diff --git a/backtrader/indicator.py b/backtrader/indicator.py
index <HASH>..<HASH> 100644
--- a/backtrader/indicator.py
+++ b/backtrader/indicator.py
@@ -65,9 +65,6 @@ class Indicator(six.with_metaclass(MetaIndicator, IndicatorBase)):
for data in self.datas:
data.advance()
- ... | indicator corrected leftovers in pseudo-next | py |
diff --git a/tools/yaml2jmxtrans.py b/tools/yaml2jmxtrans.py
index <HASH>..<HASH> 100755
--- a/tools/yaml2jmxtrans.py
+++ b/tools/yaml2jmxtrans.py
@@ -116,11 +116,18 @@ class HostSets(object):
"""
return self.host_sets[set_name]
+def usage():
+ print "Usage: " + sys.argv[0] + " INPUT.yaml"
+
if ... | [Feature] Make input file a command-line argument | py |
diff --git a/tests/test_remote_server.py b/tests/test_remote_server.py
index <HASH>..<HASH> 100644
--- a/tests/test_remote_server.py
+++ b/tests/test_remote_server.py
@@ -123,7 +123,7 @@ class ComparisonCommandTest(unittest.TestCase):
filename = obj.id
response = ccmd.ComparisonCommand().process(None,... | fixed a typo in the test suite | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -10,7 +10,7 @@ setup(
license = 'MIT',
description = 'A few extra additions to pyflakes.',
install_requires = [
- 'pyflakes>=1.2.3',
+ 'pyflakes>=1.2.3,<2.0.0',
],
entry_points = {
'console_scripts': [ | Only pyflakes < 2 is supported at the moment. | py |
diff --git a/recsys/prediction_algorithms/algo_base.py b/recsys/prediction_algorithms/algo_base.py
index <HASH>..<HASH> 100644
--- a/recsys/prediction_algorithms/algo_base.py
+++ b/recsys/prediction_algorithms/algo_base.py
@@ -152,6 +152,8 @@ class AlgoBase:
# This piece of code is largely inspired by th... | Added small ref to Smola for ALS | py |
diff --git a/zipline/finance/performance/tracker.py b/zipline/finance/performance/tracker.py
index <HASH>..<HASH> 100644
--- a/zipline/finance/performance/tracker.py
+++ b/zipline/finance/performance/tracker.py
@@ -410,8 +410,14 @@ class PerformanceTracker(object):
self.all_be... | MAINT: Remove dependence on intraday risk for benchmark returns. The intraday_risk_metrics is being removed since the values are not used; cumulative risk metrics with the last value updated to the latest close has been used for some time. Before the removal of intraday_risk_metrics, the position trackers passing of ... | py |
diff --git a/web/dialect/dispatch.py b/web/dialect/dispatch.py
index <HASH>..<HASH> 100644
--- a/web/dialect/dispatch.py
+++ b/web/dialect/dispatch.py
@@ -82,8 +82,10 @@ class ObjectDispatchDialect(object):
last = str(chunk)
if isclass(current):
- if not callable(current):
- raise HTTPNotFound()
+ cur... | Fix for issue noticed by the annotation example. (No __call__ on root.) | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -75,6 +75,7 @@ setup(name='pystache',
long_description=long_description,
author='Chris Wanstrath',
author_email='chris@ozmm.org',
+ maintainer='Chris Jerdonek',
url='http://github.com/defunkt/p... | Added maintainer field to setup.py. | py |
diff --git a/commands.py b/commands.py
index <HASH>..<HASH> 100755
--- a/commands.py
+++ b/commands.py
@@ -141,7 +141,13 @@ def install_completion(
@command
-def test(*tests, fail_fast=False, verbosity=1, with_coverage=True, with_lint=True):
+def test(
+ *tests,
+ fail_fast=False,
+ verbosity=1,
+ with... | Improve test command's args Explicitly specify the short options for `--with-coverage` and `--with-lint` as `-c` and `-l`, respectively. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -20,9 +20,9 @@ kwds = dict(include_dirs=[opj("src", "cysignals"),
depends=glob(opj("src", "cysignals", "*.h")))
extensions = [
- Extension("signals", ["src/cysignals/signals.pyx"], **kwds),
- Extension("a... | Avoid obscure ext_package option | py |
diff --git a/scripts/performance/perf_processes.py b/scripts/performance/perf_processes.py
index <HASH>..<HASH> 100644
--- a/scripts/performance/perf_processes.py
+++ b/scripts/performance/perf_processes.py
@@ -914,7 +914,9 @@ def create_req_generator(req_kind_arg):
"get_nym": RGGetNym, "get_... | INDY-<I>: Payment txns in performance test - Added missed entries to the map of supported transactions. | py |
diff --git a/testing/test_version.py b/testing/test_version.py
index <HASH>..<HASH> 100644
--- a/testing/test_version.py
+++ b/testing/test_version.py
@@ -53,7 +53,6 @@ def test_next_semver(version, expected_next):
)
def test_tag_regex1(tag, expected):
config = Configuration()
- config.tag_regex = r"^(?P<pref... | Avoid overriding the default tag_regex in tests. This appears to test something different than test_config.test_tag_regex, but somehow also overrides the regular expression with a very old (3-groups) one. Remove the override and use the default regex instead (it works). | py |
diff --git a/closure/bin/build/closurebuilder.py b/closure/bin/build/closurebuilder.py
index <HASH>..<HASH> 100755
--- a/closure/bin/build/closurebuilder.py
+++ b/closure/bin/build/closurebuilder.py
@@ -276,7 +276,7 @@ https://github.com/google/closure-compiler/wiki/Manage-Closure-Dependencies
compiler_flags=o... | repaired closurebuilder.py for python 3 | py |
diff --git a/lexicon/providers/cloudflare.py b/lexicon/providers/cloudflare.py
index <HASH>..<HASH> 100644
--- a/lexicon/providers/cloudflare.py
+++ b/lexicon/providers/cloudflare.py
@@ -42,7 +42,15 @@ class Provider(BaseProvider):
data = {'type': type, 'name': self._full_name(name), 'content': content}
... | extend the test suite before creating recordings. | py |
diff --git a/tests/settings/manager_test.py b/tests/settings/manager_test.py
index <HASH>..<HASH> 100644
--- a/tests/settings/manager_test.py
+++ b/tests/settings/manager_test.py
@@ -102,12 +102,8 @@ class TestSettingsManager(unittest.TestCase):
with mock.patch('alot.settings.utils.logging') as mock_logger:
... | Use any() instead of a for loop with a break statement | py |
diff --git a/tests/functional/test_albums.py b/tests/functional/test_albums.py
index <HASH>..<HASH> 100644
--- a/tests/functional/test_albums.py
+++ b/tests/functional/test_albums.py
@@ -1,3 +1,8 @@
+try:
+ import unittest2 as unittest # Python2.6
+except ImportError:
+ import unittest
+
from tests.functional im... | Skip newer album tests with APIv1 | py |
diff --git a/pyes/connection.py b/pyes/connection.py
index <HASH>..<HASH> 100644
--- a/pyes/connection.py
+++ b/pyes/connection.py
@@ -110,8 +110,7 @@ class ServerSet(object):
self._dead = []
def get(self):
- self._lock.acquire()
- try:
+ with self._lock:
if self._dead:... | Use with for the lock, instead of release the lock in a finally clause | py |
diff --git a/bokeh/mpl.py b/bokeh/mpl.py
index <HASH>..<HASH> 100644
--- a/bokeh/mpl.py
+++ b/bokeh/mpl.py
@@ -31,9 +31,10 @@ def axes2plot(axes, xkcd):
background_fill = 'white'
title = axes.get_title()
plot = objects.Plot(title=title, background_fill=background_fill)
- plot.title_text_font = "Co... | Fixed formatting of title when xkcd argument is passed. | py |
diff --git a/alot/ui.py b/alot/ui.py
index <HASH>..<HASH> 100644
--- a/alot/ui.py
+++ b/alot/ui.py
@@ -28,7 +28,9 @@ from .widgets.globals import ChoiceWidget
async def periodic(callable_, period, *args, **kwargs):
while True:
try:
- callable_(*args, **kwargs)
+ t = callable_(*args,... | hook: allow periodic loop hook to return awaitable coroutine (in similar style as call) | py |
diff --git a/paramiko/sftp_file.py b/paramiko/sftp_file.py
index <HASH>..<HASH> 100644
--- a/paramiko/sftp_file.py
+++ b/paramiko/sftp_file.py
@@ -107,7 +107,7 @@ class SFTPFile (BufferedFile):
t, msg = self.sftp._read_response(req)
if t != CMD_STATUS:
raise SFTPError('Expecte... | [project @ Arch-1:<EMAIL><I>-master-shake%paramiko--dev--1--patch-<I>] convert_status is already called. calling it again was breaking van dyke sftp servers, which add garbage to the end of their sftp packets | py |
diff --git a/yubikit/core/smartcard.py b/yubikit/core/smartcard.py
index <HASH>..<HASH> 100644
--- a/yubikit/core/smartcard.py
+++ b/yubikit/core/smartcard.py
@@ -78,6 +78,7 @@ class SW(IntEnum):
FILE_NOT_FOUND = 0x6A82
NO_SPACE = 0x6A84
REFERENCE_DATA_NOT_FOUND = 0x6A88
+ APPLET_SELECT_FAILED = 0x699... | Handle APPLET_SELECT_FAILED in smartcard applet select | py |
diff --git a/dvc/command/common/base.py b/dvc/command/common/base.py
index <HASH>..<HASH> 100644
--- a/dvc/command/common/base.py
+++ b/dvc/command/common/base.py
@@ -8,14 +8,14 @@ from dvc.lock import LockError
class CmdBase(object):
def __init__(self, args):
+ self.project = Project(self._find_root())
... | logger: process -v after project init | py |
diff --git a/owo/owo.py b/owo/owo.py
index <HASH>..<HASH> 100644
--- a/owo/owo.py
+++ b/owo/owo.py
@@ -27,10 +27,10 @@ PY_VERSION = sys.version_info.major
if PY_VERSION == 3:
__all__ = ["upload_files", "shorten_urls",
"async_upload_files", "async_shorten_urls",
- "Client", "File"]
+ ... | fix(owo): remove `File` from __all__ | py |
diff --git a/alot/ui.py b/alot/ui.py
index <HASH>..<HASH> 100644
--- a/alot/ui.py
+++ b/alot/ui.py
@@ -130,9 +130,7 @@ class UI(object):
return [movecmd]
elif not self._locked:
try:
- clear()
- cmd = commandfact... | alow command sequences also in bindings | py |
diff --git a/pmxbot/util.py b/pmxbot/util.py
index <HASH>..<HASH> 100644
--- a/pmxbot/util.py
+++ b/pmxbot/util.py
@@ -424,6 +424,9 @@ class SQLiteKarma(Karma, storage.SQLiteStorage):
matches = (id for (id,) in self.db.execute(query, '%%'+term+'%%'))
return (self._lookup(id) for id in matches)
+ def export_all(... | Adding migration methods to Karma subclasses, enabling migration from sqlite to mongodb | py |
diff --git a/programs/demag_gui.py b/programs/demag_gui.py
index <HASH>..<HASH> 100755
--- a/programs/demag_gui.py
+++ b/programs/demag_gui.py
@@ -4291,9 +4291,9 @@ class Demag_GUI(wx.Frame):
Opens a dialog allowing the user to pick a measurement file
"""
dlg = wx.FileDialog(
- sel... | file defaults should be <I> in demag GUI | py |
diff --git a/atws/picklist.py b/atws/picklist.py
index <HASH>..<HASH> 100644
--- a/atws/picklist.py
+++ b/atws/picklist.py
@@ -60,7 +60,7 @@ def get_child_label_value(label, picklistvalues, condition):
return item.Value
-class ChildEntityPicklist(object):
+class ChildFieldPicklist(object):
def __init__(se... | rename picklist objects these names are better at self documenting the purpose | py |
diff --git a/pyinfra/api/operation.py b/pyinfra/api/operation.py
index <HASH>..<HASH> 100644
--- a/pyinfra/api/operation.py
+++ b/pyinfra/api/operation.py
@@ -114,7 +114,7 @@ def show_state_host_arguments_warning(call_location):
).format(call_location))
-def operation(func=None, pipeline_facts=None):
+def oper... | Add `is_idempotent` argument/flag to operations. This will enable operations to explicitly declare themselves as not idempotent - ie `server.shell` or `apt.update`, where a command is executed every time. | py |
diff --git a/properties/basic.py b/properties/basic.py
index <HASH>..<HASH> 100644
--- a/properties/basic.py
+++ b/properties/basic.py
@@ -576,12 +576,15 @@ class StringChoice(Property):
if isinstance(value, (set, list, tuple)):
if len(value) != len(set(value)):
raise TypeError("'... | Improvements to how StringChoice choices are coerced | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -22,7 +22,7 @@ setup(
"License :: OSI Approved :: BSD License",
"Development Status :: 4 - Beta",
"Operating System :: OS Independent",
- "Framework :: Panya",
+ "Framework :: Django",
... | changed framewrok to django | py |
diff --git a/django_distill/renderer.py b/django_distill/renderer.py
index <HASH>..<HASH> 100644
--- a/django_distill/renderer.py
+++ b/django_distill/renderer.py
@@ -9,6 +9,7 @@ from django.utils import (six, translation)
from django.conf import settings
from django.conf.urls import include as include_urls
from dja... | call render() only if its type is TemplateResponse | py |
diff --git a/gwpy/table/gravityspy.py b/gwpy/table/gravityspy.py
index <HASH>..<HASH> 100644
--- a/gwpy/table/gravityspy.py
+++ b/gwpy/table/gravityspy.py
@@ -63,8 +63,11 @@ class GravitySpyTable(EventTable):
nproc : `int`, optional, default: 1
number of CPUs to use for parallel file reading
+ ... | One last posix-only issue, also thought I should add info about download_path optional argument | py |
diff --git a/src/Exscript/protocols/telnetlib.py b/src/Exscript/protocols/telnetlib.py
index <HASH>..<HASH> 100644
--- a/src/Exscript/protocols/telnetlib.py
+++ b/src/Exscript/protocols/telnetlib.py
@@ -211,7 +211,7 @@ class Telnet:
af, socktype, proto, canonname, sa = res
try:
... | init_timeout -> connect_timeout fix One place was missed. | py |
diff --git a/pyswagger/core.py b/pyswagger/core.py
index <HASH>..<HASH> 100644
--- a/pyswagger/core.py
+++ b/pyswagger/core.py
@@ -162,14 +162,13 @@ class SwaggerApp(object):
# look into cache first
return
- if not getter:
- # apply hook when use this url to load
- ... | Customized Getter doesn't work in SwaggerApp | py |
diff --git a/pyzbar/pyzbar.py b/pyzbar/pyzbar.py
index <HASH>..<HASH> 100644
--- a/pyzbar/pyzbar.py
+++ b/pyzbar/pyzbar.py
@@ -146,6 +146,7 @@ def decode(image, symbols=None):
data = string_at(zbar_symbol_get_data(symbol))
symbol_type = ZBarSymbol(symbol.contents.value).name
... | Don't init list with func call | py |
diff --git a/test/test_environment.py b/test/test_environment.py
index <HASH>..<HASH> 100644
--- a/test/test_environment.py
+++ b/test/test_environment.py
@@ -114,8 +114,11 @@ class TestEnvironment(object):
db_user, db_password, host, port)
# TODO: use PyMongo's add_user once that's fixe... | Let tests proceed with auth even if previous run didn't clean up. | py |
diff --git a/tests/__init__.py b/tests/__init__.py
index <HASH>..<HASH> 100644
--- a/tests/__init__.py
+++ b/tests/__init__.py
@@ -0,0 +1,25 @@
+import os
+import logging
+
+
+try:
+ with open('build/env-vars') as env_file:
+ for line_num, line in enumerate(env_file):
+ if line.startswith('export '... | tests: Read environment from build/env-vars. | py |
diff --git a/hamster/widgets/__init__.py b/hamster/widgets/__init__.py
index <HASH>..<HASH> 100644
--- a/hamster/widgets/__init__.py
+++ b/hamster/widgets/__init__.py
@@ -32,7 +32,6 @@ from dayline import DayLine
from tags import Tag
from tags import TagBox
from tags import TagsEntry
-from tags import TagCellRendere... | no more cellrenderer. now we have treerenderer. | py |
diff --git a/airflow/hooks/presto_hook.py b/airflow/hooks/presto_hook.py
index <HASH>..<HASH> 100644
--- a/airflow/hooks/presto_hook.py
+++ b/airflow/hooks/presto_hook.py
@@ -74,8 +74,8 @@ class PrestoHook(DbApiHook):
"""
import pandas
cursor = self.get_cursor()
- cursor.execute(self._... | Move presto.execute inside try catch to handle error This commit fixes an issue where malformed SQL would raise a DatabaseError outside of the try catch block in the hook. This should now raise a PrestoException as expected. | py |
diff --git a/pyrogram/client/types/user_and_chats/user.py b/pyrogram/client/types/user_and_chats/user.py
index <HASH>..<HASH> 100644
--- a/pyrogram/client/types/user_and_chats/user.py
+++ b/pyrogram/client/types/user_and_chats/user.py
@@ -41,6 +41,9 @@ class User(Object):
is_bot (``bool``):
True, ... | Rename last_seen field to status in User class Also add docstrings for status | py |
diff --git a/rollbar/__init__.py b/rollbar/__init__.py
index <HASH>..<HASH> 100644
--- a/rollbar/__init__.py
+++ b/rollbar/__init__.py
@@ -59,7 +59,7 @@ else:
try:
if isinstance(val, bytes):
val.decode('utf8')
- return val
+ return repr(val)
... | Fix bytes decoding for Python 3+ | py |
diff --git a/tests/integration/cqlengine/connections/test_connection.py b/tests/integration/cqlengine/connections/test_connection.py
index <HASH>..<HASH> 100644
--- a/tests/integration/cqlengine/connections/test_connection.py
+++ b/tests/integration/cqlengine/connections/test_connection.py
@@ -98,6 +98,8 @@ class Conne... | Added some check to the existing tests for the cqlengine connection | py |
diff --git a/phypno/trans/frequency.py b/phypno/trans/frequency.py
index <HASH>..<HASH> 100644
--- a/phypno/trans/frequency.py
+++ b/phypno/trans/frequency.py
@@ -279,7 +279,7 @@ def _create_morlet(options, s_freq):
def morlet(freq, s_freq, ratio=5, sigma_f=None, dur_in_sd=4, dur_in_s=None,
- normalizati... | be consistent on how you define wavelet duration | py |
diff --git a/ipuz/core.py b/ipuz/core.py
index <HASH>..<HASH> 100644
--- a/ipuz/core.py
+++ b/ipuz/core.py
@@ -57,7 +57,7 @@ def read(data, puzzlekinds=None):
kind_version = get_kind_version_number(kind)
kind_details_for_version = kind_details["validators"].get(kind_version)
if no... | Update to use same string formatting as rest of library | py |
diff --git a/spacy/lang/es/__init__.py b/spacy/lang/es/__init__.py
index <HASH>..<HASH> 100644
--- a/spacy/lang/es/__init__.py
+++ b/spacy/lang/es/__init__.py
@@ -5,6 +5,7 @@ from .tokenizer_exceptions import TOKENIZER_EXCEPTIONS
from .tag_map import TAG_MAP
from .stop_words import STOP_WORDS
from .lemmatizer import... | Import and add Spanish syntax iterators | py |
diff --git a/SoftLayer/CLI/virt/usage.py b/SoftLayer/CLI/virt/usage.py
index <HASH>..<HASH> 100644
--- a/SoftLayer/CLI/virt/usage.py
+++ b/SoftLayer/CLI/virt/usage.py
@@ -42,7 +42,7 @@ def cli(env, identifier, start_date, end_date, valid_type, summary_period):
counter = counter + float(data['counter'])
... | Refactor usage vs information. | py |
diff --git a/condoor/connection.py b/condoor/connection.py
index <HASH>..<HASH> 100644
--- a/condoor/connection.py
+++ b/condoor/connection.py
@@ -105,9 +105,28 @@ class Connection(object):
def __del__(self):
"""Clean up the object."""
+ self.finalize()
+
+ def finalize(self):
+ """Clea... | Finalize API added to clean up the log FDs and remove references to callbacks | py |
diff --git a/git/cmd.py b/git/cmd.py
index <HASH>..<HASH> 100644
--- a/git/cmd.py
+++ b/git/cmd.py
@@ -254,14 +254,15 @@ class Git(LazyMixin):
proc.terminate()
proc.wait() # ensure process goes away
except OSError as ex:
- log.info("Ignored error after pr... | fix(cmd): don't try to use TASKKILL on linux Fixes #<I> | py |
diff --git a/testproject/settings.py b/testproject/settings.py
index <HASH>..<HASH> 100644
--- a/testproject/settings.py
+++ b/testproject/settings.py
@@ -6,7 +6,14 @@ DATABASES = {
SECRET_KEY = '_'
+MIDDLEWARE_CLASSES = (
+ 'django.middleware.common.CommonMiddleware',
+ 'django.contrib.sessions.middleware.S... | Added explicit middleware classes for test settings in order to disable warnings in Django <I> | py |
diff --git a/pyblish_qml/app.py b/pyblish_qml/app.py
index <HASH>..<HASH> 100644
--- a/pyblish_qml/app.py
+++ b/pyblish_qml/app.py
@@ -346,6 +346,9 @@ class Controller(QtCore.QObject):
"mode": "repair"
}
+ if not instance.hasError:
+ continue
+
... | Fixed issue regarding repairs processing valid instances. | py |
diff --git a/datapoint/Manager.py b/datapoint/Manager.py
index <HASH>..<HASH> 100644
--- a/datapoint/Manager.py
+++ b/datapoint/Manager.py
@@ -106,7 +106,7 @@ class Manager(object):
self.regions = RegionManager(self.api_key)
- def __retry_session(self, retries=5, backoff_factor=0.3,
+ def __retry_ses... | Set default number of retries to ten | py |
diff --git a/marrow/mongo/query/ops.py b/marrow/mongo/query/ops.py
index <HASH>..<HASH> 100644
--- a/marrow/mongo/query/ops.py
+++ b/marrow/mongo/query/ops.py
@@ -101,6 +101,10 @@ class Ops(MutableMapping):
def setdefault(self, key, value=None):
return self.operations.setdefault(key, value)
+
+ def copy(self):... | Added copy to satisfy Pypy. | py |
diff --git a/xltable/expression.py b/xltable/expression.py
index <HASH>..<HASH> 100644
--- a/xltable/expression.py
+++ b/xltable/expression.py
@@ -284,6 +284,23 @@ class Formula(Expression):
return self._strip(_make_expr(x).resolve(workbook, row, col))
args = [to_arg(x) for x in self.__args]
... | Add ArrayExpression class wrapper class to allow an Expression to be created as an array formula in a single cell in Excel | py |
diff --git a/exa/util/tests/test_utility.py b/exa/util/tests/test_utility.py
index <HASH>..<HASH> 100644
--- a/exa/util/tests/test_utility.py
+++ b/exa/util/tests/test_utility.py
@@ -25,12 +25,6 @@ def test_convert_bytes():
a, b = convert_bytes(10000000000000)
assert a >= 9.0949
assert b == "TiB"
- a,... | arb precision not natively supported on win | py |
diff --git a/yandextank/plugins/NeUploader/plugin.py b/yandextank/plugins/NeUploader/plugin.py
index <HASH>..<HASH> 100644
--- a/yandextank/plugins/NeUploader/plugin.py
+++ b/yandextank/plugins/NeUploader/plugin.py
@@ -182,8 +182,5 @@ class Plugin(AbstractPlugin, MonitoringDataListener):
else:
met... | Explicit check for None in meta | py |
diff --git a/tensorflow_probability/python/distributions/jax_transformation_test.py b/tensorflow_probability/python/distributions/jax_transformation_test.py
index <HASH>..<HASH> 100644
--- a/tensorflow_probability/python/distributions/jax_transformation_test.py
+++ b/tensorflow_probability/python/distributions/jax_tran... | Block Hypothesis testing of vmap(QuantizedDistribution.log_prob) because of <URL> | py |
diff --git a/mysql/toolkit/script/split.py b/mysql/toolkit/script/split.py
index <HASH>..<HASH> 100644
--- a/mysql/toolkit/script/split.py
+++ b/mysql/toolkit/script/split.py
@@ -35,7 +35,7 @@ class SplitCommands:
def sql_parse(self):
commands = []
for command in sqlparse.split(self.sql_data):
- ... | Removed progress bar enabling from sql_parse property | py |
diff --git a/scapy/contrib/ospf.py b/scapy/contrib/ospf.py
index <HASH>..<HASH> 100644
--- a/scapy/contrib/ospf.py
+++ b/scapy/contrib/ospf.py
@@ -693,7 +693,9 @@ class OSPFv3_Inter_Area_Router_LSA(OSPF_BaseLSA):
XIntField("seq", 0x80000001),
XShortField("chksum", None),
... | [contrib/ospf.py] Fixed layout of OSPFv3_Inter_Area_Router_LSA | py |
diff --git a/runcommands/command.py b/runcommands/command.py
index <HASH>..<HASH> 100644
--- a/runcommands/command.py
+++ b/runcommands/command.py
@@ -1,11 +1,12 @@
import argparse
import inspect
import os
+import sys
import time
from collections import OrderedDict
from enum import Enum
-from .exc import Comman... | Add Command.console_script() This can be used in setup.py/setup() like so: setup( ..., entry_points={ 'console_scripts': [ ..., 'mycommand = my.package:mycommand.console_script', ], }, ) | py |
diff --git a/src/ossos/core/setup.py b/src/ossos/core/setup.py
index <HASH>..<HASH> 100644
--- a/src/ossos/core/setup.py
+++ b/src/ossos/core/setup.py
@@ -30,7 +30,7 @@ for script in os.listdir(script_dir):
setup(name='ossos',
- version="0.4.3",
+ version="0.4.5",
url='http://github.com/OSSOS/MOP'... | This release fixxes the bug with flipped chips having circle in the wrong spot | py |
diff --git a/dataset/util.py b/dataset/util.py
index <HASH>..<HASH> 100644
--- a/dataset/util.py
+++ b/dataset/util.py
@@ -2,6 +2,7 @@ from hashlib import sha1
from urllib.parse import urlparse
from collections import OrderedDict
from collections.abc import Iterable
+from sqlalchemy.exc import ResourceClosedError
... | Catch closed RP, fixes #<I>. | py |
diff --git a/examples/recurrent-sinusoid.py b/examples/recurrent-sinusoid.py
index <HASH>..<HASH> 100644
--- a/examples/recurrent-sinusoid.py
+++ b/examples/recurrent-sinusoid.py
@@ -25,6 +25,7 @@ ax.plot(T, SIN, ':', label='Target', alpha=0.7)
for name, layer in (
('RNN', dict(form='rnn', activation='relu', ... | Add one of the rate models to the sinusoid example. | py |
diff --git a/jobstamps/jobstamp.py b/jobstamps/jobstamp.py
index <HASH>..<HASH> 100644
--- a/jobstamps/jobstamp.py
+++ b/jobstamps/jobstamp.py
@@ -147,7 +147,8 @@ def run(func, *args, **kwargs):
storage_directory = os.path.join(tempfile.gettempdir(), "jobstamps")
stamp_input = "".join([func.__name__] +
... | Sort keys from kwargs This ensures key stability | py |
diff --git a/wrappers/python/sovrin/__init__.py b/wrappers/python/sovrin/__init__.py
index <HASH>..<HASH> 100644
--- a/wrappers/python/sovrin/__init__.py
+++ b/wrappers/python/sovrin/__init__.py
@@ -5,5 +5,3 @@ from sovrin.ledger import Ledger
from sovrin.pool import Pool
from sovrin.signus import Signus
from sovrin... | clean out __all__ | py |
diff --git a/zipline/assets/assets.py b/zipline/assets/assets.py
index <HASH>..<HASH> 100644
--- a/zipline/assets/assets.py
+++ b/zipline/assets/assets.py
@@ -648,7 +648,7 @@ class AssetFinder(object):
if not options:
# no equity owned the fuzzy symbol on the date requested
- SymbolNo... | BUG: Fixing SymbolNotFound to be raised. | py |
diff --git a/ladybug/datatype/base.py b/ladybug/datatype/base.py
index <HASH>..<HASH> 100644
--- a/ladybug/datatype/base.py
+++ b/ladybug/datatype/base.py
@@ -26,7 +26,6 @@ class DataTypeBase(object):
* cumulative
* normalized_type
"""
- __slots__ = ('_name',)
_units = [None]
_si... | fix(datatype): remove slots Slots don't seem to provide a major memory advantage at this point as they are not implemented on child classes. There is a preference to remove them so certain functions can be overwritten by plugins. close #<I> | py |
diff --git a/panwid/datatable/datatable.py b/panwid/datatable/datatable.py
index <HASH>..<HASH> 100644
--- a/panwid/datatable/datatable.py
+++ b/panwid/datatable/datatable.py
@@ -399,7 +399,7 @@ class DataTable(urwid.WidgetWrap, urwid.listbox.ListWalker):
attr = ' '.join([prefix, suffix])
... | Fix a couple of NameErrors. | py |
diff --git a/src/python/setup.py b/src/python/setup.py
index <HASH>..<HASH> 100755
--- a/src/python/setup.py
+++ b/src/python/setup.py
@@ -66,6 +66,9 @@ if sys.version_info[0] < 3:
if platform.system() != 'Windows':
dependencies.extend(dxfs_dependencies)
+if 'DNANEXUS_INSTALL_PYTHON_TEST_DEPS' in os.env... | Install test deps from setup.py (fixup for <I>d<I>) | py |
diff --git a/src/jaraco/media/cropdetect.py b/src/jaraco/media/cropdetect.py
index <HASH>..<HASH> 100644
--- a/src/jaraco/media/cropdetect.py
+++ b/src/jaraco/media/cropdetect.py
@@ -1,12 +1,22 @@
import re
-import win32api
import sys
-from pywintypes import error
from itertools import imap, takewhile, ifilter
... | Removed dependency on pywin<I> for cropdetect in Python <I> | py |
diff --git a/sem/cli.py b/sem/cli.py
index <HASH>..<HASH> 100644
--- a/sem/cli.py
+++ b/sem/cli.py
@@ -282,7 +282,7 @@ def export(results_dir, filename, do_not_try_parsing, parameters):
required=True)
@click.argument('sources',
nargs=-1,
- (type)=click.Path(exists=True,... | Fix Python <I> SyntaxError in cli.py Python error was `SyntaxError: expression cannot contain assignment, perhaps you meant "=="?` Not sure from which Python version the language semantics changed such that this error occured. Sure thing this was happening with <I>, this commit addresses that. | py |
diff --git a/zdeskcfg.py b/zdeskcfg.py
index <HASH>..<HASH> 100644
--- a/zdeskcfg.py
+++ b/zdeskcfg.py
@@ -69,7 +69,7 @@ class configure(object):
zdesk_email=("zendesk login email", "option", None, None, None, "EMAIL"),
zdesk_password=("zendesk password or token", "option", None, None, None,... | zdesk_token annotation needs type set explicitly | py |
diff --git a/ceam_tests/util.py b/ceam_tests/util.py
index <HASH>..<HASH> 100644
--- a/ceam_tests/util.py
+++ b/ceam_tests/util.py
@@ -25,8 +25,8 @@ def setup_simulation(components, population_size = 100, start=datetime(1990, 1,
return simulation
-def pump_simulation(simulation, duration=None, iterations=None... | added time step days arg to pump_simulation | py |
diff --git a/chess/__init__.py b/chess/__init__.py
index <HASH>..<HASH> 100644
--- a/chess/__init__.py
+++ b/chess/__init__.py
@@ -690,7 +690,7 @@ class BaseBoard:
def attacks(self, square: Square) -> "SquareSet":
"""
- Gets a set of attacked squares from a given square.
+ Gets a set of at... | Grammar fixes Fixed some grammar. It was missed at my last review. | py |
diff --git a/padatious/intent_container.py b/padatious/intent_container.py
index <HASH>..<HASH> 100644
--- a/padatious/intent_container.py
+++ b/padatious/intent_container.py
@@ -115,6 +115,7 @@ class IntentContainer(object):
self.entities.load(Entity.wrap_name(name), file_name, reload_cache)
with ope... | Fix bug with loaded intents not training | py |
diff --git a/pyemu/prototypes/pst_from.py b/pyemu/prototypes/pst_from.py
index <HASH>..<HASH> 100644
--- a/pyemu/prototypes/pst_from.py
+++ b/pyemu/prototypes/pst_from.py
@@ -1134,6 +1134,13 @@ class PstFrom(object):
self.logger.lraise("No spatial reference in parent "
... | (feat) added a check in add_parameters to make sure spatial reference and original array align for pilot points | py |
diff --git a/dipper/sources/MGI.py b/dipper/sources/MGI.py
index <HASH>..<HASH> 100644
--- a/dipper/sources/MGI.py
+++ b/dipper/sources/MGI.py
@@ -1194,13 +1194,19 @@ SELECT r._relationship_key as rel_key,
object_key = row[col.index('_object_key')]
term_key = row[col.index('_term_key'... | Skip normal phenotypes in MGI | py |
diff --git a/client/cytomine/cytomine.py b/client/cytomine/cytomine.py
index <HASH>..<HASH> 100644
--- a/client/cytomine/cytomine.py
+++ b/client/cytomine/cytomine.py
@@ -908,9 +908,11 @@ class Cytomine(object):
else:
#us... | dump_annotations doesn't print when verbose is disabled | py |
diff --git a/tcod/libtcodpy.py b/tcod/libtcodpy.py
index <HASH>..<HASH> 100644
--- a/tcod/libtcodpy.py
+++ b/tcod/libtcodpy.py
@@ -3,6 +3,7 @@
import os
import sys
+import atexit
import threading
from typing import Any, AnyStr, Optional, Sequence, Tuple
import warnings
@@ -3573,3 +3574,17 @@ def sys_clipboard_ge... | Warn if the root console is implicitly deleted. | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.