Skip to content
This repository has been archived by the owner on Sep 18, 2018. It is now read-only.

Commit

Permalink
Fixed buildxpi.py for python 3.
Browse files Browse the repository at this point in the history
  • Loading branch information
rupertsteel committed May 30, 2015
1 parent 26a7047 commit 300a222
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion buildxpi.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ def print_info(self):
self.msg(" - Version: %s" % self.info["version"], False)
self.msg(" - Filename: %s" % self.pn("xpi"), False)

xpifile = open(self.pn("xpi"), "r")
xpifile = open(self.pn("xpi"), "rb")
hashname, hash = sha_hash(xpifile.read())
xpifile.close()
self.msg(" - %s: %s" % (hashname, hash), False)
Expand Down

0 comments on commit 300a222

Please sign in to comment.