File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1919from 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 "
2323TYPE = "dev" if VERSION .count ('.' ) > 2 and VERSION .split ('.' )[- 1 ] != '0' else "stable"
2424TYPE_COLORS = {"dev" : 33 , "stable" : 90 , "pip" : 34 }
2525VERSION_STRING = "sqlmap/%s#%s" % ('.' .join (VERSION .split ('.' )[:- 1 ]) if VERSION .count ('.' ) > 2 and VERSION .split ('.' )[- 1 ] == '0' else VERSION , TYPE )
Original file line number Diff line number Diff 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 :
Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ ffa5f01f39b17c8d73423acca6cfe86a lib/core/readlineng.py
46460c3eef46bdbf87e29a3f95f90240d192 lib/core/replication.py
4747a7db43859b61569b601b97f187dd31c5 lib/core/revision.py
4848fcb74fcc9577523524659ec49e2e964b lib/core/session.py
49- a7506d334169334f86955e6016e2b6ab lib/core/settings.py
49+ f0a078744355f8eba214f960c810cdf9 lib/core/settings.py
5050d0adc28a38e43a787df4471f7f027413 lib/core/shell.py
515163491be462c515a1a3880c27c2acc4a2 lib/core/subprocessng.py
5252505aaa61e1bba3c3d4567c3e667699e3 lib/core/target.py
@@ -328,7 +328,7 @@ bcae4c645a737d3f0e7c96a66528ca4a thirdparty/chardet/universaldetector.py
328328658da0466b798cc70f48f35fe49b7813 thirdparty/clientform/clientform.py
329329722281d87fb13ec22555480f8f4c715b thirdparty/clientform/__init__.py
3303300b625ccefa6b066f79d3cbb3639267e6 thirdparty/colorama/ansi.py
331- e52252bb81ce1a14b7245b53af33e75f thirdparty/colorama/ansitowin32.py
331+ 93bb7f06c8300a91b533ea55e8aead43 thirdparty/colorama/ansitowin32.py
332332ed4d76c08741d34ac79f6488663345f7 thirdparty/colorama/initialise.py
333333c0707ca77ccb4a2c0f12b4085057193c thirdparty/colorama/__init__.py
334334ad3d022d4591aee80f7391248d722413 thirdparty/colorama/win32.py
You can’t perform that action at this time.
0 commit comments