diff options
| author | bors <bors@rust-lang.org> | 2017-10-10 08:30:10 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2017-10-10 08:30:10 +0000 |
| commit | 5f578dfad0dd5d43b28eff71a7e857d10c3f55fe (patch) | |
| tree | 3be1199fa3bc4458aea4e7c083241db51dd11aca /src/bootstrap | |
| parent | 13ae187043a73a07bc15f5856d1a8f7a737f244d (diff) | |
| parent | 6a7785330a664adae535b29bfdc7c79012fca6bb (diff) | |
| download | rust-5f578dfad0dd5d43b28eff71a7e857d10c3f55fe.tar.gz rust-5f578dfad0dd5d43b28eff71a7e857d10c3f55fe.zip | |
Auto merge of #45141 - kennytm:rollup, r=kennytm
Rollup of 9 pull requests - Successful merges: #44962, #45051, #45091, #45106, #45117, #45118, #45120, #45125, #45136 - Failed merges:
Diffstat (limited to 'src/bootstrap')
| -rw-r--r-- | src/bootstrap/bootstrap.py | 2 | ||||
| -rwxr-xr-x | src/bootstrap/configure.py | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/bootstrap/bootstrap.py b/src/bootstrap/bootstrap.py index 4a8c3dcebcb..25768867439 100644 --- a/src/bootstrap/bootstrap.py +++ b/src/bootstrap/bootstrap.py @@ -498,7 +498,7 @@ class RustBuild(object): If the key does not exists, the result is None: - >>> rb.get_toml("key3") == None + >>> rb.get_toml("key3") is None True """ for line in self.config_toml.splitlines(): diff --git a/src/bootstrap/configure.py b/src/bootstrap/configure.py index 67337bf4421..669a5029302 100755 --- a/src/bootstrap/configure.py +++ b/src/bootstrap/configure.py @@ -360,7 +360,7 @@ def to_toml(value): elif isinstance(value, str): return "'" + value + "'" else: - raise 'no toml' + raise RuntimeError('no toml') def configure_section(lines, config): for key in config: @@ -378,7 +378,7 @@ def configure_section(lines, config): for section_key in config: section_config = config[section_key] if not section_key in sections: - raise RuntimeError("config key {} not in sections".format(key)) + raise RuntimeError("config key {} not in sections".format(section_key)) if section_key == 'target': for target in section_config: |
