Add PathLike support to SQLiteSession (#3737)

This commit is contained in:
Noel Tautges
2022-02-20 02:50:18 -06:00
committed by GitHub
parent 0bc598c121
commit e80371b6d0

View File

@@ -39,7 +39,7 @@ class SQLiteSession(Session):
self.save_entities = True
if session_id:
self.filename = session_id
self.filename = os.fspath(session_id)
if not self.filename.endswith(EXTENSION):
self.filename += EXTENSION