mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-23 19:22:45 +01:00
Debug: Fix Python 3 compatibility.
This commit is contained in:
parent
f0e49a0402
commit
cd6d9da8e4
@ -40,7 +40,16 @@ import gc
|
||||
import os
|
||||
import pwd
|
||||
import sys
|
||||
import exceptions
|
||||
try:
|
||||
import exceptions
|
||||
except ImportError: # Python 3
|
||||
import builtins
|
||||
class exceptions:
|
||||
"""Pseudo-module"""
|
||||
pass
|
||||
for (key, value) in exceptions.__dict__.items():
|
||||
if isinstance(value, type) and issubclass(value, Exception):
|
||||
exceptions[key] = value
|
||||
|
||||
import supybot.conf as conf
|
||||
import supybot.utils as utils
|
||||
|
Loading…
Reference in New Issue
Block a user