Fix: PyFlakes pointed out this missing import.
This commit is contained in:
parent
62cc8d2ab3
commit
67fcdca6d4
1 changed files with 1 additions and 0 deletions
|
|
@ -492,6 +492,7 @@ class BaseDocument(object):
|
||||||
if sys.version_info < (2, 5):
|
if sys.version_info < (2, 5):
|
||||||
# Prior to Python 2.5, Exception was an old-style class
|
# Prior to Python 2.5, Exception was an old-style class
|
||||||
def subclass_exception(name, parents, unused):
|
def subclass_exception(name, parents, unused):
|
||||||
|
import types
|
||||||
return types.ClassType(name, parents, {})
|
return types.ClassType(name, parents, {})
|
||||||
else:
|
else:
|
||||||
def subclass_exception(name, parents, module):
|
def subclass_exception(name, parents, module):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue