diff options
author | Sylvain Thénault <sylvain.thenault@logilab.fr> | 2008-12-03 10:03:36 +0100 |
---|---|---|
committer | Sylvain Thénault <sylvain.thenault@logilab.fr> | 2008-12-03 10:03:36 +0100 |
commit | fc6a68b5523b1e65bd05af3931f199e2ab161edb (patch) | |
tree | dfb721c18af5d1bb5fdf5152ff52f7504bc367ed /utils.py | |
parent | 981405eb15d8bfeb5d92db138658ad530f8e2255 (diff) | |
download | pylint-git-fc6a68b5523b1e65bd05af3931f199e2ab161edb.tar.gz |
cleanup / lint fixes
Diffstat (limited to 'utils.py')
-rw-r--r-- | utils.py | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -385,7 +385,7 @@ class ReportsHandlerMixIn: from os.path import dirname, basename, splitext, exists, isdir, join, normpath from logilab.common.modutils import modpath_from_file, get_module_files, \ - file_from_modpath, is_relative + file_from_modpath def expand_modules(files_or_modules, black_list): """take a list of files/modules/packages and return the list of tuple @@ -413,8 +413,8 @@ def expand_modules(files_or_modules, black_list): errors.append( {'key' : 'F0003', 'mod': modname} ) continue except ImportError, ex: - errors.append( {'key': 'F0001', 'mod': modname, 'ex': ex} ) - continue + errors.append( {'key': 'F0001', 'mod': modname, 'ex': ex} ) + continue filepath = normpath(filepath) result.append( {'path': filepath, 'name': modname, 'basepath': filepath, 'basename': modname} ) |