xlwings-utils 25.0.1__tar.gz → 25.0.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of xlwings-utils might be problematic. Click here for more details.
- {xlwings_utils-25.0.1 → xlwings_utils-25.0.2}/PKG-INFO +1 -1
- {xlwings_utils-25.0.1 → xlwings_utils-25.0.2}/pyproject.toml +1 -1
- {xlwings_utils-25.0.1 → xlwings_utils-25.0.2}/xlwings_utils/xlwings_utils.py +6 -1
- {xlwings_utils-25.0.1 → xlwings_utils-25.0.2}/xlwings_utils.egg-info/PKG-INFO +1 -1
- {xlwings_utils-25.0.1 → xlwings_utils-25.0.2}/README.md +0 -0
- {xlwings_utils-25.0.1 → xlwings_utils-25.0.2}/setup.cfg +0 -0
- {xlwings_utils-25.0.1 → xlwings_utils-25.0.2}/tests/test_xlwings_utils.py +0 -0
- {xlwings_utils-25.0.1 → xlwings_utils-25.0.2}/xlwings_utils/__init__.py +0 -0
- {xlwings_utils-25.0.1 → xlwings_utils-25.0.2}/xlwings_utils.egg-info/SOURCES.txt +0 -0
- {xlwings_utils-25.0.1 → xlwings_utils-25.0.2}/xlwings_utils.egg-info/dependency_links.txt +0 -0
- {xlwings_utils-25.0.1 → xlwings_utils-25.0.2}/xlwings_utils.egg-info/requires.txt +0 -0
- {xlwings_utils-25.0.1 → xlwings_utils-25.0.2}/xlwings_utils.egg-info/top_level.txt +0 -0
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
# /_/\_\|_| \_/\_/ |_||_| |_| \__, ||___/ _____ \__,_| \__||_||_||___/
|
|
6
6
|
# |___/ |_____|
|
|
7
7
|
|
|
8
|
-
__version__ = "25.0.
|
|
8
|
+
__version__ = "25.0.2"
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
import dropbox
|
|
@@ -169,14 +169,19 @@ def read_dropbox(dropbox_path):
|
|
|
169
169
|
----
|
|
170
170
|
If REFRESH_TOKEN, APP_KEY and APP_SECRET environment variables are specified,
|
|
171
171
|
it is not necessary to call dropbox_init() prior to any dropbox function.
|
|
172
|
+
|
|
173
|
+
If the filesize does not match the metadata, as sometimes happens on pyodide, an IOError exception will be raised.
|
|
172
174
|
"""
|
|
173
175
|
|
|
174
176
|
_login_dbx()
|
|
175
177
|
metadata, response = dbx.files_download(dropbox_path)
|
|
176
178
|
file_content = response.content
|
|
179
|
+
if len(file_content) != metadata.size:
|
|
180
|
+
raise OSError('filesize does not match metadata')
|
|
177
181
|
return file_content
|
|
178
182
|
|
|
179
183
|
|
|
184
|
+
|
|
180
185
|
def write_dropbox(dropbox_path, contents):
|
|
181
186
|
_login_dbx()
|
|
182
187
|
"""
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|