Patchwork D3503: lock: pass sysstr to warnings module

login
register
mail settings
Submitter phabricator
Date May 8, 2018, 8:22 p.m.
Message ID <019a1116fbda0923e8e14d6856e014be@localhost.localdomain>
Download mbox | patch
Permalink /patch/31411/
State Not Applicable
Headers show

Comments

phabricator - May 8, 2018, 8:22 p.m.
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




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

Patch

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)