Make 'bailout' a valid Python3 exception

This commit is contained in:
Alexander van Gessel 2017-10-14 23:19:51 +02:00
parent b83a3b3d1d
commit c5b19ed66d

View File

@ -95,7 +95,7 @@ def opener(str):
else:
return str.startswith(tuple(opener_prefixes))
class bailout:
class bailout(Exception):
def __init__(self, filename, lineno, msg):
self.filename = filename
self.lineno = lineno