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

Commit

Permalink
git grep -l 'misc.all import' | xargs sed -i.bak 's/misc.all import t…
Browse files Browse the repository at this point in the history
…mp_/misc.temporary_file import tmp_/'
  • Loading branch information
Matthias Koeppe committed Dec 7, 2021
1 parent cc60cfe commit 2d9a84e
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/sage/combinat/designs/ext_rep.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
2 changes: 1 addition & 1 deletion src/sage/databases/sql_db.py
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
2 changes: 1 addition & 1 deletion src/sage/interfaces/phc.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/sage/misc/citation.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {}
Expand Down
2 changes: 1 addition & 1 deletion src/sage/misc/persist.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -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)))
Expand Down
4 changes: 2 additions & 2 deletions src/sage/repl/ipython_extension.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion src/sage/sat/solvers/dimacs.py
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down

0 comments on commit 2d9a84e

Please sign in to comment.