mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-11 16:05:44 +01:00
added missing import
This commit is contained in:
@@ -45,6 +45,7 @@ if len(pythonPath) > 0:
|
|||||||
|
|
||||||
from mercurial import hg, ui
|
from mercurial import hg, ui
|
||||||
import datetime, time
|
import datetime, time
|
||||||
|
from xml.sax.saxutils import escape
|
||||||
|
|
||||||
def getName(path):
|
def getName(path):
|
||||||
parts = path.split('/')
|
parts = path.split('/')
|
||||||
@@ -147,7 +148,7 @@ for file in files:
|
|||||||
print ' <directory>false</directory>'
|
print ' <directory>false</directory>'
|
||||||
print ' <length>' + str(file.size()) + '</length>'
|
print ' <length>' + str(file.size()) + '</length>'
|
||||||
print ' <lastModified>' + str(time).split('.')[0] + '</lastModified>'
|
print ' <lastModified>' + str(time).split('.')[0] + '</lastModified>'
|
||||||
print ' <description>' + escape(desc.encode('UTF-8')) + '</description>'
|
print ' <description>' + escape(desc) + '</description>'
|
||||||
print ' </file>'
|
print ' </file>'
|
||||||
print ' </files>'
|
print ' </files>'
|
||||||
print '</browser-result>'
|
print '</browser-result>'
|
||||||
|
|||||||
Reference in New Issue
Block a user