mirror of
https://github.com/Unstructured-IO/unstructured.git
synced 2025-11-02 19:13:13 +00:00
fix: Fix typo in function call (#491)
Closes GitHub Issue #487. Fixed typo in call to exactly_one in partition_json.
This commit is contained in:
parent
5657378602
commit
3a61046307
@ -1,4 +1,4 @@
|
|||||||
## 0.5.13-dev6
|
## 0.5.13-dev7
|
||||||
|
|
||||||
### Enhancements
|
### Enhancements
|
||||||
|
|
||||||
@ -10,6 +10,7 @@
|
|||||||
|
|
||||||
### Fixes
|
### Fixes
|
||||||
|
|
||||||
|
* Fixed typo in call to `exactly_one` in `partition_json`
|
||||||
* unstructured-documents encode xml string if document_tree is `None` in `_read_xml`.
|
* unstructured-documents encode xml string if document_tree is `None` in `_read_xml`.
|
||||||
* Update to `_read_xml` so that Markdown files with embedded HTML process correctly.
|
* Update to `_read_xml` so that Markdown files with embedded HTML process correctly.
|
||||||
* Fallback to "fast" strategy only emits a warning if the user specifies the "hi_res" strategy.
|
* Fallback to "fast" strategy only emits a warning if the user specifies the "hi_res" strategy.
|
||||||
|
|||||||
@ -1 +1 @@
|
|||||||
__version__ = "0.5.13-dev6" # pragma: no cover
|
__version__ = "0.5.13-dev7" # pragma: no cover
|
||||||
|
|||||||
@ -18,7 +18,7 @@ def partition_json(
|
|||||||
if text is not None and text.strip() == "" and not file and not filename:
|
if text is not None and text.strip() == "" and not file and not filename:
|
||||||
return []
|
return []
|
||||||
|
|
||||||
exactly_one(filenmae=filename, file=file, text=text)
|
exactly_one(filename=filename, file=file, text=text)
|
||||||
|
|
||||||
if filename is not None:
|
if filename is not None:
|
||||||
with open(filename, encoding="utf8") as f:
|
with open(filename, encoding="utf8") as f:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user