Patchwork D3503: lock: pass sysstr to warnings module

login
register
mail settings
Submitter phabricator
Date May 8, 2018, 7:27 p.m.
Message ID <differential-rev-PHID-DREV-hr2bvrprbhlcwph3t3bp-req@phab.mercurial-scm.org>
Download mbox | patch
Permalink /patch/31403/
State Superseded
Headers show

Comments

phabricator - May 8, 2018, 7:27 p.m.
durin42 created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REVISION SUMMARY
  This makes test-lock.py slightly less broken, but it's still pretty
  far from passing.

REPOSITORY
  rHG Mercurial

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

AFFECTED FILES
  mercurial/lock.py

CHANGE DETAILS




To: durin42, #hg-reviewers
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)