From 8dcd85ead24f8c04afe53633fd595eae5bf51841 Mon Sep 17 00:00:00 2001 From: Victor Khaustov <3192677+vi3itor@users.noreply.github.com> Date: Fri, 13 May 2022 19:05:00 +0900 Subject: [PATCH] Remove redundant parentheses --- tools_numpy.ipynb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools_numpy.ipynb b/tools_numpy.ipynb index 2c509f6..9a27cd8 100644 --- a/tools_numpy.ipynb +++ b/tools_numpy.ipynb @@ -850,7 +850,7 @@ } ], "source": [ - "if (hasattr(f.data, \"tobytes\")):\n", + "if hasattr(f.data, \"tobytes\"):\n", " data_bytes = f.data.tobytes() # python 3\n", "else:\n", " data_bytes = memoryview(f.data).tobytes() # python 2\n",