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

Jonas Smedegaard dr at jones.dk
Tue Dec 19 01:19:56 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 6488ace894e2b0e81c10c6c1964136c5b430a890
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 cb4220c..bc4bc05 100644
--- a/quamash/__init__.py
+++ b/quamash/__init__.py
@@ -195,7 +195,7 @@ class _SimpleTimer(QtCore.QObject):
 
 
 @with_logger
-class QEventLoop(_baseclass):
+class _QEventLoop(asyncio._BaseEventLoop):
 
 	"""
 	Implementation of asyncio event loop that uses the Qt Event loop.
@@ -586,17 +586,16 @@ class QEventLoop(_baseclass):
 			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('QIOCPEventLoop', (_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