D3503: lock: pass sysstr to warnings module

durin42 (Augie Fackler) phabricator at mercurial-scm.org
Tue May 8 16:22:44 EDT 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rHG2efefde3af70: lock: pass sysstr to warnings module (authored by durin42, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D3503?vs=8571&id=8579

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

AFFECTED FILES
  mercurial/lock.py

CHANGE DETAILS

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



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


More information about the Mercurial-devel mailing list