D2560: util: add missing r prefix on some __setattr__ calls

durin42 (Augie Fackler) phabricator at mercurial-scm.org
Fri Mar 2 15:26:13 EST 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rHGf5427483eebe: util: add missing r prefix on some __setattr__ calls (authored by durin42, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D2560?vs=6377&id=6383

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

AFFECTED FILES
  mercurial/util.py

CHANGE DETAILS

diff --git a/mercurial/util.py b/mercurial/util.py
--- a/mercurial/util.py
+++ b/mercurial/util.py
@@ -509,8 +509,8 @@
     )
 
     def __init__(self, fh, observer):
-        object.__setattr__(self, '_orig', fh)
-        object.__setattr__(self, '_observer', observer)
+        object.__setattr__(self, r'_orig', fh)
+        object.__setattr__(self, r'_observer', observer)
 
     def __getattribute__(self, name):
         ours = {



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


More information about the Mercurial-devel mailing list