Skip to content

Commit

Permalink
building: splash: replace lambda variable "l" with "x"
Browse files Browse the repository at this point in the history
Under flake8 6.0.0, the "l" variable name in lambda function
seems to trigger E741. Rename the offending variable to "x".
  • Loading branch information
rokm committed Nov 24, 2022
1 parent 2362eb9 commit 243377d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion PyInstaller/building/splash.py
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,7 @@ def generate_script(self):
if self.minify_script:
# Remove any documentation, empty lines and unnecessary spaces
script = '\n'.join(
line for line in map(lambda l: l.strip(), script.splitlines())
line for line in map(lambda x: x.strip(), script.splitlines())
if not line.startswith('#') # documentation
and line # empty lines
)
Expand Down

0 comments on commit 243377d

Please sign in to comment.