[Pkg-bitcoin-commits] [python-quamash] 227/269: fixes #31

Jonas Smedegaard dr at jones.dk
Fri Nov 24 11:26:36 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 b7699dc15d4dc2afe61b41f55dfa6a64fe37309f
Author: Mark Harviston <mark.harviston at gmail.com>
Date:   Mon Feb 16 21:45:28 2015 -0800

    fixes #31
    
    Only emit debug message "Using default executor" when the default
    executor is being used.
---
 quamash/__init__.py | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/quamash/__init__.py b/quamash/__init__.py
index a7a5831..670379c 100644
--- a/quamash/__init__.py
+++ b/quamash/__init__.py
@@ -493,11 +493,13 @@ class QEventLoop(_baseclass):
 				return f
 			callback, args = callback.callback, callback.args
 
-		executor = executor or self.__default_executor
+		if executor is None:
+			self._logger.debug('Using default executor')
+			executor = self.__default_executor
+
 		if executor is None:
 			self._logger.debug('Creating default executor')
 			executor = self.__default_executor = QThreadExecutor()
-		self._logger.debug('Using default executor')
 
 		return asyncio.wrap_future(executor.submit(callback, *args))
 

-- 
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