Changes in tools/mktmpfs.py [24edc18:28f4adb] in mainline


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • tools/mktmpfs.py

    r24edc18 r28f4adb  
    2727# THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
    2828#
     29
    2930"""
    3031TMPFS creator
     
    6566def usage(prname):
    6667        "Print usage syntax"
    67         print prname + " <PATH> <IMAGE>"
     68        print(prname + " <PATH> <IMAGE>")
    6869
    6970def recursion(root, outf):
     
    8485                        outf.write(dentry.pack())
    8586                       
    86                         inf = file(canon, "r")
     87                        inf = open(canon, "rb")
    8788                        rd = 0;
    8889                        while (rd < size):
     
    115116        path = os.path.abspath(sys.argv[1])
    116117        if (not os.path.isdir(path)):
    117                 print "<PATH> must be a directory"
     118                print("<PATH> must be a directory")
    118119                return
    119120       
    120         outf = file(sys.argv[2], "w")
     121        outf = open(sys.argv[2], "wb")
    121122       
    122123        header = xstruct.create(HEADER)
Note: See TracChangeset for help on using the changeset viewer.