Changeset de4a1cf in mainline


Ignore:
Timestamp:
2008-10-27T20:54:44Z (16 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
0951495
Parents:
95b730c2
Message:

remove conditional expression (for compatibility with older Python versions)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tools/mkfat.py

    r95b730c2 rde4a1cf  
    388388        boot_sector.fats = fat_count
    389389        boot_sector.rootdir = root_size / dirent_size
    390         boot_sector.sectors = (sectors if (sectors <= 65535) else 0)
     390        if (sectors <= 65535):
     391                boot_sector.sectors = sectors
     392        else:
     393                boot_sector.sectors = 0
    391394        boot_sector.descriptor = 0xF8
    392395        boot_sector.fat_sectors = fat_size / sector_size
     
    394397        boot_sector.heads = 6
    395398        boot_sector.hidden = 0
    396         boot_sector.sectors_big = (sectors if (sectors > 65535) else 0)
     399        if (sectors > 65535):
     400                boot_sector.sectors_big = sectors
     401        else:
     402                boot_sector.sectors_big = 0
    397403       
    398404        boot_sector.drive = 0x80
Note: See TracChangeset for help on using the changeset viewer.