def _reverseLogLevelMapping():
 mapping = {}
 for (logLevel, pyLogLevel) in toStdlibLogLevelMapping.items():
  mapping[pyLogLevel] = logLevel
  mapping[stdlibLogging.getLevelName(pyLogLevel)] = logLevel
 return mapping

def _reverseLogLevelMapping ( ) : mapping = { } for ( logLevel , pyLogLevel ) in toStdlibLogLevelMapping . items ( ) : mapping [ pyLogLevel ] = logLevel mapping [ stdlibLogging . getLevelName ( pyLogLevel ) ] = logLevel return mapping
reverse the above mapping .