Minor tweaks to use slices instead of lists of items

svn: r12705
This commit is contained in:
Gerald Britton
2009-06-25 13:41:16 +00:00
parent a52bc62be9
commit fdfacd972c
9 changed files with 12 additions and 17 deletions

View File

@ -94,8 +94,7 @@ class ODFDoc(BaseDoc, TextDoc, DrawDoc):
def open(self, filename):
t = time.localtime(time.time())
self.time = "%04d-%02d-%02dT%02d:%02d:%02d" % \
(t[0], t[1], t[2], t[3], t[4], t[5])
self.time = "%04d-%02d-%02dT%02d:%02d:%02d" % t[:6]
if filename[-4:] != ".odt":
self.filename = filename + ".odt"