Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 33a5edf commit e2d1214Copy full SHA for e2d1214
1 file changed
Lib/distutils/log.py
@@ -9,6 +9,8 @@
9
ERROR = 4
10
FATAL = 5
11
12
+import sys
13
+
14
class Log:
15
16
def __init__(self, threshold=WARN):
@@ -17,6 +19,7 @@ def __init__(self, threshold=WARN):
17
19
def _log(self, level, msg, args):
18
20
if level >= self.threshold:
21
print msg % args
22
+ sys.stdout.flush()
23
24
def log(self, level, msg, *args):
25
self._log(level, msg, args)
0 commit comments