diff --git a/pyopencl/__init__.py b/pyopencl/__init__.py index ec948cc31ab64f9162e52209c8cd377bb141163a..78abb3e6301c964c0c43bb2c922d7a13d08fa9b5 100644 --- a/pyopencl/__init__.py +++ b/pyopencl/__init__.py @@ -818,8 +818,6 @@ def create_some_context(interactive=None, answers=None): if not platforms: raise Error("no platforms found") - elif len(platforms) == 1: - platform, = platforms else: if not answers: cc_print("Choose platform:")