Skip to content

Commit 3da16c0

Browse files
committed
Opps forgot the mod_python.in 3.3 changes
1 parent 5c05882 commit 3da16c0

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

scripts/mod_python.in

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
import sys
2727
import os
2828
import platform
29-
import StringIO
29+
import io
3030
import mod_python
3131
from mod_python import httpdconf
3232

@@ -64,7 +64,7 @@ def cmd_genconfig():
6464
if len(args) != 1:
6565
parser.error("Must specify <src>")
6666

67-
execfile(args[0])
67+
exec(compile(open(args[0]).read(), args[0], 'exec'))
6868

6969
def cmd_create():
7070

@@ -92,11 +92,11 @@ def cmd_create():
9292
pythonpath=pythonpath, pythonoptions=options.pythonoptions,
9393
mp_comments=mp_comments)
9494
if conf_path:
95-
print "\nCreated! Please look over %s." % `conf_path`
96-
print "Remember to generate the Apache httpd config by running"
97-
print "%s genconfig %s > %s" % (sys.argv[0], conf_path,
98-
os.path.join(os.path.split(conf_path)[0], 'httpd.conf'))
99-
print "From here on you can tweak %s and re-generate Apache config at any time." % `conf_path`
95+
print("\nCreated! Please look over %s." % repr(conf_path))
96+
print("Remember to generate the Apache httpd config by running")
97+
print("%s genconfig %s > %s" % (sys.argv[0], conf_path,
98+
os.path.join(os.path.split(conf_path)[0], 'httpd.conf')))
99+
print("From here on you can tweak %s and re-generate Apache config at any time." % repr(conf_path))
100100

101101
def cmd_version():
102102

@@ -105,15 +105,15 @@ def cmd_version():
105105

106106
version = "\n"
107107
version += "mod_python: %s\n" % mod_python.mp_version
108-
version += " %s\n\n" % `os.path.join(mod_python.version.LIBEXECDIR, "mod_python.so")`
108+
version += " %s\n\n" % repr(os.path.join(mod_python.version.LIBEXECDIR, "mod_python.so"))
109109
version += "python: %s\n" % ''.join(sys.version.splitlines())
110-
version += " %s\n\n" % `mod_python.version.PYTHON_BIN`
110+
version += " %s\n\n" % repr(mod_python.version.PYTHON_BIN)
111111
version += "httpd: %s\n" % mod_python.version.HTTPD_VERSION
112-
version += " %s\n\n" % `mod_python.version.HTTPD`
112+
version += " %s\n\n" % repr(mod_python.version.HTTPD)
113113
version += "apr: %s\n" % mod_python.version.APR_VERSION
114114
version += "platform: %s\n" % platform.platform()
115115

116-
print version
116+
print(version)
117117

118118
import optparse
119119

0 commit comments

Comments
 (0)