mirror of
https://github.com/progval/Limnoria.git
synced 2025-04-26 04:51:06 -05:00
supybot-plugin-doc: Add Python 3 support.
This commit is contained in:
parent
b1bfc7dda2
commit
b89d49a480
@ -36,6 +36,9 @@ import shutil
|
|||||||
|
|
||||||
import supybot
|
import supybot
|
||||||
|
|
||||||
|
if sys.version_info[0] >= 3:
|
||||||
|
basestring = str
|
||||||
|
|
||||||
def error(s):
|
def error(s):
|
||||||
sys.stderr.write('%s\n' % s)
|
sys.stderr.write('%s\n' % s)
|
||||||
sys.exit(-1)
|
sys.exit(-1)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user