From 4796d5e637c0ca877566efe1b64a86850bf5d104 Mon Sep 17 00:00:00 2001 From: Bastian Germann Date: Tue, 16 Oct 2018 12:16:28 +0200 Subject: [PATCH] Add missing import --- api/source/scan.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/api/source/scan.py b/api/source/scan.py index d21dff9..3d817ac 100755 --- a/api/source/scan.py +++ b/api/source/scan.py @@ -8,6 +8,7 @@ from modulefinder import ModuleFinder import pkgutil import string import multiprocessing +from queue import Empty PACKAGE_RST = string.Template("""$underline $title @@ -73,7 +74,7 @@ def progress(queue, number): 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))