doc/mkapiref.py: Support python3.3

This commit is contained in:
Tatsuhiro Tsujikawa 2013-12-19 00:05:54 +09:00
parent 6039e6b9c7
commit 0af0bd4362
1 changed files with 2 additions and 2 deletions

View File

@ -199,9 +199,9 @@ def transform_content(content):
if __name__ == '__main__':
parser = argparse.ArgumentParser(description="Generate API reference")
parser.add_argument('--header', type=argparse.FileType('rb', 0),
parser.add_argument('--header', type=argparse.FileType('r'),
help='header inserted at the top of the page')
parser.add_argument('files', nargs='+', type=argparse.FileType('rb', 0),
parser.add_argument('files', nargs='+', type=argparse.FileType('r'),
help='source file')
args = parser.parse_args()
if args.header: