code refactoring

This commit is contained in:
Miroslav Stampar
2010-11-23 21:00:42 +00:00
parent 7877a931d5
commit f9f076ba97
3 changed files with 11 additions and 11 deletions

View File

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