# HG changeset patch # User Martin Geisler # Date 1279195337 -7200 # Node ID 2d88369a27bfa2c8e3a8023aad518f8d5167d0ca # Parent f8576644a2228d3e67d1b4a0a2864362bfc96796 gendoc: remove call to callable for py3k compatibility diff -r f8576644a222 -r 2d88369a27bf doc/gendoc.py --- a/doc/gendoc.py Wed Jul 14 23:15:03 2010 -0300 +++ b/doc/gendoc.py Thu Jul 15 14:02:17 2010 +0200 @@ -110,7 +110,7 @@ ui.write(".. _%s:\n" % name) ui.write("\n") section(sec) - if callable(doc): + if hasattr(doc, '__call__'): doc = doc() ui.write(doc) ui.write("\n")