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

login
register
mail settings
Submitter phabricator
Date March 2, 2018, 8:04 p.m.
Message ID <differential-rev-PHID-DREV-njdrtb53mmnwmedx4iyo-req@phab.mercurial-scm.org>
Download mbox | patch
Permalink /patch/28714/
State Superseded
Headers show

Comments

phabricator - March 2, 2018, 8:04 p.m.
durin42 created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REVISION SUMMARY
  1. skip-blame just a pair of r prefixes

REPOSITORY
  rHG Mercurial

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

AFFECTED FILES
  mercurial/util.py

CHANGE DETAILS




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