mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-29 08:15:18 -04:00
dist: Fix error building Windows executable in Python 3.9
This commit is contained in:
parent
c53f461f3f
commit
f88441c584
6
direct/src/dist/pefile.py
vendored
6
direct/src/dist/pefile.py
vendored
@ -246,7 +246,11 @@ class VersionInfoResource(object):
|
||||
length, value_length = unpack('<HH', data[0:4])
|
||||
offset = 40 + value_length + (value_length & 1)
|
||||
dwords = array('I')
|
||||
dwords.fromstring(bytes(data[40:offset]))
|
||||
if sys.version_info >= (3, 2):
|
||||
dwords.frombytes(bytes(data[40:offset]))
|
||||
else:
|
||||
dwords.fromstring(bytes(data[40:offset]))
|
||||
|
||||
if len(dwords) > 0:
|
||||
self.signature = dwords[0]
|
||||
if len(dwords) > 1:
|
||||
|
Loading…
x
Reference in New Issue
Block a user