Skip to content

Fix incorrect variable reference in parse_info()#185

Open
LetMeFly666 wants to merge 1 commit into
ts1:masterfrom
LetMeFly666:fix/lets_filename
Open

Fix incorrect variable reference in parse_info()#185
LetMeFly666 wants to merge 1 commit into
ts1:masterfrom
LetMeFly666:fix/lets_filename

Conversation

@LetMeFly666

Copy link
Copy Markdown

The function parse_info() accepts a filename argument but uses the
external variable f when invoking plutil.

This makes the function depend on a variable from outer scope and can
raise NameError if called independently.

Use the function parameter filename instead.

Signed-off-by: LetMeFly666 <Tisfy@qq.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant