Add PathLike support to SQLiteSession

This commit is contained in:
Noel Tautges 2022-02-19 20:06:51 -06:00 committed by GitHub
parent 0bc598c121
commit 7e8347702e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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