diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/python/phonenumbers/unicode_util.py b/python/phonenumbers/unicode_util.py
index <HASH>..<HASH> 100644
--- a/python/phonenumbers/unicode_util.py
+++ b/python/phonenumbers/unicode_util.py
@@ -71,7 +71,7 @@ True
'...'
"""
import bisect
-import unicodedata # Python 2.5 onward
+import unicodedata
from .u... | Remove outdated comment (#<I>) All current Python environments support the unicodedata module. | py |
diff --git a/ecell4/util/simulation.py b/ecell4/util/simulation.py
index <HASH>..<HASH> 100644
--- a/ecell4/util/simulation.py
+++ b/ecell4/util/simulation.py
@@ -77,9 +77,11 @@ def run_simulation(
volume : Real or Real3, optional
A size of the simulation volume.
model : Model, optional
- solver :... | The simple interface for using a custom factory in run_simulation | py |
diff --git a/src/audio_metadata/formats/oggopus.py b/src/audio_metadata/formats/oggopus.py
index <HASH>..<HASH> 100644
--- a/src/audio_metadata/formats/oggopus.py
+++ b/src/audio_metadata/formats/oggopus.py
@@ -107,12 +107,15 @@ class OggOpus(Ogg):
self.streaminfo = OggOpusStreamInfo.load(page.segments[0])
info... | Correctly find audio start for Ogg Opus files without Vorbis comments | py |
diff --git a/tests/test_modules/test_pmac/test_pmactrajectorypart.py b/tests/test_modules/test_pmac/test_pmactrajectorypart.py
index <HASH>..<HASH> 100644
--- a/tests/test_modules/test_pmac/test_pmactrajectorypart.py
+++ b/tests/test_modules/test_pmac/test_pmactrajectorypart.py
@@ -23,9 +23,9 @@ class TestPMACTrajector... | Comment out tearDown in pmac trajectory part testcase See if we can get the travis provoked error out of it | py |
diff --git a/angr/storage/memory_mixins/paged_memory/paged_memory_mixin.py b/angr/storage/memory_mixins/paged_memory/paged_memory_mixin.py
index <HASH>..<HASH> 100644
--- a/angr/storage/memory_mixins/paged_memory/paged_memory_mixin.py
+++ b/angr/storage/memory_mixins/paged_memory/paged_memory_mixin.py
@@ -528,10 +528,1... | removed unused attributes and cleaned loop over self._pages | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -73,7 +73,7 @@ setup(
author_email='prospermarketshow@gmail.com',
url='https://github.com/EVEprosper/ProsperCommon',
download_url='https://github.com/EVEprosper/ProsperCommon/tarball/v0.2.1',
- version='0.3.0... | incrementing version in setup.py | py |
diff --git a/rdm/db/library.py b/rdm/db/library.py
index <HASH>..<HASH> 100644
--- a/rdm/db/library.py
+++ b/rdm/db/library.py
@@ -61,6 +61,7 @@ def _update_context(context, postdata):
'The selected target attribute ("%s") is not among the columns selected for the target table ("%s").' % (
... | Make sure temporary orange tables are recreated if the context is updated by the user | py |
diff --git a/aiortc/rtcrtpreceiver.py b/aiortc/rtcrtpreceiver.py
index <HASH>..<HASH> 100644
--- a/aiortc/rtcrtpreceiver.py
+++ b/aiortc/rtcrtpreceiver.py
@@ -286,6 +286,9 @@ class RTCRtpReceiver:
self.__stopped.set()
await self.__rtcp_exited.wait()
+ # break reference cycle
+ ... | [rtp receiver] break a reference cycle with NackGenerator RTCRtpReceiver and NackGenerator refer to each other, preventing garbage collection. Break the reference cycle when the receiver is stopped. | py |
diff --git a/pynlpir/nlpir.py b/pynlpir/nlpir.py
index <HASH>..<HASH> 100644
--- a/pynlpir/nlpir.py
+++ b/pynlpir/nlpir.py
@@ -152,7 +152,7 @@ FileProcess = get_func('NLPIR_FileProcess', [c_char_p, c_char_p, c_int],
c_double)
ImportUserDict = get_func('NLPIR_ImportUserDict', [c_char_p], c_uint)... | Fixes typo with NLPIR_SaveTheUsrDic function. | py |
diff --git a/xapian_backend.py b/xapian_backend.py
index <HASH>..<HASH> 100755
--- a/xapian_backend.py
+++ b/xapian_backend.py
@@ -148,13 +148,7 @@ class XapianSearchBackend(BaseSearchBackend):
`SearchBackend` defines the Xapian search backend for use with the Haystack
API for Django search.
- It uses th... | Remove obsolete comment backend docstring. xapian issue #<I> is solved in xapian <I>+. | py |
diff --git a/stimela/cargo/cab/sharpener/src/run.py b/stimela/cargo/cab/sharpener/src/run.py
index <HASH>..<HASH> 100644
--- a/stimela/cargo/cab/sharpener/src/run.py
+++ b/stimela/cargo/cab/sharpener/src/run.py
@@ -58,7 +58,7 @@ with open(edited_file, "w") as f:
_runc = "run_sharpener -c %s" % edited_file
try:
- ... | Fix typo in sharpener cab Changed shelx to shlex. | py |
diff --git a/scapy/packet.py b/scapy/packet.py
index <HASH>..<HASH> 100644
--- a/scapy/packet.py
+++ b/scapy/packet.py
@@ -1264,6 +1264,10 @@ def ls(obj=None):
class_name = "%s (%s)" % (
cur_fld.__class__.__name__,
", ".join(attrs)) if attrs else cur_fld.__clas... | Add size information for BitFields (and subclasses) in ls() | py |
diff --git a/ginga/table/AstroTable.py b/ginga/table/AstroTable.py
index <HASH>..<HASH> 100644
--- a/ginga/table/AstroTable.py
+++ b/ginga/table/AstroTable.py
@@ -46,6 +46,7 @@ class AstroTable(ViewerObjectBase):
name=name)
self._data = data_ap
+ self.naxispath = []
... | Add naxispath attribute to AstroTable to prevent MultiDim error | py |
diff --git a/ocrmypdf/pipeline.py b/ocrmypdf/pipeline.py
index <HASH>..<HASH> 100644
--- a/ocrmypdf/pipeline.py
+++ b/ocrmypdf/pipeline.py
@@ -806,6 +806,7 @@ def copy_final(
from shutil import copyfileobj
with open(input_file, 'rb') as input_stream:
copyfileobj(input_stream, sys.stdout.b... | Output to stdout: ensure stdout is flushed to prevent truncation errors | py |
diff --git a/MAVProxy/tools/MAVExplorer.py b/MAVProxy/tools/MAVExplorer.py
index <HASH>..<HASH> 100755
--- a/MAVProxy/tools/MAVExplorer.py
+++ b/MAVProxy/tools/MAVExplorer.py
@@ -297,6 +297,8 @@ def save_graph(graphdef):
f.write("<graphs>\n\n")
for g in graphs:
f.write(" <graph name='%s'>\n" % g.name... | MAVExplorer: handle None description | py |
diff --git a/sovrin_client/test/cli/test_save_and_restore_wallet.py b/sovrin_client/test/cli/test_save_and_restore_wallet.py
index <HASH>..<HASH> 100644
--- a/sovrin_client/test/cli/test_save_and_restore_wallet.py
+++ b/sovrin_client/test/cli/test_save_and_restore_wallet.py
@@ -1,3 +1,4 @@
+import logging
import os
f... | added more asserts to testRestoreWalletFile test | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -23,7 +23,7 @@ setup(
packages=find_packages(),
install_requires=[
'holidays',
- 'lxml <= 3.6.1',
+ 'lxml',
'numpy >= 1.10.2',
'scipy',
'pandas >= 0.19.2', | Remove lxml constraint | py |
diff --git a/txnserver/web_pages/status_page.py b/txnserver/web_pages/status_page.py
index <HASH>..<HASH> 100644
--- a/txnserver/web_pages/status_page.py
+++ b/txnserver/web_pages/status_page.py
@@ -34,7 +34,7 @@ class StatusPage(BasePage):
result['Host'] = self.Ledger.LocalNode.NetHost
result['NodeId... | fix AttributeError The existing code produced the following error when calling the status endpoint:' AttributeError: 'list' object has not attribute 'copy' Switching to a list comprehension clears this error up. | py |
diff --git a/peyotl/git_storage/type_aware_doc_store.py b/peyotl/git_storage/type_aware_doc_store.py
index <HASH>..<HASH> 100644
--- a/peyotl/git_storage/type_aware_doc_store.py
+++ b/peyotl/git_storage/type_aware_doc_store.py
@@ -302,14 +302,14 @@ class TypeAwareDocStore(ShardedDocStore):
try:
... | More careful cleanup of doc2shard map on deletion | py |
diff --git a/ez_setup.py b/ez_setup.py
index <HASH>..<HASH> 100644
--- a/ez_setup.py
+++ b/ez_setup.py
@@ -29,7 +29,7 @@ try:
except ImportError:
USER_SITE = None
-DEFAULT_VERSION = "1.1.4"
+DEFAULT_VERSION = "1.1.5"
DEFAULT_URL = "https://pypi.python.org/packages/source/s/setuptools/"
def _python_cmd(*args... | Bump setuptools, hopefully for the last time. | py |
diff --git a/python/ray/data/impl/progress_bar.py b/python/ray/data/impl/progress_bar.py
index <HASH>..<HASH> 100644
--- a/python/ray/data/impl/progress_bar.py
+++ b/python/ray/data/impl/progress_bar.py
@@ -1,6 +1,7 @@
from typing import List, Any
import ray
+from ray.ray_constants import env_integer
from ray.type... | [datasets] Add an env var for progress bar behavior (#<I>) Adds a RAY_DATA_DISABLE_PROGRESS_BARS env var to control the default progress bar behavior. The default value is "0". Setting it to "1" disables progress bars, unless they are reenabled again by the set_progress_bars method. | 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
readme_contents = open("README.rst").read() | Switched to setuptools for wheel support. | py |
diff --git a/gos/configuration.py b/gos/configuration.py
index <HASH>..<HASH> 100644
--- a/gos/configuration.py
+++ b/gos/configuration.py
@@ -23,5 +23,28 @@ class Configuration(dict):
- name: genome1_name
- name: genome2_name
- name: genome3_name
+
+
+
+ output:
+ dir: ... | GOS-8 Design output configuration initial take on output design structure | py |
diff --git a/sos/report/plugins/block.py b/sos/report/plugins/block.py
index <HASH>..<HASH> 100644
--- a/sos/report/plugins/block.py
+++ b/sos/report/plugins/block.py
@@ -28,7 +28,8 @@ class Block(Plugin, IndependentPlugin):
"blkid -c /dev/null",
"blockdev --report",
"ls -lanR /de... | [block] Add lsblk all column output command "lsblk -O -P" provides all available column output in key pair format. Resolves: #<I> | py |
diff --git a/pgmpy/readwrite/XMLBIF.py b/pgmpy/readwrite/XMLBIF.py
index <HASH>..<HASH> 100644
--- a/pgmpy/readwrite/XMLBIF.py
+++ b/pgmpy/readwrite/XMLBIF.py
@@ -301,7 +301,7 @@ class XMLBIFWriter:
outcome_tag[var] = []
for state in cpd.variables[var]:
state_tag = etree.SubEl... | fixes error in XMLBIF writer class | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -8,7 +8,16 @@ setup(name='braillegraph',
url='http://github.com/chrisbouchard/braillegraph',
author='Chris Bouchard',
author_email='chris@upliftinglemma.net',
- license='BSD',
+ classifiers=[
+ ... | Make the setup.py more specific. | py |
diff --git a/spyderlib/widgets/browser.py b/spyderlib/widgets/browser.py
index <HASH>..<HASH> 100644
--- a/spyderlib/widgets/browser.py
+++ b/spyderlib/widgets/browser.py
@@ -68,20 +68,14 @@ class WebView(QWebEngineView):
if not WEBENGINE:
findflag = QWebEnginePage.FindWrapsAroundDocument
... | Web widgets: Simplify setting find flag options to them Also fix an error when setting flags for WebEngine | py |
diff --git a/qtpylib/algo.py b/qtpylib/algo.py
index <HASH>..<HASH> 100644
--- a/qtpylib/algo.py
+++ b/qtpylib/algo.py
@@ -518,7 +518,7 @@ class Algo(Broker):
if self.record_ts is None:
self.record_ts = tick.index[0]
- if "K" not in self.resolution and "V" not in self.resolution:
+ ... | Fixed issue that caused errors when bar resolution was set to seconds (closing issue #<I>) | py |
diff --git a/coreweb/tap.py b/coreweb/tap.py
index <HASH>..<HASH> 100644
--- a/coreweb/tap.py
+++ b/coreweb/tap.py
@@ -59,7 +59,7 @@ def makeService(config):
httpServer = strports.service(httpStrport, site)
httpServer.setServiceParent(multi)
- doReloading = bool(int(os.environ.get('PYRELOADING')))
+ doReloading... | tap.py: Don't fail when PYRELOADING is not set | py |
diff --git a/torchvision/prototype/datasets/generate_category_files.py b/torchvision/prototype/datasets/generate_category_files.py
index <HASH>..<HASH> 100644
--- a/torchvision/prototype/datasets/generate_category_files.py
+++ b/torchvision/prototype/datasets/generate_category_files.py
@@ -38,7 +38,7 @@ def parse_args(... | fix nargs specifier for category file generation (#<I>) | py |
diff --git a/pmxbot/logging.py b/pmxbot/logging.py
index <HASH>..<HASH> 100644
--- a/pmxbot/logging.py
+++ b/pmxbot/logging.py
@@ -204,8 +204,9 @@ class MongoDBLogger(Logger, storage.MongoDBStorage):
def _add_recent(self, doc, logged_id):
"Keep a tab on the most recent message for each channel"
- spec = dict... | Fix additional failures in recent message logging | py |
diff --git a/pandas/tseries/tests/test_converter.py b/pandas/tseries/tests/test_converter.py
index <HASH>..<HASH> 100644
--- a/pandas/tseries/tests/test_converter.py
+++ b/pandas/tseries/tests/test_converter.py
@@ -7,7 +7,10 @@ import nose
import numpy as np
-import pandas.tseries.converter as converter
+try:
+ ... | TST: make test suite pass cleanly on python 3 with no matplotlib | py |
diff --git a/src/pluggy/hooks.py b/src/pluggy/hooks.py
index <HASH>..<HASH> 100644
--- a/src/pluggy/hooks.py
+++ b/src/pluggy/hooks.py
@@ -6,9 +6,9 @@ import sys
import warnings
from .callers import _legacymulticall, _multicall
-try:
+if sys.version_info[0] >= 3:
from inspect import signature, Parameter
-excep... | Check for funcsigs using sys.version_info Using this instead of catching an ImportError provides better messages when this happens in broken envirnments | py |
diff --git a/jira/resources/issue.py b/jira/resources/issue.py
index <HASH>..<HASH> 100644
--- a/jira/resources/issue.py
+++ b/jira/resources/issue.py
@@ -4,5 +4,8 @@ __author__ = 'bspeakmon@atlassian.com'
class Issue(Resource):
- def __init__(self, options):
+ def __init__(self, options, raw=None):
... | Take a raw param to build issues out of other issues | py |
diff --git a/satpy/composites/viirs.py b/satpy/composites/viirs.py
index <HASH>..<HASH> 100644
--- a/satpy/composites/viirs.py
+++ b/satpy/composites/viirs.py
@@ -226,6 +226,7 @@ class ReflectanceCorrector(CompositeBase):
info["rayleigh_corrected"] = True
factor = 100. if percent else 1.
resu... | Bugfix - forgot to pupltiply with factor | py |
diff --git a/saltcloud/clouds/parallels.py b/saltcloud/clouds/parallels.py
index <HASH>..<HASH> 100644
--- a/saltcloud/clouds/parallels.py
+++ b/saltcloud/clouds/parallels.py
@@ -320,6 +320,10 @@ def create(vm_):
data = saltcloud.utils.wait_for_ip(
__query_node_data,
update_args=(vm_[... | Configurable wait for IP implemented for Parallels | py |
diff --git a/validator/testcases/packagelayout.py b/validator/testcases/packagelayout.py
index <HASH>..<HASH> 100644
--- a/validator/testcases/packagelayout.py
+++ b/validator/testcases/packagelayout.py
@@ -105,7 +105,7 @@ def test_godlikea(err, xpi_package):
@decorator.register_test(
tier=5,
version... | Change binary-components compatibility test to run for FX4 and up; bug <I> | py |
diff --git a/pypot/sensor/depth/__init__.py b/pypot/sensor/depth/__init__.py
index <HASH>..<HASH> 100644
--- a/pypot/sensor/depth/__init__.py
+++ b/pypot/sensor/depth/__init__.py
@@ -2,6 +2,4 @@ try:
from .sonar import SonarSensor
except ImportError:
- print('''You need to install smbus first.
- sud... | Make the import homogeneous with the rest of pypot sensors. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -1,6 +1,6 @@
from distutils.core import setup
f=open("README")
-setup(name='pycryptopan', version='0.01c',
+setup(name='pycryptopan', version='0.01d',
py_modules=['cryptopan'],
install_requires=['py... | bumped version to release on pypi - fixes #3 | py |
diff --git a/tests/integration/test_requests.py b/tests/integration/test_requests.py
index <HASH>..<HASH> 100644
--- a/tests/integration/test_requests.py
+++ b/tests/integration/test_requests.py
@@ -1,5 +1,6 @@
# -*- coding: utf-8 -*-
'''Test requests' interaction with vcr'''
+from io import BytesIO
import pytest
... | Add test to make sure we can post chunked binary data | py |
diff --git a/airflow/contrib/hooks/ssh_hook.py b/airflow/contrib/hooks/ssh_hook.py
index <HASH>..<HASH> 100755
--- a/airflow/contrib/hooks/ssh_hook.py
+++ b/airflow/contrib/hooks/ssh_hook.py
@@ -98,7 +98,8 @@ class SSHHook(BaseHook):
self.port = conn.port
if conn.extra is not None:
... | [Airflow-<I>] Fix overwrite of key_file by constructor (#<I>) This fix the overwrite of the constructor which sets the key_file to None even if user specified otherwise. | py |
diff --git a/pmxbot/commands.py b/pmxbot/commands.py
index <HASH>..<HASH> 100644
--- a/pmxbot/commands.py
+++ b/pmxbot/commands.py
@@ -37,6 +37,8 @@ def google(client, event, channel, nick, rest):
resp = requests.get(url)
resp.raise_for_status()
results = resp.json()
+ if not results['responseData']:
+ raise Run... | Catch and report the error. Ref #<I>. | py |
diff --git a/tests/test_camera.py b/tests/test_camera.py
index <HASH>..<HASH> 100644
--- a/tests/test_camera.py
+++ b/tests/test_camera.py
@@ -131,9 +131,9 @@ def test_transfromation_roundtrip(vp_width, vp_height, pixel_ratio, cam_pos, poi
vp_width=st.integers(min_value=1),
vp_height=st.integers(min_value=1),... | test_camera.py: Reduce the magnitude of test_transfromation_movement to normal sizes Apparently this algorithm fails at large magnitudes. | py |
diff --git a/contact_form/forms.py b/contact_form/forms.py
index <HASH>..<HASH> 100644
--- a/contact_form/forms.py
+++ b/contact_form/forms.py
@@ -50,10 +50,9 @@ class ContactForm(forms.Form):
Render the body of the message to a string.
"""
- if callable(self.template_name):
- temp... | Better style for callable template_name. | py |
diff --git a/superset/security.py b/superset/security.py
index <HASH>..<HASH> 100644
--- a/superset/security.py
+++ b/superset/security.py
@@ -39,6 +39,10 @@ ADMIN_ONLY_VIEW_MENUS = {
'UserDBModelView',
}
+ALPHA_ONLY_VIEW_MENUS = {
+ 'Upload a CSV',
+}
+
ADMIN_ONLY_PERMISSIONS = {
'all_database_access'... | Allow alpha role import csv (#<I>) * allow alphas upload csv * nits | py |
diff --git a/katcp/txbase.py b/katcp/txbase.py
index <HASH>..<HASH> 100644
--- a/katcp/txbase.py
+++ b/katcp/txbase.py
@@ -123,6 +123,7 @@ class DeviceServer(TxDeviceProtocol):
#sensor-list cpu.power.on Whether\_CPU\_hase\_power. \@ boolean
!sensor-list ok 1
"""
+ raise NotImplementedE... | mark it as untested and not working git-svn-id: <URL> | py |
diff --git a/snakebite/minicluster.py b/snakebite/minicluster.py
index <HASH>..<HASH> 100644
--- a/snakebite/minicluster.py
+++ b/snakebite/minicluster.py
@@ -202,8 +202,17 @@ class MiniCluster(object):
result = []
for line in i.split("\n"):
if line:
- (length, path) = re.s... | Fix #<I> - adjust du output parser to HADOOP-<I> HADOOP-<I> introduced another column (spaceConsumed) in du output. Since snakebite still outputs only size (length), and path for now we ignore spaceConsumed - this should change in #<I>. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -26,7 +26,7 @@ setup(
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Operating System :: OS Independent",
- "Programming Language :: Python :: 3 :: Only",
+... | Changed to more accurate programming language classifier. | py |
diff --git a/src/sos/hosts.py b/src/sos/hosts.py
index <HASH>..<HASH> 100755
--- a/src/sos/hosts.py
+++ b/src/sos/hosts.py
@@ -919,18 +919,20 @@ class Host:
self.config['max_mem'] = expand_size(self.config['max_mem'])
def _get_host_agent(self, start_engine):
+ if 'queue_type' not in self.conf... | Fix checking queue type in command sos remote list | py |
diff --git a/backtrader/utils/py3.py b/backtrader/utils/py3.py
index <HASH>..<HASH> 100644
--- a/backtrader/utils/py3.py
+++ b/backtrader/utils/py3.py
@@ -53,6 +53,12 @@ if PY2:
def iteritems(d): returnd.iteritems()
+ def keys(d): return d.keys()
+
+ def values(d): return d.values()
+
+ def items(d): ... | Add keys/values/items functions to ensure lists are returned for "dictionaries" regardless of Python version | py |
diff --git a/wal_e/blobstore/wabs/wabs_util.py b/wal_e/blobstore/wabs/wabs_util.py
index <HASH>..<HASH> 100644
--- a/wal_e/blobstore/wabs/wabs_util.py
+++ b/wal_e/blobstore/wabs/wabs_util.py
@@ -209,7 +209,9 @@ def do_lzop_get(creds, url, path, decrypt):
try:
# Raise any exceptions guarded... | Propagate exceptions properly for WABS wal fetch Previously they'd be silently swallowed, which can probably cause all manners of mischief (such as the appearance of a corrupt WAL file). | py |
diff --git a/admin_tools/dashboard/modules.py b/admin_tools/dashboard/modules.py
index <HASH>..<HASH> 100644
--- a/admin_tools/dashboard/modules.py
+++ b/admin_tools/dashboard/modules.py
@@ -214,6 +214,31 @@ class Group(DashboardModule):
module.deletable = False
module.show_title = (self.displ... | Added Group.is_empty() method | py |
diff --git a/setup_posix.py b/setup_posix.py
index <HASH>..<HASH> 100644
--- a/setup_posix.py
+++ b/setup_posix.py
@@ -72,17 +72,21 @@ def get_config():
include_dirs = [dequote(i[2:])
for i in mysql_config('include') if i.startswith('-I')]
-
- # properly handle mysql client libraries that... | Handle mariadb static library called mariadbclient.a (#<I>) | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -58,7 +58,7 @@ def setup_package():
description=DOCLINES[0],
#long_description="\n".join(DOCLINES[2:]),
long_description = long_description,
- # long_description_content_type = 'text/x... | (bug) setup: md as long description | py |
diff --git a/galpy/util/bovy_coords.py b/galpy/util/bovy_coords.py
index <HASH>..<HASH> 100644
--- a/galpy/util/bovy_coords.py
+++ b/galpy/util/bovy_coords.py
@@ -846,8 +846,7 @@ def rect_to_cyl(X,Y,Z):
"""
R= sc.sqrt(X**2.+Y**2.)
phi= sc.arcsin(Y/R)
- if X < 0.:
- phi= m.pi-phi
+ phi[(X < 0... | fix rect_to_cyl for vectors | py |
diff --git a/examples/HHTut/HHTut.py b/examples/HHTut/HHTut.py
index <HASH>..<HASH> 100644
--- a/examples/HHTut/HHTut.py
+++ b/examples/HHTut/HHTut.py
@@ -81,8 +81,8 @@ simConfig.savePickle = False # Whether or not to write spikes etc. to a .mat fil
# Analysis and plotting
simConfig.analysis['plotRaster'] = True ... | restored HHTut to original form | py |
diff --git a/test/test_object.py b/test/test_object.py
index <HASH>..<HASH> 100644
--- a/test/test_object.py
+++ b/test/test_object.py
@@ -1,7 +1,6 @@
import pytest
import capnp
import os
-import math
this_dir = os.path.dirname(__file__)
@@ -22,4 +21,4 @@ def test_object_basic(object):
obj_r = obj.as_reade... | Fix up formatting issues with test_object.py | py |
diff --git a/galpy/df/sphericaldf.py b/galpy/df/sphericaldf.py
index <HASH>..<HASH> 100644
--- a/galpy/df/sphericaldf.py
+++ b/galpy/df/sphericaldf.py
@@ -55,10 +55,8 @@ class sphericaldf(df):
try:
self._scale = pot._scale
except AttributeError:
- if scale is not None:
- ... | Different scale handling in sphericaldf | py |
diff --git a/tensorlayer/layers.py b/tensorlayer/layers.py
index <HASH>..<HASH> 100755
--- a/tensorlayer/layers.py
+++ b/tensorlayer/layers.py
@@ -1581,7 +1581,7 @@ def MaxPool2d(net, filter_size=(2,2), strides=None, padding='SAME', name='maxpoo
name = name)
return net
-def MeanPool2d(net, filter_si... | [DOCS] fix type for mean pool | py |
diff --git a/xmantissa/webapp.py b/xmantissa/webapp.py
index <HASH>..<HASH> 100644
--- a/xmantissa/webapp.py
+++ b/xmantissa/webapp.py
@@ -206,7 +206,10 @@ class FragmentWrapperMixin:
return ctx.tag[extras]
def render_title(self, ctx, data):
- return ctx.tag[getattr(self.fragment, 'title', self.f... | apply patch from #<I>. sets "Divmod" as default page title. author: moe, reviewer: exarkun. closes #<I> | py |
diff --git a/src/ocrmypdf/__main__.py b/src/ocrmypdf/__main__.py
index <HASH>..<HASH> 100755
--- a/src/ocrmypdf/__main__.py
+++ b/src/ocrmypdf/__main__.py
@@ -472,10 +472,13 @@ def check_options_ocr_behavior(options, log):
def check_options_optimizing(options, log):
if options.optimize >= 2:
- from .exec... | Check jbig2 when optimizing is requested | py |
diff --git a/raiden/network/transport/matrix/utils.py b/raiden/network/transport/matrix/utils.py
index <HASH>..<HASH> 100644
--- a/raiden/network/transport/matrix/utils.py
+++ b/raiden/network/transport/matrix/utils.py
@@ -138,7 +138,7 @@ class DisplayNameCache:
try:
user.g... | Raise exception when `user.displayname` cannot be read This is the case when the servers disk is full. The displayname is used ans we cannot continue when it is not set. | py |
diff --git a/test_isort.py b/test_isort.py
index <HASH>..<HASH> 100644
--- a/test_isort.py
+++ b/test_isort.py
@@ -1095,6 +1095,7 @@ def test_placement_control():
test_output = SortImports(file_contents=test_input,
known_first_party=['p24', 'p24.imports._VERSION'],
known_standard_... | Fix isort to assume that above comments auto get included instead of requiring manual adjustment | py |
diff --git a/prometheus_client/core.py b/prometheus_client/core.py
index <HASH>..<HASH> 100644
--- a/prometheus_client/core.py
+++ b/prometheus_client/core.py
@@ -459,7 +459,7 @@ def _MultiProcessValue(_pidFunc=os.getpid):
# Should we enable multi-process mode?
# This needs to be chosen before the first metric is con... | correct spelling mistake (#<I>) | py |
diff --git a/clkhash/clk.py b/clkhash/clk.py
index <HASH>..<HASH> 100644
--- a/clkhash/clk.py
+++ b/clkhash/clk.py
@@ -72,11 +72,23 @@ def generate_clk_from_csv(input, keys, schema_types, no_header=False, progress_b
chunk, schema_types, key_lists)
futures.appen... | Good idea to preserve the order between entities and created hashes | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -38,7 +38,7 @@ archive_util.ARCHIVE_FORMATS["ezip"] = (make_ezipfile,[],'Executable ZIP file')
setup(
name = 'scapy',
version = '2.0.1-dev',
- packages=['scapy','scapy/arch', 'scapy/layers','scapy/asn1','scapy/t... | Added missing package scapy/arch/windows in setup.py | py |
diff --git a/plugins/virtual_folders/girder_virtual_folders/__init__.py b/plugins/virtual_folders/girder_virtual_folders/__init__.py
index <HASH>..<HASH> 100644
--- a/plugins/virtual_folders/girder_virtual_folders/__init__.py
+++ b/plugins/virtual_folders/girder_virtual_folders/__init__.py
@@ -99,10 +99,14 @@ def _virt... | Change how items are found. This uses `findWithPermissions` instead of filtering, as it is more efficient. Also, to match how items are returned from the regular find endpoint, don't filter documents. This has the virtue that the found item count is returned in the Girder-Total-Count header. | py |
diff --git a/sos/plugins/pcp.py b/sos/plugins/pcp.py
index <HASH>..<HASH> 100644
--- a/sos/plugins/pcp.py
+++ b/sos/plugins/pcp.py
@@ -150,6 +150,16 @@ class Pcp(Plugin, RedHatPlugin, DebianPlugin):
# Need to get the current status of the PCP infrastructure
self.add_cmd_output("pcp")
-
+ # Co... | [pcp] Collect summary data for the current day Adds collection of a pmstat summary output using 5 minute intervals for the current day, and makes a root symlink to it in the archive. Resolves: #<I> | py |
diff --git a/cheroot/connections.py b/cheroot/connections.py
index <HASH>..<HASH> 100644
--- a/cheroot/connections.py
+++ b/cheroot/connections.py
@@ -96,7 +96,6 @@ class ConnectionManager:
This should be called periodically.
"""
-
# find any connections still registered with the selector
... | Address pydocstyle offences in cheroot.connections | py |
diff --git a/arangodb/orm/fields.py b/arangodb/orm/fields.py
index <HASH>..<HASH> 100644
--- a/arangodb/orm/fields.py
+++ b/arangodb/orm/fields.py
@@ -446,7 +446,7 @@ class DatetimeField(ModelField):
"""
"""
- if self.time:
+ if self.time and not self.null:
return u'%s' % ... | Fixing none value loading for datetime field | py |
diff --git a/tools/gen.py b/tools/gen.py
index <HASH>..<HASH> 100644
--- a/tools/gen.py
+++ b/tools/gen.py
@@ -136,7 +136,7 @@ extra_services = {
'DeleteSecret', 'DescribeSecret', 'GetRandomPassword',
'GetResourcePolicy', 'GetSecretValue', 'ListSecrets',
'ListSecretVersionIds', 'P... | Fix a typo in tools/gen.py (#<I>) | py |
diff --git a/ncbi_genome_download/core.py b/ncbi_genome_download/core.py
index <HASH>..<HASH> 100644
--- a/ncbi_genome_download/core.py
+++ b/ncbi_genome_download/core.py
@@ -192,7 +192,11 @@ def config_download(config):
else: # pragma: no cover
# Testing multiprocessing code is annoying
... | Restructuring to avoid excessively long and complicated line. | py |
diff --git a/ginga/trcalc.py b/ginga/trcalc.py
index <HASH>..<HASH> 100644
--- a/ginga/trcalc.py
+++ b/ginga/trcalc.py
@@ -11,12 +11,12 @@ interpolation_methods = ['basic']
def use(pkgname):
+ global interpolation_methods
global have_opencv, cv2, cv2_resize
global have_opencl, trcalc_cl
if pkgn... | Fix collection of interpolation types for opencv under python3 | py |
diff --git a/vent/menus/add.py b/vent/menus/add.py
index <HASH>..<HASH> 100644
--- a/vent/menus/add.py
+++ b/vent/menus/add.py
@@ -112,10 +112,10 @@ class AddForm(npyscreen.ActionForm):
title="Specify a name for the image",
form_color='CAUTION'... | changed values pulled from npyscreen to lowercase | py |
diff --git a/bitcoin/patricia.py b/bitcoin/patricia.py
index <HASH>..<HASH> 100644
--- a/bitcoin/patricia.py
+++ b/bitcoin/patricia.py
@@ -67,9 +67,9 @@ class PatriciaNode(SerializableMixin, HashableMixin):
def __init__(self, flags=0, children=None, value=None, *args, **kwargs):
if children is None:
- ... | Change from [] syntax to list(), since we're using the blist list type. | py |
diff --git a/salt/auth/__init__.py b/salt/auth/__init__.py
index <HASH>..<HASH> 100644
--- a/salt/auth/__init__.py
+++ b/salt/auth/__init__.py
@@ -219,14 +219,15 @@ class Authorize(object):
yield {'sub_auth': sub_auth, 'name': name}
yield {}
- def rights_check(self, sub_auth, name, load, eaut... | change the routine to use the any_auth method | py |
diff --git a/glad/lang/c/loader/__init__.py b/glad/lang/c/loader/__init__.py
index <HASH>..<HASH> 100644
--- a/glad/lang/c/loader/__init__.py
+++ b/glad/lang/c/loader/__init__.py
@@ -24,8 +24,8 @@ int %(init)s(void) {
%(pre)s
void %(terminate)s(void) {
if(libGL != NULL) {
- FreeLibrary(libGL);
- li... | c: cast libgl handle to HMODULE on windows, #<I> | py |
diff --git a/src/_pytest/python_api.py b/src/_pytest/python_api.py
index <HASH>..<HASH> 100644
--- a/src/_pytest/python_api.py
+++ b/src/_pytest/python_api.py
@@ -666,6 +666,11 @@ def approx(expected, rel=None, abs=None, nan_ok: bool = False) -> ApproxBase:
specialised test helpers in :std:doc:`numpy:reference... | Mention use of re_assert for strings in approx docs | py |
diff --git a/src/_pytest/pathlib.py b/src/_pytest/pathlib.py
index <HASH>..<HASH> 100644
--- a/src/_pytest/pathlib.py
+++ b/src/_pytest/pathlib.py
@@ -387,7 +387,7 @@ def resolve_from_str(input: str, rootpath: Path) -> Path:
return rootpath.joinpath(input)
-def fnmatch_ex(pattern: str, path) -> bool:
+def ... | pathlib: missing type annotation for fnmatch_ex | py |
diff --git a/transformers/tokenization_utils.py b/transformers/tokenization_utils.py
index <HASH>..<HASH> 100644
--- a/transformers/tokenization_utils.py
+++ b/transformers/tokenization_utils.py
@@ -642,7 +642,7 @@ class PreTrainedTokenizer(object):
def lowercase_text(t):
# convert non-special tok... | Keep even the first of the special tokens intact while lowercasing. | py |
diff --git a/tornado/web.py b/tornado/web.py
index <HASH>..<HASH> 100644
--- a/tornado/web.py
+++ b/tornado/web.py
@@ -2501,9 +2501,9 @@ class FallbackHandler(RequestHandler):
class OutputTransform(object):
"""A transform modifies the result of an HTTP request (e.g., GZip encoding)
- A new transform instance... | Edit comments to discourage creation of new OutputTransforms. | py |
diff --git a/neo/SmartContract/SmartContractEvent.py b/neo/SmartContract/SmartContractEvent.py
index <HASH>..<HASH> 100644
--- a/neo/SmartContract/SmartContractEvent.py
+++ b/neo/SmartContract/SmartContractEvent.py
@@ -265,7 +265,12 @@ class NotifyEvent(SmartContractEvent):
if self.is_standard_notify:
... | disallow writing amounts in SmartContractEvent which are greater than ulong long max | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -5,7 +5,7 @@ from setuptools import setup
setup(
name='pyarlo',
packages=['pyarlo'],
- version='0.0.7',
+ version='0.0.8',
description='Python Arlo is a library written in Python 2.7/3x ' +
... | Bump dev version <I> | py |
diff --git a/bottom.py b/bottom.py
index <HASH>..<HASH> 100644
--- a/bottom.py
+++ b/bottom.py
@@ -165,10 +165,8 @@ class Handler(object):
# create a task list and use asyncio.wait
command = get_command(command)
# Fail fast if the function's signature doesn't match the possible
- # fie... | Adding custom routes for client-side events | py |
diff --git a/indra/assemblers/cag_assembler.py b/indra/assemblers/cag_assembler.py
index <HASH>..<HASH> 100644
--- a/indra/assemblers/cag_assembler.py
+++ b/indra/assemblers/cag_assembler.py
@@ -93,10 +93,7 @@ class CAGAssembler(object):
# Add edge to the graph with metadata from statement
- ... | removed if-else block that checks s.evidence | py |
diff --git a/jax/lax/lax_control_flow.py b/jax/lax/lax_control_flow.py
index <HASH>..<HASH> 100644
--- a/jax/lax/lax_control_flow.py
+++ b/jax/lax/lax_control_flow.py
@@ -621,6 +621,17 @@ def cond(*args, **kwargs):
Pred must be a scalar type.
+ Note that true_fun/false_fun may not need to refer to an `operand` ... | Clarify docs on jax.lax.cond. (#<I>) | py |
diff --git a/salt/scripts.py b/salt/scripts.py
index <HASH>..<HASH> 100644
--- a/salt/scripts.py
+++ b/salt/scripts.py
@@ -112,7 +112,7 @@ def minion_process():
def handle_hup(manager, sig, frame):
manager.minion.reload()
- lock = threading.Lock()
+ lock = threading.RLock()
def suicide_when... | use rlock so blocking can be passed in py2 | py |
diff --git a/version.py b/version.py
index <HASH>..<HASH> 100644
--- a/version.py
+++ b/version.py
@@ -5,4 +5,4 @@
pyOpenSSL - A simple wrapper around the OpenSSL library
"""
-__version__ = '0.8dev'
+__version__ = '0.8a1' | Change to a version string distutils won't puke over | py |
diff --git a/remoto/process.py b/remoto/process.py
index <HASH>..<HASH> 100644
--- a/remoto/process.py
+++ b/remoto/process.py
@@ -37,6 +37,30 @@ def _remote_run(channel, cmd, **kw):
sys.stderr.flush()
if process.poll() is not None:
+ # ensure we do not have anything pending i... | Loop around stdout and stderr descriptors until they are exhausted Even though process.poll() may indicate the process is done. Fixes issue #<I> | py |
diff --git a/memorious/operations/extract.py b/memorious/operations/extract.py
index <HASH>..<HASH> 100644
--- a/memorious/operations/extract.py
+++ b/memorious/operations/extract.py
@@ -87,9 +87,9 @@ def extract(context, data):
else:
context.log.warning("Unsupported archive content type: %s", con... | Extract: ignore empty shell-style wildcards instead of match all | py |
diff --git a/pycanlib/CAN.py b/pycanlib/CAN.py
index <HASH>..<HASH> 100644
--- a/pycanlib/CAN.py
+++ b/pycanlib/CAN.py
@@ -10,7 +10,7 @@ import types
def get_version_number():
_current_dir = os.getcwd()
- os.chdir(os.path.dirname(canlib.__file__))
+ os.chdir(os.path.dirname(__file__))
os.system(... | get_version_number in CAN.py now refers to CAN.py when looking for the directory that pycanlib is checked out to | py |
diff --git a/pymomo/commander/proxy/controller.py b/pymomo/commander/proxy/controller.py
index <HASH>..<HASH> 100644
--- a/pymomo/commander/proxy/controller.py
+++ b/pymomo/commander/proxy/controller.py
@@ -1194,15 +1194,6 @@ class SensorLog:
err = res['ints'][0]
return err
- @param("id", "integer", "nonnegati... | Start updating controller to build new sensor graphs | py |
diff --git a/pylatex/utils.py b/pylatex/utils.py
index <HASH>..<HASH> 100644
--- a/pylatex/utils.py
+++ b/pylatex/utils.py
@@ -43,17 +43,15 @@ class NoEscape(str):
When a `.NoEscape` string is added to another `.NoEscape` string it will
produce a `.NoEscape` string. If it is added to normal string it will
... | Add __repr__ method to NoEscape | py |
diff --git a/wallace/heroku/clock.py b/wallace/heroku/clock.py
index <HASH>..<HASH> 100644
--- a/wallace/heroku/clock.py
+++ b/wallace/heroku/clock.py
@@ -68,10 +68,10 @@ def check_db_for_missing_notifications():
try:
assignment = conn.get_assignment(assignment_id)[0]
stat... | get hit id separately from assignmentStatus | py |
diff --git a/xbee/frame.py b/xbee/frame.py
index <HASH>..<HASH> 100644
--- a/xbee/frame.py
+++ b/xbee/frame.py
@@ -150,13 +150,17 @@ class APIFrame:
byte = chr(ord(byte) ^ 0x20)
else:
# Python 3.X
- byte = bytes([byte ^ 0x20])
+ byte = byte ^... | Branched on appending the proper type | py |
diff --git a/autopep8.py b/autopep8.py
index <HASH>..<HASH> 100755
--- a/autopep8.py
+++ b/autopep8.py
@@ -1846,12 +1846,7 @@ def fix_file(filename, options=None, output=None):
if options.in_place:
encoding = detect_encoding(filename)
- interruption = None
- try:
- fixed_source = fix_lines(... | Remove things made useless by fix_lines() | py |
diff --git a/pandas/core/series.py b/pandas/core/series.py
index <HASH>..<HASH> 100644
--- a/pandas/core/series.py
+++ b/pandas/core/series.py
@@ -1182,7 +1182,7 @@ class Series(np.ndarray, PandasObject):
if kind == 'line':
if use_index:
- x = self.index
+ x = np.as... | BUG: index needs to be casted to ndarray in Series.plot | py |
diff --git a/python_utils/logger.py b/python_utils/logger.py
index <HASH>..<HASH> 100644
--- a/python_utils/logger.py
+++ b/python_utils/logger.py
@@ -88,7 +88,7 @@ class Logged(LoggerBase):
'spam'
'''
- logger: logging.Logger
+ logger: logging.Logger # pragma: no cover
@classmethod
def _... | for some reason test coverage suddenly dropped here... | py |
diff --git a/salt/modules/lxc.py b/salt/modules/lxc.py
index <HASH>..<HASH> 100644
--- a/salt/modules/lxc.py
+++ b/salt/modules/lxc.py
@@ -1395,6 +1395,7 @@ def init(name,
# If using a volume group then set up to make snapshot cow clones
if vgname and not clone_from:
try:
+ kwargs['vgname'... | Fix #<I>: vgname is lost in the middle | py |
diff --git a/rivescript/brain.py b/rivescript/brain.py
index <HASH>..<HASH> 100644
--- a/rivescript/brain.py
+++ b/rivescript/brain.py
@@ -437,7 +437,7 @@ class Brain(object):
regexp = regexp.replace('*', '(.+?)') # Convert * into (.+?)
regexp = regexp.replace('#', '(\d+?)') # Convert # into (\d+?)... | Feature tolerate the space between text and the weight tag. | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.