Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kazet committed May 21, 2024
1 parent d92ddc8 commit f835338
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions scan/libmailgoose/language.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,5 @@
from pathlib import Path


class Language(Enum):
pass


for line in open(Path(__file__).parent / "languages.txt"):
setattr(Language, line.strip(), line.strip())
with open(Path(__file__).parent / "languages.txt") as f:
Language = Enum("Language", {line.strip(): line.strip() for line in f})

0 comments on commit f835338

Please sign in to comment.