Show More
@@ -35,7 +35,10 b' def parselog(data):' | |||||
35 | return entries |
|
35 | return entries | |
36 |
|
36 | |||
37 | def printentries(entries): |
|
37 | def printentries(entries): | |
38 | fp = sys.stdout |
|
38 | try: | |
|
39 | fp = sys.stdout.buffer | |||
|
40 | except AttributeError: | |||
|
41 | fp = sys.stdout | |||
39 | for e in entries: |
|
42 | for e in entries: | |
40 | for k in ('revision', 'author', 'msg'): |
|
43 | for k in ('revision', 'author', 'msg'): | |
41 | fp.write(('%s: %s\n' % (k, e[k])).encode('utf-8')) |
|
44 | fp.write(('%s: %s\n' % (k, e[k])).encode('utf-8')) |
General Comments 0
You need to be logged in to leave comments.
Login now