summaryrefslogtreecommitdiff
path: root/pycodestyle.py
diff options
context:
space:
mode:
Diffstat (limited to 'pycodestyle.py')
-rwxr-xr-xpycodestyle.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/pycodestyle.py b/pycodestyle.py
index 5e90dcf..2ed42cf 100755
--- a/pycodestyle.py
+++ b/pycodestyle.py
@@ -55,6 +55,7 @@ import time
import inspect
import keyword
import tokenize
+import warnings
from optparse import OptionParser
from fnmatch import fnmatch
try:
@@ -2190,10 +2191,11 @@ def _main_pep8():
"""
print(
'Deprecation Warning:\n'
- 'pep8 has been renamed to pycodestyle and the use of the pep8 '
- 'executable will be removed in a future release. Please use '
- '`pycodestyle` instead.\n'
+ 'Use of the pep8 tool will be removed in a future release.\n'
+ 'Please install and use `pycodestyle` instead.\n'
)
+ warnings.warn('pep8 has been renamed to pycodestyle (GitHub issue #466)')
+
_main()