[FFe] upgrade to pyflakes 0.8.1
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
pyflakes (Ubuntu) |
Fix Released
|
Medium
|
Unassigned |
Bug Description
pyflakes in Ubuntu is 0.7.3-2 but in Debian it is 0.8.1-1. We should sync the sid to trusty, as it fixes a number of problems, most importantly, it honors text encodings in the -*- coding -*- line for Python 3 source files. This will fix an FTBFS for gdebi.
It will also fix compatibility with Python 3.4, the default Python 3 version in trusty. This is a leaf package with minimal reverse-depends so the risk of upgrade is low (but there are no known incompatibilities). It builds and installs just fine, and is lintian clean.
From upstream:
0.8.1 (2014-03-30):
- Detect the declared encoding in Python 3.
- Do not report redefinition of import in a local scope, if the
global name is used elsewhere in the module.
- Catch undefined variable in loop generator when it is also used as
loop variable.
- Report undefined name for `(a, b) = (1, 2)` but not for the general
unpacking `(a, b) = func()`.
- Correctly detect when an imported module is used in default arguments
of a method, when the method and the module use the same name.
- Distribute a universal wheel file.
0.8.0 (2014-03-22):
- Adapt for the AST in Python 3.4.
- Fix caret position on SyntaxError.
- Fix crash on Python 2.x with some doctest SyntaxError.
- Add tox.ini.
- The `PYFLAKES_
`PYFLAKES_
Doctest checking is now disabled by default; set the environment variable
to enable it.
- Correctly parse incremental `__all__ += [...]`.
- Catch return with arguments inside a generator (Python <= 3.2).
- Do not complain about `_` in doctests.
- Drop deprecated methods `pushFunctionScope` and `pushClassScope`.
Ack. Approved.