[Pkg-bitcoin-commits] [python-quamash] 149/269: Inform in logging which Qt Implementation is being used
Jonas Smedegaard
dr at jones.dk
Fri Nov 24 11:26:26 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 46f2cc2c5e87f9249f9b7e06a03024952bed684c
Author: Mark Harviston <mark.harviston at gmail.com>
Date: Sun Dec 7 15:06:59 2014 -0800
Inform in logging which Qt Implementation is being used
---
quamash/__init__.py | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/quamash/__init__.py b/quamash/__init__.py
index 9cfb845..226e30c 100644
--- a/quamash/__init__.py
+++ b/quamash/__init__.py
@@ -15,6 +15,8 @@ import time
from functools import wraps
from queue import Queue
from concurrent.futures import Future
+import logging
+logger = logging.getLogger('quamash')
for QtModuleName in ('PyQt5', 'PyQt4', 'PySide'):
try:
@@ -26,6 +28,8 @@ for QtModuleName in ('PyQt5', 'PyQt4', 'PySide'):
else:
raise ImportError('No Qt implementations found')
+logger.info('Using Qt Implementation: %s', QtModuleName)
+
QtCore = __import__(QtModuleName + '.QtCore', fromlist=(QtModuleName,))
QtGui = __import__(QtModuleName + '.QtGui', fromlist=(QtModuleName,))
if QtModuleName == 'PyQt5':
--
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