about summary refs log tree commit diff
path: root/src/libcore/unicode
diff options
context:
space:
mode:
authorGuanqun Lu <guanqun.lu@gmail.com>2019-09-06 15:14:25 +0800
committerGuanqun Lu <guanqun.lu@gmail.com>2019-09-06 15:14:25 +0800
commitba7d1b80d051f8004fa6a294e8331dcb33b85f6d (patch)
tree73b8293110911ee7255117e28d19d611d68d0fbe /src/libcore/unicode
parent618768492f0c731fcb770dc2d178abe840846419 (diff)
downloadrust-ba7d1b80d051f8004fa6a294e8331dcb33b85f6d.tar.gz
rust-ba7d1b80d051f8004fa6a294e8331dcb33b85f6d.zip
it's more pythonic to use 'is not None' in python files
Diffstat (limited to 'src/libcore/unicode')
-rw-r--r--src/libcore/unicode/printable.py2
1 files changed, 1 insertions, 1 deletions
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):