Files
swift-mirror/test/Inputs/getmtime.py
Alex Chan ce7ce98a01 Update Python build scripts to use the print function
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.
2015-12-18 23:00:55 +00:00

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]))