# HG changeset patch # User Augie Fackler # Date 1533886283 14400 # Node ID a2fa7247ca70976daa3986023e775fb254b6934d # Parent 1419ba5e3b560fbd6d06ad531d4e530700ad163a debugcommands: get_method should always return a sysstr Differential Revision: https://phab.mercurial-scm.org/D4257 diff -r 1419ba5e3b56 -r a2fa7247ca70 mercurial/debugcommands.py --- 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)