mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-20 09:29:24 +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
|
||||||
|
Loading…
Reference in New Issue
Block a user