mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-09 22:21:30 +00:00
Abracadabra #2790
This commit is contained in:
12
thirdparty/colorama/ansitowin32.py
vendored
12
thirdparty/colorama/ansitowin32.py
vendored
@@ -171,9 +171,19 @@ class AnsiToWin32(object):
|
||||
|
||||
def write_plain_text(self, text, start, end):
|
||||
if start < end:
|
||||
self.wrapped.write(text[start:end])
|
||||
self._write(text[start:end])
|
||||
self.wrapped.flush()
|
||||
|
||||
# Reference: https://github.com/robotframework/robotframework/commit/828c67695d85519e4435c556c43ed1b00985df05
|
||||
# Workaround for Windows 10 console bug:
|
||||
# https://github.com/robotframework/robotframework/issues/2709
|
||||
def _write(self, text, retry=5):
|
||||
try:
|
||||
self.wrapped.write(text)
|
||||
except IOError, err:
|
||||
if not (err.errno == 0 and retry > 0):
|
||||
raise
|
||||
self._write(text, retry-1)
|
||||
|
||||
def convert_ansi(self, paramstring, command):
|
||||
if self.convert:
|
||||
|
||||
Reference in New Issue
Block a user