# HG changeset patch # User Gregory Szorc # Date 2019-01-25 22:57:37 # Node ID e053053ceba771176244e127c7100bba392d1808 # Parent 56fcbac62f67d7e36adb3c4ff8a291d889c4608d wireprotov2server: don't attempt to cast command name I'm not sure why this was added. The command name should already be bytes. Differential Revision: https://phab.mercurial-scm.org/D5697 diff --git a/mercurial/wireprotov2server.py b/mercurial/wireprotov2server.py --- a/mercurial/wireprotov2server.py +++ b/mercurial/wireprotov2server.py @@ -745,7 +745,7 @@ def makecommandcachekeyfn(command, local # More granular cache key invalidation. b'localversion': localversion, # Cache keys are segmented by command. - b'command': pycompat.sysbytes(command), + b'command': command, # Throw in the media type and API version strings so changes # to exchange semantics invalid cache. b'mediatype': FRAMINGTYPE,