Change print statements to work in python3
This is part of a series of changes to introduce Python3 support.
Change-Id: I373be5de7141aa127d7debdbce1df39148dbec32
diff --git a/subcmds/selfupdate.py b/subcmds/selfupdate.py
index 46aa3a1..d12e08d 100644
--- a/subcmds/selfupdate.py
+++ b/subcmds/selfupdate.py
@@ -13,6 +13,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
+from __future__ import print_function
from optparse import SUPPRESS_HELP
import sys
@@ -52,7 +53,7 @@
else:
if not rp.Sync_NetworkHalf():
- print >>sys.stderr, "error: can't update repo"
+ print("error: can't update repo", file=sys.stderr)
sys.exit(1)
rp.bare_git.gc('--auto')