Update of /cvsroot/docstring/dps/dps/languages
In directory usw-pr-cvs1:/tmp/cvs-serv18232/dps/dps/languages
Modified Files:
__init__.py
Log Message:
- Added language module import function.
Index: __init__.py
===================================================================
RCS file: /cvsroot/docstring/dps/dps/languages/__init__.py,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -C2 -d -r1.1.1.1 -r1.2
*** __init__.py 2001/07/22 22:35:40 1.1.1.1
--- __init__.py 2001/09/10 04:09:34 1.2
***************
*** 1,3 ****
#! /usr/bin/env python
! # $Id$
! # by David Goodger (dgo...@bi...)
--- 1,28 ----
#! /usr/bin/env python
!
! """
! :Author: David Goodger
! :Contact: go...@us...
! :Revision: $Revision$
! :Date: $Date$
! :Copyright: This module has been placed in the public domain.
!
! This package contains modules for language-dependent features of
! the Python Docstring Processing System.
! """
!
! __docformat__ = 'reStructuredText'
!
! __all__ = ['language']
!
! _languages = {}
!
! def language(languagecode):
! if _languages.has_key(languagecode):
! return _languages[languagecode]
! try:
! module = __import__(languagecode, globals(), locals())
! except:
! raise
! _languages[languagecode] = module
! return module
|