Skip to content

Commit

Permalink
ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
joshy committed Nov 7, 2024
1 parent 85daf73 commit 1e6e3a8
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions striprtf/striprtf
Original file line number Diff line number Diff line change
@@ -1,17 +1,14 @@
#!/usr/bin/env python
import argparse
import io

from striprtf.striprtf import rtf_to_text
from striprtf._version import __version__ as version
from striprtf._version import __version__ as version


def main():
parser = argparse.ArgumentParser()
parser.add_argument("rtf_file", type=argparse.FileType("r", encoding="UTF-8"))
parser.add_argument(
"--version", action="version", version="%s" % version
)
parser.add_argument("--version", action="version", version="%s" % version)
args = parser.parse_args()
in_rtf = args.rtf_file.read()
args.rtf_file.close()
Expand Down

0 comments on commit 1e6e3a8

Please sign in to comment.