px4modulesdoc: move to Python3

This commit is contained in:
TSC21
2020-01-13 21:48:35 +00:00
committed by Nuno Marques
parent 502be605fd
commit 13c0c618f3
3 changed files with 12 additions and 10 deletions
+3 -2
View File
@@ -1,3 +1,4 @@
#! /usr/bin/env python3
import os
import re
import codecs
@@ -24,7 +25,7 @@ class SourceScanner(object):
if not self.ScanFile(path, parser):
return False
except:
print("Exception in file %s" % path)
print(("Exception in file %s" % path))
raise
return True
@@ -44,6 +45,6 @@ class SourceScanner(object):
contents = f.read()
except:
contents = ''
print('Failed reading file: %s, skipping content.' % path)
print(('Failed reading file: %s, skipping content.' % path))
pass
return parser.Parse(scope, contents)