D4257: debugcommands: get_method should always return a sysstr

durin42 (Augie Fackler) phabricator at mercurial-scm.org
Fri Aug 10 12:07:41 EDT 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rHGa2fa7247ca70: debugcommands: get_method should always return a sysstr (authored by durin42, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D4257?vs=10309&id=10317

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

AFFECTED FILES
  mercurial/debugcommands.py

CHANGE DETAILS

diff --git a/mercurial/debugcommands.py b/mercurial/debugcommands.py
--- a/mercurial/debugcommands.py
+++ b/mercurial/debugcommands.py
@@ -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)



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


More information about the Mercurial-devel mailing list