# HG changeset patch # User Frederic Bastien # Date 1288189996 14400 # Node ID 2b8b991ac5fa23ada7e6efcb90e744a765ea12bb # Parent cf0fc12a50f7baa0211b49cb68384036e919ab14 give the NotImplementedError a string message diff -r cf0fc12a50f7 -r 2b8b991ac5fa pylearn/version.py --- a/pylearn/version.py Tue Oct 26 16:34:20 2010 -0400 +++ b/pylearn/version.py Wed Oct 27 10:33:16 2010 -0400 @@ -228,15 +228,15 @@ if resource_type == _imp.PY_COMPILED: ret = _import_id_py_compiled(location) if resource_type == _imp.C_EXTENSION: - raise NotImplementedError + raise NotImplementedError('Not implemented the version recording of C_EXTENSION module') if resource_type == _imp.PY_RESOURCE: - raise NotImplementedError + raise NotImplementedError('Not implemented the version recording of PY_RESOURCE module') if resource_type == _imp.PKG_DIRECTORY: ret = _import_id_pkg_directory(location) if resource_type == _imp.C_BUILTIN: - raise NotImplementedError + raise NotImplementedError('Not implemented the version recording of C_BUILTIN module') if resource_type == _imp.PY_FROZEN: - raise NotImplementedError + raise NotImplementedError('Not implemented the version recording of PY_FROZEN module') #the list of resource types above should be exhaustive if ret.startswith(_unknown_version):