[Erp5-report] r38354 vincent - /erp5/trunk/products/ZSQLCatalog/SearchText/lexer.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Tue Sep 14 14:30:23 CEST 2010
Author: vincent
Date: Tue Sep 14 14:30:18 2010
New Revision: 38354
URL: http://svn.erp5.org?rev=38354&view=rev
Log:
Make update_docstrings use MRO instead of hardcoded lexer class.
Modified:
erp5/trunk/products/ZSQLCatalog/SearchText/lexer.py
Modified: erp5/trunk/products/ZSQLCatalog/SearchText/lexer.py
URL: http://svn.erp5.org/erp5/trunk/products/ZSQLCatalog/SearchText/lexer.py?rev=38354&r1=38353&r2=38354&view=diff
==============================================================================
--- erp5/trunk/products/ZSQLCatalog/SearchText/lexer.py [utf8] (original)
+++ erp5/trunk/products/ZSQLCatalog/SearchText/lexer.py [utf8] Tue Sep 14 14:30:18 2010
@@ -151,9 +151,10 @@ class lexer(object):
raise NotImplementedError
def update_docstrings(klass):
+ super_klass = super(klass, klass)
for property in dir(klass):
if property.startswith('t_'):
- source = getattr(lexer, property, None)
+ source = getattr(super_klass, property, None)
if callable(source):
destination = getattr(klass, property)
assert callable(destination)
More information about the Erp5-report
mailing list