diff --git a/product/ZSQLCatalog/SearchText/lexer.py b/product/ZSQLCatalog/SearchText/lexer.py
index b558a34d30928b8b698d5dd4e85c1d36356a4858..08b3fa904fabde50c76f3fd1850003475b240381 100644
--- a/product/ZSQLCatalog/SearchText/lexer.py
+++ b/product/ZSQLCatalog/SearchText/lexer.py
@@ -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)