def addLevelName(level, levelName):
 _acquireLock()
 try:
  _levelNames[level] = levelName
  _levelNames[levelName] = level
 finally:
  _releaseLock()

def addLevelName ( level , levelName ) : _acquireLock ( ) try : _levelNames [ level ] = levelName _levelNames [ levelName ] = level finally : _releaseLock ( )
associate levelname with level .