1
0
mirror of https://github.com/kellyjonbrazil/jc.git synced 2025-06-17 00:07:37 +02:00

remove commented code block

This commit is contained in:
Kelly Brazil
2019-11-15 09:57:25 -08:00
parent ce43c782f6
commit 9b453bcb84

View File

@ -106,7 +106,7 @@ def parse(data, raw=False, quiet=False):
if line.strip().find('#') == 0: if line.strip().find('#') == 0:
continue continue
line_list = line.split(maxsplit=5) line_list = line.split(maxsplit=6)
fs_spec = line_list[0] fs_spec = line_list[0]
fs_file = line_list[1] fs_file = line_list[1]
fs_vfstype = line_list[2] fs_vfstype = line_list[2]
@ -114,18 +114,6 @@ def parse(data, raw=False, quiet=False):
fs_freq = line_list[4] fs_freq = line_list[4]
fs_passno = line_list[5] fs_passno = line_list[5]
# fstab_list = fstab.split()
# comment_found = False
# for i, item in enumerate(fstab_list):
# if item.find('#') != -1:
# comment_found = True
# comment_item = i
# break
# if comment_found:
# fstab_list = fstab_list[:comment_item]
output_line['fs_spec'] = fs_spec output_line['fs_spec'] = fs_spec
output_line['fs_file'] = fs_file output_line['fs_file'] = fs_file
output_line['fs_vfstype'] = fs_vfstype output_line['fs_vfstype'] = fs_vfstype