Changes in tools/mkhord.py [3c80f2b:28f4adb] in mainline


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • tools/mkhord.py

    r3c80f2b r28f4adb  
    5252def usage(prname):
    5353        "Print usage syntax"
    54         print prname + " <ALIGNMENT> <FS_IMAGE> <HORD_IMAGE>"
     54        print(prname + " <ALIGNMENT> <FS_IMAGE> <HORD_IMAGE>")
    5555
    5656def main():
     
    6060       
    6161        if (not sys.argv[1].isdigit()):
    62                 print "<ALIGNMENT> must be a number"
     62                print("<ALIGNMENT> must be a number")
    6363                return
    6464       
    6565        align = int(sys.argv[1], 0)
    6666        if (align <= 0):
    67                 print "<ALIGNMENT> must be positive"
     67                print("<ALIGNMENT> must be positive")
    6868                return
    6969       
    7070        fs_image = os.path.abspath(sys.argv[2])
    7171        if (not os.path.isfile(fs_image)):
    72                 print "<FS_IMAGE> must be a file"
     72                print("<FS_IMAGE> must be a file")
    7373                return
    7474       
    75         inf = file(fs_image, "rb")
    76         outf = file(sys.argv[3], "wb")
     75        inf = open(fs_image, "rb")
     76        outf = open(sys.argv[3], "wb")
    7777       
    7878        header = xstruct.create(HEADER)
Note: See TracChangeset for help on using the changeset viewer.