diff options
Diffstat (limited to 'lv2specgen/lv2docgen.py')
-rwxr-xr-x | lv2specgen/lv2docgen.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lv2specgen/lv2docgen.py b/lv2specgen/lv2docgen.py index 23a239d..d620a34 100755 --- a/lv2specgen/lv2docgen.py +++ b/lv2specgen/lv2docgen.py @@ -133,6 +133,5 @@ if __name__ == '__main__': raise print('Writing <%s> documentation to %s' % (plugin, outpath)) - out = open(outpath, 'w') - out.write(html) - out.close() + with open(outpath, 'w') as out: + out.write(html) |