Skip to content

Commit

Permalink
Merge pull request #111 from SummerGGift/for_python3
Browse files Browse the repository at this point in the history
[optimize] the way to open file
  • Loading branch information
armink committed Nov 28, 2019
2 parents 3e6670a + fe8d2d5 commit 55c27cb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmds/cmd_package.py
Original file line number Diff line number Diff line change
Expand Up @@ -1007,13 +1007,13 @@ def package_wizard():
uppername = str.upper(name)
kconfig = s.substitute(name=uppername, description=description, version=ver,
pkgs_class=pkgsclass, lowercase_name=name, version_standard=ver_standard)
f = file(os.path.join(pkg_path, 'Kconfig'), 'wb')
f = open(os.path.join(pkg_path, 'Kconfig'), 'wb')
f.write(kconfig)
f.close()

s = Template(Package_json_file)
package = s.substitute(name=name, pkgsclass=pkgsclass,authorname=authorname,authoremail=authoremail, description=description, description_zh=description_zh,version=ver, keyword=keyword,license=license, repository=repository, pkgs_using_name=uppername)
f = file(os.path.join(pkg_path, 'package.json'), 'wb')
f = open(os.path.join(pkg_path, 'package.json'), 'wb')
f.write(package)
f.close()

Expand Down

0 comments on commit 55c27cb

Please sign in to comment.