We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent af0d7fc commit 62336a4Copy full SHA for 62336a4
cvemysql.py
@@ -5,6 +5,7 @@
5
import cvemitre
6
import nvdnist
7
import platform
8
+import datetime
9
import zipfile
10
import getpass
11
import pymysql
nvdnist.py
@@ -63,14 +63,12 @@ def _pobject(self):
63
self.kill = True
64
65
def _processFunction(self):
66
- while self.kill == False:
+ while True:
67
sys.stdout.write("\rCurrent progress: %d / %d" % (self._entry - len(self._wpList), self._entry))
68
sys.stdout.flush()
69
+ if self.kill:
70
+ break
71
time.sleep(5)
-
- # To print a finish progress
72
- sys.stdout.write("\rDone!")
73
- sys.stdout.flush()
74
75
def start(self):
76
self._coreThread = Thread(target=self._pobject)
0 commit comments