diff options
author | Ceridwen <ceridwenv@gmail.com> | 2015-10-11 22:02:26 -0400 |
---|---|---|
committer | Ceridwen <ceridwenv@gmail.com> | 2015-10-11 22:02:26 -0400 |
commit | 344c9a75434b5cb07e5804000755abe145a5870f (patch) | |
tree | 3bea966ca7031183092bc992e1d8eded782ae1f9 /astroid/util.py | |
parent | 9192cdeb02557638d3cac4a5ce4b1719a7127905 (diff) | |
parent | f293a83d04ae5471b8e974aa994af062ebb3116b (diff) | |
download | astroid-git-344c9a75434b5cb07e5804000755abe145a5870f.tar.gz |
Merge upstream changes
Diffstat (limited to 'astroid/util.py')
-rw-r--r-- | astroid/util.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/astroid/util.py b/astroid/util.py index 5fb14340..9cd1d9dc 100644 --- a/astroid/util.py +++ b/astroid/util.py @@ -21,6 +21,7 @@ import importlib import sys +import warnings import lazy_object_proxy import six @@ -67,6 +68,7 @@ def _instancecheck(cls, other): def proxy_alias(alias_name, node_type): + """Get a Proxy from the given name to the given node type.""" proxy = type(alias_name, (lazy_object_proxy.Proxy,), {'__class__': object.__dict__['__class__'], '__instancecheck__': _instancecheck}) |