diff -r b7645b3c86ff -r 619e775aa7f9 mercurial/ui.py --- a/mercurial/ui.py Sat Jun 04 13:45:31 2005 -0800 +++ b/mercurial/ui.py Sat Jun 04 14:16:32 2005 -0800 @@ -5,7 +5,7 @@ # This software may be used and distributed according to the terms # of the GNU General Public License, incorporated herein by reference. -import os, tempfile, sys, re +import os, sys, re class ui: def __init__(self, verbose=False, debug=False, quiet=False, @@ -37,6 +37,7 @@ def debug(self, *msg): if self.debugflag: self.write(*msg) def edit(self, text): + import tempfile (fd, name) = tempfile.mkstemp("hg") f = os.fdopen(fd, "w") f.write(text)