From: Jason Kirtland Date: Wed, 1 Aug 2007 06:14:26 +0000 (+0000) Subject: Ignore __weakref__ methods. Not sure why they're bubbling up here- a Python 2.5... X-Git-Tag: rel_0_4beta1~122 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cb12333dd3d13e5c568fa41f241808a9ed5f95e1;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git Ignore __weakref__ methods. Not sure why they're bubbling up here- a Python 2.5 artifact? --- diff --git a/doc/build/lib/docstring.py b/doc/build/lib/docstring.py index 5d33667c75..441aed900b 100644 --- a/doc/build/lib/docstring.py +++ b/doc/build/lib/docstring.py @@ -102,7 +102,9 @@ class ObjectDoc(AbstractDoc): self.classes.append(ObjectDoc(class_)) def _is_private_name(self, name): - if re.match(r'^__.*__$', name): + if name == '__weakref__': + return True + elif re.match(r'^__.*__$', name): return False elif name.startswith('_'): return True