VirtualBox

Changeset 93923 in vbox


Ignore:
Timestamp:
Feb 24, 2022 3:15:10 PM (3 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
150151
Message:

rdesktop: Use python3 compatible syntax in key map converter.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/RDP/client-1.8.4/keymaps/convert-map

    r55121 r93923  
    2626
    2727        if line.startswith("#") or line.startswith("include"):
    28             print line,
     28            print(line,)
    2929            continue
    3030
     
    3232
    3333        if line.startswith("map"):
    34             print "map 0x%s" % fields[1]
     34            print("map 0x%s" % fields[1])
    3535            continue
    3636
     
    5050                raise("Invalid line: %s" % line)
    5151           
    52             print "%s 0x%s %s" % (keysym, scancode, modifiers)
     52            print("%s 0x%s %s" % (keysym, scancode, modifiers))
    5353
    5454
     
    5656if __name__ == "__main__":
    5757    if len(sys.argv) < 2:
    58         print "Convert old-style keymaps to new style"
    59         print "Usage: %s <old-style-keymap>" % sys.argv[0]
     58        print("Convert old-style keymaps to new style")
     59        print("Usage: %s <old-style-keymap>" % sys.argv[0])
    6060        sys.exit(1)
    6161    else:
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette