perf: add two more missing b prefixes for Python 3
authorAugie Fackler <augie@google.com>
Fri, 14 Dec 2018 12:00:38 -0500
changeset 40948 a314eafd7c8d
parent 40947 9e462fb88f79
child 40949 f732889abe0e
perf: add two more missing b prefixes for Python 3 # skip-blame just two more b prefixes Differential Revision: https://phab.mercurial-scm.org/D5425
contrib/perf.py
--- a/contrib/perf.py	Fri Dec 14 11:37:50 2018 -0500
+++ b/contrib/perf.py	Fri Dec 14 12:00:38 2018 -0500
@@ -1021,10 +1021,10 @@
     opts = _byteskwargs(opts)
     timer, fm = gettimer(ui, opts)
     mercurial.revlog._prereadsize = 2**24 # disable lazy parser in old hg
-    if opts['rev'] is None:
+    if opts[b'rev'] is None:
         n = repo[b"tip"].node()
     else:
-        rev = scmutil.revsingle(repo, opts['rev'])
+        rev = scmutil.revsingle(repo, opts[b'rev'])
         n = repo[rev].node()
 
     unfi = repo.unfiltered()