From 712ed730cec6af5bb20657664f8359b052e8609f Mon Sep 17 00:00:00 2001 From: Ulf Magnusson Date: Tue, 19 Mar 2019 11:17:16 +0100 Subject: menuconfig: Get rid of 'platform' import Test for Windows with os.name == 'nt' instead. Saves around 10 ms of startup time. --- menuconfig.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'menuconfig.py') diff --git a/menuconfig.py b/menuconfig.py index c6a512d..663fc49 100755 --- a/menuconfig.py +++ b/menuconfig.py @@ -186,7 +186,6 @@ import curses import errno import locale import os -import platform import re import sys import textwrap @@ -3206,7 +3205,7 @@ def _convert_c_lc_ctype_to_utf8(): # Are we running on Windows? -_IS_WINDOWS = (platform.system() == "Windows") +_IS_WINDOWS = os.name == "nt" if __name__ == "__main__": _main() -- cgit v1.2.3