diff options
author | Claudiu Popa <pcmanticore@gmail.com> | 2014-07-25 09:41:30 +0200 |
---|---|---|
committer | Claudiu Popa <pcmanticore@gmail.com> | 2014-07-25 09:41:30 +0200 |
commit | 109dc2640c1e01a83f8076b52321bcdec033af08 (patch) | |
tree | c73c0d1f5af523c41fa734c7fa4275fef9bb5652 /modutils.py | |
parent | 8808db24b0f21c2fb2665391b4569b0a24ff8239 (diff) | |
download | astroid-git-109dc2640c1e01a83f8076b52321bcdec033af08.tar.gz |
Don't use 0 and 1 anymore.
Diffstat (limited to 'modutils.py')
-rw-r--r-- | modutils.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/modutils.py b/modutils.py index adeb9a49..1ed0bafe 100644 --- a/modutils.py +++ b/modutils.py @@ -422,17 +422,17 @@ def is_standard_module(modname, std_path=(STD_LIB_DIR,)): except ImportError, ex: # import failed, i'm probably not so wrong by supposing it's # not standard... - return 0 + return False # modules which are not living in a file are considered standard # (sys and __builtin__ for instance) if filename is None: - return 1 + return True filename = abspath(filename) if filename.startswith(EXT_LIB_DIR): - return 0 + return True for path in std_path: if filename.startswith(abspath(path)): - return 1 + return return True return False |