Skip to content

Commit

Permalink
wscript: fix build from tarball with py3
Browse files Browse the repository at this point in the history
  • Loading branch information
nedko committed Nov 17, 2023
1 parent 4361aa3 commit cd802f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wscript
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ def configure(conf):

gitrev = None
if os.access('gitversion.h', os.R_OK):
data = file('gitversion.h').read()
data = open('gitversion.h', 'r').read()
m = re.match(r'^#define GIT_VERSION "([^"]*)"$', data)
if m != None:
gitrev = m.group(1)
Expand Down

0 comments on commit cd802f4

Please sign in to comment.