lsprof: use native string when peeking in __dict__
authorAugie Fackler <augie@google.com>
Wed, 17 Jan 2018 21:45:15 -0500
changeset 35836 d4e5b2653693
parent 35835 bf367a93f000
child 35837 d8f891ec5d7d
lsprof: use native string when peeking in __dict__ # skip-blame just an r prefix on a string literal Differential Revision: https://phab.mercurial-scm.org/D1895
mercurial/lsprof.py
--- a/mercurial/lsprof.py	Wed Jan 17 21:44:15 2018 -0500
+++ b/mercurial/lsprof.py	Wed Jan 17 21:45:15 2018 -0500
@@ -27,7 +27,7 @@
     def __init__(self, data):
         self.data = data
 
-    def sort(self, crit="inlinetime"):
+    def sort(self, crit=r"inlinetime"):
         """XXX docstring"""
         # profiler_entries isn't defined when running under PyPy.
         if profiler_entry: