aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Harvey <chris@basementcode.com>2010-06-20 23:50:25 -0400
committerChristopher Harvey <chris@basementcode.com>2010-06-20 23:50:25 -0400
commit7ac9936d046395eada3efedc80cd5e0722ea6230 (patch)
tree69b5b2a59b6956e47038768a99e1ab0fa3ba62ea
parentAdded 'probe' flag to the edit tree build function to mark cases where the fu... (diff)
downloadventoo-7ac9936d046395eada3efedc80cd5e0722ea6230.tar.gz
ventoo-7ac9936d046395eada3efedc80cd5e0722ea6230.tar.bz2
ventoo-7ac9936d046395eada3efedc80cd5e0722ea6230.zip
Converted some print statements to python 3.1
-rw-r--r--src/ventoo/RcUpdateWindow.py2
-rw-r--r--src/ventoo/main.py10
2 files changed, 6 insertions, 6 deletions
diff --git a/src/ventoo/RcUpdateWindow.py b/src/ventoo/RcUpdateWindow.py
index 5642c03..1661eef 100644
--- a/src/ventoo/RcUpdateWindow.py
+++ b/src/ventoo/RcUpdateWindow.py
@@ -115,7 +115,7 @@ class RcUpdateWindow(gtk.Window):
if retcode == 0:
self.tv_store[path][column] = not self.tv_store[path][column]
else:
- print "Call to rc-update failed." #TODO: print nice error.
+ print("Call to rc-update failed.") #TODO: print nice error.
#self.emit("entry-toggled", path)
pass
diff --git a/src/ventoo/main.py b/src/ventoo/main.py
index badf447..e0e060d 100644
--- a/src/ventoo/main.py
+++ b/src/ventoo/main.py
@@ -179,7 +179,7 @@ class MainWindow(gtk.Window):
augeas_utils.makeDiffTree(self.a, augeas_utils.getDiffRoot())
diffFiles = [self.currentConfigFilePath, augeas_utils.getDiffLocation(self.a, self.currentConfigFilePath)]
if not osp.isfile(diffFiles[1]):
- print "Could not find a diff file...were changes made?"
+ print("Could not find a diff file...were changes made?")
else:
origFile = open(diffFiles[0])
origList = file.readlines(origFile)
@@ -332,7 +332,7 @@ class MainWindow(gtk.Window):
p = osp.join(augeasFileRoot, child.tag)
if have+numNeeded > 1:
p = p + '[' + str(i) + ']'
- print 'added ' + p + ' to augeas'
+ print('added ' + p + ' to augeas')
self.a.set(p, '')
toAddtoHave += 1
have += toAddtoHave
@@ -402,13 +402,13 @@ if __name__ == '__main__':
if len(sys.argv) > 1:
sandboxDir = sys.argv[1]
if not osp.isdir(sandboxDir):
- print sandboxDir + " is not a directory."
+ print(sandboxDir + " is not a directory.")
sys.exit(0)
- print 'Starting augeas...'
+ print('Starting augeas...')
#None could be a 'loadpath'
a = augeas.Augeas(sandboxDir, None, augeas.Augeas.SAVE_NEWFILE)
- print 'Creating window...'
+ print('Creating window...')
if sandboxDir == '/':
pass