mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-27 05:09:23 +01:00
2.4 compatibility.
This commit is contained in:
parent
c14ebfd129
commit
6af23399cc
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user