From d5488110c4c5a011ee2564e44735d77a4795c47b Mon Sep 17 00:00:00 2001 From: Andreas Kloeckner Date: Sun, 31 Jul 2022 14:45:20 -0500 Subject: [PATCH] Fix lint missed by flake8<5 --- examples/svm.py | 2 +- pyopencl/__init__.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/examples/svm.py b/examples/svm.py index 29dd28f1..a6036ea7 100644 --- a/examples/svm.py +++ b/examples/svm.py @@ -43,7 +43,7 @@ if has_coarse_grain_buffer_svm(dev): queue.finish() with svm_ary.map_ro(queue) as ary: - assert(np.array_equal(orig_ary*2, ary)) + assert np.array_equal(orig_ary*2, ary) print(" done.") diff --git a/pyopencl/__init__.py b/pyopencl/__init__.py index 6420e5af..0e880bc2 100644 --- a/pyopencl/__init__.py +++ b/pyopencl/__init__.py @@ -1134,7 +1134,8 @@ def _add_functionality(): # {{{ SVMAllocation if get_cl_header_version() >= (2, 0): - SVMAllocation.__doc__ = """An object whose lifetime is tied to an allocation of shared virtual memory. + SVMAllocation.__doc__ = """An object whose lifetime is tied to an + allocation of shared virtual memory. .. note:: -- GitLab