fix file->open
@@ -34,7 +34,7 @@ def sh2(cmd, ignore_retcode = False):
return out.rstrip()
## Start
-fid = file(changelog_filename,'w')
+with open(changelog_filename,'w') as fid:
fid.write(header)
tags = sh2('git tag').split('\n')
