Skip to content

Commit 242bae4

Browse files
committed
hotfix: open_mode set to rb instead of rb+.
1 parent 9cacdde commit 242bae4

5 files changed

Lines changed: 50 additions & 52 deletions

File tree

TextSpitter/core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ def get_contents(self):
8484
if isinstance(self.file, str)
8585
else self.get_file_type(self.file_name)
8686
)
87-
open_mode = "r" if "text" in mime_type else "rb+"
87+
open_mode = "r" if "text" in mime_type else "rb"
8888
with self.file.open(open_mode) as f:
8989
return f.read()
9090

core_requirements.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,17 @@
22
# uv pip compile core_requirements.in -o core_requirements.txt
33
colorama==0.4.6
44
# via loguru
5-
loguru==0.7.2
5+
loguru==0.7.3
66
# via -r core_requirements.in
77
lxml==5.3.0
88
# via python-docx
9-
pymupdf==1.24.14
9+
pymupdf==1.25.1
1010
# via -r core_requirements.in
1111
pypdf2==3.0.1
1212
# via -r core_requirements.in
1313
python-docx==1.1.2
1414
# via -r core_requirements.in
1515
typing-extensions==4.12.2
1616
# via python-docx
17-
win32-setctime==1.1.0
17+
win32-setctime==1.2.0
1818
# via loguru

dev_requirements.txt

Lines changed: 24 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# This file was autogenerated by uv via the following command:
22
# uv pip compile dev_requirements.in -o dev_requirements.txt
3-
anyio==4.6.2.post1
3+
anyio==4.7.0
44
# via
55
# httpx
66
# jupyter-server
@@ -10,7 +10,7 @@ argon2-cffi-bindings==21.2.0
1010
# via argon2-cffi
1111
arrow==1.3.0
1212
# via isoduration
13-
asttokens==2.4.1
13+
asttokens==3.0.0
1414
# via stack-data
1515
async-lru==2.0.4
1616
# via jupyterlab
@@ -44,7 +44,7 @@ colorama==0.4.6
4444
# ipython
4545
comm==0.2.2
4646
# via ipykernel
47-
debugpy==1.8.9
47+
debugpy==1.8.11
4848
# via ipykernel
4949
decorator==5.1.1
5050
# via ipython
@@ -54,27 +54,25 @@ docutils==0.21.2
5454
# via readme-renderer
5555
executing==2.1.0
5656
# via stack-data
57-
fastjsonschema==2.20.0
57+
fastjsonschema==2.21.1
5858
# via nbformat
5959
fqdn==1.5.1
6060
# via jsonschema
6161
h11==0.14.0
6262
# via httpcore
6363
httpcore==1.0.7
6464
# via httpx
65-
httpx==0.27.2
65+
httpx==0.28.1
6666
# via jupyterlab
6767
idna==3.10
6868
# via
6969
# anyio
7070
# httpx
7171
# jsonschema
7272
# requests
73-
importlib-metadata==8.5.0
74-
# via twine
7573
ipykernel==6.29.5
7674
# via jupyterlab
77-
ipython==8.29.0
75+
ipython==8.30.0
7876
# via ipykernel
7977
isoduration==20.11.0
8078
# via jsonschema
@@ -94,7 +92,7 @@ jinja2==3.1.4
9492
# jupyterlab
9593
# jupyterlab-server
9694
# nbconvert
97-
json5==0.9.28
95+
json5==0.10.0
9896
# via jupyterlab-server
9997
jsonpointer==3.0.0
10098
# via jsonschema
@@ -132,7 +130,7 @@ jupyter-server==2.14.2
132130
# notebook-shim
133131
jupyter-server-terminals==0.5.3
134132
# via jupyter-server
135-
jupyterlab==4.3.1
133+
jupyterlab==4.3.3
136134
# via -r dev_requirements.in
137135
jupyterlab-code-formatter==3.0.2
138136
# via -r dev_requirements.in
@@ -162,7 +160,7 @@ more-itertools==10.5.0
162160
# jaraco-functools
163161
mypy-extensions==1.0.0
164162
# via black
165-
nbclient==0.10.0
163+
nbclient==0.10.1
166164
# via nbconvert
167165
nbconvert==7.16.4
168166
# via jupyter-server
@@ -173,7 +171,7 @@ nbformat==5.10.4
173171
# nbconvert
174172
nest-asyncio==1.6.0
175173
# via ipykernel
176-
nh3==0.2.18
174+
nh3==0.2.19
177175
# via readme-renderer
178176
notebook-shim==0.2.4
179177
# via jupyterlab
@@ -188,19 +186,20 @@ packaging==24.2
188186
# jupyterlab-code-formatter
189187
# jupyterlab-server
190188
# nbconvert
189+
# twine
191190
pandocfilters==1.5.1
192191
# via nbconvert
193192
parso==0.8.4
194193
# via jedi
195194
pathspec==0.12.1
196195
# via black
197-
pkginfo==1.10.0
196+
pkginfo==1.12.0
198197
# via twine
199198
platformdirs==4.3.6
200199
# via
201200
# black
202201
# jupyter-core
203-
prometheus-client==0.21.0
202+
prometheus-client==0.21.1
204203
# via jupyter-server
205204
prompt-toolkit==3.0.48
206205
# via ipython
@@ -220,7 +219,7 @@ python-dateutil==2.9.0.post0
220219
# via
221220
# arrow
222221
# jupyter-client
223-
python-json-logger==2.0.7
222+
python-json-logger==3.2.0
224223
# via jupyter-events
225224
pywin32==308
226225
# via jupyter-core
@@ -264,25 +263,22 @@ rfc3986-validator==0.1.1
264263
# jupyter-events
265264
rich==13.9.4
266265
# via twine
267-
rpds-py==0.21.0
266+
rpds-py==0.22.3
268267
# via
269268
# jsonschema
270269
# referencing
271-
ruff==0.8.0
270+
ruff==0.8.3
272271
# via -r dev_requirements.in
273272
send2trash==1.8.3
274273
# via jupyter-server
275274
setuptools==75.6.0
276275
# via jupyterlab
277-
six==1.16.0
276+
six==1.17.0
278277
# via
279-
# asttokens
280278
# python-dateutil
281279
# rfc3339-validator
282280
sniffio==1.3.1
283-
# via
284-
# anyio
285-
# httpx
281+
# via anyio
286282
soupsieve==2.6
287283
# via beautifulsoup4
288284
stack-data==0.6.3
@@ -314,10 +310,14 @@ traitlets==5.14.3
314310
# nbclient
315311
# nbconvert
316312
# nbformat
317-
twine==5.1.1
313+
twine==6.0.1
318314
# via -r dev_requirements.in
319-
types-python-dateutil==2.9.0.20241003
315+
types-python-dateutil==2.9.0.20241206
320316
# via arrow
317+
typing-extensions==4.12.2
318+
# via
319+
# -c core_requirements.txt
320+
# anyio
321321
uri-template==1.3.0
322322
# via jsonschema
323323
urllib3==2.2.3
@@ -334,5 +334,3 @@ webencodings==0.5.1
334334
# tinycss2
335335
websocket-client==1.8.0
336336
# via jupyter-server
337-
zipp==3.21.0
338-
# via importlib-metadata

pyproject.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,13 +75,13 @@ classifiers = [
7575
]
7676
dependencies = [
7777
"colorama==0.4.6",
78-
"loguru==0.7.2",
78+
"loguru==0.7.3",
7979
"lxml==5.3.0",
80-
"pymupdf==1.24.14",
80+
"pymupdf==1.25.1",
8181
"pypdf2==3.0.1",
8282
"python-docx==1.1.2",
8383
"typing-extensions==4.12.2",
84-
"win32-setctime==1.1.0",
84+
"win32-setctime==1.2.0",
8585
]
8686

8787

uv.lock

Lines changed: 19 additions & 19 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)