OSDN Git Service

Fix incorrect use of str.format().
authorJames Teh <jamie@jantrid.net>
Wed, 6 Oct 2010 23:50:47 +0000 (09:50 +1000)
committerJames Teh <jamie@jantrid.net>
Wed, 6 Oct 2010 23:50:47 +0000 (09:50 +1000)
source/inputCore.py

index 75c20d3..3f77d0a 100644 (file)
@@ -167,4 +167,4 @@ def normalizeGestureIdentifier(identifier):
        # but we need them to be in a determinate order so they will match other gesture identifiers.\r
        # Rather than sorting, just use Python's set ordering.\r
        main = "+".join(itertools.chain(frozenset(main[:-1]), main[-1:]))\r
-       return "{1}:{2}".format(prefix, main).lower()\r
+       return "{0}:{1}".format(prefix, main).lower()\r