Mercurial > pylearn
changeset 1344:2b8b991ac5fa
give the NotImplementedError a string message
author | Frederic Bastien <nouiz@nouiz.org> |
---|---|
date | Wed, 27 Oct 2010 10:33:16 -0400 |
parents | cf0fc12a50f7 |
children | 6bae1852cff4 |
files | pylearn/version.py |
diffstat | 1 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- 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):