diff options
| author | Ulf Magnusson <ulfalizer@gmail.com> | 2017-09-08 19:00:48 +0200 |
|---|---|---|
| committer | Ulf Magnusson <ulfalizer@gmail.com> | 2017-09-08 19:01:17 +0200 |
| commit | 8f6f118d5f5b39619ff2100e7269971864bed045 (patch) | |
| tree | ad51a35718a6fc52086b3a2b7ebc20fe84daa5e4 /kconfiglib.py | |
| parent | 45f87b9d86951f8d2d73dd68e43de11d56ad7a3c (diff) | |
Use platform.uname() instead of os.uname()
Portable to non-Unix platforms.
Diffstat (limited to 'kconfiglib.py')
| -rw-r--r-- | kconfiglib.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/kconfiglib.py b/kconfiglib.py index 9bc89f3..fe54553 100644 --- a/kconfiglib.py +++ b/kconfiglib.py @@ -67,6 +67,7 @@ email service. Don't wrestle with internal APIs. Tell me what you need and I might add it in a safe way as a client API instead.""" import os +import platform import re import sys @@ -165,7 +166,7 @@ class Config(object): self.m = register_special_symbol(TRISTATE, "m", "m") self.y = register_special_symbol(TRISTATE, "y", "y") # DEFCONFIG_LIST uses this - register_special_symbol(STRING, "UNAME_RELEASE", os.uname()[2]) + register_special_symbol(STRING, "UNAME_RELEASE", platform.uname()[2]) # The symbol with "option defconfig_list" set, containing a list of # default .config files |
