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

View File

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