summaryrefslogtreecommitdiffstats
path: root/src/lib
diff options
context:
space:
mode:
authorChris St. Pierre <chris.a.st.pierre@gmail.com>2012-08-15 08:21:19 -0400
committerChris St. Pierre <chris.a.st.pierre@gmail.com>2012-08-15 08:21:19 -0400
commite911b57eb38dfa0fc06d19e70e02e121ae721e57 (patch)
tree350c41f512f831d48bd538c84e64fc714fe760d1 /src/lib
parent8207c9c78a94d316bfbd582b2672796e488319b5 (diff)
downloadbcfg2-e911b57eb38dfa0fc06d19e70e02e121ae721e57.tar.gz
bcfg2-e911b57eb38dfa0fc06d19e70e02e121ae721e57.tar.bz2
bcfg2-e911b57eb38dfa0fc06d19e70e02e121ae721e57.zip
print function fixes
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/Bcfg2/Server/Admin/Reports.py4
-rw-r--r--src/lib/Bcfg2/Server/Admin/Syncdb.py2
-rw-r--r--src/lib/Bcfg2/Server/Plugins/FileProbes.py4
3 files changed, 5 insertions, 5 deletions
diff --git a/src/lib/Bcfg2/Server/Admin/Reports.py b/src/lib/Bcfg2/Server/Admin/Reports.py
index 175b99d1d..335d6a1e7 100644
--- a/src/lib/Bcfg2/Server/Admin/Reports.py
+++ b/src/lib/Bcfg2/Server/Admin/Reports.py
@@ -109,7 +109,7 @@ class Reports(Bcfg2.Server.Admin.Mode):
try:
update_database()
except UpdaterError:
- print "Update failed"
+ print("Update failed")
raise SystemExit(-1)
elif args[0] == 'load_stats':
quick = '-O3' in args
@@ -121,7 +121,7 @@ class Reports(Bcfg2.Server.Admin.Mode):
if stats_file[0] == '-':
self.errExit("Invalid statistics file: %s" % stats_file)
elif args[i] == '-c' or args[i] == '--clients-file':
- print "DeprecationWarning: %s is no longer used" % args[i]
+ print("DeprecationWarning: %s is no longer used" % args[i])
i = i + 1
self.load_stats(stats_file, self.log.getEffectiveLevel() > logging.WARNING, quick)
elif args[0] == 'purge':
diff --git a/src/lib/Bcfg2/Server/Admin/Syncdb.py b/src/lib/Bcfg2/Server/Admin/Syncdb.py
index c9bba0810..72d3d469e 100644
--- a/src/lib/Bcfg2/Server/Admin/Syncdb.py
+++ b/src/lib/Bcfg2/Server/Admin/Syncdb.py
@@ -35,5 +35,5 @@ class Syncdb(Bcfg2.Server.Admin.Mode):
try:
update_database()
except UpdaterError:
- print "Update failed"
+ print("Update failed")
raise SystemExit(-1)
diff --git a/src/lib/Bcfg2/Server/Plugins/FileProbes.py b/src/lib/Bcfg2/Server/Plugins/FileProbes.py
index f95c05d42..a403c78d7 100644
--- a/src/lib/Bcfg2/Server/Plugins/FileProbes.py
+++ b/src/lib/Bcfg2/Server/Plugins/FileProbes.py
@@ -24,7 +24,7 @@ import lxml.etree
path = "%s"
if not os.path.exists(path):
- print "%%s does not exist" %% path
+ print("%%s does not exist" %% path)
raise SystemExit(1)
stat = os.stat(path)
@@ -34,7 +34,7 @@ data = lxml.etree.Element("ProbedFileData",
group=grp.getgrgid(stat[5])[0],
perms=oct(stat[0] & 07777))
data.text = binascii.b2a_base64(open(path).read())
-print lxml.etree.tostring(data)
+print(lxml.etree.tostring(data))
"""
class FileProbes(Bcfg2.Server.Plugin.Plugin,