diff options
| author | Trevor Gross <tmgross@umich.edu> | 2023-06-10 12:06:17 -0400 |
|---|---|---|
| committer | Trevor Gross <tgross@intrepidcs.com> | 2023-06-16 20:56:01 -0400 |
| commit | 22d00dcd47e0b8e18eb254966750fb523c726e4e (patch) | |
| tree | 603ea4c342940caabe746bc86822350aa5d7f9f4 /src/bootstrap/bootstrap.py | |
| parent | 4b71d79c972a605959b0a7c82b323fbd8562f070 (diff) | |
| download | rust-22d00dcd47e0b8e18eb254966750fb523c726e4e.tar.gz rust-22d00dcd47e0b8e18eb254966750fb523c726e4e.zip | |
Apply changes to fix python linting errors
Diffstat (limited to 'src/bootstrap/bootstrap.py')
| -rw-r--r-- | src/bootstrap/bootstrap.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bootstrap/bootstrap.py b/src/bootstrap/bootstrap.py index 473fdbe1edc..5714613cdf5 100644 --- a/src/bootstrap/bootstrap.py +++ b/src/bootstrap/bootstrap.py @@ -620,7 +620,7 @@ class RustBuild(object): # The latter one does not exist on NixOS when using tmpfs as root. try: with open("/etc/os-release", "r") as f: - if not any(l.strip() in ("ID=nixos", "ID='nixos'", 'ID="nixos"') for l in f): + if not any(ln.strip() in ("ID=nixos", "ID='nixos'", 'ID="nixos"') for ln in f): return False except FileNotFoundError: return False @@ -872,7 +872,7 @@ class RustBuild(object): } for var_name, toml_key in var_data.items(): toml_val = self.get_toml(toml_key, build_section) - if toml_val != None: + if toml_val is not None: env["{}_{}".format(var_name, host_triple_sanitized)] = toml_val # preserve existing RUSTFLAGS |
