mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-20 01:19:26 +01:00
If we're using python2.5, import re in place of sre.
This commit is contained in:
parent
2bf838f109
commit
680473b015
@ -29,11 +29,15 @@
|
|||||||
|
|
||||||
import gc
|
import gc
|
||||||
import os
|
import os
|
||||||
import sre
|
|
||||||
import sys
|
import sys
|
||||||
import socket
|
import socket
|
||||||
import linecache
|
import linecache
|
||||||
|
|
||||||
|
if sys.version_info >= (2, 5, 0):
|
||||||
|
import re as sre
|
||||||
|
else:
|
||||||
|
import sre
|
||||||
|
|
||||||
import supybot.log as log
|
import supybot.log as log
|
||||||
import supybot.conf as conf
|
import supybot.conf as conf
|
||||||
import supybot.utils as utils
|
import supybot.utils as utils
|
||||||
|
@ -34,11 +34,15 @@ Module for general worldly stuff, like global variables and whatnot.
|
|||||||
import gc
|
import gc
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
import sre
|
|
||||||
import time
|
import time
|
||||||
import atexit
|
import atexit
|
||||||
import threading
|
import threading
|
||||||
|
|
||||||
|
if sys.version_info >= (2, 5, 0):
|
||||||
|
import re as sre
|
||||||
|
else:
|
||||||
|
import sre
|
||||||
|
|
||||||
import supybot.log as log
|
import supybot.log as log
|
||||||
import supybot.conf as conf
|
import supybot.conf as conf
|
||||||
import supybot.drivers as drivers
|
import supybot.drivers as drivers
|
||||||
@ -62,7 +66,7 @@ class SupyThread(threading.Thread):
|
|||||||
threadsSpawned += 1
|
threadsSpawned += 1
|
||||||
super(SupyThread, self).__init__(*args, **kwargs)
|
super(SupyThread, self).__init__(*args, **kwargs)
|
||||||
log.debug('Spawning thread %q.', self.getName())
|
log.debug('Spawning thread %q.', self.getName())
|
||||||
|
|
||||||
commandsProcessed = 0
|
commandsProcessed = 0
|
||||||
|
|
||||||
ircs = [] # A list of all the IRCs.
|
ircs = [] # A list of all the IRCs.
|
||||||
|
Loading…
Reference in New Issue
Block a user