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 8cb9558 commit 0cab4a5Copy full SHA for 0cab4a5
1 file changed
lib/core/dump.py
@@ -27,6 +27,7 @@
27
import os
28
29
from lib.core.common import dataToDumpFile
30
+from lib.core.common import dataToStdout
31
from lib.core.common import getUnicode
32
from lib.core.data import conf
33
from lib.core.data import logger
@@ -44,12 +45,12 @@ def __init__(self):
44
45
46
def __write(self, data, n=True):
47
if n:
- print data
48
- self.__outputFP.write("%s\n" % data)
+ text = "%s\n" % data
49
else:
50
- print data,
51
- self.__outputFP.write("%s " % data)
+ text = "%s " % data
52
+ dataToStdout(text)
53
+ self.__outputFP.write(text)
54
self.__outputFP.flush()
55
56
conf.loggedToOut = True
0 commit comments