Check if ltihooks is present before trying to delete it

Original commit message from CVS:
Check if ltihooks is present before trying to delete it
This commit is contained in:
Johan Dahlin 2005-09-29 01:16:21 +00:00
parent ff6728de7b
commit 2d13103ff7

View file

@ -88,4 +88,6 @@ if __ltihooks_used__:
__ltihooks_used__ = False __ltihooks_used__ = False
del ltihooks del ltihooks
import sys import sys
if 'ltihooks' in sys.modules:
del sys.modules['ltihooks'] del sys.modules['ltihooks']