D2560: util: add missing r prefix on some __setattr__ calls
durin42 (Augie Fackler)
phabricator at mercurial-scm.org
Fri Mar 2 20:04:32 UTC 2018
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
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
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list