commit | 43500a84472ffcf92ece6867ec8623a1e1cada66 | [log] [tgz] |
---|---|---|
author | Petteri Aimonen <jpa@git.mail.kapsi.fi> | Sat Jun 27 22:12:51 2020 +0300 |
committer | Petteri Aimonen <jpa@git.mail.kapsi.fi> | Sat Jun 27 22:24:30 2020 +0300 |
tree | be88875d0d04bc50bc07447166943f7e0468ccb9 | |
parent | ff1f19f3635465939be53162d35011e01894a45e [diff] |
Generator: fix compatibility bug with Python 3.1 and earlier
diff --git a/generator/nanopb_generator.py b/generator/nanopb_generator.py index f21e540..14ac685 100755 --- a/generator/nanopb_generator.py +++ b/generator/nanopb_generator.py
@@ -2033,7 +2033,7 @@ for path, data in to_write: dirname = os.path.dirname(path) if dirname and not os.path.exists(dirname): - os.makedirs(dirname, exist_ok=True) + os.makedirs(dirname) with open(path, 'w') as f: f.write(data)