2011-05-07 10:47:11 +00:00
|
|
|
# -*- coding: utf-8 -*-
|
2012-06-07 16:08:47 +00:00
|
|
|
from __future__ import unicode_literals
|
2010-03-08 15:20:29 +00:00
|
|
|
|
2013-11-02 21:34:05 +00:00
|
|
|
|
2010-03-08 15:20:29 +00:00
|
|
|
class BrokenException(Exception):
|
|
|
|
pass
|
|
|
|
|
2012-06-07 16:08:47 +00:00
|
|
|
except_args = (b'Broken!', # plain exception with ASCII text
|
|
|
|
'¡Broken!', # non-ASCII unicode data
|
2013-11-02 21:02:56 +00:00
|
|
|
'¡Broken!'.encode('utf-8'), # non-ASCII, utf-8 encoded bytestring
|
2012-06-07 16:08:47 +00:00
|
|
|
b'\xa1Broken!', ) # non-ASCII, latin1 bytestring
|