def dllFromDll(dllid):
 if (dllid == None):
  return None
 elif (type('') == type(dllid)):
  return win32ui.LoadLibrary(dllid)
 else:
  try:
   dllid.GetFileName()
  except AttributeError:
   raise TypeError('DLL parameter must be None, a filename or a dll object')
  return dllid

def dllFromDll ( dllid ) : if ( dllid == None ) : return None elif ( type ( '' ) == type ( dllid ) ) : return win32ui . LoadLibrary ( dllid ) else : try : dllid . GetFileName ( ) except AttributeError : raise TypeError ( 'DLL parameter must be None, a filename or a dll object' ) return dllid
given a dll .