Fix for raw_input raising EOFError and KeyboardInterrupt on Ctrl-C (Windows platform)

This commit is contained in:
Miroslav Stampar 2012-10-23 11:05:00 +02:00
parent 5ff2e33c43
commit f2bbf1ead9

View File

@ -785,6 +785,7 @@ def readInput(message, default=None, checkBatch=True):
try: try:
data = raw_input() or default data = raw_input() or default
except: except:
time.sleep(0.05) # Reference: http://www.gossamer-threads.com/lists/python/python/781893
kb.prependFlag = True kb.prependFlag = True
raise sqlmapUserQuitException raise sqlmapUserQuitException
finally: finally: