Skip to content

Commit 1da263c

Browse files
committed
Clean up comment
Signed-off-by: Chin Yeung Li <[email protected]>
1 parent 1e970f7 commit 1da263c

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

src/attributecode/model.py

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1008,13 +1008,6 @@ def load(self, location, use_mapping=False, mapping_file=None):
10081008
input_text = txt.read()
10091009
# Check for duplicated key
10101010
yaml.load(input_text, Loader=util.NoDuplicateLoader)
1011-
'''
1012-
dup_keys = check_duplicate_keys_about_file(input_text)
1013-
if dup_keys:
1014-
msg = ('Duplicated key name(s): %(dup_keys)s' % locals())
1015-
errors.append(Error(ERROR, msg % locals()))
1016-
else:
1017-
'''
10181011
"""
10191012
The running_inventory defines if the current process is 'inventory' or not.
10201013
This is used for the validation of the about_resource_path.
@@ -1026,7 +1019,7 @@ def load(self, location, use_mapping=False, mapping_file=None):
10261019
"""
10271020
running_inventory = True
10281021
# wrap the value of the boolean field in quote to avoid
1029-
# automatically convertion from yaml.load
1022+
# automatically conversion from yaml.load
10301023
input = util.wrap_boolean_value(input_text)
10311024
errs = self.load_dict(saneyaml.load(input), base_dir, running_inventory, use_mapping, mapping_file)
10321025
errors.extend(errs)

0 commit comments

Comments
 (0)