Convert all print statements to Python3-compatible print functions

This commit is contained in:
Greg Neagle
2019-05-03 19:47:37 -07:00
parent 2ad27ff411
commit 531d99a01a
72 changed files with 452 additions and 383 deletions

View File

@@ -6,6 +6,7 @@ test_isapprunning.py
Unit tests for processes.isAppRunning.
"""
from __future__ import print_function
# Copyright 2016-present Nate Walck.
#
# Licensed under the Apache License, Version 2.0 (the "License");
@@ -30,7 +31,7 @@ try:
from mock import patch
except ImportError:
import sys
print >>sys.stderr, "mock module is required. run: easy_install mock"
print("mock module is required. run: easy_install mock", file=sys.stderr)
raise

View File

@@ -1,5 +1,6 @@
#!/usr/bin/python env
from __future__ import print_function
import subprocess
import sys