ASCII-fy stderr status line for Windows, and fix field order

This commit is contained in:
Daniel Lenski 2014-10-14 12:29:01 -07:00
parent 73c7a7a052
commit 695d460665
1 changed files with 1 additions and 1 deletions

View File

@ -69,7 +69,7 @@ def main():
text = rev.get('*','').encode('utf8')
committer = '%s@%s' % (rev['user'].encode('utf8'), site.host[1])
ts = time.mktime(rev['timestamp'])
print(" >> Revision %d by %s at %s: %s" % (id, rev['user'], rev['comment'], time.ctime(ts)), file=stderr)
print((" >> Revision %d by %s at %s: %s" % (id, rev['user'], time.ctime(ts), rev['comment'])).encode('ascii','xmlcharrefreplace'), file=stderr)
summary = '%s\n\nURL: %s://%s%sindex.php?oldid=%d' % (rev['comment'].encode('utf8') or '<blank>', site.host[0], site.host[1], site.path, id)