more cosmetics regarding dictionary attack

This commit is contained in:
Miroslav Stampar
2010-11-23 20:54:40 +00:00
parent e3b3e05748
commit 7877a931d5
2 changed files with 26 additions and 21 deletions

View File

@@ -1259,6 +1259,9 @@ def getConsoleWidth(default=80):
return width if width else default
def clearConsoleLine():
dataToStdout("\r%s\r" % (" " * (getConsoleWidth() - 1)))
def parseXmlFile(xmlFile, handler):
stream = StringIO(readCachedFileContent(xmlFile))
parse(stream, handler)