hgext/githelp.py
changeset 43506 9f70512ae2cf
parent 43503 313e3a279828
child 43793 29adf0a087a1
--- a/hgext/githelp.py	Sun Nov 10 07:30:14 2019 -0800
+++ b/hgext/githelp.py	Fri Nov 08 11:19:20 2019 -0800
@@ -92,9 +92,9 @@
         except getopt.GetoptError as ex:
             if "requires argument" in ex.msg:
                 raise
-            if (r'--' + ex.opt) in ex.msg:
+            if ('--' + ex.opt) in ex.msg:
                 flag = b'--' + pycompat.bytestr(ex.opt)
-            elif (r'-' + ex.opt) in ex.msg:
+            elif ('-' + ex.opt) in ex.msg:
                 flag = b'-' + pycompat.bytestr(ex.opt)
             else:
                 raise error.Abort(