ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/CRAB/python/WorkSpace.py
(Generate patch)

Comparing COMP/CRAB/python/WorkSpace.py (file contents):
Revision 1.34 by slacapra, Mon Jun 8 16:39:34 2009 UTC vs.
Revision 1.35 by slacapra, Tue Jun 9 13:13:36 2009 UTC

# Line 94 | Line 94 | class WorkSpace:
94          """
95          delete the whole workspace without doing any test!!!
96          """
97 <        x = logging._handlers.copy()
98 <        for i in x:
99 <            common.logger.removeHandler(i)
100 <            i.flush()
101 <            i.close()
102 <            del i
103 <        #common.logger=None
104 <        logging._handlers.clear()
105 <        
97 >        common.logger.delete()
98 >        common.logger = None
99 >
100          if os.path.exists(self._top_dir):
101              import shutil
102              shutil.rmtree(self._top_dir)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines