diff options
author | Ceridwen <ceridwenv@gmail.com> | 2015-11-06 17:55:24 -0500 |
---|---|---|
committer | Ceridwen <ceridwenv@gmail.com> | 2015-11-06 17:55:24 -0500 |
commit | 3ca0c7580187913bec11d0042a36906a2af36c91 (patch) | |
tree | c503daf5abd95f4cceac882761e927000ef65047 /astroid/util.py | |
parent | 797e89c30d44408a93b59489f79e5b69c5e124d1 (diff) | |
download | astroid-git-3ca0c7580187913bec11d0042a36906a2af36c91.tar.gz |
Rename Uninferable and instantiate_class, fix broken tests, improve
testing.
* Rename YES to Uninferable
* Rename instanciate_class to instantiate_class.
* Use six in test_namedtuple_advanced_inference.
* Fix test_file_from_module failure on PyPy.
* Add enum34 to unittest_brain.
* Add unittest_brain dependencies tox.ini.
Diffstat (limited to 'astroid/util.py')
-rw-r--r-- | astroid/util.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/astroid/util.py b/astroid/util.py index 20c44d72..439d967d 100644 --- a/astroid/util.py +++ b/astroid/util.py @@ -33,10 +33,10 @@ def reraise(exception): @object.__new__ -class YES(object): +class Uninferable(object): """Special inference object, which is returned when inference fails.""" def __repr__(self): - return 'YES' + return 'Uninferable' def __getattribute__(self, name): if name == 'next': @@ -66,3 +66,7 @@ def proxy_alias(alias_name, node_type): {'__class__': object.__dict__['__class__'], '__instancecheck__': _instancecheck}) return proxy(lambda: node_type) + + +# Backwards-compatibility aliases +YES = Uninferable |