[Pkg-bitcoin-commits] [python-quamash] 02/78: style cleanup

Jonas Smedegaard dr at jones.dk
Tue Dec 19 01:19:50 UTC 2017


This is an automated email from the git hooks/post-receive script.

js pushed a commit to annotated tag debian/0.6.0_dfsg-1
in repository python-quamash.

commit 04cc0f4c947f0e8a77aeccfe82f5bd0a3c4204b0
Author: Mark Harviston <Mark.T.Harviston.-ND at disney.com>
Date:   Thu Jan 14 13:12:37 2016 -0800

    style cleanup
---
 quamash/__init__.py | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

diff --git a/quamash/__init__.py b/quamash/__init__.py
index 1a3f90a..c7ee214 100644
--- a/quamash/__init__.py
+++ b/quamash/__init__.py
@@ -171,7 +171,7 @@ def _make_signaller(qtimpl_qtcore, *args):
 
 
 @with_logger
-class _QEventLoop(asyncio.BaseEventLoop):
+class _QEventLoop(asyncio._BaseEventLoop):
 
 	"""
 	Implementation of asyncio event loop that uses the Qt Event loop.
@@ -561,17 +561,16 @@ class _QEventLoop(asyncio.BaseEventLoop):
 			sys.stderr.write('{!r}, {!r}\n'.format(args, kwds))
 
 from .unix import _SelectorEventLoop
-class QSelectorEventLoop(_QEventLoop, _SelectorEventLoop):
-	pass
+QSelectorEventLoop = type('QSelectorEventLoop', (_QEventLoop, _SelectorEventLoop), {})
 
 if os.name == 'nt':
 	from ._windows import _ProactorEventLoop
-	class QIOCPEventLoop(_QEventLoop, _ProactorEventLoop):
-		pass
+	QIOCPEventLoop = type('QSelectorEventLoop', (_QEventLoop, _ProactorEventLoop), {})
 	QEventLoop = QIOCPEventLoop
 else:
 	QEventLoop = QSelectorEventLoop
 
+
 class _Cancellable:
 	def __init__(self, timer, loop):
 		self.__timer = timer

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-bitcoin/python-quamash.git



More information about the Pkg-bitcoin-commits mailing list