Remove stale comments.
This commit is contained in:
parent
aa57757395
commit
5f0b63bb95
2 changed files with 4 additions and 4 deletions
|
|
@ -24,7 +24,7 @@ class RtfConverter(DocumentConverter):
|
||||||
self,
|
self,
|
||||||
file_stream: BinaryIO,
|
file_stream: BinaryIO,
|
||||||
stream_info: StreamInfo,
|
stream_info: StreamInfo,
|
||||||
**kwargs: Any, # Options to pass to the converter
|
**kwargs: Any,
|
||||||
) -> bool:
|
) -> bool:
|
||||||
|
|
||||||
# Implement logic to check if the file stream is an RTF file
|
# Implement logic to check if the file stream is an RTF file
|
||||||
|
|
@ -36,7 +36,7 @@ class RtfConverter(DocumentConverter):
|
||||||
self,
|
self,
|
||||||
file_stream: BinaryIO,
|
file_stream: BinaryIO,
|
||||||
stream_info: StreamInfo,
|
stream_info: StreamInfo,
|
||||||
**kwargs: Any, # Options to pass to the converter
|
**kwargs: Any,
|
||||||
) -> DocumentConverterResult:
|
) -> DocumentConverterResult:
|
||||||
|
|
||||||
# Implement logic to convert the file stream to Markdown
|
# Implement logic to convert the file stream to Markdown
|
||||||
|
|
|
||||||
|
|
@ -45,7 +45,7 @@ class RtfConverter(DocumentConverter):
|
||||||
self,
|
self,
|
||||||
file_stream: BinaryIO,
|
file_stream: BinaryIO,
|
||||||
stream_info: StreamInfo,
|
stream_info: StreamInfo,
|
||||||
**kwargs: Any, # Options to pass to the converter
|
**kwargs: Any,
|
||||||
) -> bool:
|
) -> bool:
|
||||||
mimetype = (stream_info.mimetype or "").lower()
|
mimetype = (stream_info.mimetype or "").lower()
|
||||||
extension = (stream_info.extension or "").lower()
|
extension = (stream_info.extension or "").lower()
|
||||||
|
|
@ -63,7 +63,7 @@ class RtfConverter(DocumentConverter):
|
||||||
self,
|
self,
|
||||||
file_stream: BinaryIO,
|
file_stream: BinaryIO,
|
||||||
stream_info: StreamInfo,
|
stream_info: StreamInfo,
|
||||||
**kwargs: Any, # Options to pass to the converter
|
**kwargs: Any,
|
||||||
) -> DocumentConverterResult:
|
) -> DocumentConverterResult:
|
||||||
# Read the file stream into an str using hte provided charset encoding, or using the system default
|
# Read the file stream into an str using hte provided charset encoding, or using the system default
|
||||||
encoding = stream_info.charset or locale.getpreferredencoding()
|
encoding = stream_info.charset or locale.getpreferredencoding()
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue