obsolete: simplify obsolete feature enabling
authorPierre-Yves David <pierre-yves.david@logilab.fr>
Tue, 31 Jul 2012 14:26:41 +0200
changeset 412 7d30d1becfc4
parent 411 4c1997e41d18
child 413 984be08ef504
obsolete: simplify obsolete feature enabling We don't need setattr here
hgext/obsolete.py
--- a/hgext/obsolete.py	Thu Aug 02 18:52:15 2012 +0200
+++ b/hgext/obsolete.py	Tue Jul 31 14:26:41 2012 +0200
@@ -76,7 +76,7 @@
 from mercurial import cmdutil
 from mercurial import templatekw
 from mercurial import obsolete
-setattr(obsolete, '_enabled', True)
+obsolete._enabled = True
 
 try:
     from mercurial.localrepo import storecache