The standard Python format for ‘raise’ is with a single argument: the exception instance to raise. Further, the exception instance should be a subclass somewhere in the exception hierarchy.
Other forms of the statement are long deprecated, and in Python 2.6 string exceptions are obsolete.
This patch converts all ‘raise’ statements to use the standard syntax, and to use exception instances instead of strings.
It originates from addressing Debian Bug#585187 http://bugs.debian.org/585187