Ignore:
Timestamp:
03/24/19 08:15:59 (4 years ago)
Author:
István Váradi <ivaradi@…>
Branch:
python3
hg-Phase:
(<MercurialRepository 1 'hg:/home/ivaradi/mlx/hg' '/'>, 'public')
Message:

Ran 2to3

File:
1 edited

Legend:

Unmodified
Added
Removed
  • diffdist.py

    r310 r919  
    1818def usage():
    1919    """Print a usage message."""
    20     print "Usage: %s <old dist dir> <new dist dir>" % (sys.argv[0],)
     20    print("Usage: %s <old dist dir> <new dist dir>" % (sys.argv[0],))
    2121
    2222#--------------------------------------------------------------------------
     
    6262
    6363                if numDiffs<=4:
    64                     print "File %s is considered to be the same in both versions with %d changes" % \
    65                           (path, numDiffs)
     64                    print("File %s is considered to be the same in both versions with %d changes" % \
     65                          (path, numDiffs))
    6666                    finalManifest.addFile(path, oldSize, oldSum)
    6767                    copyOld = True
    6868
    6969        if not copyOld:
    70             print ">>> File %s is being copied" % (path,)
     70            print(">>> File %s is being copied" % (path,))
    7171            tarFile.add(os.path.join(newDirectory, path), arcname = path)
    7272           
     
    7474    with os.fdopen(fd, "wt") as f:
    7575        finalManifest.writeInto(f)
    76     os.chmod(path, 0644)
     76    os.chmod(path, 0o644)
    7777    tarFile.add(path, arcname = manifestName)
    7878    tarFile.close()
     
    8080    os.remove(path)
    8181
    82     print
    83     print "%s created" % (tarName,)
     82    print()
     83    print("%s created" % (tarName,))
    8484    if removed:
    85         print
    86         print "Files to remove:"
    87         print
     85        print()
     86        print("Files to remove:")
     87        print()
    8888        for path in removed:
    89             print "  ", path
     89            print("  ", path)
Note: See TracChangeset for help on using the changeset viewer.