Changes in tools/mkhord.py [28f4adb:8f2a852] in mainline


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • tools/mkhord.py

    r28f4adb r8f2a852  
    2727# THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
    2828#
    29 
    3029"""
    3130HORD encapsulator
     
    5251def usage(prname):
    5352        "Print usage syntax"
    54         print(prname + " <ALIGNMENT> <FS_IMAGE> <HORD_IMAGE>")
     53        print prname + " <ALIGNMENT> <FS_IMAGE> <HORD_IMAGE>"
    5554
    5655def main():
     
    6059       
    6160        if (not sys.argv[1].isdigit()):
    62                 print("<ALIGNMENT> must be a number")
     61                print "<ALIGNMENT> must be a number"
    6362                return
    6463       
    6564        align = int(sys.argv[1], 0)
    6665        if (align <= 0):
    67                 print("<ALIGNMENT> must be positive")
     66                print "<ALIGNMENT> must be positive"
    6867                return
    6968       
    7069        fs_image = os.path.abspath(sys.argv[2])
    7170        if (not os.path.isfile(fs_image)):
    72                 print("<FS_IMAGE> must be a file")
     71                print "<FS_IMAGE> must be a file"
    7372                return
    7473       
    75         inf = open(fs_image, "rb")
    76         outf = open(sys.argv[3], "wb")
     74        inf = file(fs_image, "rb")
     75        outf = file(sys.argv[3], "wb")
    7776       
    7877        header = xstruct.create(HEADER)
Note: See TracChangeset for help on using the changeset viewer.