2to3 equivalent to --fix=tuple_params
I hope I got this all right...
diff --git a/Lib/fontTools/misc/transform.py b/Lib/fontTools/misc/transform.py
index 769475f..565aa3c 100644
--- a/Lib/fontTools/misc/transform.py
+++ b/Lib/fontTools/misc/transform.py
@@ -96,7 +96,7 @@
"""
self.__affine = xx, xy, yx, yy, dx, dy
- def transformPoint(self, (x, y)):
+ def transformPoint(self, p):
"""Transform a point.
Example:
@@ -105,6 +105,7 @@
>>> t.transformPoint((100, 100))
(250.0, 550.0)
"""
+ (x, y) = p
xx, xy, yx, yy, dx, dy = self.__affine
return (xx*x + yx*y + dx, xy*x + yy*y + dy)