From bd0652d2f89432674cf2563fe91896c10e8b9012 Mon Sep 17 00:00:00 2001 From: "Gao, Xiang" Date: Sun, 8 Sep 2019 19:56:18 -0700 Subject: [PATCH] Remove f-string (#24) --- torchsnooper/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/torchsnooper/__init__.py b/torchsnooper/__init__.py index 6f4383b..d916c77 100644 --- a/torchsnooper/__init__.py +++ b/torchsnooper/__init__.py @@ -84,7 +84,7 @@ def __call__(self, tensor): class NumpyFormat: def __call__(self, x): - return f'ndarray<{x.shape}, {x.dtype.name}>' + return 'ndarray<{}, {}>'.format(x.shape, x.dtype.name) default_numpy_format = NumpyFormat()