summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Pipping <sebastian@pipping.org>2012-04-03 23:31:17 +0200
committerSebastian Pipping <sebastian@pipping.org>2012-04-03 23:31:17 +0200
commit2a05c06b9d2d7c3242636b3b01914ffb427e3133 (patch)
tree3f8ebea1adae5fa3c1bcc9015c819bb6b1942dcc
parentAdd releasable version of initial code (diff)
downloadoverlint-2a05c06b9d2d7c3242636b3b01914ffb427e3133.tar.gz
overlint-2a05c06b9d2d7c3242636b3b01914ffb427e3133.tar.bz2
overlint-2a05c06b9d2d7c3242636b3b01914ffb427e3133.zip
Move towards print function
-rw-r--r--overlint/cli.py15
1 files changed, 8 insertions, 7 deletions
diff --git a/overlint/cli.py b/overlint/cli.py
index 5ee42d7..f660d94 100644
--- a/overlint/cli.py
+++ b/overlint/cli.py
@@ -1,6 +1,7 @@
# Copyright (C) 2012 Sebastian Pipping <sebastian@pipping.org>
# Licender under GPL v2 or later
+from __future__ import print_function
import sys
import os
import portage
@@ -73,7 +74,7 @@ def find_ebuild_changes(category_package, overlay_path, gentoo_versions, overlay
ret = os.system(command)
if not ret:
continue
- # print "meld '/usr/portage/%s/%s' '%s/%s/%s'" % (category_package, ebuild_name, overlay_path, category_package, ebuild_name)
+ # print("meld '/usr/portage/%s/%s' '%s/%s/%s'" % (category_package, ebuild_name, overlay_path, category_package, ebuild_name))
ebuild_changes.append(version)
return ebuild_changes
@@ -83,14 +84,14 @@ def sorted_versions(versions):
def dump_tree(tree, title):
- print '==============================================================='
- print title
- print '==============================================================='
+ print('===============================================================')
+ print(title)
+ print('===============================================================')
for category, package_versions in sorted(tree.items()):
- print '%s/' % category
+ print('%s/' % category)
for package, versions in sorted(package_versions.items()):
- print ' %s :: %s' % (package, ', '.join(sorted_versions(versions)))
- print
+ print(' %s :: %s' % (package, ', '.join(sorted_versions(versions))))
+ print()
def main(args):