|
1 # -*- coding: utf-8 -*- |
|
2 |
|
3 # Copyright (c) 2010 - 2014 Detlev Offenbach <detlev@die-offenbachs.de> |
|
4 # |
|
5 |
|
6 """ |
|
7 Package containg pyflakes adapted for Qt. |
|
8 """ |
|
9 |
|
10 """ License |
|
11 Copyright 2005-2011 Divmod, Inc. |
|
12 Copyright 2013 Florent Xicluna |
|
13 |
|
14 Permission is hereby granted, free of charge, to any person obtaining |
|
15 a copy of this software and associated documentation files (the |
|
16 "Software"), to deal in the Software without restriction, including |
|
17 without limitation the rights to use, copy, modify, merge, publish, |
|
18 distribute, sublicense, and/or sell copies of the Software, and to |
|
19 permit persons to whom the Software is furnished to do so, subject to |
|
20 the following conditions: |
|
21 |
|
22 The above copyright notice and this permission notice shall be |
|
23 included in all copies or substantial portions of the Software. |
|
24 |
|
25 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, |
|
26 EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF |
|
27 MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND |
|
28 NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE |
|
29 LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION |
|
30 OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION |
|
31 WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
|
32 """ |
|
33 |
|
34 """ Changes |
|
35 0.7.3 (2013-07-02): |
|
36 - Do not report undefined name for generator expression and dict or |
|
37 set comprehension at class level. |
|
38 - Deprecate `Checker.pushFunctionScope` and `Checker.pushClassScope`: |
|
39 use `Checker.pushScope` instead. |
|
40 - Remove dependency on Unittest2 for the tests. |
|
41 |
|
42 0.7.2 (2013-04-24): |
|
43 - Fix computation of `DoctestSyntaxError.lineno` and `col`. |
|
44 - Add boolean attribute `Checker.withDoctest` to ignore doctests. |
|
45 - If environment variable `PYFLAKES_NODOCTEST` is set, skip doctests. |
|
46 - Environment variable `PYFLAKES_BUILTINS` accepts a comma-separated |
|
47 list of additional built-in names. |
|
48 |
|
49 0.7.1 (2013-04-23): |
|
50 - File `bin/pyflakes` was missing in tarball generated with distribute. |
|
51 - Fix reporting errors in non-ASCII filenames (Python 2.x). |
|
52 |
|
53 0.7.0 (2013-04-17): |
|
54 - Add --version and --help options. |
|
55 - Support `python -m pyflakes` (Python 2.7 and Python 3.x). |
|
56 - Add attribute `Message.col` to report column offset. |
|
57 - Do not report redefinition of variable for a variable used in a list |
|
58 comprehension in a conditional. |
|
59 - Do not report redefinition of variable for generator expressions and |
|
60 set or dict comprehensions. |
|
61 - Do not report undefined name when the code is protected with a |
|
62 `NameError` exception handler. |
|
63 - Do not report redefinition of variable when unassigning a module imported |
|
64 for its side-effect. |
|
65 - Support special locals like `__tracebackhide__` for py.test. |
|
66 - Support checking doctests. |
|
67 - Fix issue with Turkish locale where `'i'.upper() == 'i'` in Python 2. |
|
68 |
|
69 0.6.1 (2013-01-29): |
|
70 - Fix detection of variables in augmented assignments. |
|
71 |
|
72 0.6.0 (2013-01-29): |
|
73 - Support Python 3 up to 3.3, based on the pyflakes3k project. |
|
74 - Preserve compatibility with Python 2.5 and all recent versions of Python. |
|
75 - Support custom reporters in addition to the default Reporter. |
|
76 - Allow function redefinition for modern property construction via |
|
77 property.setter/deleter. |
|
78 - Fix spurious redefinition warnings in conditionals. |
|
79 - Do not report undefined name in __all__ if import * is used. |
|
80 - Add WindowsError as a known built-in name on all platforms. |
|
81 - Support specifying additional built-ins in the `Checker` constructor. |
|
82 - Don't issue Unused Variable warning when using locals() in current scope. |
|
83 - Handle problems with the encoding of source files. |
|
84 - Remove dependency on Twisted for the tests. |
|
85 - Support `python setup.py test` and `python setup.py develop`. |
|
86 - Create script using setuptools `entry_points` to support all platforms, |
|
87 including Windows. |
|
88 |
|
89 0.5.0 (2011-09-02): |
|
90 - Convert pyflakes to use newer _ast infrastructure rather than compiler. |
|
91 - Support for new syntax in 2.7 (including set literals, set comprehensions, |
|
92 and dictionary comprehensions). |
|
93 - Make sure class names don't get bound until after class definition. |
|
94 """ |
|
95 |
|
96 __version__ = '0.7.3' |