If we're using python2.5, import re in place of sre.

This commit is contained in:
James Vega 2007-04-25 16:12:21 +00:00
parent 2bf838f109
commit 680473b015
2 changed files with 11 additions and 3 deletions

View File

@ -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

View File

@ -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.