Add python3 support for tools
Test: ./system/timezone/update-tzdata.py
Test: ./system/timezone/download-iana-data.py
Change-Id: I10a1062149c0484a4345cc4c389df5dff6112985
diff --git a/tzdatautil.py b/tzdatautil.py
index 839a9f4..b7f81e3 100644
--- a/tzdatautil.py
+++ b/tzdatautil.py
@@ -12,6 +12,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
+from __future__ import print_function
+
import os
import sys
@@ -28,6 +30,6 @@
elif len(matching_files) == 1:
return '%s/%s' % (dir_name, matching_files[0])
else:
- print 'Multiple tz%s files found unexpectedly %s' % (file_type, matching_files)
+ print('Multiple tz%s files found unexpectedly %s' % (file_type, matching_files))
sys.exit(1)