aboutsummaryrefslogtreecommitdiff
path: root/doc/api/python/example_version_spec.py
diff options
context:
space:
mode:
Diffstat (limited to 'doc/api/python/example_version_spec.py')
-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)