diff options
| author | Guanqun Lu <guanqun.lu@gmail.com> | 2019-09-06 15:14:25 +0800 |
|---|---|---|
| committer | Guanqun Lu <guanqun.lu@gmail.com> | 2019-09-06 15:14:25 +0800 |
| commit | ba7d1b80d051f8004fa6a294e8331dcb33b85f6d (patch) | |
| tree | 73b8293110911ee7255117e28d19d611d68d0fbe /src/bootstrap | |
| parent | 618768492f0c731fcb770dc2d178abe840846419 (diff) | |
| download | rust-ba7d1b80d051f8004fa6a294e8331dcb33b85f6d.tar.gz rust-ba7d1b80d051f8004fa6a294e8331dcb33b85f6d.zip | |
it's more pythonic to use 'is not None' in python files
Diffstat (limited to 'src/bootstrap')
| -rw-r--r-- | src/bootstrap/bootstrap.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bootstrap/bootstrap.py b/src/bootstrap/bootstrap.py index 4162fe1df50..179cd488be7 100644 --- a/src/bootstrap/bootstrap.py +++ b/src/bootstrap/bootstrap.py @@ -668,7 +668,7 @@ class RustBuild(object): def update_submodule(self, module, checked_out, recorded_submodules): module_path = os.path.join(self.rust_root, module) - if checked_out != None: + if checked_out is not None: default_encoding = sys.getdefaultencoding() checked_out = checked_out.communicate()[0].decode(default_encoding).strip() if recorded_submodules[module] == checked_out: |
