added missing import

This commit is contained in:
Sebastian Sdorra
2012-02-10 14:19:55 +01:00
parent 2b961e37a8
commit a0fe6c30b4

View File

@@ -45,6 +45,7 @@ if len(pythonPath) > 0:
from mercurial import hg, ui
import datetime, time
from xml.sax.saxutils import escape
def getName(path):
parts = path.split('/')
@@ -147,7 +148,7 @@ for file in files:
print ' <directory>false</directory>'
print ' <length>' + str(file.size()) + '</length>'
print ' <lastModified>' + str(time).split('.')[0] + '</lastModified>'
print ' <description>' + escape(desc.encode('UTF-8')) + '</description>'
print ' <description>' + escape(desc) + '</description>'
print ' </file>'
print ' </files>'
print '</browser-result>'