added getRepository builtin

This commit is contained in:
Darren Ranalli 2008-10-21 18:58:58 +00:00
parent fe4f03c868
commit c19665e627

View File

@ -31,7 +31,7 @@ __all__ = ['enumerate', 'unique', 'indent', 'nonRepeatingRandomList',
'printStack', 'printReverseStack', 'listToIndex2item', 'listToItem2index', 'printStack', 'printReverseStack', 'listToIndex2item', 'listToItem2index',
'pandaBreak','pandaTrace','formatTimeCompact','DestructiveScratchPad', 'pandaBreak','pandaTrace','formatTimeCompact','DestructiveScratchPad',
'deeptype','getProfileResultString','StdoutCapture','StdoutPassthrough', 'deeptype','getProfileResultString','StdoutCapture','StdoutPassthrough',
'Averager',] 'Averager', 'getRepository', ]
import types import types
import string import string
@ -3188,6 +3188,12 @@ def getBase():
except: except:
return simbase return simbase
def getRepository():
try:
return base.cr
except:
return simbase.air
def superFlattenShip(ship): def superFlattenShip(ship):
#PHASE 1: remove characters #PHASE 1: remove characters
@ -3781,6 +3787,7 @@ __builtin__.ClassTree = ClassTree
__builtin__.invertDict = invertDict __builtin__.invertDict = invertDict
__builtin__.invertDictLossless = invertDictLossless __builtin__.invertDictLossless = invertDictLossless
__builtin__.getBase = getBase __builtin__.getBase = getBase
__builtin__.getRepository = getRepository
__builtin__.safeRepr = safeRepr __builtin__.safeRepr = safeRepr
__builtin__.fastRepr = fastRepr __builtin__.fastRepr = fastRepr
__builtin__.nullGen = nullGen __builtin__.nullGen = nullGen