Merge "Replacing print with print() to provide py 2/3 compatibility"

This commit is contained in:
Jenkins 2015-08-04 09:57:18 +00:00 committed by Gerrit Code Review
commit ebfcaf4e03
2 changed files with 4 additions and 2 deletions

View File

@ -1,4 +1,5 @@
# step-1
from __future__ import print_function
from libcloud.storage.types import Provider
from libcloud.storage.providers import get_driver
@ -36,7 +37,7 @@ print(objects)
# step-6
object = swift.get_object(container_name, object_name)
print object
print(object)
# step-7
import hashlib

View File

@ -1,5 +1,6 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import print_function
import os, sys
from xml2po import Main
@ -59,7 +60,7 @@ def generateSinglePoT(folder):
xml2po_main = Main(default_mode, operation, output, options)
xml2po_main.current_mode = myDocbookXmlMode()
except IOError:
print "Error: cannot open aFile %s for writing." % (output)
print("Error: cannot open aFile %s for writing." % (output))
sys.exit(5)
#print(xmlfiles)
#print(">>>outout: %s ", output)