def GetPlatformToken(os_module=os, sys_module=sys, platform=sys.platform):
 if hasattr(os_module, 'uname'):
  uname = os_module.uname()
  return ('%s/%s' % (uname[0], uname[2]))
 else:
  return 'unknown'

def GetPlatformToken ( os_module = os , sys_module = sys , platform = sys . platform ) : if hasattr ( os_module , 'uname' ) : uname = os_module . uname ( ) return ( '%s/%s' % ( uname [ 0 ] , uname [ 2 ] ) ) else : return 'unknown'
returns a user-agent token for the host system platform .