• Home
  • Raw
  • Download

Lines Matching refs:platform

128     if sys.platform in ('dos', 'win32', 'win16'):
469 if sys.platform not in supported_platforms:
728 platform = '-'.join(x.strip() for x in filter(len, args))
731 platform = platform.replace(' ', '_')
732 platform = platform.replace('/', '-')
733 platform = platform.replace('\\', '-')
734 platform = platform.replace(':', '-')
735 platform = platform.replace(';', '-')
736 platform = platform.replace('"', '-')
737 platform = platform.replace('(', '-')
738 platform = platform.replace(')', '-')
741 platform = platform.replace('unknown', '')
745 cleaned = platform.replace('--', '-')
746 if cleaned == platform:
748 platform = cleaned
749 while platform[-1] == '-':
750 platform = platform[:-1]
752 return platform
784 if sys.platform in ('dos', 'win32', 'win16'):
807 if sys.platform in ('dos', 'win32', 'win16'):
876 if sys.platform in _default_architecture:
877 b, l = _default_architecture[sys.platform]
953 system = sys.platform
1196 elif sys.platform.startswith('java'):
1207 compiler = sys.platform
1334 def platform(aliased=0, terse=0): function
1369 platform = _platform(system, release)
1371 platform = _platform(system, release, version, csd)
1385 platform = _platform(system, release, machine, processor,
1391 platform = _platform(system, release, machine, processor,
1398 platform = _platform(system, release, version)
1400 platform = _platform(system, release, version,
1407 platform = _platform(system, release)
1409 platform = _platform(system, release, machine)
1414 platform = _platform(system, release)
1417 platform = _platform(system, release, machine,
1420 _platform_cache[(aliased, terse)] = platform
1421 return platform
1429 print(platform(aliased, terse))