summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcpopa <devnull@localhost>2014-07-25 09:41:30 +0200
committercpopa <devnull@localhost>2014-07-25 09:41:30 +0200
commit311c357629590799256a1127d5be285e5b65747b (patch)
treecd53cce4e2f7c19d7849af51186570347c28308d
parent7766d93e26b87458a9d38fc711e564a44f692e80 (diff)
downloadastroid-311c357629590799256a1127d5be285e5b65747b.tar.gz
Don't use 0 and 1 anymore.
-rw-r--r--modutils.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/modutils.py b/modutils.py
index adeb9a4..1ed0baf 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