changeset 1346:5e893cd6daae

don't consider __version__ when it is none.
author Frederic Bastien <nouiz@nouiz.org>
date Wed, 27 Oct 2010 10:37:18 -0400
parents 6bae1852cff4
children 9e898b2b98e0
files pylearn/version.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/pylearn/version.py	Wed Oct 27 10:36:55 2010 -0400
+++ b/pylearn/version.py	Wed Oct 27 10:37:18 2010 -0400
@@ -246,7 +246,7 @@
     #the list of resource types above should be exhaustive
 
     if ret.startswith(_unknown_version):
-        if hasattr(mod,'__version__'):
+        if hasattr(mod,'__version__') and mod.__version__ is not None:
             return mod.__version__
     else:
         return ret