From 0192fd98d05632968b4943bfba9f6b328f37486d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yifan=20Li=E6=9D=8E=E4=B8=80=E5=B8=86?= Date: Thu, 14 Dec 2023 00:46:16 -0500 Subject: [PATCH] Do not compare types, use `isinstance()` --- dpti/lib/RemoteJob.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dpti/lib/RemoteJob.py b/dpti/lib/RemoteJob.py index 008f786a..32486b46 100644 --- a/dpti/lib/RemoteJob.py +++ b/dpti/lib/RemoteJob.py @@ -24,7 +24,7 @@ def _default_item(resources, key, value): def _set_default_resource(res): - if res == None: + if res is None: res = {} _default_item(res, "numb_node", 1) _default_item(res, "task_per_node", 1)