kopia lustrzana https://github.com/micropython/micropython-lib
utarfile: Update for uctype.struct() signature change.
rodzic
156da0b217
commit
d34b3708f5
|
@ -1,5 +1,5 @@
|
|||
srctype = micropython-lib
|
||||
type = module
|
||||
version = 0.1
|
||||
version = 0.1.1
|
||||
author = Paul Sokolovsky
|
||||
long_desc = Lightweight tarfile module subset
|
||||
|
|
|
@ -6,7 +6,7 @@ from setuptools import setup
|
|||
|
||||
|
||||
setup(name='micropython-utarfile',
|
||||
version='0.1',
|
||||
version='0.1.1',
|
||||
description='utarfile module for MicroPython',
|
||||
long_description='Lightweight tarfile module subset',
|
||||
url='https://github.com/micropython/micropython/issues/405',
|
||||
|
|
|
@ -56,7 +56,7 @@ class TarFile:
|
|||
if not buf:
|
||||
return None
|
||||
|
||||
h = uctypes.struct(TAR_HEADER, uctypes.addressof(buf), uctypes.LITTLE_ENDIAN)
|
||||
h = uctypes.struct(uctypes.addressof(buf), TAR_HEADER, uctypes.LITTLE_ENDIAN)
|
||||
|
||||
# Empty block means end of archive
|
||||
if h.name[0] == 0:
|
||||
|
|
Ładowanie…
Reference in New Issue