mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
In Python 3, 'print' was changed from a statement to a function. Using the __future__ module allows scripts to use print function whether running with Python 2.6+ or Python 3.x. This commit changes as many instances of print as I could find to use the print function and the __future__ module.
9 lines
121 B
Python
Executable File
9 lines
121 B
Python
Executable File
#!/usr/bin/env python
|
|
|
|
from __future__ import print_function
|
|
|
|
import os
|
|
import sys
|
|
|
|
print(os.path.getmtime(sys.argv[1]))
|