check-seclevel: restore use of callable() since it was readded in Python 3.2
authorAugie Fackler <raf@durin42.com>
Mon, 23 Jun 2014 09:23:47 -0400
changeset 21792 e15c991fe2ec
parent 21791 fb16f6da5b3b
child 21793 e0b29a0c36c4
check-seclevel: restore use of callable() since it was readded in Python 3.2
doc/check-seclevel.py
--- a/doc/check-seclevel.py	Mon Jun 23 09:22:53 2014 -0400
+++ b/doc/check-seclevel.py	Mon Jun 23 09:23:47 2014 -0400
@@ -14,7 +14,6 @@
 from mercurial.help import helptable
 from mercurial import extensions
 from mercurial import minirst
-from mercurial import util
 
 _verbose = False
 
@@ -87,7 +86,7 @@
 def checkhghelps():
     errorcnt = 0
     for names, sec, doc in helptable:
-        if util.safehasattr(doc, '__call__'):
+        if callable(doc):
             doc = doc()
         errorcnt += checkseclevel(doc,
                                   '%s help topic' % names[0],