[Pkg-bitcoin-commits] [python-quamash] 120/269: Fix QApplication usage
Jonas Smedegaard
dr at jones.dk
Fri Nov 24 11:26:22 UTC 2017
This is an automated email from the git hooks/post-receive script.
js pushed a commit to branch master
in repository python-quamash.
commit ee77d961af7ceb366ab5f170f6aae271d7a28428
Author: Arve Knudsen <arve.knudsen at gmail.com>
Date: Mon Jul 21 16:34:33 2014 +0200
Fix QApplication usage
---
quamash/__init__.py | 4 ++--
tests/test_qeventloop.py | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/quamash/__init__.py b/quamash/__init__.py
index 57d6998..5b585b1 100644
--- a/quamash/__init__.py
+++ b/quamash/__init__.py
@@ -160,7 +160,7 @@ def _easycallback(fn):
>>> from quamash import QEventLoop, QtCore, QtGui, QApplication
>>> QThread, QObject = quamash.QtCore.QThread, quamash.QtCore.QObject
>>>
- >>> app = QApplication.instance() or QApplication([])
+ >>> app = QApplication([])
>>>
>>> global_thread = QThread.currentThread()
>>> class MyObject(QObject):
@@ -211,7 +211,7 @@ class QEventLoop(_baseclass):
>>> import quamash, asyncio
>>> from quamash import QtCore, QtGui, QApplication
- >>> app = QApplication.instance() or QApplication([])
+ >>> app = QApplication([])
>>>
>>> @asyncio.coroutine
... def xplusy(x, y):
diff --git a/tests/test_qeventloop.py b/tests/test_qeventloop.py
index d2d3df8..f82a53c 100644
--- a/tests/test_qeventloop.py
+++ b/tests/test_qeventloop.py
@@ -31,7 +31,7 @@ class _SubprocessProtocol(asyncio.SubprocessProtocol):
@pytest.fixture(scope='session')
def application():
- return quamash.QApplication.instance() or quamash.QApplication([])
+ return QApplication.instance() or quamash.QApplication([])
@pytest.fixture
--
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