[PATCH 2 of 8] check-seclevel: restore use of callable() since it was readded in Python 3.2

Augie Fackler raf at durin42.com
Tue Jun 24 13:37:38 CDT 2014


# HG changeset patch
# User Augie Fackler <raf at durin42.com>
# Date 1403529827 14400
#      Mon Jun 23 09:23:47 2014 -0400
# Node ID 7ebee84b9fcfb223f43de6800893771b399d1b0e
# Parent  f8c50a5f41dab292b81069fa3a898b070fd5b7fd
check-seclevel: restore use of callable() since it was readded in Python 3.2

diff --git a/doc/check-seclevel.py b/doc/check-seclevel.py
--- a/doc/check-seclevel.py
+++ b/doc/check-seclevel.py
@@ -87,7 +87,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],


More information about the Mercurial-devel mailing list