Changes in tools/mkfat.py [67435b1:87608a5] in mainline


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • tools/mkfat.py

    r67435b1 r87608a5  
    189189        "Filter FAT legal characters"
    190190       
    191         filtered_name = b''
     191        filtered_name = ''
    192192        filtered = False
    193193       
     
    205205       
    206206        ascii_name, lfn = fat_lchars(name)
    207         # Splitting works only on strings, not on bytes
    208         ascii_parts = ascii_name.decode('utf8').split('.')
     207        ascii_parts = ascii_name.split('.')
    209208       
    210209        short_name = ''
     
    445444        extra_bytes = int(sys.argv[1])
    446445       
    447         path = os.path.abspath(sys.argv[2])
     446        path = os.path.abspath(sys.argv[2].decode())
    448447        if (not os.path.isdir(path)):
    449448                print("<PATH> must be a directory")
Note: See TracChangeset for help on using the changeset viewer.