/usr/share/pyshared/tidy/error.py is in python-utidylib 0.2-9.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | __all__ = ('TidyLibError', 'InvalidOptionError', 'OptionArgError',
)
class TidyLibError(Exception):
def __init__(self, arg):
self.arg=arg
class InvalidOptionError(TidyLibError):
def __str__(self):
return "%s was not a valid Tidy option." % (self.arg)
__repr__=__str__
class OptionArgError(TidyLibError):
def __init__(self, arg):
self.arg=arg
def __str__(self):
return self.arg
|