diff options
author | Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> | 2009-09-20 11:08:30 +0000 |
---|---|---|
committer | Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> | 2009-09-20 11:08:30 +0000 |
commit | 15b8a5bbdf3fb81edc6eac707bd2bd78d54394cf (patch) | |
tree | dbb60d5bbf670f1872539fca80263f17352f5c26 /bin/ebuild-helpers/dohtml | |
parent | 7cb8fb941f09d1ac646be334745f90e16ebd46eb (diff) | |
download | portage-15b8a5bbdf3fb81edc6eac707bd2bd78d54394cf.tar.gz portage-15b8a5bbdf3fb81edc6eac707bd2bd78d54394cf.tar.bz2 portage-15b8a5bbdf3fb81edc6eac707bd2bd78d54394cf.zip |
Update syntax of calls to print() for compatibility with Python 3.
(2to3-3.1 -f print -nw ${FILES})
svn path=/main/trunk/; revision=14290
Diffstat (limited to 'bin/ebuild-helpers/dohtml')
-rwxr-xr-x | bin/ebuild-helpers/dohtml | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/bin/ebuild-helpers/dohtml b/bin/ebuild-helpers/dohtml index be3716d8e..f672a9a0c 100755 --- a/bin/ebuild-helpers/dohtml +++ b/bin/ebuild-helpers/dohtml @@ -106,19 +106,19 @@ class OptionsClass: def print_help(): opts = OptionsClass() - print "dohtml [-a .foo,.bar] [-A .foo,.bar] [-f foo,bar] [-x foo,bar]" - print " [-r] [-V] <file> [file ...]" - print - print " -a Set the list of allowed to those that are specified." - print " Default:", ",".join(opts.allowed_exts) - print " -A Extend the list of allowed file types." - print " -f Set list of allowed extensionless file names." - print " -x Set directories to be excluded from recursion." - print " Default:", ",".join(opts.disallowed_dirs) - print " -p Set a document prefix for installed files (empty by default)." - print " -r Install files and directories recursively." - print " -V Be verbose." - print + print("dohtml [-a .foo,.bar] [-A .foo,.bar] [-f foo,bar] [-x foo,bar]") + print(" [-r] [-V] <file> [file ...]") + print() + print(" -a Set the list of allowed to those that are specified.") + print(" Default:", ",".join(opts.allowed_exts)) + print(" -A Extend the list of allowed file types.") + print(" -f Set list of allowed extensionless file names.") + print(" -x Set directories to be excluded from recursion.") + print(" Default:", ",".join(opts.disallowed_dirs)) + print(" -p Set a document prefix for installed files (empty by default).") + print(" -r Install files and directories recursively.") + print(" -V Be verbose.") + print() def parse_args(): options = OptionsClass() @@ -163,9 +163,9 @@ def main(): (options, args) = parse_args() if options.verbose: - print "Allowed extensions:", options.allowed_exts - print "Document prefix : '" + options.doc_prefix + "'" - print "Allowed files :", options.allowed_files + print("Allowed extensions:", options.allowed_exts) + print("Document prefix : '" + options.doc_prefix + "'") + print("Allowed files :", options.allowed_files) success = False |