diff options
author | Jason Kirtland <jek@discorporate.us> | 2007-08-01 06:14:26 +0000 |
---|---|---|
committer | Jason Kirtland <jek@discorporate.us> | 2007-08-01 06:14:26 +0000 |
commit | cb12333dd3d13e5c568fa41f241808a9ed5f95e1 (patch) | |
tree | 10d6cae1105ab7a0499673071f06e4e7b85cb7e7 | |
parent | cd2176d48d3996dabbc44205ff7cee344b30248f (diff) | |
download | sqlalchemy-cb12333dd3d13e5c568fa41f241808a9ed5f95e1.tar.gz |
Ignore __weakref__ methods. Not sure why they're bubbling up here- a Python 2.5 artifact?
-rw-r--r-- | doc/build/lib/docstring.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/doc/build/lib/docstring.py b/doc/build/lib/docstring.py index 5d33667c7..441aed900 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 |