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:
@ -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
|
||||||
|
Reference in New Issue
Block a user