summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorent Xicluna <florent.xicluna@gmail.com>2013-03-30 10:28:15 +0100
committerFlorent Xicluna <florent.xicluna@gmail.com>2013-03-30 10:28:15 +0100
commit72449cccd9a1cadd6f41718cbbd6c38bd1cf2709 (patch)
treebe6c10b0266bb86ede53709839306ce69df0e2c7
parent99df08484fc800a53f6af7814390a210da448346 (diff)
downloadpyflakes-72449cccd9a1cadd6f41718cbbd6c38bd1cf2709.tar.gz
Drop support of `python -m pyflakes` on Python 2.5, because Python 2.6 does not have this feature at all
-rw-r--r--NEWS.txt2
-rw-r--r--pyflakes/__init__.py6
-rw-r--r--pyflakes/__main__.py1
3 files changed, 2 insertions, 7 deletions
diff --git a/NEWS.txt b/NEWS.txt
index 3da64cc..a142c55 100644
--- a/NEWS.txt
+++ b/NEWS.txt
@@ -1,6 +1,6 @@
0.6.x (unreleased):
- Add --version and --help options.
- - Support `python -m pyflakes`
+ - Support `python -m pyflakes` (Python 2.7 and Python 3.x).
- Do not report redefinition of variable for a variable used in a list
comprehension in a conditional.
- Do not report redefinition of variable for generator expressions and
diff --git a/pyflakes/__init__.py b/pyflakes/__init__.py
index eeed3e7..21ab09a 100644
--- a/pyflakes/__init__.py
+++ b/pyflakes/__init__.py
@@ -1,8 +1,2 @@
__version__ = '0.6.2a0'
-
-
-# Python 2.5 support for: python -m pyflakes
-if __name__ == '__main__':
- from pyflakes.api import main
- main(prog='pyflakes')
diff --git a/pyflakes/__main__.py b/pyflakes/__main__.py
index 4d4ddc9..a69e689 100644
--- a/pyflakes/__main__.py
+++ b/pyflakes/__main__.py
@@ -1,4 +1,5 @@
from pyflakes.api import main
+# python -m pyflakes (with Python >= 2.7)
if __name__ == '__main__':
main(prog='pyflakes')