def resolveMUITimeZone(spec):
 pattern = re.compile('@(?P<dllname>.*),-(?P<index>\\d+)(?:;(?P<comment>.*))?')
 matcher = pattern.match(spec)
 assert matcher, 'Could not parse MUI spec'
 try:
  handle = DLLCache[matcher.groupdict()['dllname']]
  result = win32api.LoadString(handle, int(matcher.groupdict()['index']))
 except win32api.error as e:
  result = None
 return result

def resolveMUITimeZone ( spec ) : pattern = re . compile ( '@(?P<dllname>.*),-(?P<index>\\d+)(?:;(?P<comment>.*))?' ) matcher = pattern . match ( spec ) assert matcher , 'Could not parse MUI spec' try : handle = DLLCache [ matcher . groupdict ( ) [ 'dllname' ] ] result = win32api . LoadString ( handle , int ( matcher . groupdict ( ) [ 'index' ] ) ) except win32api . error as e : result = None return result
resolve a multilingual user interface resource for the time zone name .