[py-svn] r37931 - py/trunk/py/apigen
guido at codespeak.net
guido at codespeak.net
Sun Feb 4 22:49:45 CET 2007
Author: guido
Date: Sun Feb 4 22:49:44 2007
New Revision: 37931
Modified:
py/trunk/py/apigen/htmlgen.py
Log:
Made that the __init__ method is the first method displayed.
Modified: py/trunk/py/apigen/htmlgen.py
==============================================================================
--- py/trunk/py/apigen/htmlgen.py (original)
+++ py/trunk/py/apigen/htmlgen.py Sun Feb 4 22:49:44 2007
@@ -417,6 +417,9 @@
methods = self.dsa.get_class_methods(dotted_name)
if methods:
ret.append(H.h2('methods:'))
+ if '__init__' in methods:
+ methods.remove('__init__')
+ methods.insert(0, '__init__')
for method in methods:
ret += self.build_callable_view('%s.%s' % (dotted_name,
method))
More information about the pytest-commit
mailing list