dabo Commit
Revision 2185
Date: 2006-05-30 18:32:22 -0700 (Tue, 30 May 2006)
Author: ed

Changed:
U   trunk/dabo/dApp.py

Log:
Changed the order in which temp files are closed in dApp.getTempFile().


Diff:
Modified: trunk/dabo/dApp.py
===================================================================
--- trunk/dabo/dApp.py  2006-05-30 20:48:26 UTC (rev 2184)
+++ trunk/dabo/dApp.py  2006-05-31 01:32:22 UTC (rev 2185)
@@ -91,7 +91,6 @@
        def _eraseTempFiles(self):
                # Try to erase all temp files created during life.
                # Need to re-import the os module here for some reason.
-               print "HOLDERHOLDERHOLDERHOLDERHOLDER"
                import os
                for f in self._tempFiles:
                        try:
@@ -117,10 +116,10 @@
                suffix = ".%s" % ext
                while not fname:
                        fd, tmpname = tempfile.mkstemp(suffix=suffix)
+                       os.close(fd)
                        bad = [ch for ch in badChars if ch in tmpname]
                        if not bad:
                                fname = tmpname
-               os.close(fd)
                self.append(fname)
                if fname.endswith(".py"):
                        # Track the .pyc file, too.




_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev

Reply via email to