summaryrefslogtreecommitdiffstats
path: root/base/server/python/pki/server/deployment/pkiconfig.py
diff options
context:
space:
mode:
authorChristian Heimes <cheimes@redhat.com>2015-08-16 19:00:00 +0200
committerChristian Heimes <cheimes@redhat.com>2015-08-17 21:14:11 +0200
commitf98ca7fa1903e12a4b2c49a70163077b3560dc1d (patch)
treea3446113d3a7d32c5ce79b1b359d5353ec49afee /base/server/python/pki/server/deployment/pkiconfig.py
parent71148b8f79a5d6ba0c949a3ca0acf5aec6321f0a (diff)
downloadpki-f98ca7fa1903e12a4b2c49a70163077b3560dc1d.tar.gz
pki-f98ca7fa1903e12a4b2c49a70163077b3560dc1d.tar.xz
pki-f98ca7fa1903e12a4b2c49a70163077b3560dc1d.zip
Py3 modernization: libmodernize.fixes.fix_print
Replace print statement with Python 3's print() function. For Python 2 'from __future__ import print_function' turns the print statement into Python 3 compatible print function. See https://www.python.org/dev/peps/pep-3105/
Diffstat (limited to 'base/server/python/pki/server/deployment/pkiconfig.py')
-rw-r--r--base/server/python/pki/server/deployment/pkiconfig.py49
1 files changed, 25 insertions, 24 deletions
diff --git a/base/server/python/pki/server/deployment/pkiconfig.py b/base/server/python/pki/server/deployment/pkiconfig.py
index 8bca657de..c22698cb6 100644
--- a/base/server/python/pki/server/deployment/pkiconfig.py
+++ b/base/server/python/pki/server/deployment/pkiconfig.py
@@ -20,6 +20,7 @@
#
# PKI Deployment Constants
+from __future__ import print_function
PKI_DEPLOYMENT_DEFAULT_CLIENT_DIR_PERMISSIONS = 0o0755
PKI_DEPLOYMENT_DEFAULT_DIR_PERMISSIONS = 0o0770
PKI_DEPLOYMENT_DEFAULT_EXE_PERMISSIONS = 0o0770
@@ -127,38 +128,38 @@ def str2bool(string):
# 'pki_enable_java_debugger=True' in the appropriate
# deployment configuration file.
def prepare_for_an_external_java_debugger(instance):
- print
- print PKI_DEPLOYMENT_INTERRUPT_BANNER
- print
- print "The following 'JAVA_OPTS' MUST be edited in"
- print "'%s':" % instance
- print
- print " JAVA_OPTS=\"-DRESTEASY_LIB=/usr/share/java/resteasy \""
- print " \"-Xdebug -Xrunjdwp:transport=dt_socket,\""
- print " \"address=8000,server=y,suspend=n \""
- print " \"-Djava.awt.headless=true -Xmx128M\""
- print
+ print()
+ print(PKI_DEPLOYMENT_INTERRUPT_BANNER)
+ print()
+ print("The following 'JAVA_OPTS' MUST be edited in")
+ print("'%s':" % instance)
+ print()
+ print(" JAVA_OPTS=\"-DRESTEASY_LIB=/usr/share/java/resteasy \"")
+ print(" \"-Xdebug -Xrunjdwp:transport=dt_socket,\"")
+ print(" \"address=8000,server=y,suspend=n \"")
+ print(" \"-Djava.awt.headless=true -Xmx128M\"")
+ print()
raw_input("Enable external java debugger 'JAVA_OPTS' "
"and press return to continue . . . ")
- print
- print PKI_DEPLOYMENT_INTERRUPT_BANNER
- print
+ print()
+ print(PKI_DEPLOYMENT_INTERRUPT_BANNER)
+ print()
return
def wait_to_attach_an_external_java_debugger():
- print
- print PKI_DEPLOYMENT_INTERRUPT_BANNER
- print
- print "Attach the java debugger to this process on the port specified by"
- print "the 'address' selected by 'JAVA_OPTS' (e. g. - port 8000) and"
- print "set any desired breakpoints"
- print
+ print()
+ print(PKI_DEPLOYMENT_INTERRUPT_BANNER)
+ print()
+ print("Attach the java debugger to this process on the port specified by")
+ print("the 'address' selected by 'JAVA_OPTS' (e. g. - port 8000) and")
+ print("set any desired breakpoints")
+ print()
raw_input("Please attach an external java debugger "
"and press return to continue . . . ")
- print
- print PKI_DEPLOYMENT_INTERRUPT_BANNER
- print
+ print()
+ print(PKI_DEPLOYMENT_INTERRUPT_BANNER)
+ print()
return