Skip to content

Commit ab6b668

Browse files
committed
Make md5 calculate async
1 parent 28638c0 commit ab6b668

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jupyter_server/services/contents/fileio.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -478,5 +478,5 @@ async def _save_file(self, os_path, content, format):
478478
async def _get_md5(self, os_path):
479479
c, _ = await self._read_file(os_path, "byte")
480480
md5 = hashlib.md5() # noqa: S324
481-
md5.update(c)
481+
await run_sync(md5.update, c)
482482
return md5.hexdigest()

0 commit comments

Comments
 (0)