mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-23 03:02:52 +01:00
Debug: Fix Python 3 compatibility.
This commit is contained in:
parent
8f6063135e
commit
70a169ab6f
@ -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