diff options
author | W. Trevor King <wking@drexel.edu> | 2009-10-05 21:00:34 -0400 |
---|---|---|
committer | W. Trevor King <wking@drexel.edu> | 2009-10-05 21:00:34 -0400 |
commit | aa7546258e3f24bec3df2d8c4b203ed08e0acbce (patch) | |
tree | d93b3c47e74e62524238f6e7dea03acf735988de /libbe/arch.py | |
parent | e35ccf95ea89b6e622202caae30d3b8cca3f2473 (diff) | |
download | bugseverywhere-aa7546258e3f24bec3df2d8c4b203ed08e0acbce.tar.gz |
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()
Diffstat (limited to 'libbe/arch.py')
-rw-r--r-- | libbe/arch.py | 4 |
1 files changed, 2 insertions, 2 deletions
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 |