Small fix for Python 2.5
This commit is contained in:
parent
e868f37c60
commit
f0c5dd1bce
2
.gitignore
vendored
2
.gitignore
vendored
@ -7,3 +7,5 @@ build/
|
||||
dist/
|
||||
mongoengine.egg-info/
|
||||
env/
|
||||
.project
|
||||
.pydevproject
|
@ -491,6 +491,7 @@ class BaseDocument(object):
|
||||
|
||||
if sys.version_info < (2, 5):
|
||||
# Prior to Python 2.5, Exception was an old-style class
|
||||
import types
|
||||
def subclass_exception(name, parents, unused):
|
||||
return types.ClassType(name, parents, {})
|
||||
else:
|
||||
|
Loading…
x
Reference in New Issue
Block a user