summaryrefslogtreecommitdiff
path: root/giscanner/annotationmain.py
diff options
context:
space:
mode:
Diffstat (limited to 'giscanner/annotationmain.py')
-rw-r--r--giscanner/annotationmain.py21
1 files changed, 11 insertions, 10 deletions
diff --git a/giscanner/annotationmain.py b/giscanner/annotationmain.py
index 874cd23c..190269e2 100644
--- a/giscanner/annotationmain.py
+++ b/giscanner/annotationmain.py
@@ -20,6 +20,7 @@
from __future__ import absolute_import
from __future__ import division
+from __future__ import print_function
import optparse
@@ -64,16 +65,16 @@ def annotation_main(args):
parser = GtkDocCommentBlockParser()
writer = GtkDocCommentBlockWriter(indent=False)
blocks = parser.parse_comment_blocks(ss.get_comments())
- print '/' + ('*' * 60) + '/'
- print '/* THIS FILE IS GENERATED DO NOT EDIT */'
- print '/' + ('*' * 60) + '/'
- print
+ print('/' + ('*' * 60) + '/')
+ print('/* THIS FILE IS GENERATED DO NOT EDIT */')
+ print('/' + ('*' * 60) + '/')
+ print('')
for block in sorted(blocks.values()):
- print writer.write(block)
- print
- print
- print '/' + ('*' * 60) + '/'
- print '/* THIS FILE IS GENERATED DO NOT EDIT */'
- print '/' + ('*' * 60) + '/'
+ print(writer.write(block))
+ print('')
+ print('')
+ print('/' + ('*' * 60) + '/')
+ print('/* THIS FILE IS GENERATED DO NOT EDIT */')
+ print('/' + ('*' * 60) + '/')
return 0