Commit eefef3ed authored by Michel Pelletier's avatar Michel Pelletier

Removed more than 4 character method name restriction. Seems silly,

especially in the light that the given examples are push and pop!
parent e033ac79
...@@ -14,7 +14,7 @@ def _ii(klass, items): ...@@ -14,7 +14,7 @@ def _ii(klass, items):
for k, v in klass.__dict__.items(): for k, v in klass.__dict__.items():
if type(v) is not FunctionType or not v.__doc__: if type(v) is not FunctionType or not v.__doc__:
continue continue
if k[:1]=='_' and not (len(k) > 4 and k[:2]=='__' and k[-2:]=='__'): if k[:1]=='_' and not (k[:2]=='__' and k[-2:]=='__'):
continue continue
items[k]=v items[k]=v
for b in klass.__bases__: _ii(b) for b in klass.__bases__: _ii(b)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment