Skip to content

Commit

Permalink
Small fix for Python 2.5
Browse files Browse the repository at this point in the history
  • Loading branch information
alefnula committed Oct 23, 2010
1 parent e868f37 commit f0c5dd1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .gitignore
Expand Up @@ -6,4 +6,6 @@ docs/_build
build/
dist/
mongoengine.egg-info/
env/
env/
.project
.pydevproject
1 change: 1 addition & 0 deletions mongoengine/base.py
Expand Up @@ -491,6 +491,7 @@ def __eq__(self, other):

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:
Expand Down

0 comments on commit f0c5dd1

Please sign in to comment.