changeset 35836:d4e5b2653693

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
author Augie Fackler <augie@google.com>
date Wed, 17 Jan 2018 21:45:15 -0500
parents bf367a93f000
children d8f891ec5d7d
files mercurial/lsprof.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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: