changeset 36594:9805c906aaad

tests: port helper script revlog-formatv0.py to python 3 Differential Revision: https://phab.mercurial-scm.org/D2540
author Augie Fackler <augie@google.com>
date Thu, 01 Mar 2018 23:58:04 -0500
parents c4ccc73f9d49
children ed96d1116302
files tests/revlog-formatv0.py
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/tests/revlog-formatv0.py	Thu Mar 01 21:17:58 2018 -0500
+++ b/tests/revlog-formatv0.py	Thu Mar 01 23:58:04 2018 -0500
@@ -18,6 +18,7 @@
 """
 
 from __future__ import absolute_import
+import binascii
 import os
 import sys
 
@@ -56,7 +57,7 @@
 
 for name, data in files:
     f = open(name, 'wb')
-    f.write(data.decode('hex'))
+    f.write(binascii.unhexlify(data))
     f.close()
 
 sys.exit(0)