Skip to content
This repository was archived by the owner on Jan 30, 2023. It is now read-only.

Commit ce63cf5

Browse files
author
Matthias Koeppe
committed
sage.misc.persist: Make import for SAGE_DB local to functions
1 parent 13b4090 commit ce63cf5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/sage/misc/persist.pyx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ from textwrap import dedent
4040
import zlib; comp = zlib
4141
import bz2; comp_other = bz2
4242

43-
from .misc import SAGE_DB
4443
from .sage_unittest import TestSuite
4544

4645

@@ -1124,6 +1123,7 @@ def db(name):
11241123
11251124
The database directory is ``$HOME/.sage/db``.
11261125
"""
1126+
from .misc import SAGE_DB
11271127
return load('%s/%s'%(SAGE_DB,name))
11281128
11291129
@@ -1136,4 +1136,5 @@ def db_save(x, name=None):
11361136
try:
11371137
x.db(name)
11381138
except AttributeError:
1139+
from .misc import SAGE_DB
11391140
save(x, '%s/%s'%(SAGE_DB,name))

0 commit comments

Comments
 (0)