summaryrefslogtreecommitdiff
path: root/pep8.py
diff options
context:
space:
mode:
Diffstat (limited to 'pep8.py')
-rwxr-xr-xpep8.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/pep8.py b/pep8.py
index 207af15..4af3c3e 100755
--- a/pep8.py
+++ b/pep8.py
@@ -2181,5 +2181,20 @@ def _main():
sys.stderr.write(str(report.total_errors) + '\n')
sys.exit(1)
+
+def _main_pep8():
+ """Entrypoint for pep8 commandline tool.
+
+ Warn of deprecation and advise users to switch to pycodestyle.
+ """
+ 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'
+ )
+ _main()
+
+
if __name__ == '__main__':
_main()