mirror of
https://gitlab.com/openlp/documentation.git
synced 2024-12-22 04:22:49 +00:00
Add missing import
This commit is contained in:
parent
bc2b54e2a4
commit
4796d5e637
@ -8,6 +8,7 @@ from modulefinder import ModuleFinder
|
|||||||
import pkgutil
|
import pkgutil
|
||||||
import string
|
import string
|
||||||
import multiprocessing
|
import multiprocessing
|
||||||
|
from queue import Empty
|
||||||
|
|
||||||
PACKAGE_RST = string.Template("""$underline
|
PACKAGE_RST = string.Template("""$underline
|
||||||
$title
|
$title
|
||||||
@ -73,7 +74,7 @@ def progress(queue, number):
|
|||||||
while number > progress_percentage:
|
while number > progress_percentage:
|
||||||
try:
|
try:
|
||||||
module = queue.get(True, 5)
|
module = queue.get(True, 5)
|
||||||
except queue.Empty:
|
except Empty:
|
||||||
break
|
break
|
||||||
percent = round((progress_percentage/number)*100)
|
percent = round((progress_percentage/number)*100)
|
||||||
sys.stdout.write('{0}% File: {1}{2}\r'.format(percent, module, ' '*25))
|
sys.stdout.write('{0}% File: {1}{2}\r'.format(percent, module, ' '*25))
|
||||||
|
Loading…
Reference in New Issue
Block a user