diff options
| author | Mazdak Farrokhzad <twingoow@gmail.com> | 2019-09-06 19:00:52 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-09-06 19:00:52 +0200 |
| commit | ee54499be420943c9c15ff2f7be6d6f738fd65f3 (patch) | |
| tree | 7bf4730a52fc24c4b8327c6ece22ad0bbb2b6fd8 /src/libcore | |
| parent | 8111cca73e0db51d9afccec5e0116a27749d4f72 (diff) | |
| parent | ba7d1b80d051f8004fa6a294e8331dcb33b85f6d (diff) | |
| download | rust-ee54499be420943c9c15ff2f7be6d6f738fd65f3.tar.gz rust-ee54499be420943c9c15ff2f7be6d6f738fd65f3.zip | |
Rollup merge of #64208 - guanqun:py-is-not-none, r=matklad
it's more pythonic to use 'is not None' in python files
Diffstat (limited to 'src/libcore')
| -rw-r--r-- | src/libcore/unicode/printable.py | 2 |
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): |
