diff --git a/src/sage/combinat/designs/ext_rep.py b/src/sage/combinat/designs/ext_rep.py index 57f3b7eb636..533d22e865d 100644 --- a/src/sage/combinat/designs/ext_rep.py +++ b/src/sage/combinat/designs/ext_rep.py @@ -42,7 +42,7 @@ from urllib.request import urlopen -from sage.misc.all import tmp_filename +from sage.misc.temporary_file import tmp_filename XML_NAMESPACE = 'http://designtheory.org/xml-namespace' diff --git a/src/sage/databases/sql_db.py b/src/sage/databases/sql_db.py index 5a14e45be94..8cbc2d0f34f 100644 --- a/src/sage/databases/sql_db.py +++ b/src/sage/databases/sql_db.py @@ -80,7 +80,7 @@ import sqlite3 as sqlite import os import re -from sage.misc.all import tmp_filename +from sage.misc.temporary_file import tmp_filename from sage.structure.sage_object import SageObject sqlite_keywords = ['ABORT','ACTION','ADD','AFTER','ALL','ALTER','ANALYZE', diff --git a/src/sage/interfaces/phc.py b/src/sage/interfaces/phc.py index bfd0806c97c..ee95eb99e19 100644 --- a/src/sage/interfaces/phc.py +++ b/src/sage/interfaces/phc.py @@ -36,7 +36,7 @@ import pexpect import random -from sage.misc.all import tmp_filename +from sage.misc.temporary_file import tmp_filename from sage.rings.real_mpfr import RR from sage.rings.all import CC from sage.rings.integer import Integer diff --git a/src/sage/misc/citation.pyx b/src/sage/misc/citation.pyx index 19231769501..0fdd53ae5ff 100644 --- a/src/sage/misc/citation.pyx +++ b/src/sage/misc/citation.pyx @@ -3,7 +3,7 @@ Dependency usage tracking for citations """ -from sage.misc.all import tmp_filename +from sage.misc.temporary_file import tmp_filename from sage.env import SAGE_LOCAL, SAGE_VENV systems = {} diff --git a/src/sage/misc/persist.pyx b/src/sage/misc/persist.pyx index 2a3a61fdce0..1f5aee9762d 100644 --- a/src/sage/misc/persist.pyx +++ b/src/sage/misc/persist.pyx @@ -1111,7 +1111,7 @@ def unpickle_all(dir, debug=False, run_test_suite=False): # This could use instead Python's tarfile module if dir.endswith('.tar.bz2'): # create a temporary directory - from sage.misc.all import tmp_dir + from sage.misc.temporary_file import tmp_dir T = tmp_dir() # extract tarball to it os.system('cd "%s"; bunzip2 -c "%s" | tar fx - '%(T, os.path.abspath(dir))) diff --git a/src/sage/repl/ipython_extension.py b/src/sage/repl/ipython_extension.py index ded5cdbde78..0898c5334e0 100644 --- a/src/sage/repl/ipython_extension.py +++ b/src/sage/repl/ipython_extension.py @@ -35,7 +35,7 @@ sage: import os, re sage: from sage.repl.interpreter import get_test_shell - sage: from sage.misc.all import tmp_dir + sage: from sage.misc.temporary_file import tmp_dir sage: shell = get_test_shell() sage: TMP = tmp_dir() @@ -106,7 +106,7 @@ def runfile(self, s): sage: import os sage: from sage.repl.interpreter import get_test_shell - sage: from sage.misc.all import tmp_dir + sage: from sage.misc.temporary_file import tmp_dir sage: shell = get_test_shell() sage: tmp = os.path.join(tmp_dir(), 'run_cell.py') sage: with open(tmp, 'w') as f: diff --git a/src/sage/sat/solvers/dimacs.py b/src/sage/sat/solvers/dimacs.py index abc94569f59..7fb9ef7c667 100644 --- a/src/sage/sat/solvers/dimacs.py +++ b/src/sage/sat/solvers/dimacs.py @@ -32,7 +32,7 @@ import shlex from sage.sat.solvers.satsolver import SatSolver -from sage.misc.all import tmp_filename +from sage.misc.temporary_file import tmp_filename from time import sleep