1
0
Fork 0

Merging upstream version 4.6.0+dfsg.

Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
Daniel Baumann 2025-02-09 20:22:51 +01:00
parent db08a7e438
commit 9d65518d11
Signed by: daniel
GPG key ID: FBB4F0E80A80222F
8 changed files with 49 additions and 9 deletions

View file

@ -1,6 +1,7 @@
from __future__ import annotations
import argparse
import sys
from typing import IO
from typing import NamedTuple
from typing import Sequence
@ -107,6 +108,13 @@ def _normalize_pragma(pragma: str) -> bytes:
def main(argv: Sequence[str] | None = None) -> int:
print(
'warning: this hook is deprecated and will be removed in a future '
'release because py2 is EOL. instead, use '
'https://github.com/asottile/pyupgrade',
file=sys.stderr,
)
parser = argparse.ArgumentParser(
'Fixes the encoding pragma of python files',
)