File tree 2 files changed +5
-1
lines changed
2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -127,6 +127,9 @@ The following arguments are available:
127
127
removes UTF-8 byte order marker
128
128
129
129
#### ` fix-encoding-pragma `
130
+
131
+ _ Deprecated since py2 is EOL - use [ pyupgrade] ( https://github.com/asottile/pyupgrade ) instead._
132
+
130
133
Add ` # -*- coding: utf-8 -*- ` to the top of python files.
131
134
- To remove the coding pragma pass ` --remove ` (useful in a python3-only codebase)
132
135
Original file line number Diff line number Diff line change @@ -110,7 +110,8 @@ def _normalize_pragma(pragma: str) -> bytes:
110
110
def main (argv : Sequence [str ] | None = None ) -> int :
111
111
print (
112
112
'warning: this hook is deprecated and will be removed in a future '
113
- 'release because py2 is EOL' ,
113
+ 'release because py2 is EOL. instead, use '
114
+ 'https://github.com/asottile/pyupgrade' ,
114
115
file = sys .stderr ,
115
116
)
116
117
You can’t perform that action at this time.
0 commit comments