diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/app.py b/app.py
index <HASH>..<HASH> 100644
--- a/app.py
+++ b/app.py
@@ -11,6 +11,7 @@ import json
import base64
import hashlib
import sys
+import time
app_root = Path(__file__).parent
@@ -95,6 +96,7 @@ class BaseView(HTTPMethodView):
except KeyError:
as_json = False
... | Include took_ms in JSON output | py |
diff --git a/chassis/services/dependency_injection/__init__.py b/chassis/services/dependency_injection/__init__.py
index <HASH>..<HASH> 100644
--- a/chassis/services/dependency_injection/__init__.py
+++ b/chassis/services/dependency_injection/__init__.py
@@ -33,7 +33,16 @@ def _check_type(name, obj, expected_type):
... | Add additional comment on _import_module to show example __import__ call | py |
diff --git a/tools/run_tests/run_microbenchmark.py b/tools/run_tests/run_microbenchmark.py
index <HASH>..<HASH> 100755
--- a/tools/run_tests/run_microbenchmark.py
+++ b/tools/run_tests/run_microbenchmark.py
@@ -199,8 +199,7 @@ argp.add_argument('-c', '--collect',
default=sorted(collectors.keys()),
... | Move trickle to the end: it takes a while, and its less important (in the face of failures) | py |
diff --git a/kconfiglib.py b/kconfiglib.py
index <HASH>..<HASH> 100644
--- a/kconfiglib.py
+++ b/kconfiglib.py
@@ -5479,7 +5479,12 @@ class Variable(object):
class KconfigError(Exception):
- "Exception raised for Kconfig-related errors"
+ """
+ Exception raised for Kconfig-related errors.
+
+ KconfigEr... | Clarify that KconfigSyntaxError = KconfigError in the docs KconfigSyntaxError is just an older (bad) name. pydoc generates confusing documentation due to the "KconfigSyntaxError = KconfigError" assignment, so mention it in the docstring. | py |
diff --git a/visio2img/visio2img.py b/visio2img/visio2img.py
index <HASH>..<HASH> 100644
--- a/visio2img/visio2img.py
+++ b/visio2img/visio2img.py
@@ -76,7 +76,16 @@ class VisioFile(object):
raise OSError(msg)
try:
- self.app.Documents.Open(visio_pathname)
+ if hasattr(self... | Use OpenEx when available with visOpenCopy and visOpenRO flags Using OpenEx with visOpenCopy and visOpenRO flags allows visio2img to open a vsd even if another visio instance has the file already opened. | py |
diff --git a/tests/cases/item_test.py b/tests/cases/item_test.py
index <HASH>..<HASH> 100644
--- a/tests/cases/item_test.py
+++ b/tests/cases/item_test.py
@@ -621,6 +621,9 @@ class ItemTestCase(base.TestCase):
'text': 'copied_item'})
self.assertStatusOk(resp)
self.... | Add test to ensure that copyOfItem is correct | py |
diff --git a/bulbs/content/serializers.py b/bulbs/content/serializers.py
index <HASH>..<HASH> 100644
--- a/bulbs/content/serializers.py
+++ b/bulbs/content/serializers.py
@@ -1,5 +1,5 @@
from django import forms
-from django.contrib.auth.models import User
+from django.contrib import auth
from rest_framework import s... | Updated bulbs serializers to use custom auth model | py |
diff --git a/condoor/protocols/telnet.py b/condoor/protocols/telnet.py
index <HASH>..<HASH> 100644
--- a/condoor/protocols/telnet.py
+++ b/condoor/protocols/telnet.py
@@ -69,7 +69,7 @@ class Telnet(Protocol):
logger.debug("EXPECTED_PROMPT={}".format(pattern_to_str(self.device.prompt_re)))
# setting ma... | Increasing max_transition to handle ascii art prompts | py |
diff --git a/code/png.py b/code/png.py
index <HASH>..<HASH> 100755
--- a/code/png.py
+++ b/code/png.py
@@ -1465,6 +1465,17 @@ class Reader:
All the other aspects of the image data (bit depth for example)
are not changed.
+
+ .. note::
+
+ When the source image is greyscale, has bit d... | Added note to asDirect and fixed bug in pngsuite_image. git-svn-id: <URL> | py |
diff --git a/tests/test_generators.py b/tests/test_generators.py
index <HASH>..<HASH> 100644
--- a/tests/test_generators.py
+++ b/tests/test_generators.py
@@ -176,7 +176,9 @@ class TestGenerators(unittest.TestCase):
test_file_reshaped = test_file.reshape(
int(test_file.shape[0]), int(test_file.sha... | chg: [test] trying assert_allclose instead of assert_array_equal. | py |
diff --git a/sqlparse/tokens.py b/sqlparse/tokens.py
index <HASH>..<HASH> 100644
--- a/sqlparse/tokens.py
+++ b/sqlparse/tokens.py
@@ -13,15 +13,6 @@
class _TokenType(tuple):
parent = None
- def split(self):
- buf = []
- node = self
- while node is not None:
- buf.append(node)... | Remove unused code from tokens.py | py |
diff --git a/squad/plugins/__init__.py b/squad/plugins/__init__.py
index <HASH>..<HASH> 100644
--- a/squad/plugins/__init__.py
+++ b/squad/plugins/__init__.py
@@ -111,6 +111,24 @@ class Plugin(object):
"""
pass
+ def notify_patch_build_created(self, build):
+ """
+ This method is ca... | plugins: add API for patch source notifications This will be called to trigger notifications about build status to Gerrit/Github/etc. | py |
diff --git a/src/scs_core/sys/node.py b/src/scs_core/sys/node.py
index <HASH>..<HASH> 100644
--- a/src/scs_core/sys/node.py
+++ b/src/scs_core/sys/node.py
@@ -59,7 +59,7 @@ class Node(ABC):
@staticmethod
- def ping(host, timeout=1):
+ def ping(host, timeout=1.0):
p = Popen(['ping', '-q', '-c', '... | Added server_ipv4_address to Host | py |
diff --git a/pyte/screens.py b/pyte/screens.py
index <HASH>..<HASH> 100644
--- a/pyte/screens.py
+++ b/pyte/screens.py
@@ -999,6 +999,8 @@ class HistoryScreen(DiffScreen):
self.ensure_width()
+ self.dirty = set(range(self.lines))
+
def next_page(self):
"""Moves the screen page ... | Fixed a bug in `HistoryScreen` -- DiffScreen.dirty attribute wasn't updated | py |
diff --git a/tests/test_s3_calling_format.py b/tests/test_s3_calling_format.py
index <HASH>..<HASH> 100644
--- a/tests/test_s3_calling_format.py
+++ b/tests/test_s3_calling_format.py
@@ -288,4 +288,5 @@ def test_cipher_suites():
# harmlessly, but do the simple thing and insist on an exact match
# for now.
... | Allow new ECDHE cipher suite in test | py |
diff --git a/ricecooker/__main__.py b/ricecooker/__main__.py
index <HASH>..<HASH> 100644
--- a/ricecooker/__main__.py
+++ b/ricecooker/__main__.py
@@ -83,7 +83,7 @@ if __name__ == '__main__':
compress=arguments['--compress'],
**kwargs)
except Exception as e:
- c... | Remote logs via websockets: renaming critical stage from ERROR to FAILURE. | py |
diff --git a/spade/container.py b/spade/container.py
index <HASH>..<HASH> 100644
--- a/spade/container.py
+++ b/spade/container.py
@@ -14,7 +14,7 @@ from .message import Message
logger = logging.getLogger("SPADE")
# check if python is 3.6 or higher
-if sys.version_info < (3, 7) and sys.platform == "win32":
+if sys.... | make last check being >=<I> | py |
diff --git a/salt/auth/pam.py b/salt/auth/pam.py
index <HASH>..<HASH> 100644
--- a/salt/auth/pam.py
+++ b/salt/auth/pam.py
@@ -19,6 +19,8 @@ authenticated against. This defaults to `login`
auth.pam.service: login
+.. note:: Solaris-like (SmartOS, OmniOS, ...) systems may need ``auth.pam.service`` set to ``oth... | update salt.auth.pam documentation in relation to Solaris #<I> | py |
diff --git a/cassandra/cluster.py b/cassandra/cluster.py
index <HASH>..<HASH> 100644
--- a/cassandra/cluster.py
+++ b/cassandra/cluster.py
@@ -68,7 +68,7 @@ class ResponseFuture(object):
# off if send_request() is called multiple times
for host in self.query_plan:
req_id = self._query(hos... | Correctly handle request IDs of 0 | py |
diff --git a/cacheback/base.py b/cacheback/base.py
index <HASH>..<HASH> 100644
--- a/cacheback/base.py
+++ b/cacheback/base.py
@@ -5,6 +5,7 @@ import time
from django.conf import settings
from django.core.cache import DEFAULT_CACHE_ALIAS
+from django.db.models import Model as DjangoModel
from django.utils import s... | Refs #<I> - added handling of Django Model instances out of the box | py |
diff --git a/thingstance/stores/mongodb.py b/thingstance/stores/mongodb.py
index <HASH>..<HASH> 100644
--- a/thingstance/stores/mongodb.py
+++ b/thingstance/stores/mongodb.py
@@ -14,15 +14,15 @@ class MongoStore(Store):
client = MongoClient()
db = client[database]
self.db = db
- ... | Refactored mongo collection name | py |
diff --git a/tests/test_library.py b/tests/test_library.py
index <HASH>..<HASH> 100644
--- a/tests/test_library.py
+++ b/tests/test_library.py
@@ -28,10 +28,30 @@ def test_recently_added():
assert items[0].title == "TRON: Legacy"
assert items[0].year == 2010
+ assert items[0].director.tag == "Joseph Kosi... | Extended recently_added() "movie" test | py |
diff --git a/Lib/fontParts/base/glyph.py b/Lib/fontParts/base/glyph.py
index <HASH>..<HASH> 100644
--- a/Lib/fontParts/base/glyph.py
+++ b/Lib/fontParts/base/glyph.py
@@ -13,6 +13,10 @@ from fontParts.base.color import Color
class BaseGlyph(BaseObject, TransformationMixin):
+ """
+ Glyph object.
+ """... | Token checkin for glyph docs There is a tonne of documentation here already!? | py |
diff --git a/noseprogressive/tests/test_utils.py b/noseprogressive/tests/test_utils.py
index <HASH>..<HASH> 100644
--- a/noseprogressive/tests/test_utils.py
+++ b/noseprogressive/tests/test_utils.py
@@ -17,6 +17,7 @@ class UtilsTests(TestCase):
def test_frame_of_test_null_file(self):
"""Make sure frame_of... | Bring test_frame_of_test_null_file up to date with new signature of frame_of_test(). | py |
diff --git a/dcompiler.py b/dcompiler.py
index <HASH>..<HASH> 100755
--- a/dcompiler.py
+++ b/dcompiler.py
@@ -679,12 +679,13 @@ class DMDDCompiler(DCompiler):
return ''
def library_dir_option(self, dir):
- self.warn("Don't know how to set library search path for DMD.")
- #raise Distut... | add dmd library_dir support | py |
diff --git a/deepdish/io/hdf5io.py b/deepdish/io/hdf5io.py
index <HASH>..<HASH> 100644
--- a/deepdish/io/hdf5io.py
+++ b/deepdish/io/hdf5io.py
@@ -12,7 +12,7 @@ except ImportError:
from deepdish import six
-IO_VERSION = 6
+IO_VERSION = 7
DEEPDISH_IO_VERSION_STR = 'DEEPDISH_IO_VERSION'
# Types that should be sa... | Updated IO version after adding pandas support | py |
diff --git a/pypeerassets/main.py b/pypeerassets/main.py
index <HASH>..<HASH> 100644
--- a/pypeerassets/main.py
+++ b/pypeerassets/main.py
@@ -98,7 +98,7 @@ def find_card_transfers(provider, deck: Deck) -> list:
'''find all <deck> card transfers'''
cards = []
- card_transfers = (provider.getrawtransactio... | find_card_transfers fix that small bug. | py |
diff --git a/spockbot/plugins/helpers/chat.py b/spockbot/plugins/helpers/chat.py
index <HASH>..<HASH> 100644
--- a/spockbot/plugins/helpers/chat.py
+++ b/spockbot/plugins/helpers/chat.py
@@ -130,7 +130,10 @@ class ChatPlugin(PluginBase):
# sender UUID
try: # always at the same place if present
- ... | Fixed uuid grabber in some cases the uuid may not be at the beginning of the string, so I added a splitter to find it correctly. | py |
diff --git a/internetarchive/config.py b/internetarchive/config.py
index <HASH>..<HASH> 100644
--- a/internetarchive/config.py
+++ b/internetarchive/config.py
@@ -103,11 +103,9 @@ def parse_config_file(config_file=None):
config = configparser.RawConfigParser()
if not config_file:
- config_dir = os.pa... | Read from ~/.config/ia.ini with fallback to ~/.ia regardless of the existence of ~/.config | py |
diff --git a/discord/message.py b/discord/message.py
index <HASH>..<HASH> 100644
--- a/discord/message.py
+++ b/discord/message.py
@@ -53,9 +53,9 @@ class Attachment:
size: :class:`int`
The attachment size in bytes.
height: Optional[:class:`int`]
- The attachment's height, in pixels. Only appl... | Update attachment documentation for width/height applying to videos too | py |
diff --git a/source/rafcon/mvc/controllers/graphical_editor_gaphas.py b/source/rafcon/mvc/controllers/graphical_editor_gaphas.py
index <HASH>..<HASH> 100644
--- a/source/rafcon/mvc/controllers/graphical_editor_gaphas.py
+++ b/source/rafcon/mvc/controllers/graphical_editor_gaphas.py
@@ -172,8 +172,12 @@ class GraphicalE... | Perform canvas update before pasting a state | py |
diff --git a/jsonextended/utils.py b/jsonextended/utils.py
index <HASH>..<HASH> 100644
--- a/jsonextended/utils.py
+++ b/jsonextended/utils.py
@@ -252,6 +252,10 @@ class MockPath(object):
def is_dir(self):
return self._is_dir
+ @property
+ def parent(self):
+ return MockPath(os.path.dirname... | added standard parent and str access to MockPath | py |
diff --git a/mwreverts/about.py b/mwreverts/about.py
index <HASH>..<HASH> 100644
--- a/mwreverts/about.py
+++ b/mwreverts/about.py
@@ -1,5 +1,5 @@
__name__ = "mwreverts"
-__version__ = "0.1.2"
+__version__ = "0.1.3"
__author__ = "Aaron Halfaker"
__author_email__ = "aaron.halfaker@gmail.com"
__description__ = "A set... | Increments version to <I> | py |
diff --git a/ReText/window.py b/ReText/window.py
index <HASH>..<HASH> 100644
--- a/ReText/window.py
+++ b/ReText/window.py
@@ -55,7 +55,11 @@ class ReTextWindow(QMainWindow):
def __init__(self, parent=None):
QMainWindow.__init__(self, parent)
self.resize(950, 700)
- screenRect = self.screen().geometry()
+ qAp... | Use fallback code to obtain screen size for Qt < <I> | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -7,7 +7,7 @@ except ImportError:
setup(
name='django-userlog',
- version='0.2',
+ version='0.2.1',
description='A django apps to record user log in ip addresses and user agent',
author='Tamas Szabo',
... | Bumps version number to <I>. | py |
diff --git a/python/herald/remote/herald_jsonrpc.py b/python/herald/remote/herald_jsonrpc.py
index <HASH>..<HASH> 100644
--- a/python/herald/remote/herald_jsonrpc.py
+++ b/python/herald/remote/herald_jsonrpc.py
@@ -1,7 +1,8 @@
#!/usr/bin/env python
# -- Content-Encoding: UTF-8 --
"""
-Pelix remote services implement... | Code reformated according to PEP8 | py |
diff --git a/staticjinja/__init__.py b/staticjinja/__init__.py
index <HASH>..<HASH> 100644
--- a/staticjinja/__init__.py
+++ b/staticjinja/__init__.py
@@ -3,4 +3,4 @@
from __future__ import absolute_import
-from .staticjinja import Reloader, Renderer
+from .staticjinja import Reloader, Renderer, make_renderer | We also need import staticjinja to expose make_renderer | py |
diff --git a/tests/test_simulated_annealing.py b/tests/test_simulated_annealing.py
index <HASH>..<HASH> 100644
--- a/tests/test_simulated_annealing.py
+++ b/tests/test_simulated_annealing.py
@@ -18,6 +18,7 @@ import time
import unittest
import contextlib
from concurrent.futures import ThreadPoolExecutor, wait
+from ... | Isolate problems in concurrency test runs | py |
diff --git a/models.py b/models.py
index <HASH>..<HASH> 100644
--- a/models.py
+++ b/models.py
@@ -547,7 +547,9 @@ class Sample(object):
# if path is not specified, use default:
# prj.paths.submission_dir + sample_name + yaml
if path is None:
- path = _os.path.join(self.prj.paths.submission_subdir, self.samp... | implemented yaml_file as Sample attribute; atac/chip-seq pipelines now require that to be passed as argument | py |
diff --git a/setuptools/tests/test_develop.py b/setuptools/tests/test_develop.py
index <HASH>..<HASH> 100644
--- a/setuptools/tests/test_develop.py
+++ b/setuptools/tests/test_develop.py
@@ -160,6 +160,19 @@ class TestNamespaces:
tmpl = '__import__("site").addsitedir({target_str!r})'
sc.write_text(tmp... | pip can't accept -e and -t | py |
diff --git a/nodeconductor/server/admin/menu.py b/nodeconductor/server/admin/menu.py
index <HASH>..<HASH> 100644
--- a/nodeconductor/server/admin/menu.py
+++ b/nodeconductor/server/admin/menu.py
@@ -62,6 +62,7 @@ class CustomMenu(Menu):
IAAS_CLOUDS = (
'nodeconductor_assembly_waldur.packages.*',
+ ... | Add waldur invoices to admin panel - WAL-<I> | py |
diff --git a/docs/conf.py b/docs/conf.py
index <HASH>..<HASH> 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -294,4 +294,4 @@ epub_copyright = copyright
# Example configuration for intersphinx: refer to the Python standard library.
-intersphinx_mapping = {'http://docs.python.org/': None}
+intersphinx_mapping ... | Changed intersphinx conf to the new format | py |
diff --git a/mpd/tests.py b/mpd/tests.py
index <HASH>..<HASH> 100755
--- a/mpd/tests.py
+++ b/mpd/tests.py
@@ -31,8 +31,7 @@ except ImportError:
"(twisted is not available for python >= 3.0 && python < 3.3)")
TWISTED_MISSING = True
-if sys.version_info >= (3, 5):
- # asyncio would be availa... | tests: Drop precise case about now-unsupported versions | py |
diff --git a/atomic_reactor/__init__.py b/atomic_reactor/__init__.py
index <HASH>..<HASH> 100644
--- a/atomic_reactor/__init__.py
+++ b/atomic_reactor/__init__.py
@@ -17,12 +17,8 @@ import time
from atomic_reactor.version import __version__ # noqa
-try:
- from osbs.constants import ATOMIC_REACTOR_LOGGING_FMT
-... | Complete loggers by new level and message handler for user warnings *CLOUDBLD-<I> | py |
diff --git a/tests/plugins/test_inject_yum_repos.py b/tests/plugins/test_inject_yum_repos.py
index <HASH>..<HASH> 100644
--- a/tests/plugins/test_inject_yum_repos.py
+++ b/tests/plugins/test_inject_yum_repos.py
@@ -764,10 +764,10 @@ def test_inject_repos(configure_ca_bundle, inherited_user, include_koji_repo, re
#... | test_inject_yum_repos: make test clearer Don't use build_dir.any_plaform to mean a specific platform. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -132,7 +132,6 @@ setup(
packages=[SRC_ROOT],
install_requires=['numpy', 'scipy>=0.16'],
- hiddenimports=['scipy.linalg.cython_blas', 'scipy.linalg.cython_lapack'],
setup_requires=["Cython >= 0.19"],
ex... | remove unnecessary line from setup.py | py |
diff --git a/bcbio/rnaseq/umi.py b/bcbio/rnaseq/umi.py
index <HASH>..<HASH> 100644
--- a/bcbio/rnaseq/umi.py
+++ b/bcbio/rnaseq/umi.py
@@ -9,6 +9,7 @@ import json
import os
import copy
import glob
+import sys
from itertools import repeat, chain
import bcbio.pipeline.datadict as dd
@@ -61,7 +62,13 @@ def umi_tran... | Add more informative error message when umi_type is mis-specified. Thanks to Suraj Menon for pointing out this poor error message. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -38,8 +38,9 @@ classifiers = [
setup(
name='poker',
- version='0.23.0',
+ version='0.23.1',
description='Poker Framework',
+ long_description=open('README.rst', 'r').read().decode('utf-8'),
classifie... | README is not rendered long_description is needed for the new pypi.org to show it. | py |
diff --git a/statik/config.py b/statik/config.py
index <HASH>..<HASH> 100644
--- a/statik/config.py
+++ b/statik/config.py
@@ -6,6 +6,10 @@ from statik.utils import underscore_var_names
import logging
logger = logging.getLogger(__name__)
+__all__ = [
+ 'StatikConfig',
+]
+
class StatikConfig(YamlLoadable):
... | minor modification to include __all__ var in config script | py |
diff --git a/dvc/__init__.py b/dvc/__init__.py
index <HASH>..<HASH> 100644
--- a/dvc/__init__.py
+++ b/dvc/__init__.py
@@ -7,7 +7,7 @@ import os
import warnings
-VERSION_BASE = '0.21.0'
+VERSION_BASE = '0.21.1'
__version__ = VERSION_BASE
PACKAGEPATH = os.path.abspath(os.path.dirname(__file__)) | dvc: bump to <I> | py |
diff --git a/src/ossos/core/ossos/__version__.py b/src/ossos/core/ossos/__version__.py
index <HASH>..<HASH> 100644
--- a/src/ossos/core/ossos/__version__.py
+++ b/src/ossos/core/ossos/__version__.py
@@ -1 +1 @@
-version = "1.2"
+version = "1.2.1" | bump the version for install by edward | py |
diff --git a/dockerfabric/apiclient.py b/dockerfabric/apiclient.py
index <HASH>..<HASH> 100644
--- a/dockerfabric/apiclient.py
+++ b/dockerfabric/apiclient.py
@@ -23,7 +23,7 @@ class DockerFabricConnections(ConnectionDict):
Create a new connection, or return an existing one from the cache. Uses Fabric's curren... | Handling missing host on connection cache. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -1,4 +1,5 @@
from setuptools import setup
+from pathlib import Path
setup(
name='unsync',
@@ -9,4 +10,6 @@ setup(
author='Alex-Sherman',
author_email='asherman1024@gmail.com',
description='Unsynchronize... | FEAT include long_description in package This will display the readme on pypi.org. | py |
diff --git a/spyder/preferences/shortcuts.py b/spyder/preferences/shortcuts.py
index <HASH>..<HASH> 100644
--- a/spyder/preferences/shortcuts.py
+++ b/spyder/preferences/shortcuts.py
@@ -715,7 +715,6 @@ class ShortcutsTable(QTableView):
def adjust_cells(self):
"""Adjust column size based on contents."... | Preferences: Don't adjust rows to contents in shortcuts That gives an uneven size for rows, which look ugly | py |
diff --git a/spyderlib/plugins/workingdirectory.py b/spyderlib/plugins/workingdirectory.py
index <HASH>..<HASH> 100644
--- a/spyderlib/plugins/workingdirectory.py
+++ b/spyderlib/plugins/workingdirectory.py
@@ -23,7 +23,7 @@ import os.path as osp
# Local imports
from spyderlib.utils import encoding
-from spyderl... | Working Directory: Set home dir as initial working dir on first start | py |
diff --git a/flux_led/utils.py b/flux_led/utils.py
index <HASH>..<HASH> 100644
--- a/flux_led/utils.py
+++ b/flux_led/utils.py
@@ -294,7 +294,7 @@ def white_levels_to_color_temp(warm_white, cool_white):
cold = cool_white / 255
brightness = warm + cold
if brightness == 0:
- temperature = ((cold / b... | Fix reversed zero guard in white_levels_to_color_temp | py |
diff --git a/bokeh/_version.py b/bokeh/_version.py
index <HASH>..<HASH> 100644
--- a/bokeh/_version.py
+++ b/bokeh/_version.py
@@ -1,4 +1,3 @@
-from __future__ import absolute_import, print_function
IN_LONG_VERSION_PY = True
# This file helps to compute a version number in source trees obtained from
@@ -115,14 +114... | need to update _version.py too | py |
diff --git a/ELiDE/layout.py b/ELiDE/layout.py
index <HASH>..<HASH> 100644
--- a/ELiDE/layout.py
+++ b/ELiDE/layout.py
@@ -392,7 +392,10 @@ class ELiDELayout(FloatLayout):
if self.character is None or 'charsheet' not in self.ids:
Clock.schedule_once(self.reremote, 0)
return
- s... | Fix ValueError when creating new Portal I'm not sure why reremote is even being called now. I think it would be better to fix this by preventing that. | py |
diff --git a/remote/client/test/py/test_remote_api.py b/remote/client/test/py/test_remote_api.py
index <HASH>..<HASH> 100644
--- a/remote/client/test/py/test_remote_api.py
+++ b/remote/client/test/py/test_remote_api.py
@@ -21,8 +21,8 @@ import socket
import subprocess
import time
from selenium.common.webserver impor... | Module name changed from webdriver to selenium r<I> | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -23,9 +23,13 @@ def main():
author_email='benjamin_gyori@hms.harvard.edu',
url='http://github.com/sorgerlab/indra',
packages=['indra', 'indra.assemblers', 'indra.belief',
- '... | Update package list in setup.py | py |
diff --git a/wandb/api.py b/wandb/api.py
index <HASH>..<HASH> 100644
--- a/wandb/api.py
+++ b/wandb/api.py
@@ -149,7 +149,7 @@ class Api(object):
def save_patch(self, out_dir):
if self.git.dirty:
- self.git.repo.git.execute(['git', 'diff'], output_stream=open(
+ self.git.repo.git.e... | Generate patches with --submodule=diff so submodules appear in the generated patch | py |
diff --git a/gandi/commands/iaas.py b/gandi/commands/iaas.py
index <HASH>..<HASH> 100644
--- a/gandi/commands/iaas.py
+++ b/gandi/commands/iaas.py
@@ -128,7 +128,7 @@ def create(gandi, datacenter_id, memory, cores, ip_version, bandwidth, login,
you can provide a ssh_key on command line calling this command as:
... | Fixes help for vm.create and ssh_key usage | py |
diff --git a/tarbell/app.py b/tarbell/app.py
index <HASH>..<HASH> 100644
--- a/tarbell/app.py
+++ b/tarbell/app.py
@@ -233,8 +233,6 @@ class TarbellSite:
except AttributeError:
return hooks
- #@TODO traverse hooks
-
def call_hook(self, hook, *args, **kwargs):
if len(self.hoo... | hooks are traversed remove todo | py |
diff --git a/lib/devpipeline_configure/cache.py b/lib/devpipeline_configure/cache.py
index <HASH>..<HASH> 100644
--- a/lib/devpipeline_configure/cache.py
+++ b/lib/devpipeline_configure/cache.py
@@ -64,6 +64,9 @@ class _CachedComponent:
def __iter__(self):
return _CachedComponetKeys(self._component)
+ ... | Add name function to _CachedComponent | py |
diff --git a/jenkins/test_history/gen_json_test.py b/jenkins/test_history/gen_json_test.py
index <HASH>..<HASH> 100755
--- a/jenkins/test_history/gen_json_test.py
+++ b/jenkins/test_history/gen_json_test.py
@@ -121,18 +121,6 @@ class GCSClientTest(unittest.TestCase):
def setUp(self):
self.client = MockedC... | Remove two non-hermetic unit tests. | py |
diff --git a/pynmea2/stream.py b/pynmea2/stream.py
index <HASH>..<HASH> 100644
--- a/pynmea2/stream.py
+++ b/pynmea2/stream.py
@@ -26,7 +26,7 @@ class NMEAStreamReader(object):
'''
if data is None:
if self.stream:
- data = self.stream.read().decode()
+ da... | Modified read step to behave nicely with stdin. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -22,6 +22,7 @@ import site
import subprocess
import sys
from distutils.core import setup
+from distutils import dir_util
from os.path import abspath, exists, join, dirname
# Our own imports
@@ -250,6 +251,9 @@ if 'devjs... | Changed clean to delete the /build/lib directory | py |
diff --git a/pypiper/utils.py b/pypiper/utils.py
index <HASH>..<HASH> 100644
--- a/pypiper/utils.py
+++ b/pypiper/utils.py
@@ -288,7 +288,7 @@ def get_parameter(param, param_pools, on_missing=None, error=True):
# Search for the requested parameter.
for pool in param_pools:
if param in pool:
- ... | need to index into appropriate pool, not the entire collection of pools | py |
diff --git a/tests/test_tempfile.py b/tests/test_tempfile.py
index <HASH>..<HASH> 100644
--- a/tests/test_tempfile.py
+++ b/tests/test_tempfile.py
@@ -54,6 +54,10 @@ class ScratchDirTest(unittest.TestCase):
files = os.listdir(".")
self.assertNotIn("scratch_text", files)
+ def test_bad_root(self):... | Add unittest for bad rootpath. | py |
diff --git a/eve_elastic/elastic.py b/eve_elastic/elastic.py
index <HASH>..<HASH> 100644
--- a/eve_elastic/elastic.py
+++ b/eve_elastic/elastic.py
@@ -161,11 +161,11 @@ class Elastic(DataLayer):
if index is None:
index = self.index
try:
- get_indices(self.es).create(self.index)... | feat(mapping) - allow for putting the mapping on different indexes | py |
diff --git a/rflint/parser/parser.py b/rflint/parser/parser.py
index <HASH>..<HASH> 100644
--- a/rflint/parser/parser.py
+++ b/rflint/parser/parser.py
@@ -124,8 +124,10 @@ class RobotFile(object):
self.tables = []
self.rows = []
- self._load(path)
-
+ try:
+ self._load(path)... | add exception handling around the reading of files | py |
diff --git a/__init__.py b/__init__.py
index <HASH>..<HASH> 100644
--- a/__init__.py
+++ b/__init__.py
@@ -10,4 +10,4 @@ used from a setup script as
__revision__ = "$Id$"
-__version__ = "0.8.2"
+__version__ = "0.9pre" | Bumped version number to <I>pre (there will be a couple of code snapshots before the real release, but I want to make it clear that a major new release is on the way). | py |
diff --git a/master/buildbot/worker/latent.py b/master/buildbot/worker/latent.py
index <HASH>..<HASH> 100644
--- a/master/buildbot/worker/latent.py
+++ b/master/buildbot/worker/latent.py
@@ -341,7 +341,8 @@ class AbstractLatentWorker(AbstractWorker):
if self.state == States.NOT_SUBSTANTIATED:
retu... | latent: Handle INSUBSTANTIATING_SUBSTANTIATING during insubstantiate() | py |
diff --git a/simanneal/anneal.py b/simanneal/anneal.py
index <HASH>..<HASH> 100644
--- a/simanneal/anneal.py
+++ b/simanneal/anneal.py
@@ -43,7 +43,7 @@ class Annealer(object):
save_state_on_exit = True
def __init__(self, initial_state=None, load_state=None):
- if initial_state:
+ if len(initi... | Support state variable of type numpy.ndarray Fix the error with numpy arrays | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -1,4 +1,4 @@
-from distutils.core import setup
+from setuptools import setup
setup(
name = 'npTDMS', | setup.py: distutils -> setuptools entrypoints aren't supported by distutils | py |
diff --git a/aredis/connection.py b/aredis/connection.py
index <HASH>..<HASH> 100644
--- a/aredis/connection.py
+++ b/aredis/connection.py
@@ -220,6 +220,12 @@ class BaseConnection:
def __repr__(self):
return self.description.format(**self._description_args)
+ def __del__(self):
+ try:
+ ... | OPT: add __del__ to BaseConnection | py |
diff --git a/bcbio/variation/vfilter.py b/bcbio/variation/vfilter.py
index <HASH>..<HASH> 100644
--- a/bcbio/variation/vfilter.py
+++ b/bcbio/variation/vfilter.py
@@ -135,7 +135,10 @@ def _freebayes_hard(in_file, data):
if not vcfutils.vcf_has_variants(in_file):
base, ext = utils.splitext_plus(in_file)
... | Tabix indexing of empty filtered FreeBayes variant files | py |
diff --git a/indra/literature/pmc_client.py b/indra/literature/pmc_client.py
index <HASH>..<HASH> 100644
--- a/indra/literature/pmc_client.py
+++ b/indra/literature/pmc_client.py
@@ -11,6 +11,13 @@ import xml.etree.ElementTree as ET
from indra.literature import pubmed_client
from indra.util import UnicodeXMLTreeBuild... | Fix compatibility bug introduced by #<I> | py |
diff --git a/tacacs_plus/__init__.py b/tacacs_plus/__init__.py
index <HASH>..<HASH> 100644
--- a/tacacs_plus/__init__.py
+++ b/tacacs_plus/__init__.py
@@ -802,7 +802,7 @@ def handle_command_line():
secret,
timeout=args.timeout
).authenticate(args.username, password,
- TAC_PLUS_A... | Fix improper command line usage of API. | py |
diff --git a/uw_uwnetid/models.py b/uw_uwnetid/models.py
index <HASH>..<HASH> 100644
--- a/uw_uwnetid/models.py
+++ b/uw_uwnetid/models.py
@@ -42,6 +42,7 @@ class Subscription(models.Model):
SUBS_CODE_CANVAS_STUDENT = 77
SUBS_CODE_CANVAS_AFFILIATE = 78
SUBS_CODE_CANVAS_SPONSORED = 79
+ SUBS_CODE_HUSKY... | sub and cat codes for husky onnet extension | py |
diff --git a/rockAtlas/__version__.py b/rockAtlas/__version__.py
index <HASH>..<HASH> 100644
--- a/rockAtlas/__version__.py
+++ b/rockAtlas/__version__.py
@@ -1 +1 @@
-__version__ = '0.2.1'
+__version__ = '0.2.2' | added CLIENT.MULTI_STATEMENT to allow for multiple mysql statements to be executed with one query using PyMYSQL | py |
diff --git a/telethon/client/uploads.py b/telethon/client/uploads.py
index <HASH>..<HASH> 100644
--- a/telethon/client/uploads.py
+++ b/telethon/client/uploads.py
@@ -606,16 +606,16 @@ class UploadMethods:
pos += len(part)
+ # Encryption part if needed
+ if key and iv:... | Fix MD5_CHECKSUM_INVALID for small files with custom key/iv (#<I>) Closes #<I>. | py |
diff --git a/tests/test_SSCursor.py b/tests/test_SSCursor.py
index <HASH>..<HASH> 100644
--- a/tests/test_SSCursor.py
+++ b/tests/test_SSCursor.py
@@ -2,7 +2,7 @@ from tests import base
import aiomysql.cursors
-class TestSSCursor(base.PyMySQLTestCase):
+class TestSSCursor(base.AIOPyMySQLTestCase):
def test_SS... | cleanup sslcursor (still not implemented) | py |
diff --git a/tests/test_ptaskgroup.py b/tests/test_ptaskgroup.py
index <HASH>..<HASH> 100644
--- a/tests/test_ptaskgroup.py
+++ b/tests/test_ptaskgroup.py
@@ -115,5 +115,35 @@ async def test_ptaskgroup_exc_handler():
assert count == 0
assert error_count == 10
- # after handlign error, all ref... | test: Fortify ptaskgroup test case * Cancellation handling blocks of subtasks may have additional awaits to clean up their resources, and those should be executed while shutting down the ptaskgroup. * It has been working as expected, but let's add an explicit test case to prevent regression. | py |
diff --git a/adminfiles/admin.py b/adminfiles/admin.py
index <HASH>..<HASH> 100644
--- a/adminfiles/admin.py
+++ b/adminfiles/admin.py
@@ -9,7 +9,8 @@ from adminfiles.settings import ADMINFILES_MEDIA_URL, JQUERY_URL
from adminfiles.listeners import register_listeners
class FileUploadAdmin(admin.ModelAdmin):
- li... | Add description (editable) to file upload admin list. | py |
diff --git a/alot/command.py b/alot/command.py
index <HASH>..<HASH> 100644
--- a/alot/command.py
+++ b/alot/command.py
@@ -794,9 +794,9 @@ class OpenAttachmentCommand(Command):
if handler:
path = self.attachment.save(tempfile.gettempdir())
if '%s' in handler:
- cmd = ha... | fix handling of spaces in attachment filenames | py |
diff --git a/caniusepython3.py b/caniusepython3.py
index <HASH>..<HASH> 100644
--- a/caniusepython3.py
+++ b/caniusepython3.py
@@ -129,7 +129,7 @@ def blocking_dependencies(projects, py3_projects):
while len(check) > 0:
project = check.pop(0)
logging.info('Locating {}'.format(project))
- l... | Allow for pre-releases to be counted Some projects like oslo.messaging (for OpenStack) only have an alpha version out. | py |
diff --git a/tests/unit/utils/test_utils.py b/tests/unit/utils/test_utils.py
index <HASH>..<HASH> 100644
--- a/tests/unit/utils/test_utils.py
+++ b/tests/unit/utils/test_utils.py
@@ -103,3 +103,19 @@ class UtilsTestCase(TestCase):
assert salt.utils.get_module_environment(_globals) == {}
_globals['__pi... | Add unit test for virtual name is found. | py |
diff --git a/toot/console.py b/toot/console.py
index <HASH>..<HASH> 100644
--- a/toot/console.py
+++ b/toot/console.py
@@ -481,6 +481,10 @@ def main():
if os.getenv('TOOT_DEBUG'):
logging.basicConfig(level=logging.DEBUG)
+ # If something is piped in, append it to commandline arguments
+ if not sys... | Allow piping in text to be tooted | py |
diff --git a/test/test_api_state_rules.py b/test/test_api_state_rules.py
index <HASH>..<HASH> 100644
--- a/test/test_api_state_rules.py
+++ b/test/test_api_state_rules.py
@@ -51,7 +51,7 @@ class TestRules(testUtils.AbstractTest):
for r in self.appClient.state.draft.rules:
if r.name in (TestRules.t... | correct test typo - caused "no attribute found" when preexisting rules exist | py |
diff --git a/savannaclient/api/clusters.py b/savannaclient/api/clusters.py
index <HASH>..<HASH> 100644
--- a/savannaclient/api/clusters.py
+++ b/savannaclient/api/clusters.py
@@ -38,8 +38,9 @@ class ClusterManager(base.ResourceManager):
def create(self, name, plugin_name, hadoop_version,
cluster_... | Added transient field for cluster Change-Id: I<I>aeb6e<I>b<I>e<I>b1a<I>aadbff3a<I> | py |
diff --git a/holoviews/plotting/element.py b/holoviews/plotting/element.py
index <HASH>..<HASH> 100644
--- a/holoviews/plotting/element.py
+++ b/holoviews/plotting/element.py
@@ -156,7 +156,7 @@ class ElementPlot(Plot):
self.handles['title'] = axis.set_title(title)
for hook in self.finalize_... | Changed signature of finalize_hook call | py |
diff --git a/seleniumtid/utils.py b/seleniumtid/utils.py
index <HASH>..<HASH> 100644
--- a/seleniumtid/utils.py
+++ b/seleniumtid/utils.py
@@ -25,6 +25,11 @@ from seleniumtid import selenium_driver
class Utils(object):
def __init__(self, driver):
+ """Initialize Utils instance
+
+ :param driver: w... | Add driver class type to help IDEs | py |
diff --git a/github_issues.py b/github_issues.py
index <HASH>..<HASH> 100644
--- a/github_issues.py
+++ b/github_issues.py
@@ -31,6 +31,10 @@ parser.add_argument('-f', action="store", dest="format", default='changelog',
help="Format for print, either 'changelog' (for our "
... | github_issues: Add a --page option to get more results of a given milestone The Github default is <I> results, which sometimes is too small | py |
diff --git a/src/pyrocore/util/metafile.py b/src/pyrocore/util/metafile.py
index <HASH>..<HASH> 100644
--- a/src/pyrocore/util/metafile.py
+++ b/src/pyrocore/util/metafile.py
@@ -181,6 +181,8 @@ def add_fast_resume(meta, datapath):
files = meta["info"].get("files", None)
single = files is None
if single:... | fixed exception on zero size torrents; add filename to directory path for single-file fast-resume | py |
diff --git a/scripts/experiments/run_srl.py b/scripts/experiments/run_srl.py
index <HASH>..<HASH> 100755
--- a/scripts/experiments/run_srl.py
+++ b/scripts/experiments/run_srl.py
@@ -160,10 +160,10 @@ class SrlExpParamsRunner(ExpParamsRunner):
root = RootStage()
setup = SrlExpParams()
... | Updating script for smaller experiments. | py |
diff --git a/salt/states/pkg.py b/salt/states/pkg.py
index <HASH>..<HASH> 100644
--- a/salt/states/pkg.py
+++ b/salt/states/pkg.py
@@ -1275,6 +1275,7 @@ def installed(
sources=sources,
reinstall=bool(to_reinstall),
... | Pass through update_holds to pkg.install | py |
diff --git a/phy/cluster/views/base.py b/phy/cluster/views/base.py
index <HASH>..<HASH> 100644
--- a/phy/cluster/views/base.py
+++ b/phy/cluster/views/base.py
@@ -186,6 +186,12 @@ class ManualClusteringView(object):
# them here, in the main GUI thread.
@worker.signals.finished.connect
def fin... | Tentative temporary work-around for #<I> | py |
diff --git a/django_plotly_dash/dash_wrapper.py b/django_plotly_dash/dash_wrapper.py
index <HASH>..<HASH> 100644
--- a/django_plotly_dash/dash_wrapper.py
+++ b/django_plotly_dash/dash_wrapper.py
@@ -83,10 +83,10 @@ class DjangoDash:
try:
full_url = reverse(app_pathname,kwargs={'id':ndid})
... | Unwind attempt to use proxy in jupyterhub, at least for now | py |
diff --git a/uproot_methods/classes/TLorentzVector.py b/uproot_methods/classes/TLorentzVector.py
index <HASH>..<HASH> 100644
--- a/uproot_methods/classes/TLorentzVector.py
+++ b/uproot_methods/classes/TLorentzVector.py
@@ -272,7 +272,7 @@ class ArrayMethods(Common, uproot_methods.base.ROOTMethods):
return self... | Allow TLorentzVector sum to be more permissive to jaggedness | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.