Skip to content

Commit

Permalink
fix Building.is_wasm on python3 ; fixes wasmobj2.test_linker_response…
Browse files Browse the repository at this point in the history
…_file on python3 (emscripten-core#7479)
  • Loading branch information
kripken authored and Beuc committed Nov 17, 2018
1 parent 824b93a commit 29fecab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/shared.py
Expand Up @@ -2647,7 +2647,7 @@ def is_bitcode(filename):

@staticmethod
def is_wasm(filename):
magic = bytearray(open(filename, 'rb').read(4))
magic = asstr(open(filename, 'rb').read(4))
return magic == '\0asm'

@staticmethod
Expand Down

0 comments on commit 29fecab

Please sign in to comment.