Skip to content

Commit c507df0

Browse files
committed
fix typo
1 parent b7a1635 commit c507df0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

jupyter_drives/manager.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -193,8 +193,8 @@ async def get_contents(self, drive_name, path, special_type=False):
193193
# retrieve metadata of object
194194
metadata = await obs.head_async(self._content_managers[drive_name], path)
195195

196-
# for certain media type files, extracted contents need to be read as a byte array and decoded to base64 to be viewable in JupyterLab
197-
# the following extesnions correspond to a base64 file format or are of type PDF
196+
# for certain media type files, extracted content needs to be read as a byte array and decoded to base64 to be viewable in JupyterLab
197+
# the following extensions correspond to a base64 file format or are of type PDF
198198
ext = os.path.splitext(path)[1]
199199
if ext == '.pdf' or ext == '.svg' or ext == '.tif' or ext == '.tiff' or ext == '.jpg' or ext == '.jpeg' or ext == '.gif' or ext == '.png' or ext == '.bmp' or ext == '.webp':
200200
processed_content = base64.b64encode(content).decode("utf-8")

0 commit comments

Comments
 (0)