Show More
@@ -18,6 +18,7 b' empty file' | |||||
18 | """ |
|
18 | """ | |
19 |
|
19 | |||
20 | from __future__ import absolute_import |
|
20 | from __future__ import absolute_import | |
|
21 | import binascii | |||
21 | import os |
|
22 | import os | |
22 | import sys |
|
23 | import sys | |
23 |
|
24 | |||
@@ -56,7 +57,7 b" makedirs(os.path.join(*'formatv0/.hg/dat" | |||||
56 |
|
57 | |||
57 | for name, data in files: |
|
58 | for name, data in files: | |
58 | f = open(name, 'wb') |
|
59 | f = open(name, 'wb') | |
59 | f.write(data.decode('hex')) |
|
60 | f.write(binascii.unhexlify(data)) | |
60 | f.close() |
|
61 | f.close() | |
61 |
|
62 | |||
62 | sys.exit(0) |
|
63 | sys.exit(0) |
General Comments 0
You need to be logged in to leave comments.
Login now