Skip to content

Commit c40150a

Browse files
committed
Updated deprecation warning to actually emit a warning
1 parent 99139d9 commit c40150a

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

pycodestyle.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@
5555
import inspect
5656
import keyword
5757
import tokenize
58+
import warnings
5859
from optparse import OptionParser
5960
from fnmatch import fnmatch
6061
try:
@@ -2190,10 +2191,11 @@ def _main_pep8():
21902191
"""
21912192
print(
21922193
'Deprecation Warning:\n'
2193-
'pep8 has been renamed to pycodestyle and the use of the pep8 '
2194-
'executable will be removed in a future release. Please use '
2195-
'`pycodestyle` instead.\n'
2194+
'Use of the pep8 tool will be removed in a future release.\n'
2195+
'Please install and use `pycodestyle` instead.\n'
21962196
)
2197+
warnings.warn('pep8 has been renamed to pycodestyle (GitHub issue #466)')
2198+
21972199
_main()
21982200

21992201

0 commit comments

Comments
 (0)