2.4 compatibility.

This commit is contained in:
Jeremy Fincher 2004-11-23 19:04:48 +00:00
parent c14ebfd129
commit 6af23399cc

View File

@ -191,7 +191,7 @@ def newDriver(irc, moduleName=None):
import twistedDrivers import twistedDrivers
moduleName = 'supybot.twistedDrivers' moduleName = 'supybot.twistedDrivers'
except ImportError: except ImportError:
del sys.modules['supybot.twistedDrivers'] sys.modules.pop('supybot.twistedDrivers', None)
moduleName = 'supybot.socketDrivers' moduleName = 'supybot.socketDrivers'
elif not moduleName.startswith('supybot.'): elif not moduleName.startswith('supybot.'):
moduleName = 'supybot.' + moduleName moduleName = 'supybot.' + moduleName