Mike Hiretsky 11 years ago
parent 2ae2a6ae33
commit fca56b5662

@ -734,7 +734,7 @@ class FStab(object):
"""Rebuild cache from fstab file"""
self.cache = \
map(lambda x:map(lambda y:y.strip(),x.split()),
filter(lambda x:x and not x.lstrip().startswith("#"),
filter(lambda x:x.strip() and not x.lstrip().startswith("#"),
open(self.fstab_file,'r').read().split('\n')))
for data in self.cache:
convertDev = lambda x: path.realpath(x) if x.startswith('/') else x

Loading…
Cancel
Save