aboutsummaryrefslogtreecommitdiffstats
path: root/becommands
diff options
context:
space:
mode:
authorW. Trevor King <wking@drexel.edu>2009-10-05 21:00:34 -0400
committerW. Trevor King <wking@drexel.edu>2009-10-05 21:00:34 -0400
commitaa7546258e3f24bec3df2d8c4b203ed08e0acbce (patch)
treed93b3c47e74e62524238f6e7dea03acf735988de /becommands
parente35ccf95ea89b6e622202caae30d3b8cca3f2473 (diff)
downloadbugseverywhere-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 'becommands')
-rw-r--r--becommands/init.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/becommands/init.py b/becommands/init.py
index 1125d93..a6098ba 100644
--- a/becommands/init.py
+++ b/becommands/init.py
@@ -32,7 +32,7 @@ def execute(args, manipulate_encodings=True):
>>> execute(['--root', dir.path], manipulate_encodings=False)
No revision control detected.
Directory initialized.
- >>> del(dir)
+ >>> dir.cleanup()
>>> dir = utility.Dir()
>>> os.chdir(dir.path)