Skip to content

Instantly share code, notes, and snippets.

Created December 2, 2013 23:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/7761146 to your computer and use it in GitHub Desktop.
Save anonymous/7761146 to your computer and use it in GitHub Desktop.
attachment for the BitBucket issue #15
--- a/rope/base/builtins.py 2011-08-06 17:26:01.551268025 +0430
+++ b/rope/base/builtins.py 2011-08-06 17:26:44.901331605 +0430
@@ -123,7 +123,9 @@
for name in dir(obj):
if name == 'None':
continue
- child = getattr(obj, name)
+ child = getattr(obj, name, None)
+ if child is None:
+ continue
pyobject = None
if inspect.isclass(child):
pyobject = BuiltinClass(child, {}, parent=parent)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment