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