remove unused import (#2679)

### What problem does this PR solve?

### Type of change

- [x] Refactoring
This commit is contained in:
yqkcn
2024-09-30 16:59:39 +08:00
committed by GitHub
parent ae5a877ed4
commit 570ad420a8
7 changed files with 10 additions and 18 deletions

View File

@ -25,6 +25,7 @@ from functools import reduce
from markdown import markdown
from docx.image.exceptions import UnrecognizedImageError
class Docx(DocxParser):
def __init__(self):
pass
@ -93,7 +94,7 @@ class Docx(DocxParser):
tbls = []
for tb in self.doc.tables:
html= "<table>"
html = "<table>"
for r in tb.rows:
html += "<tr>"
i = 0
@ -146,8 +147,6 @@ class Pdf(PdfParser):
class Markdown(MarkdownParser):
def __call__(self, filename, binary=None):
txt = ""
tbls = []
if binary:
encoding = find_codec(binary)
txt = binary.decode(encoding, errors="ignore")