- コミット日時:
- 2006/05/14 01:32:29 (3 年前)
- ファイル:
-
- camellia/trunk/camellia.py (更新) (1 diff)
凡例:
- 変更無し
- 追加
- 削除
- 更新
- コピー
- 移動
camellia/trunk/camellia.py
r20 r21 32 32 ''' 33 33 34 # 35 # Try to import C version or Python version 36 # 34 37 try: 35 from ccamellia import *38 import ccamellia as mod 36 39 except: 37 from pycamellia import * 40 import pycamellia as mod 41 42 # 43 # Copy the __doc__ string above if the imported module doesn't have it. 44 # 45 import sys 46 try: 47 if not mod.__doc__: 48 mod.__doc__ = __doc__ 49 except: 50 setattr(mod, '__doc__', __doc__) 51 52 # 53 # Replace the module registration with the C or Python version. 54 # 55 sys.modules[__name__] = mod 56 57 # 58 # Delete unwanted variables. 59 # 60 del mod, sys
