Skip to content

Pyflakes does not recognize locals() as a use #142

@pyflakes-bot

Description

@pyflakes-bot

Original report by ato2g-andrew on Launchpad:


See attached program for a trivial example of a common idiom:

"my special string %(with_a_variable)s"%locals()

I wouldn't expect pyflakes to know how to deal with an arbitrary dictionary in the right hand position, but the use of locals() means that certain variables are actually used!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions