aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorAvatar zaufi <i.zaufi@gmail.com> 2013-12-13 01:47:46 +0400
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2013-12-29 19:59:08 +0000
commitff990637e2397690ce911a762d1ce089acd602ad (patch)
tree00e2d13bd96a6a4bb90761bdb3d2d9e11b39e9a4 /doc
parentfddcb26bc121d802d79b67034ef90cb7a99338ff (diff)
downloadpaludis-ff990637e2397690ce911a762d1ce089acd602ad.tar.gz
paludis-ff990637e2397690ce911a762d1ce089acd602ad.tar.xz
Make it Python3 compatible
Diffstat (limited to 'doc')
-rwxr-xr-xdoc/api/python/example_version_spec.py15
1 files changed, 7 insertions, 8 deletions
diff --git a/doc/api/python/example_version_spec.py b/doc/api/python/example_version_spec.py
index c479d7332..bd6110266 100755
--- a/doc/api/python/example_version_spec.py
+++ b/doc/api/python/example_version_spec.py
@@ -10,13 +10,12 @@ versions = [paludis.VersionSpec(v) for v in "1.0 1.1 1.2 1.2-r1 2.0 2.0-try1 2.0
# For each version...
for v in versions:
- print str(v) + ":"
+ print(str(v) + ":")
# Show the output of various members.
- print " Remove revision: %s" % v.remove_revision()
- print " Revision only: %s" % v.revision_only()
- print " Bump: %s" % v.bump()
- print " Is SCM? %s" % v.is_scm
- print " Has -try? %s" % v.has_try_part
- print " Has -scm? %s" % v.has_scm_part
- print
+ print(" Remove revision: %s" % v.remove_revision())
+ print(" Revision only: %s" % v.revision_only())
+ print(" Bump: %s" % v.bump())
+ print(" Is SCM? %s" % v.is_scm)
+ print(" Has -try? %s" % v.has_try_part)
+ print(" Has -scm? %s" % v.has_scm_part)