#
#replaced with path to current .todo
-#HEADER_STRING = 'TODO %s'
-HEADER_STRING = '\n=== %s ==='
+#HEADER_STRING = 'TODO %s'
+HEADER_STRING = '\n=== %s ==='
#--force-colour necessary to keep color information
DEFAULT_DEVTODO_OPTIONS = '--force-colour --filter -children'
if sys.argv[1:]:
#help if requested
if sys.argv[1] == '-h' or sys.argv[1] == '--help':
- print usage % (os.path.basename(sys.argv[0]), DEFAULT_DEVTODO_OPTIONS)
+ print(usage % (os.path.basename(sys.argv[0]), DEFAULT_DEVTODO_OPTIONS))
sys.exit()
DEVTODO_OPTIONS = '--force-colour ' + ' '.join(sys.argv[1:])
else:
stdout=subprocess.PIPE).stdout
todoOutput = f.read()
if todoOutput:
- print HEADER_STRING % herePath(dpath, cwd)
- print LAST_NL_RE.sub('\g<2>', todoOutput)
+ print(HEADER_STRING % herePath(dpath, cwd))
+ print(LAST_NL_RE.sub('\g<2>', todoOutput))