From aa7546258e3f24bec3df2d8c4b203ed08e0acbce Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Mon, 5 Oct 2009 21:00:34 -0400 Subject: Moved from *.__del__() to exclusive use of *.cleanup(). *.__del__() is run some unspecified time after the refcount for an object is reduced to zero. Sometimes that means that the rest of the world has already been deallocated, which makes life difficult, especially when Python won't attempt to construct stack traces inside *.__del__(). We were always (hopefully ;) calling del(*) anyway, so we just replace those calls with *.cleanup() --- libbe/arch.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libbe/arch.py') diff --git a/libbe/arch.py b/libbe/arch.py index ab55172..c2d7cde 100644 --- a/libbe/arch.py +++ b/libbe/arch.py @@ -70,7 +70,7 @@ class Arch(vcs.VCS): """ Create a temporary Arch archive in the directory PATH. This archive will be removed by - __del__->cleanup->_vcs_cleanup->_remove_archive + cleanup->_vcs_cleanup->_remove_archive """ # http://regexps.srparish.net/tutorial-tla/new-archive.html#Creating_a_New_Archive assert self._archive_name == None @@ -112,7 +112,7 @@ class Arch(vcs.VCS): """ Create a temporary Arch project in the directory PATH. This project will be removed by - __del__->cleanup->_vcs_cleanup->_remove_project + cleanup->_vcs_cleanup->_remove_project """ # http://mwolson.org/projects/GettingStartedWithArch.html # http://regexps.srparish.net/tutorial-tla/new-project.html#Starting_a_New_Project -- cgit