##// END OF EJS Templates
Python 3 print functions...
MinRK -
Show More
@@ -63,4 +63,4 b" if __name__ == '__main__':"
63 docwriter.write_index(outdir, 'gen.rst',
63 docwriter.write_index(outdir, 'gen.rst',
64 relative_to = pjoin('source','api')
64 relative_to = pjoin('source','api')
65 )
65 )
66 print '%d files written' % len(docwriter.written_modules)
66 print ('%d files written' % len(docwriter.written_modules))
@@ -17,6 +17,8 b' NOTE: this is a modified version of a script originally shipped with the'
17 PyMVPA project, which we've adapted for NIPY use. PyMVPA is an MIT-licensed
17 PyMVPA project, which we've adapted for NIPY use. PyMVPA is an MIT-licensed
18 project."""
18 project."""
19
19
20 from __future__ import print_function
21
20 # Stdlib imports
22 # Stdlib imports
21 import ast
23 import ast
22 import os
24 import os
@@ -210,7 +212,7 b' class ApiDocWriter(object):'
210 # get the names of all classes and functions
212 # get the names of all classes and functions
211 functions, classes = self._parse_module(uri)
213 functions, classes = self._parse_module(uri)
212 if not len(functions) and not len(classes):
214 if not len(functions) and not len(classes):
213 print 'WARNING: Empty -',uri # dbg
215 print ('WARNING: Empty -', uri) # dbg
214 return ''
216 return ''
215
217
216 # Make a shorter version of the uri that omits the package name for
218 # Make a shorter version of the uri that omits the package name for
General Comments 0
You need to be logged in to leave comments. Login now