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

Commit

Permalink
Trac #33213: deprecate SAGE_TMP.
Browse files Browse the repository at this point in the history
  • Loading branch information
orlitzky authored and dimpase committed Jun 13, 2022
1 parent 8cd6f0b commit c8c9d40
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/sage/misc/misc.py
Original file line number Diff line number Diff line change
Expand Up @@ -222,8 +222,15 @@ def SAGE_TMP():
sage: from sage.misc.misc import SAGE_TMP
sage: SAGE_TMP
doctest:warning...
DeprecationWarning: SAGE_TMP is deprecated; please use python's
"tempfile" module instead.
See https://trac.sagemath.org/33213 for details.
l'.../temp/...'
"""
from sage.misc.superseded import deprecation
deprecation(33213, "SAGE_TMP is deprecated; please use python's \"tempfile\" module instead.")
d = os.path.join(DOT_SAGE, 'temp', HOSTNAME, str(os.getpid()))
os.makedirs(d, exist_ok=True)
return d
Expand Down

0 comments on commit c8c9d40

Please sign in to comment.