[Python-apps-team] Bug#742995: pyflakes: AttributeError: 'ClassScope' object has no attribute 'returnValue'
Jakub Wilk
jwilk at debian.org
Sat Mar 29 20:59:22 UTC 2014
Package: pyflakes
Version: 0.8-1
$ pyflakes test.py
Traceback (most recent call last):
File "/usr/bin/pyflakes", line 9, in <module>
load_entry_point('pyflakes==0.8', 'console_scripts', 'pyflakes')()
File "/usr/lib/python2.7/dist-packages/pyflakes/api.py", line 130, in main
warnings = checkRecursive(args, reporter)
File "/usr/lib/python2.7/dist-packages/pyflakes/api.py", line 121, in checkRecursive
warnings += checkPath(sourcePath, reporter)
File "/usr/lib/python2.7/dist-packages/pyflakes/api.py", line 88, in checkPath
return check(codestr, filename, reporter)
File "/usr/lib/python2.7/dist-packages/pyflakes/api.py", line 60, in check
w = checker.Checker(tree, filename)
File "/usr/lib/python2.7/dist-packages/pyflakes/checker.py", line 255, in __init__
self.handleChildren(tree)
File "/usr/lib/python2.7/dist-packages/pyflakes/checker.py", line 517, in handleChildren
self.handleNode(node, tree)
File "/usr/lib/python2.7/dist-packages/pyflakes/checker.py", line 552, in handleNode
handler(node)
File "/usr/lib/python2.7/dist-packages/pyflakes/checker.py", line 817, in CLASSDEF
self.handleNode(stmt, node)
File "/usr/lib/python2.7/dist-packages/pyflakes/checker.py", line 552, in handleNode
handler(node)
File "/usr/lib/python2.7/dist-packages/pyflakes/checker.py", line 701, in RETURN
if node.value and not self.scope.returnValue:
AttributeError: 'ClassScope' object has no attribute 'returnValue'
--
Jakub Wilk
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test.py
Type: text/x-python
Size: 23 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/python-apps-team/attachments/20140329/34491623/attachment.py>
More information about the Python-apps-team
mailing list