diff options
author | Petteri Aimonen <jpa@git.mail.kapsi.fi> | 2012-01-30 10:36:17 +0200 |
---|---|---|
committer | Petteri Aimonen <jpa@git.mail.kapsi.fi> | 2012-01-30 10:36:17 +0200 |
commit | f6b08404fa9408e719785f89ee69df8e2457e158 (patch) | |
tree | 8454bfc236ea83de3fb6b41a619dd28d5279fb52 /generator | |
parent | b36a1a259ac065fcd21f4871c8c1e1db429e32bb (diff) |
Fixed nanopb_generator.py to read the input file in binary mode.
Diffstat (limited to 'generator')
-rw-r--r-- | generator/nanopb_generator.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/generator/nanopb_generator.py b/generator/nanopb_generator.py index 2ceafc7..337b32a 100644 --- a/generator/nanopb_generator.py +++ b/generator/nanopb_generator.py @@ -404,7 +404,7 @@ if __name__ == '__main__': print "Output fill be written to file.pb.h and file.pb.c" sys.exit(1) - data = open(sys.argv[1]).read() + data = open(sys.argv[1], 'rb').read() fdesc = descriptor.FileDescriptorSet.FromString(data) enums, messages = parse_file(fdesc.file[0]) |