Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(124843)

Delta Between Two Patch Sets: Lib/platform.py

Issue 23670: Modifications to support iOS as a development platform
Left Patch Set: Created 3 years, 8 months ago
Right Patch Set: Created 3 years, 8 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
« no previous file with change/comment | « Lib/importlib/_bootstrap_external.py ('k') | Lib/plat-ios/IN.py » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
(Both sides are equal)
1 #!/usr/bin/env python3 1 #!/usr/bin/env python3
2 2
3 """ This module tries to retrieve as much platform-identifying data as 3 """ This module tries to retrieve as much platform-identifying data as
4 possible. It makes this information available via function APIs. 4 possible. It makes this information available via function APIs.
5 5
6 If called from the command line, it prints the platform 6 If called from the command line, it prints the platform
7 information concatenated as single string to stdout. The output 7 information concatenated as single string to stdout. The output
8 format is useable as part of a filename. 8 format is useable as part of a filename.
9 9
10 """ 10 """
(...skipping 1433 matching lines...) Expand 10 before | Expand all | Expand 10 after
1444 return platform 1444 return platform
1445 1445
1446 ### Command line interface 1446 ### Command line interface
1447 1447
1448 if __name__ == '__main__': 1448 if __name__ == '__main__':
1449 # Default is to print the aliased verbose platform string 1449 # Default is to print the aliased verbose platform string
1450 terse = ('terse' in sys.argv or '--terse' in sys.argv) 1450 terse = ('terse' in sys.argv or '--terse' in sys.argv)
1451 aliased = (not 'nonaliased' in sys.argv and not '--nonaliased' in sys.argv) 1451 aliased = (not 'nonaliased' in sys.argv and not '--nonaliased' in sys.argv)
1452 print(platform(aliased, terse)) 1452 print(platform(aliased, terse))
1453 sys.exit(0) 1453 sys.exit(0)
LEFTRIGHT

RSS Feeds Recent Issues | This issue
This is Rietveld 894c83f36cb7+