From ba7d1b80d051f8004fa6a294e8331dcb33b85f6d Mon Sep 17 00:00:00 2001 From: Guanqun Lu Date: Fri, 6 Sep 2019 15:14:25 +0800 Subject: it's more pythonic to use 'is not None' in python files --- src/libcore/unicode/printable.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/libcore') diff --git a/src/libcore/unicode/printable.py b/src/libcore/unicode/printable.py index 748917f1d34..4e8b4ecad02 100644 --- a/src/libcore/unicode/printable.py +++ b/src/libcore/unicode/printable.py @@ -60,7 +60,7 @@ def get_codepoints(f): yield Codepoint(codepoint, class_) prev_codepoint = codepoint - if class_first != None: + if class_first is not None: raise ValueError("Missing Last after First") for c in range(prev_codepoint + 1, NUM_CODEPOINTS): -- cgit 1.4.1-3-g733a5