changeset 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 fb16f6da5b3b
children e0b29a0c36c4
files doc/check-seclevel.py
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
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],