openlp-core team mailing list archive
-
openlp-core team
-
Mailing list archive
-
Message #33141
[Merge] lp:~bastian-germann/openlp/documentation into lp:openlp/documentation
Bastian Germann has proposed merging lp:~bastian-germann/openlp/documentation into lp:openlp/documentation.
Commit message:
Fix a missing import
Requested reviews:
OpenLP Core (openlp-core)
For more details, see:
https://code.launchpad.net/~bastian-germann/openlp/documentation/+merge/356852
--
Your team OpenLP Core is requested to review the proposed merge of lp:~bastian-germann/openlp/documentation into lp:openlp/documentation.
=== modified file 'api/source/scan.py'
--- api/source/scan.py 2018-01-29 03:52:43 +0000
+++ api/source/scan.py 2018-10-16 17:01:38 +0000
@@ -8,6 +8,7 @@
import pkgutil
import string
import multiprocessing
+from queue import Empty
PACKAGE_RST = string.Template("""$underline
$title
@@ -73,7 +74,7 @@
while number > progress_percentage:
try:
module = queue.get(True, 5)
- except queue.Empty:
+ except Empty:
break
percent = round((progress_percentage/number)*100)
sys.stdout.write('{0}% File: {1}{2}\r'.format(percent, module, ' '*25))
Follow ups