Changes in tools/mkext2.py [dba3e2c:86d0c263] in mainline


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • tools/mkext2.py

    rdba3e2c r86d0c263  
    3939import uuid
    4040from imgutil import *
    41 
    42 if sys.version >= '3':
    43         xrange = range
    4441
    4542GDE_SIZE = 32
     
    533530                data.flags = 0
    534531                blockconv = lambda x: 0 if x == None else x
    535                 data.direct_blocks = list(map(blockconv, self.direct))
    536                 data.indirect_blocks = list(map(blockconv, self.indirect))
     532                data.direct_blocks = map(blockconv, self.direct)
     533                data.indirect_blocks = map(blockconv, self.indirect)
    537534                data.version = 0
    538535                data.file_acl = 0
     
    570567                head.inode_type = self.type
    571568                inode.write(head.pack())
    572                 inode.write(self.name+'\0'.encode())
     569                inode.write(self.name+'\0')
    573570                inode.align_pos(4)
    574571
Note: See TracChangeset for help on using the changeset viewer.