D6071: py3: convert KEY_PRESSED value to bytes in crecord.py

pulkit (Pulkit Goyal) phabricator at mercurial-scm.org
Tue Mar 5 08:46:26 EST 2019


This revision was automatically updated to reflect the committed changes.
Closed by commit rHG25420df87903: py3: convert KEY_PRESSED value to bytes in crecord.py (authored by pulkit, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D6071?vs=14350&id=14357

REVISION DETAIL
  https://phab.mercurial-scm.org/D6071

AFFECTED FILES
  mercurial/crecord.py

CHANGE DETAILS

diff --git a/mercurial/crecord.py b/mercurial/crecord.py
--- a/mercurial/crecord.py
+++ b/mercurial/crecord.py
@@ -20,6 +20,7 @@
     encoding,
     error,
     patch as patchmod,
+    pycompat,
     scmutil,
     util,
 )
@@ -1667,6 +1668,7 @@
 
         Return true to exit the main loop.
         """
+        keypressed = pycompat.bytestr(keypressed)
         if keypressed in ["k", "KEY_UP"]:
             self.uparrowevent()
         if keypressed in ["K", "KEY_PPAGE"]:



To: pulkit, #hg-reviewers
Cc: mercurial-devel


More information about the Mercurial-devel mailing list