[SRU] flake8 cause trace error on double keyword argument
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-flake8 (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Artful |
Won't Fix
|
Undecided
|
Unassigned |
Bug Description
Context of the file:
#!/usr/bin/python
foobar(value=1, value=2)
flake8 bad_flake8.py
Process Process-1:
Traceback (most recent call last):
File "/usr/lib/
ast = self.processor.
File "/usr/lib/
return compile(
File "<string>", line 2
SyntaxError: keyword argument repeated
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/
self.run()
File "/usr/lib/
self.
File "/usr/lib/
checker.
File "/usr/lib/
self.
File "/usr/lib/
row, column = self._extract_
File "/usr/lib/
lines = physical_
AttributeError: 'NoneType' object has no attribute 'rstrip'
ProblemType: Bug
DistroRelease: Ubuntu 17.04
Package: flake8 3.2.1-1
ProcVersionSign
Uname: Linux 4.4.0-21-generic x86_64
ApportVersion: 2.20.4-0ubuntu4.1
Architecture: amd64
CurrentDesktop: X-Cinnamon
Date: Mon Jun 12 15:44:52 2017
EcryptfsInUse: Yes
InstallationDate: Installed on 2013-07-19 (1423 days ago)
InstallationMedia: Xubuntu 13.04 "Raring Ringtail" - Release i386 (20130423.1)
PackageArchitec
SourcePackage: python-flake8
UpgradeStatus: Upgraded to zesty on 2017-05-31 (12 days ago)
I reported it to upstream: https:/ /gitlab. com/pycqa/ flake8/ issues/ 340