Delete unused Enum and fileinput in maint file

This commit is contained in:
FAMASoon 2022-08-04 22:58:58 +09:00
parent d523ad495a
commit 817b811560
1 changed files with 1 additions and 2 deletions

View File

@ -12,7 +12,6 @@ Example:
"""
import re, subprocess
from enum import Enum
LINK_PATTERN = re.compile(r'''
\[([^\]]*)\] # Match [, then some non-] characters, then ]...
@ -125,7 +124,7 @@ def process(s):
return "".join(lnk.text() for lnk in items)
if __name__ == '__main__':
import fileinput, sys
import sys
if len(sys.argv) == 1 or sys.argv[1] == "-":
in_file = sys.stdin
else: