utarfile: Update for uctype.struct() signature change.

pull/29/merge
Paul Sokolovsky 2015-06-06 22:59:30 +03:00
rodzic 156da0b217
commit d34b3708f5
3 zmienionych plików z 3 dodań i 3 usunięć

Wyświetl plik

@ -1,5 +1,5 @@
srctype = micropython-lib srctype = micropython-lib
type = module type = module
version = 0.1 version = 0.1.1
author = Paul Sokolovsky author = Paul Sokolovsky
long_desc = Lightweight tarfile module subset long_desc = Lightweight tarfile module subset

Wyświetl plik

@ -6,7 +6,7 @@ from setuptools import setup
setup(name='micropython-utarfile', setup(name='micropython-utarfile',
version='0.1', version='0.1.1',
description='utarfile module for MicroPython', description='utarfile module for MicroPython',
long_description='Lightweight tarfile module subset', long_description='Lightweight tarfile module subset',
url='https://github.com/micropython/micropython/issues/405', url='https://github.com/micropython/micropython/issues/405',

Wyświetl plik

@ -56,7 +56,7 @@ class TarFile:
if not buf: if not buf:
return None 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 # Empty block means end of archive
if h.name[0] == 0: if h.name[0] == 0: