| Index: third_party/logilab/common/__init__.py
|
| ===================================================================
|
| --- third_party/logilab/common/__init__.py (revision 293047)
|
| +++ third_party/logilab/common/__init__.py (working copy)
|
| @@ -25,6 +25,9 @@
|
| :var IGNORED_EXTENSIONS: file extensions that may usually be ignored
|
| """
|
| __docformat__ = "restructuredtext en"
|
| +
|
| +from six.moves import range
|
| +
|
| from logilab.common.__pkginfo__ import version as __version__
|
|
|
| STD_BLACKLIST = ('CVS', '.svn', '.hg', 'debian', 'dist', 'build')
|
| @@ -57,8 +60,9 @@
|
| class nullobject(object):
|
| def __repr__(self):
|
| return '<nullobject>'
|
| - def __nonzero__(self):
|
| + def __bool__(self):
|
| return False
|
| + __nonzero__ = __bool__
|
|
|
| class tempattr(object):
|
| def __init__(self, obj, attr, value):
|
|
|