Rev 5283: Fixed as per jam's review. in file:///home/vila/src/bzr/experimental/leaking-tests/

Vincent Ladeuil v.ladeuil+lp at free.fr
Tue Jun 29 17:23:24 BST 2010


At file:///home/vila/src/bzr/experimental/leaking-tests/

------------------------------------------------------------
revno: 5283
revision-id: v.ladeuil+lp at free.fr-20100629162324-ls01yzl823613kg4
parent: v.ladeuil+lp at free.fr-20100629162113-xa6y33u17mfi024v
committer: Vincent Ladeuil <v.ladeuil+lp at free.fr>
branch nick: cleanup
timestamp: Tue 2010-06-29 18:23:24 +0200
message:
  Fixed as per jam's review.
-------------- next part --------------
=== modified file 'bzrlib/osutils.py'
--- a/bzrlib/osutils.py	2010-06-29 16:21:13 +0000
+++ b/bzrlib/osutils.py	2010-06-29 16:23:24 +0000
@@ -28,10 +28,10 @@
 import getpass
 import ntpath
 import posixpath
-import shutil
+from shutil import rmtree
 import socket
 import subprocess
-import tempfile
+import tempfile import mkdtemp
 import unicodedata
 
 from bzrlib import (
@@ -383,8 +383,9 @@
 basename = os.path.basename
 split = os.path.split
 splitext = os.path.splitext
-mkdtemp = tempfile.mkdtemp
-rmtree = shutil.rmtree
+# These were already lazily imported into local scope
+# mkdtemp = tempfile.mkdtemp
+# rmtree = shutil.rmtree
 
 MIN_ABS_PATHLENGTH = 1
 



More information about the bazaar-commits mailing list