diff options
author | Claudiu Popa <cpopa@cloudbasesolutions.com> | 2015-05-19 23:40:27 +0300 |
---|---|---|
committer | Claudiu Popa <cpopa@cloudbasesolutions.com> | 2015-05-19 23:40:27 +0300 |
commit | 3fc6f0048df6f0c6900896d88bbf8dc7f5b06836 (patch) | |
tree | 9e6f361aae8f63ab9312b94f8cff52b76de1f26e /astroid/modutils.py | |
parent | 6ca4d496aeb0c5c0f9d2d0f700a2d08091d8243a (diff) | |
download | astroid-git-3fc6f0048df6f0c6900896d88bbf8dc7f5b06836.tar.gz |
Fix pylint warnings over astroid, update the list of disabled messages in pylintrc.
Diffstat (limited to 'astroid/modutils.py')
-rw-r--r-- | astroid/modutils.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/astroid/modutils.py b/astroid/modutils.py index 5241f581..be8580ad 100644 --- a/astroid/modutils.py +++ b/astroid/modutils.py @@ -562,7 +562,9 @@ def _search_zip(modpath, pic): if not importer.find_module(os.path.sep.join(modpath)): raise ImportError('No module named %s in %s/%s' % ( '.'.join(modpath[1:]), filepath, modpath)) - return PY_ZIPMODULE, os.path.abspath(filepath) + os.path.sep + os.path.sep.join(modpath), filepath + return (PY_ZIPMODULE, + os.path.abspath(filepath) + os.path.sep + os.path.sep.join(modpath), + filepath) raise ImportError('No module named %s' % '.'.join(modpath)) @@ -627,7 +629,7 @@ def _module_file(modpath, path=None): # Don't forget to close the stream to avoid # spurious ResourceWarnings. if stream: - stream.close() + stream.close() if checkeggs and mp_filename: fullabspath = [_cache_normalize_path(x) for x in _path] |