Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f6738ad

Browse files
committed
Abracadabra #2790
1 parent e0dee94 commit f6738ad

3 files changed

Lines changed: 14 additions & 4 deletions

File tree

lib/core/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
from lib.core.enums import OS
2020

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

thirdparty/colorama/ansitowin32.py

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,9 +171,19 @@ def write_and_convert(self, text):
171171

172172
def write_plain_text(self, text, start, end):
173173
if start < end:
174-
self.wrapped.write(text[start:end])
174+
self._write(text[start:end])
175175
self.wrapped.flush()
176176

177+
# Reference: https://github.com/robotframework/robotframework/commit/828c67695d85519e4435c556c43ed1b00985df05
178+
# Workaround for Windows 10 console bug:
179+
# https://github.com/robotframework/robotframework/issues/2709
180+
def _write(self, text, retry=5):
181+
try:
182+
self.wrapped.write(text)
183+
except IOError, err:
184+
if not (err.errno == 0 and retry > 0):
185+
raise
186+
self._write(text, retry-1)
177187

178188
def convert_ansi(self, paramstring, command):
179189
if self.convert:

txt/checksum.md5

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ ffa5f01f39b17c8d73423acca6cfe86a lib/core/readlineng.py
4646
0c3eef46bdbf87e29a3f95f90240d192 lib/core/replication.py
4747
a7db43859b61569b601b97f187dd31c5 lib/core/revision.py
4848
fcb74fcc9577523524659ec49e2e964b lib/core/session.py
49-
a7506d334169334f86955e6016e2b6ab lib/core/settings.py
49+
f0a078744355f8eba214f960c810cdf9 lib/core/settings.py
5050
d0adc28a38e43a787df4471f7f027413 lib/core/shell.py
5151
63491be462c515a1a3880c27c2acc4a2 lib/core/subprocessng.py
5252
505aaa61e1bba3c3d4567c3e667699e3 lib/core/target.py
@@ -328,7 +328,7 @@ bcae4c645a737d3f0e7c96a66528ca4a thirdparty/chardet/universaldetector.py
328328
658da0466b798cc70f48f35fe49b7813 thirdparty/clientform/clientform.py
329329
722281d87fb13ec22555480f8f4c715b thirdparty/clientform/__init__.py
330330
0b625ccefa6b066f79d3cbb3639267e6 thirdparty/colorama/ansi.py
331-
e52252bb81ce1a14b7245b53af33e75f thirdparty/colorama/ansitowin32.py
331+
93bb7f06c8300a91b533ea55e8aead43 thirdparty/colorama/ansitowin32.py
332332
ed4d76c08741d34ac79f6488663345f7 thirdparty/colorama/initialise.py
333333
c0707ca77ccb4a2c0f12b4085057193c thirdparty/colorama/__init__.py
334334
ad3d022d4591aee80f7391248d722413 thirdparty/colorama/win32.py

0 commit comments

Comments
 (0)