summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Lee <IanLee1521@gmail.com>2016-05-30 15:17:43 -0700
committerIan Lee <IanLee1521@gmail.com>2016-05-30 15:17:43 -0700
commitc40150a7d06cbe1047502b836cc0d769e26364d6 (patch)
treecbe20756f56d0a4320fded08fcb87586306e2c51
parent99139d96a0f1d73c12576b9c62ea07511df67ea1 (diff)
downloadpep8-c40150a7d06cbe1047502b836cc0d769e26364d6.tar.gz
Updated deprecation warning to actually emit a warning
-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()