hankaj commented on code in PR #21136:
URL: https://github.com/apache/incubator-mxnet/pull/21136#discussion_r968333285


##########
tests/python/unittest/test_profiler.py:
##########
@@ -96,7 +96,7 @@ def test_profile_create_domain_dept():
 def test_profile_task():
     def makeParams():
         objects = tuple('foo' for _ in range(50))
-        template = ''.join('{%d}' % i for i in range(len(objects)))
+        template = ''.join(f'{{{i}}}' for i in range(len(objects)))

Review Comment:
   ```
   >>> template = ''.join(f'{{{i}}}' for i in range(3))
   >>> template
   '{0}{1}{2}'
   ```
   This syntax error seems to occur in Python2 and as far as I know it works in 
Python3. Which python version did you use?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to