From 6e7f2b73cf1a5295e10161bb11e9c12f29b86f78 Mon Sep 17 00:00:00 2001 From: Ross Lawley Date: Fri, 24 Aug 2012 16:36:17 +0100 Subject: [PATCH] Fix VERSION --- mongoengine/__init__.py | 2 +- setup.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mongoengine/__init__.py b/mongoengine/__init__.py index 0ace8f00..af4c4171 100644 --- a/mongoengine/__init__.py +++ b/mongoengine/__init__.py @@ -18,6 +18,6 @@ VERSION = (0, 6, 20) def get_version(): if isinstance(VERSION[-1], basestring): return '.'.join(map(str, VERSION[:-1])) + VERSION[-1] - return '.'.join(map(str, VERSIONs)) + return '.'.join(map(str, VERSION)) __version__ = get_version() diff --git a/setup.py b/setup.py index dcdccae3..c9d6b79b 100644 --- a/setup.py +++ b/setup.py @@ -18,7 +18,7 @@ except: def get_version(version_tuple): - if isinstance(version_tuple[-1], basestring): + if not isinstance(version_tuple[-1], int): return '.'.join(map(str, version_tuple[:-1])) + version_tuple[-1] return '.'.join(map(str, version_tuple))