changeset 37897:2efefde3af70

lock: pass sysstr to warnings module This makes test-lock.py slightly less broken, but it's still pretty far from passing. Differential Revision: https://phab.mercurial-scm.org/D3503
author Augie Fackler <augie@google.com>
date Fri, 27 Apr 2018 10:58:08 -0400
parents 03a09579c854
children 2ae6a3134362
files mercurial/lock.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/lock.py	Fri Apr 27 10:46:33 2018 -0400
+++ b/mercurial/lock.py	Fri Apr 27 10:58:08 2018 -0400
@@ -204,7 +204,7 @@
 
     def __del__(self):
         if self.held:
-            warnings.warn("use lock.release instead of del lock",
+            warnings.warn(r"use lock.release instead of del lock",
                     category=DeprecationWarning,
                     stacklevel=2)