◐ Shell
clean mode source ↗

Message 362178 - Python tracker

Consider the following code:

def apply(a, b):
    print(a)
    print(b)

apply(1, 1)

2to3 suggests to fix it as follows:

--- a.py	(original)
+++ a.py	(refactored)
@@ -2,4 +2,4 @@
     print(a)
     print(b)
 
-apply(1, 1)
+(1)(*1)