Merge "Replacing print with print() to provide py 2/3 compatibility"
This commit is contained in:
commit
ebfcaf4e03
@ -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
|
||||
|
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user