diff doc/check-seclevel.py @ 21792:e15c991fe2ec

check-seclevel: restore use of callable() since it was readded in Python 3.2
author Augie Fackler <raf@durin42.com>
date Mon, 23 Jun 2014 09:23:47 -0400
parents 07f1ac17b722
children 67e6e55360d2
line wrap: on
line diff
--- 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],