Skip to content

Commit 79d0c83

Browse files
committed
Bug fix for Python3 (drei lack of color output)
1 parent ddf67bb commit 79d0c83

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

lib/core/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
from thirdparty.six import unichr as _unichr
1919

2020
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
21-
VERSION = "1.3.5.113"
21+
VERSION = "1.3.5.114"
2222
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
2323
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}
2424
VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE)

thirdparty/ansistrm/ansistrm.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,6 @@ def output_colorized(self, message):
9494

9595
def output_colorized(self, message):
9696
parts = self.ansi_esc.split(message)
97-
write = self.stream.write
9897
h = None
9998
fd = getattr(self.stream, 'fileno', None)
10099

@@ -108,7 +107,8 @@ def output_colorized(self, message):
108107
text = parts.pop(0)
109108

110109
if text:
111-
write(text)
110+
self.stream.write(text)
111+
self.stream.flush()
112112

113113
if parts:
114114
params = parts.pop(0)

0 commit comments

Comments
 (0)