diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/pyinfra/facts/util/files.py b/pyinfra/facts/util/files.py
index <HASH>..<HASH> 100644
--- a/pyinfra/facts/util/files.py
+++ b/pyinfra/facts/util/files.py
@@ -7,7 +7,7 @@ from datetime import datetime
LS_REGEX = re.compile(
- r'^[dl\-]([\-rwx]{9})\.?\s+[0-9]+\s+([a-zA-Z]+)\s+([a-zA-Z]+)\s+([0-9]+)\s... | Update ls regex to match files with hyphens. I hate regex. | py |
diff --git a/qeventlog/tasks.py b/qeventlog/tasks.py
index <HASH>..<HASH> 100644
--- a/qeventlog/tasks.py
+++ b/qeventlog/tasks.py
@@ -62,10 +62,10 @@ def log (self, date_t, **kwargs):
}
}
QEvent.bulk_import (date_t, data)
- if kwargs["event"] == "child_task_create":
+ if kwargs["event"] == "afte... | Let's try logging the parent in the signal handler. | 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
@@ -1388,6 +1388,12 @@ def os_data():
grains['osfinger'] = '{os}-{ver}'.format(
os=grains['os'],
ver=grains['osrelease'])
+ elif grains.get('os') i... | add osfinger and osmajorrelease to osx grains | py |
diff --git a/python/src/nnabla/experimental/graph_converters/identity.py b/python/src/nnabla/experimental/graph_converters/identity.py
index <HASH>..<HASH> 100644
--- a/python/src/nnabla/experimental/graph_converters/identity.py
+++ b/python/src/nnabla/experimental/graph_converters/identity.py
@@ -53,7 +53,7 @@ class I... | Fix for handling other device function (i.e., other context). | py |
diff --git a/firenado/tornadoweb.py b/firenado/tornadoweb.py
index <HASH>..<HASH> 100644
--- a/firenado/tornadoweb.py
+++ b/firenado/tornadoweb.py
@@ -225,7 +225,7 @@ class TornadoComponent(object):
implemented at the component, all handlers will use it as default. If a
handler implements the `get_err... | Fixed write error infinite loop. Returned None by default in get_error_handler methods of component handler and component. Fixes: #<I> | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -20,8 +20,9 @@ requirements = ['setuptools']
if sys.version_info[0] == 3:
requirements += [
'aiohttp',
- # 'cchardet', # reserved for future
- # 'aiodns', # reserved for future
+ # reserved ... | #7 initial asyncio properties for ccxt in Python 3 | py |
diff --git a/gdax/order_book.py b/gdax/order_book.py
index <HASH>..<HASH> 100644
--- a/gdax/order_book.py
+++ b/gdax/order_book.py
@@ -60,7 +60,7 @@ class OrderBook(WebsocketClient):
if self._log_to:
pickle.dump(message, self._log_to)
- sequence = message['sequence']
+ sequence = m... | Fix heartbeat subscribe failure of first message | py |
diff --git a/sarc/sarc.py b/sarc/sarc.py
index <HASH>..<HASH> 100644
--- a/sarc/sarc.py
+++ b/sarc/sarc.py
@@ -345,7 +345,7 @@ class SARCWriter:
offsets.append((self._files[h].name, data_offset))
data_offset += len(self._files[h].data)
return offsets
-
+
def get_bytes(self):
... | Fix data corruption when writing multi-byte characters The classic "byte length" vs "number of characters" mixup. | py |
diff --git a/spyderlib/plugins/inspector.py b/spyderlib/plugins/inspector.py
index <HASH>..<HASH> 100644
--- a/spyderlib/plugins/inspector.py
+++ b/spyderlib/plugins/inspector.py
@@ -318,6 +318,7 @@ class ObjectInspector(ReadOnlyEditor):
else:
doc_text = None
source_text = None
+ ... | Fixed Issue <I>: highlight occurences + current line only when source code is displayed | py |
diff --git a/raiden/tests/fixtures/variables.py b/raiden/tests/fixtures/variables.py
index <HASH>..<HASH> 100644
--- a/raiden/tests/fixtures/variables.py
+++ b/raiden/tests/fixtures/variables.py
@@ -6,7 +6,9 @@ from itertools import count
import pytest
import psutil
from ethereum.utils import sha3
+from pyethapp.jso... | Adjust the database_paths fixture in tests Adjust the database_paths fixture in tests after the configurable database dirs change so that test_snapshot passes again | py |
diff --git a/allegedb/allegedb/cache.py b/allegedb/allegedb/cache.py
index <HASH>..<HASH> 100644
--- a/allegedb/allegedb/cache.py
+++ b/allegedb/allegedb/cache.py
@@ -8,6 +8,7 @@ class HistoryError(KeyError):
def within_history(rev, windowdict):
+ """Return whether the windowdict has history at the revision."""... | Add a teeny docstring I forgot | py |
diff --git a/abilian/core/signals.py b/abilian/core/signals.py
index <HASH>..<HASH> 100644
--- a/abilian/core/signals.py
+++ b/abilian/core/signals.py
@@ -30,17 +30,3 @@ activity = signals.signal("activity")
#: This signal is sent when user object has been loaded. g.user and current_user
#: are available.
user_loade... | remove unused, never emited signals | py |
diff --git a/visidata/keys.py b/visidata/keys.py
index <HASH>..<HASH> 100644
--- a/visidata/keys.py
+++ b/visidata/keys.py
@@ -13,6 +13,7 @@ visidata.vd.prettykeys_trdict = {
'KEY_RIGHT': 'Right',
'KEY_HOME': 'Home',
'KEY_END': 'End',
+ 'KEY_EOL': 'End',
'KEY_PPAGE': 'PgU... | [keys] EOL is End | py |
diff --git a/examples/simple_cli.py b/examples/simple_cli.py
index <HASH>..<HASH> 100644
--- a/examples/simple_cli.py
+++ b/examples/simple_cli.py
@@ -11,6 +11,10 @@ Note that it doesn't unmount.
from __future__ import absolute_import
from __future__ import print_function
+import os
+import sys
+sys.path.append(os.... | Add parent directory to simple CLI to work without installation | py |
diff --git a/unitypack/object.py b/unitypack/object.py
index <HASH>..<HASH> 100644
--- a/unitypack/object.py
+++ b/unitypack/object.py
@@ -120,6 +120,11 @@ class ObjectInfo:
result = []
for i in range(size):
result.append(self.read_value(array_type, buf))
+ elif t == "pair":
+ assert len(type.ch... | Unpack pairs as tuples | py |
diff --git a/pytplot/tplot.py b/pytplot/tplot.py
index <HASH>..<HASH> 100644
--- a/pytplot/tplot.py
+++ b/pytplot/tplot.py
@@ -7,8 +7,6 @@ from __future__ import division
import sys
import os
import pytplot
-import pyqtgraph.exporters
-from .QtPlotter import PyTPlot_Exporter
from bokeh.io import output_file, show, ... | Switching where a qt function is imported | py |
diff --git a/src/ocrmypdf/_exec/ghostscript.py b/src/ocrmypdf/_exec/ghostscript.py
index <HASH>..<HASH> 100644
--- a/src/ocrmypdf/_exec/ghostscript.py
+++ b/src/ocrmypdf/_exec/ghostscript.py
@@ -161,7 +161,8 @@ class GhostscriptFollower:
if not self.progressbar_class:
return
if not self.p... | The world is not ready for := | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -7,7 +7,7 @@ dev_requires = [
]
tests_requires = [
- 'ddt>=1.0.0',
+ 'ddt>=1.0.0,<1.1.0',
'factory_boy==2.4.1',
'mock>=1.0.1',
'mock-django==0.6.6', | Restrict ddt dependency version in order to fix build on Travis. | py |
diff --git a/scripts/database.py b/scripts/database.py
index <HASH>..<HASH> 100644
--- a/scripts/database.py
+++ b/scripts/database.py
@@ -86,6 +86,9 @@ def init(user='root', password='', yes_i_know=False):
(cmd_prefix + '-e "GRANT ALL PRIVILEGES ON '
'{CFG_DATABASE_NAME}.* TO {CFG_DATABASE_U... | installation: database init for any host * BETTER Adds default priviledges for database user to access from any host. | py |
diff --git a/bitfield/types.py b/bitfield/types.py
index <HASH>..<HASH> 100644
--- a/bitfield/types.py
+++ b/bitfield/types.py
@@ -122,6 +122,18 @@ class BitHandler(object):
return False
return self._value == other._value
+ def __lt__(self, other):
+ return int(self._value) < other
+ ... | Update types.py Added greater than and less than comparisons so the BitHandler's value is an int during numeric comparison. This fixes issue in Django <I> where the MaxValueValidator and MinValueValidator's try comparing a BitHandler with an int and the MaxValueValidator always reports the value as being greater. | py |
diff --git a/doapi/tag.py b/doapi/tag.py
index <HASH>..<HASH> 100644
--- a/doapi/tag.py
+++ b/doapi/tag.py
@@ -70,11 +70,11 @@ class Tag(Resource):
self.doapi_manager.request(self.url, method='DELETE')
def add(self, *resources):
+ res = [r if isinstance(r, dict) else r._taggable() for r in resour... | "Support" tagging of arbitrary resources If the user wants to tag an object that the library doesn't support directly, ey can create the `"resources"` dict for the object emself and pass it to `Tag.add`/`Tag.remove`. | py |
diff --git a/gwpy/plot/log.py b/gwpy/plot/log.py
index <HASH>..<HASH> 100644
--- a/gwpy/plot/log.py
+++ b/gwpy/plot/log.py
@@ -71,7 +71,7 @@ class LogFormatter(mticker.LogFormatterMathtext):
i, x in enumerate(values2)
]
# otherwise use the matplotlib default
- return super(... | gwpy.plot: upgrade super | py |
diff --git a/pyaavso/utils.py b/pyaavso/utils.py
index <HASH>..<HASH> 100644
--- a/pyaavso/utils.py
+++ b/pyaavso/utils.py
@@ -29,6 +29,7 @@ def download_observations(observer_code):
'obs_types': 'all',
'page': page_number,
})
+ logger.debug(response.request.url)
parse... | Log request URL in download_observations. | py |
diff --git a/keyboard/_winkeyboard.py b/keyboard/_winkeyboard.py
index <HASH>..<HASH> 100644
--- a/keyboard/_winkeyboard.py
+++ b/keyboard/_winkeyboard.py
@@ -569,7 +569,11 @@ def map_name(name):
yield scan_code or -vk, modifiers
def _send_event(code, event_type):
- if code > 0:
+ if code == 541:
+ ... | Correctly send alt-gr on Windows | py |
diff --git a/resolwe/flow/views/entity.py b/resolwe/flow/views/entity.py
index <HASH>..<HASH> 100644
--- a/resolwe/flow/views/entity.py
+++ b/resolwe/flow/views/entity.py
@@ -131,3 +131,26 @@ class EntityViewSet(CollectionViewSet):
collection.data.add(*request.data['ids'])
return resp
+
+ # N... | Patch Entity API to workout without a tmp table on update | py |
diff --git a/dota2py/funtests/test_api.py b/dota2py/funtests/test_api.py
index <HASH>..<HASH> 100644
--- a/dota2py/funtests/test_api.py
+++ b/dota2py/funtests/test_api.py
@@ -68,3 +68,16 @@ class ApiTest(unittest.TestCase):
break
self.assertTrue(contained_player)
+
+ def test_get_... | Test for get_match_details | py |
diff --git a/doge/doge.py b/doge/doge.py
index <HASH>..<HASH> 100755
--- a/doge/doge.py
+++ b/doge/doge.py
@@ -106,9 +106,9 @@ class Doge(object):
self.real_data.append(uname[1])
self.real_data.append(uname[4]) # lel
- files = [f for f in os.listdir(os.environ.get('HOME'))]
- random.s... | so many hidden files, not show wow | py |
diff --git a/luigi/parameter.py b/luigi/parameter.py
index <HASH>..<HASH> 100644
--- a/luigi/parameter.py
+++ b/luigi/parameter.py
@@ -101,7 +101,7 @@ class Parameter(object):
:param bool is_bool: specify ``True`` if the parameter is a bool value. Default:
``False``. Bool's hav... | Added deprecation warning for is_global | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -23,7 +23,6 @@ tests_require = [
'isort>=4.2.2',
'mock>=1.3.0',
'pydocstyle>=1.0.0',
- 'pytest-cache>=1.0',
'pytest-cov>=1.8.0',
'pytest-pep8>=1.0.6',
'pytest>=2.8.0', | installation: removed pytest-cache dependency | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -69,14 +69,19 @@ if os.name == 'nt':
conf_dir = "C:\\Program Files (x86)\\Intel\\sawtooth-validator\\conf"
log_dir = "C:\\Program Files (x86)\\Intel\\sawtooth-validator\\logs"
data_dir = "C:\\Program Files (x86)... | Add support for creating run directory Creates a run directory, used for PID files (and potentially other similar state in the future). | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -13,8 +13,11 @@ import sys
import setuptools
-needs_pytest = set(["pytest", "test", "ptr"]).intersection(sys.argv)
-pytest_runner = ["pytest-runner"] if needs_pytest else []
+def need_pytest():
+ return set(["pytest", ... | Extract a function that gets pytest-runner requirement | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -9,7 +9,7 @@ setup(name='expiringdict',
author='Anton Efimenko',
author_email='anton@mailgunhq.com',
url='https://github.com/mailgun/expiringdict',
- license='MIT',
+ license='APACHE2',
pa... | changed license to APACHE 2 in setup.py | py |
diff --git a/pyknow/matchers/rete/__init__.py b/pyknow/matchers/rete/__init__.py
index <HASH>..<HASH> 100644
--- a/pyknow/matchers/rete/__init__.py
+++ b/pyknow/matchers/rete/__init__.py
@@ -111,11 +111,11 @@ class ReteMatcher(Matcher):
def weighted_check_sort(check):
"""Sort check by its type and... | Use the hash of the check in the sorting of the nodes to always generate the same alpha part of the network. | py |
diff --git a/src/collectors/mdstat/mdstat.py b/src/collectors/mdstat/mdstat.py
index <HASH>..<HASH> 100644
--- a/src/collectors/mdstat/mdstat.py
+++ b/src/collectors/mdstat/mdstat.py
@@ -71,6 +71,9 @@ class MdStatCollector(diamond.collector.Collector):
:rtype: dict
"""
+ arrays = {}
+ ... | collectors/mdstat: return empty dict if MDSTAT_PATH can't be opened for reading | py |
diff --git a/libaio/__init__.py b/libaio/__init__.py
index <HASH>..<HASH> 100644
--- a/libaio/__init__.py
+++ b/libaio/__init__.py
@@ -369,7 +369,8 @@ class AIOContext(object):
If None, waits for all submitted events.
nr (int, None)
Maximum number of events to return.
- If ... | libaio: Fix support for submitting more events than maxevents. maxevent is actually a minimum kernel must guarantee. A few tests on a dual-core machine running <I> show the actual limit before getting EAGAIN is significantly higher (<I>+). So take the number of known-submitted transfers into account when nr is None. T... | py |
diff --git a/devassistant/dapi/dapicli.py b/devassistant/dapi/dapicli.py
index <HASH>..<HASH> 100644
--- a/devassistant/dapi/dapicli.py
+++ b/devassistant/dapi/dapicli.py
@@ -356,11 +356,6 @@ def install_dap(name, version='', update=False):
except:
pass
-def _eshout(e):
- '''Prints the Exception's me... | Remove _eshout, not using it anymore | py |
diff --git a/distutils/tests/test_register.py b/distutils/tests/test_register.py
index <HASH>..<HASH> 100644
--- a/distutils/tests/test_register.py
+++ b/distutils/tests/test_register.py
@@ -287,7 +287,7 @@ class TestRegister(BasePyPIRCCommandTestCase):
del register_module.input
@unittest.skipUnless... | Replace addCleanup with monkeypatch. | py |
diff --git a/yaka/services/indexing.py b/yaka/services/indexing.py
index <HASH>..<HASH> 100644
--- a/yaka/services/indexing.py
+++ b/yaka/services/indexing.py
@@ -20,6 +20,7 @@ from sqlalchemy.orm.session import Session
import whoosh.index
from whoosh import sorting
+from whoosh.writing import AsyncWriter
from who... | async: use async writer, as there may be concurrent workers | py |
diff --git a/azure_nosetests.py b/azure_nosetests.py
index <HASH>..<HASH> 100644
--- a/azure_nosetests.py
+++ b/azure_nosetests.py
@@ -1,7 +1,9 @@
#!/usr/bin/env python
-import os.path, nose, glob, sys
+import os.path, nose, glob, sys, pkg_resources
packages = [os.path.dirname(p) for p in glob.glob('azure*/setup.py... | Allow Travis to load tests and use azure-storage installed from pip at the same time | py |
diff --git a/tests/unit/utils/config_test.py b/tests/unit/utils/config_test.py
index <HASH>..<HASH> 100644
--- a/tests/unit/utils/config_test.py
+++ b/tests/unit/utils/config_test.py
@@ -80,6 +80,20 @@ class ConfigTestCase(TestCase):
}
)
+ def test_configuration_items_order(self):
+
+ ... | Add test which asserts proper field ordering | py |
diff --git a/src/build.py b/src/build.py
index <HASH>..<HASH> 100644
--- a/src/build.py
+++ b/src/build.py
@@ -93,11 +93,6 @@ class Build:
f.write(self._js_string)
- try:
- self._build_libraries()
- except:
- raise
-
def _concat_javascript(self):
f = None
... | upon building of the javascript files, libraries will no longer automatically be included | py |
diff --git a/pyimgur/__init__.py b/pyimgur/__init__.py
index <HASH>..<HASH> 100644
--- a/pyimgur/__init__.py
+++ b/pyimgur/__init__.py
@@ -940,7 +940,7 @@ class Imgur:
:param limit: The number of items to return.
"""
url = ("https://api.imgur.com/3/gallery/{}/{}/{}/{}?showViral="
- ... | Fix ValueError in get_gallery | py |
diff --git a/api/src/opentrons/legacy_api/robot/mover.py b/api/src/opentrons/legacy_api/robot/mover.py
index <HASH>..<HASH> 100755
--- a/api/src/opentrons/legacy_api/robot/mover.py
+++ b/api/src/opentrons/legacy_api/robot/mover.py
@@ -65,9 +65,6 @@ class Mover:
if 'z' in self._axis_mapping:
assert... | refactor(api): Remove really slow logging (#<I>) This was actually just unacceptable | py |
diff --git a/alot/db.py b/alot/db.py
index <HASH>..<HASH> 100644
--- a/alot/db.py
+++ b/alot/db.py
@@ -150,7 +150,7 @@ class DBManager:
"""
mode = Database.MODE.READ_ONLY
db = Database(path=self.path, mode=mode)
- return db.create_query(querystring)
+ return db.create_query(quer... | fix unicode conversion issue with bindings | py |
diff --git a/allegedb/allegedb/__init__.py b/allegedb/allegedb/__init__.py
index <HASH>..<HASH> 100644
--- a/allegedb/allegedb/__init__.py
+++ b/allegedb/allegedb/__init__.py
@@ -842,8 +842,8 @@ class ORM(object):
while branch in _branches:
# ``par`` is the parent branch;
# ``(trn, tc... | Undo part of my "fix" to _iter_parent_btt | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -19,6 +19,7 @@ setup(name = 'python-pam',
download_url = 'https://github.com/FirefighterBlu3/python-pam',
license = 'License :: OSI Approved :: MIT License',
platforms = ['i... | Add long description content type This will make the page on PyPI render correctly. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -52,7 +52,7 @@ test_requirements = [
if sys.version_info < (2, 7) or (
sys.version_info >= (3, 0) and sys.version_info < (3, 1)):
# Require unittest2 for Python which doesn't contain the new unittest
- # modu... | Bumped to <I> in preparation for next release. | py |
diff --git a/pyisemail/validators/dns_validator.py b/pyisemail/validators/dns_validator.py
index <HASH>..<HASH> 100644
--- a/pyisemail/validators/dns_validator.py
+++ b/pyisemail/validators/dns_validator.py
@@ -6,7 +6,7 @@ class DNSValidator(object):
def is_valid(self, domain, diagnose=False):
- return_... | Change DNSValidator to same return_status pattern as ParserValidator. | py |
diff --git a/salt/modules/cmdmod.py b/salt/modules/cmdmod.py
index <HASH>..<HASH> 100644
--- a/salt/modules/cmdmod.py
+++ b/salt/modules/cmdmod.py
@@ -306,6 +306,10 @@ def _run(cmd,
msg = 'password is a required argument for runas on Windows'
raise CommandExecutionError(msg)
+ if not ... | Added HAS_WIN_RUNAS check | py |
diff --git a/mir_eval/boundary.py b/mir_eval/boundary.py
index <HASH>..<HASH> 100644
--- a/mir_eval/boundary.py
+++ b/mir_eval/boundary.py
@@ -11,6 +11,7 @@ import functools
from . import util
def __validate_intervals(intervals):
+ '''Internal validation function for interval arrays'''
# Validate interval... | pylint++ on boundary | py |
diff --git a/riak/transports/http.py b/riak/transports/http.py
index <HASH>..<HASH> 100644
--- a/riak/transports/http.py
+++ b/riak/transports/http.py
@@ -366,13 +366,6 @@ class RiakHttpTransport(RiakTransport) :
# Utility functions used by Riak library.
- @classmethod
- def get_value(cls, key, array, de... | Remove the unused get_value() method, which is just DICT.get() anyways. | py |
diff --git a/docido_sdk/scripts/dcc_run.py b/docido_sdk/scripts/dcc_run.py
index <HASH>..<HASH> 100644
--- a/docido_sdk/scripts/dcc_run.py
+++ b/docido_sdk/scripts/dcc_run.py
@@ -80,6 +80,7 @@ class LocalRunner(Component):
logger = logging.getLogger(
'{crawler}.{launch}'.format(cra... | Reduce 3rd parties log verbosity | py |
diff --git a/watson_developer_cloud/conversation_v1.py b/watson_developer_cloud/conversation_v1.py
index <HASH>..<HASH> 100644
--- a/watson_developer_cloud/conversation_v1.py
+++ b/watson_developer_cloud/conversation_v1.py
@@ -568,7 +568,7 @@ class ConversationV1(WatsonDeveloperCloudService):
def list_logs(self,
... | Rename filter to log_filter to avoid redefining built-in fn | py |
diff --git a/cogen/web/wsgi.py b/cogen/web/wsgi.py
index <HASH>..<HASH> 100644
--- a/cogen/web/wsgi.py
+++ b/cogen/web/wsgi.py
@@ -502,9 +502,8 @@ class WSGIConnection(object):
else:
print "*" * 60
traceback.print_exc()
- print "*" * 30
- print traceback.print_stack(... | add a sys.exc_clear just in case somehow leakage occurs | py |
diff --git a/examples/scripts/copy-profile.py b/examples/scripts/copy-profile.py
index <HASH>..<HASH> 100755
--- a/examples/scripts/copy-profile.py
+++ b/examples/scripts/copy-profile.py
@@ -234,8 +234,6 @@ def copy_profile(con, srv, sto, name, dest, server, sht):
del conn['wwnn... | Fix example copy profile not copying connections | py |
diff --git a/quarkc/backend.py b/quarkc/backend.py
index <HASH>..<HASH> 100644
--- a/quarkc/backend.py
+++ b/quarkc/backend.py
@@ -205,7 +205,7 @@ class Backend(object):
tailimps = self.genimps(mdimps, lazy=True)
if headimps: code.head += headimps + "\n\n"
- if tailimps: code.... | fix ordering of tail lazy imports and pump | py |
diff --git a/tests/shapes/test_freeform.py b/tests/shapes/test_freeform.py
index <HASH>..<HASH> 100644
--- a/tests/shapes/test_freeform.py
+++ b/tests/shapes/test_freeform.py
@@ -270,6 +270,23 @@ class DescribeFreeformBuilder(object):
return property_mock(request, FreeformBuilder, '_width')
+class Describe... | shp: add _BaseDrawingOperation.x | py |
diff --git a/scripts/pixelation_correction.py b/scripts/pixelation_correction.py
index <HASH>..<HASH> 100644
--- a/scripts/pixelation_correction.py
+++ b/scripts/pixelation_correction.py
@@ -7,6 +7,11 @@ for emodulus computation and isoelastics.
This script partially reproduces figures 2, 4, and 5 of Christoph
Herold... | docs: tell user what to pass as an argument | py |
diff --git a/isso/__init__.py b/isso/__init__.py
index <HASH>..<HASH> 100644
--- a/isso/__init__.py
+++ b/isso/__init__.py
@@ -31,9 +31,12 @@ import pkg_resources
dist = pkg_resources.get_distribution("isso")
try:
- import gevent.monkey; gevent.monkey.patch_all()
+ import uwsgi
except ImportError:
- pass
... | don't monkeypatch if uwsgi is available | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -261,8 +261,8 @@ def get_version_info():
# If this is a release or another kind of source distribution of PyCBC
except:
- version = '1.6.0dev'
- release = 'False'
+ version = '1.5.8... | Set for <I> release (#<I>) | py |
diff --git a/claripy/claripy.py b/claripy/claripy.py
index <HASH>..<HASH> 100644
--- a/claripy/claripy.py
+++ b/claripy/claripy.py
@@ -29,8 +29,9 @@ class Claripy(object):
raise Exception("no backend can handle operation %s" % name)
- def BitVec(self, name, size):
- if self.unique_names:
+ def... | add an explicit_name option to BV to keep it from mangling names | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -31,6 +31,6 @@ setup(
'mapboxgl': ['templates/*']},
include_package_data=True,
zip_safe=False,
- install_requires=['jinja2', 'geojson', 'chroma-py', 'colour', 'matplotlib'],
+ install_requires=['jinja2... | Add missing dependencies requests and ipython (#<I>) The file viz.py imports both requests and IPython, but these are not declared in setup.py. Because of this, after a `pip install mapboxgl`, attempting to `import mapgoxgl.utils` fails. This adds the packages to setup.py, and after this the import succeeds. | py |
diff --git a/bread/bread.py b/bread/bread.py
index <HASH>..<HASH> 100644
--- a/bread/bread.py
+++ b/bread/bread.py
@@ -218,7 +218,7 @@ nibble = make_sub_byte_type(4)
def string(length, **kwargs):
def string_parser(reader, **kwargs):
- return struct.unpack("%ds" % (self.length), reader.read(length))
+ ... | Fixing a couple of bugs with the string type | py |
diff --git a/curdling/tool/__init__.py b/curdling/tool/__init__.py
index <HASH>..<HASH> 100644
--- a/curdling/tool/__init__.py
+++ b/curdling/tool/__init__.py
@@ -112,13 +112,24 @@ def main():
choices=filter(lambda x: not isinstance(x, int),
logging._levelNames.values()))
+ parser.add_argumen... | Add param `--logger-name` to specify which log you want to configure with `-d` | py |
diff --git a/python_modules/dagster/dagster/__init__.py b/python_modules/dagster/dagster/__init__.py
index <HASH>..<HASH> 100644
--- a/python_modules/dagster/dagster/__init__.py
+++ b/python_modules/dagster/dagster/__init__.py
@@ -14,7 +14,6 @@ sys.meta_path.insert(
}
),
)
-
from dagster.builtins import... | with_resources top level export (#<I>) | py |
diff --git a/sos/plugins/docker.py b/sos/plugins/docker.py
index <HASH>..<HASH> 100644
--- a/sos/plugins/docker.py
+++ b/sos/plugins/docker.py
@@ -114,7 +114,8 @@ class RedHatDocker(Docker, RedHatPlugin):
super(RedHatDocker, self).setup()
self.add_copy_spec([
- "/etc/udev/rules.d/80-docke... | [docker] Collect new registry config location For the Red Hat release of docker, registries are now configured in /etc/containers/registries.conf instead of /etc/sysconfig/docker. This patch adds collection of /etc/containers to collect registry configuration files. /etc/sysconfig/docker can still be used for daemon ... | py |
diff --git a/ayrton/execute.py b/ayrton/execute.py
index <HASH>..<HASH> 100644
--- a/ayrton/execute.py
+++ b/ayrton/execute.py
@@ -290,6 +290,11 @@ class Command:
fd= e.fileno ()
logger.debug ("_err::IOBase, redirects stderr 2 -> %d", fd)
os.dup2 (fd, 2)
+ ... | [*] handle int, str and bytes in Command(..., _err). | py |
diff --git a/lark/tools/standalone.py b/lark/tools/standalone.py
index <HASH>..<HASH> 100644
--- a/lark/tools/standalone.py
+++ b/lark/tools/standalone.py
@@ -178,7 +178,7 @@ def main():
parser = ArgumentParser(prog="prog='python -m lark.tools.standalone'", description="Lark Stand-alone Generator Tool",
... | PEP 8: E<I> missing whitespace around operator | py |
diff --git a/dvc/remote/gdrive.py b/dvc/remote/gdrive.py
index <HASH>..<HASH> 100644
--- a/dvc/remote/gdrive.py
+++ b/dvc/remote/gdrive.py
@@ -276,6 +276,13 @@ class RemoteGDrive(RemoteBASE):
return item
@gdrive_retry
+ def delete_remote_file(self, remote_id):
+ param = {"id": remote_id}
+ ... | gdrive: add gc command support (#<I>) | py |
diff --git a/panedr/panedr.py b/panedr/panedr.py
index <HASH>..<HASH> 100644
--- a/panedr/panedr.py
+++ b/panedr/panedr.py
@@ -161,9 +161,9 @@ def ndo_string(data, n):
def edr_strings(data, file_version, n):
nms = []
for i in range(n):
- name = data.unpack_string()
+ name = data.unpack_string()... | Fix unicode issues Panedr sis not work on python 3 because the edr file was openned as text instead of bytes mode. Also, the columns name were not converted to unicode. | py |
diff --git a/sphinx/build_gallery.py b/sphinx/build_gallery.py
index <HASH>..<HASH> 100644
--- a/sphinx/build_gallery.py
+++ b/sphinx/build_gallery.py
@@ -21,6 +21,13 @@ webbrowser.open = noop
plotting.save = noop
plotting.show = noop
+oldfig = plotting.figure
+def figure(*args, **kw):
+ f = oldfig(*args, **kw)
... | update build_gallery to work with new plotting api | py |
diff --git a/tests/test_zmanim.py b/tests/test_zmanim.py
index <HASH>..<HASH> 100644
--- a/tests/test_zmanim.py
+++ b/tests/test_zmanim.py
@@ -3,6 +3,7 @@ import random
from calendar import isleap
import pytest
+from dateutil import tz
import hdate
@@ -35,3 +36,20 @@ class TestZmanim(object):
assert... | Add tests for timezone usage in hdate | py |
diff --git a/varlink/server.py b/varlink/server.py
index <HASH>..<HASH> 100644
--- a/varlink/server.py
+++ b/varlink/server.py
@@ -177,9 +177,11 @@ class Service(object):
kwargs["_request"] = _request
if self._namespaced:
- out = func(*(getattr(parameters, k) for k in meth... | Use None as default value for client calls Quick fix for <URL> | py |
diff --git a/squad/ci/models.py b/squad/ci/models.py
index <HASH>..<HASH> 100644
--- a/squad/ci/models.py
+++ b/squad/ci/models.py
@@ -51,6 +51,10 @@ class Backend(models.Model):
def really_fetch(self, test_job):
implementation = self.get_implementation()
+
+ test_job.last_fetch_attempt = timezon... | ci: save TestJob.last_fetch_attempt before fetching If there is an exception while fetching, the last_fetch_attempt is guaranteed to be saved. | py |
diff --git a/eventprocessorhost/eh_config.py b/eventprocessorhost/eh_config.py
index <HASH>..<HASH> 100644
--- a/eventprocessorhost/eh_config.py
+++ b/eventprocessorhost/eh_config.py
@@ -23,7 +23,6 @@ class EventHubConfig:
self.consumer_group = consumer_group
self.client_address = self.get_client_addr... | added validation to unquoted sas key | py |
diff --git a/detectem/settings.py b/detectem/settings.py
index <HASH>..<HASH> 100644
--- a/detectem/settings.py
+++ b/detectem/settings.py
@@ -1 +1,4 @@
-SPLASH_URL = 'http://localhost:8050'
+import os
+
+
+SPLASH_URL = os.environ.get('SPLASH_URL', 'http://localhost:8050') | Get SPLASH_URL from environment | py |
diff --git a/pyramid_webassets/__init__.py b/pyramid_webassets/__init__.py
index <HASH>..<HASH> 100644
--- a/pyramid_webassets/__init__.py
+++ b/pyramid_webassets/__init__.py
@@ -89,7 +89,7 @@ class PyramidResolver(Resolver):
for attempt in (filepath, item):
try:
retur... | Use specific except clauses for static_url | py |
diff --git a/pygaia/errors/photometric.py b/pygaia/errors/photometric.py
index <HASH>..<HASH> 100644
--- a/pygaia/errors/photometric.py
+++ b/pygaia/errors/photometric.py
@@ -1,4 +1,4 @@
-__all__ = ['g_magnitude_uncertainty', 'g_magnitude_uncertainty+eom',
+__all__ = ['g_magnitude_uncertainty', 'g_magnitude_uncertaint... | fixed type in __all__ | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -16,7 +16,7 @@ setup(
maintainer='The PyiCloud Authors',
maintainer_email=' ',
license='MIT',
- packages=find_packages(),
+ packages=find_packages(include=["pyicloud"]),
install_requires=required,
... | Include only the right package to setup (#<I>) | py |
diff --git a/source/rafcon/statemachine/library_manager.py b/source/rafcon/statemachine/library_manager.py
index <HASH>..<HASH> 100644
--- a/source/rafcon/statemachine/library_manager.py
+++ b/source/rafcon/statemachine/library_manager.py
@@ -85,6 +85,8 @@ class LibraryManager(Observable):
@staticmethod
def... | Allow library paths to be wrapped in quotations marks | py |
diff --git a/src/_pytest/config/compat.py b/src/_pytest/config/compat.py
index <HASH>..<HASH> 100644
--- a/src/_pytest/config/compat.py
+++ b/src/_pytest/config/compat.py
@@ -1,13 +1,10 @@
-from typing import TYPE_CHECKING
+import functools
+from pathlib import Path
+from typing import Optional
+from ..compat import ... | reshape typing for hook invocation proxying | py |
diff --git a/tools/jenkins/junit-stats.py b/tools/jenkins/junit-stats.py
index <HASH>..<HASH> 100644
--- a/tools/jenkins/junit-stats.py
+++ b/tools/jenkins/junit-stats.py
@@ -1063,8 +1063,9 @@ class Stats(object):
JENKINSBOT = JenkinsBot()
summary_keys = [issue['className'], issue['testName']]
-... | ENG-<I>: Fixed the "global name 'jenkins_job' is not defined" failure (#<I>) issue (in junit-stats.py's close_jira_issue function). | py |
diff --git a/tests/test_runner.py b/tests/test_runner.py
index <HASH>..<HASH> 100644
--- a/tests/test_runner.py
+++ b/tests/test_runner.py
@@ -71,7 +71,7 @@ class TestSpecterRunner(TestCase):
def test_run_w_xunit(self):
self.runner.run(args=['--search', './tests/example_data', '--no-art',
... | Fixing incorrect assertion for the number of tests | py |
diff --git a/jnrbase/iso_8601.py b/jnrbase/iso_8601.py
index <HASH>..<HASH> 100644
--- a/jnrbase/iso_8601.py
+++ b/jnrbase/iso_8601.py
@@ -33,7 +33,7 @@ class UTC(datetime.tzinfo):
def __repr__(self):
return '%s()' % (self.__class__.__name__)
- # pylint: disable-msg=W0613
+ # pylint: disable=unuse... | [Tr] Update pylint directives | py |
diff --git a/salt/states/apt.py b/salt/states/apt.py
index <HASH>..<HASH> 100644
--- a/salt/states/apt.py
+++ b/salt/states/apt.py
@@ -7,6 +7,13 @@ import salt.utils
log = logging.getLogger(__name__)
+def __virtual__():
+ '''
+ Only work on apt-based platforms with pkg.get_selections
+ '''
+ return 'ap... | Add __virtual__ function to new apt state module I was waiting on this change from @holmboe before I merged #<I>. Since it has now been merged, here is the __virtual__ function to which I was referring. | py |
diff --git a/spyderlib/widgets/variableexplorer/tests/test_dataframeeditor.py b/spyderlib/widgets/variableexplorer/tests/test_dataframeeditor.py
index <HASH>..<HASH> 100644
--- a/spyderlib/widgets/variableexplorer/tests/test_dataframeeditor.py
+++ b/spyderlib/widgets/variableexplorer/tests/test_dataframeeditor.py
@@ -3... | Tests: Remove print from dataframeeditor test. | py |
diff --git a/src/you_get/extractors/youku.py b/src/you_get/extractors/youku.py
index <HASH>..<HASH> 100644
--- a/src/you_get/extractors/youku.py
+++ b/src/you_get/extractors/youku.py
@@ -138,7 +138,12 @@ class Youku(VideoExtractor):
'video_profile': stream_types[stream_id]['video_profile'],
... | [youku] add support for audio languages, fix #<I> (again) | py |
diff --git a/clients/ansible/girder.py b/clients/ansible/girder.py
index <HASH>..<HASH> 100644
--- a/clients/ansible/girder.py
+++ b/clients/ansible/girder.py
@@ -1091,7 +1091,7 @@ class GirderClientModule(GirderClient):
# Fail if plugins are passed in that are not available
if not plugins <= set(avai... | Fix error message so it doesn't crash | py |
diff --git a/tests/test_security.py b/tests/test_security.py
index <HASH>..<HASH> 100644
--- a/tests/test_security.py
+++ b/tests/test_security.py
@@ -9,6 +9,7 @@
:license: BSD, see LICENSE for more details.
"""
import os
+import posixpath
import pytest
from werkzeug.security import check_password_hash, gene... | Replace os.path with posixpath; fixes test on Windows (#<I>) | py |
diff --git a/scriptworker/utils.py b/scriptworker/utils.py
index <HASH>..<HASH> 100644
--- a/scriptworker/utils.py
+++ b/scriptworker/utils.py
@@ -79,18 +79,16 @@ def cleanup(context):
makedirs(path)
-async def retry_async(func, attempt=1, attempts=5, sleeptime_callback=None,
+async def retry_async(func, a... | retry_async with a loop | py |
diff --git a/pyfolio/timeseries.py b/pyfolio/timeseries.py
index <HASH>..<HASH> 100644
--- a/pyfolio/timeseries.py
+++ b/pyfolio/timeseries.py
@@ -292,32 +292,6 @@ def sharpe_ratio(returns, risk_free=0, period=DAILY):
@deprecated(msg=DEPRECATION_WARNING)
-def information_ratio(returns, factor_returns):
- """
- ... | Remove information_ratio to stay current with empyrical | py |
diff --git a/test/acid.py b/test/acid.py
index <HASH>..<HASH> 100755
--- a/test/acid.py
+++ b/test/acid.py
@@ -156,7 +156,9 @@ def filter_disassembly(text):
lines = text.splitlines()
for index, current_line in enumerate(lines):
if current_line.split() == ['19', 'STORE_NAME', '3', '(__doc__)']:
- ... | Make docstring filter preserve more information | py |
diff --git a/src/rez/tests/test_formatter.py b/src/rez/tests/test_formatter.py
index <HASH>..<HASH> 100644
--- a/src/rez/tests/test_formatter.py
+++ b/src/rez/tests/test_formatter.py
@@ -178,13 +178,6 @@ class TestFormatter(TestBase):
self.assert_formatter_equal('{0!r:}', "'Hello'", 'Hello')
self.asse... | avoid deprecation warning completely, and since py2 only these tests aren't really worth it | py |
diff --git a/unittests/test_castxml_wrong_epic.py b/unittests/test_castxml_wrong_epic.py
index <HASH>..<HASH> 100644
--- a/unittests/test_castxml_wrong_epic.py
+++ b/unittests/test_castxml_wrong_epic.py
@@ -18,8 +18,7 @@ class Test(parser_test_case.parser_test_case_t):
"""
- if self.config.castxml_e... | Simplify comparison, fixes gccxml builds | py |
diff --git a/flux_led/models_db.py b/flux_led/models_db.py
index <HASH>..<HASH> 100755
--- a/flux_led/models_db.py
+++ b/flux_led/models_db.py
@@ -1061,6 +1061,7 @@ MODELS = [
),
LEDENETModel(
model_num=0xA1,
+ # AK001-ZJ210 = v3.18
models=["AK001-ZJ210"],
description="Addres... | Add notes to model db (#<I>) | py |
diff --git a/hotdoc/formatters/html/html_formatter.py b/hotdoc/formatters/html/html_formatter.py
index <HASH>..<HASH> 100644
--- a/hotdoc/formatters/html/html_formatter.py
+++ b/hotdoc/formatters/html/html_formatter.py
@@ -345,8 +345,6 @@ class HtmlFormatter (Formatter):
symbol_descriptions = None
i... | html_formatter: Remove Classes special case | py |
diff --git a/src/hypercorn/__about__.py b/src/hypercorn/__about__.py
index <HASH>..<HASH> 100644
--- a/src/hypercorn/__about__.py
+++ b/src/hypercorn/__about__.py
@@ -1 +1 @@
-__version__ = "0.10.0"
+__version__ = "0.10.0+dev" | Following the release of <I> bump to +dev | py |
diff --git a/src/run.py b/src/run.py
index <HASH>..<HASH> 100644
--- a/src/run.py
+++ b/src/run.py
@@ -93,17 +93,22 @@ def calc_time():
import numpy as np
- for i in [128,256,512,1024,2048]:
- corpus = datasets.na.Corpus(feat_type="log_mel_filterbank",
- target... | Adjusted calc_time to get new size of dataset. | py |
diff --git a/oidc_provider/lib/utils/common.py b/oidc_provider/lib/utils/common.py
index <HASH>..<HASH> 100644
--- a/oidc_provider/lib/utils/common.py
+++ b/oidc_provider/lib/utils/common.py
@@ -22,7 +22,10 @@ def get_rsa_key():
Load the rsa key previously created with `creatersakey` command.
"""
file_pa... | Add IOError custom message when rsa key file is missing. | py |
diff --git a/docs/conf.py b/docs/conf.py
index <HASH>..<HASH> 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -72,7 +72,7 @@ language = None
exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']
# The name of the Pygments (syntax highlighting) style to use.
-pygments_style = 'zz'
+pygments_style = 'native'
# I... | doc native pygments_style | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.