##// END OF EJS Templates
py3: pass bytes from extension to ui.write() in test-revlog-mmapindex.t...
Pulkit Goyal -
r35405:6ebe899b default
parent child Browse files
Show More
@@ -6,12 +6,13 b' create verbosemmap.py'
6 >
6 >
7 > from mercurial import (
7 > from mercurial import (
8 > extensions,
8 > extensions,
9 > pycompat,
9 > util,
10 > util,
10 > )
11 > )
11 >
12 >
12 > def extsetup(ui):
13 > def extsetup(ui):
13 > def mmapread(orig, fp):
14 > def mmapread(orig, fp):
14 > ui.write("mmapping %s\n" % fp.name)
15 > ui.write(b"mmapping %s\n" % pycompat.bytestr(fp.name))
15 > ui.flush()
16 > ui.flush()
16 > return orig(fp)
17 > return orig(fp)
17 >
18 >
General Comments 0
You need to be logged in to leave comments. Login now