# HG changeset patch # User Pulkit Goyal # Date 2019-03-04 22:41:32 # Node ID 25420df879030226e9df238586b4a58f88aa42df # Parent 28842adf8ed5a21556e9f597c6adaf3b47ee0c9c py3: convert KEY_PRESSED value to bytes in crecord.py This was a str before. Differential Revision: https://phab.mercurial-scm.org/D6071 diff --git a/mercurial/crecord.py b/mercurial/crecord.py --- a/mercurial/crecord.py +++ b/mercurial/crecord.py @@ -20,6 +20,7 @@ from . import ( encoding, error, patch as patchmod, + pycompat, scmutil, util, ) @@ -1667,6 +1668,7 @@ are you sure you want to review/edit and 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"]: