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

login
register
mail settings
Submitter phabricator
Date March 2, 2018, 8:26 p.m.
Message ID <1300d88062ecc25d4e0b3044c77c2561@localhost.localdomain>
Download mbox | patch
Permalink /patch/28721/
State Not Applicable
Headers show

Comments

phabricator - March 2, 2018, 8:26 p.m.
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




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

Patch

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 = {