changeset 39101:a2fa7247ca70

debugcommands: get_method should always return a sysstr Differential Revision: https://phab.mercurial-scm.org/D4257
author Augie Fackler <augie@google.com>
date Fri, 10 Aug 2018 03:31:23 -0400
parents 1419ba5e3b56
children 730e7d92a023
files mercurial/debugcommands.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/debugcommands.py	Fri Aug 10 03:16:02 2018 -0400
+++ b/mercurial/debugcommands.py	Fri Aug 10 03:31:23 2018 -0400
@@ -3201,7 +3201,7 @@
             # urllib.Request insists on using has_data() as a proxy for
             # determining the request method. Override that to use our
             # explicitly requested method.
-            req.get_method = lambda: method
+            req.get_method = lambda: pycompat.sysstr(method)
 
             try:
                 res = opener.open(req)