# HG changeset patch # User Augie Fackler # Date 2018-04-27 14:58:08 # Node ID 2efefde3af70c6c91d88c004392cd7917706eff7 # Parent 03a09579c8549a81f11cc3a26adfdbb24a2aaf5c 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 diff --git a/mercurial/lock.py b/mercurial/lock.py --- a/mercurial/lock.py +++ b/mercurial/lock.py @@ -204,7 +204,7 @@ class lock(object): 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)