Loading src/system/platform.py +8 −1 Changes for src/system/platform.py: 8 added lines, 1 removed line. Original line number Diff line number Diff line Loading @@ -27,6 +27,9 @@ class Platform: IS_TTY_STDOUT: bool = stdout.isatty() IS_TTY_UTF8: bool = str(stdout.encoding).lower() == 'utf-8' # Outputs IS_FLUSH_ENABLED: bool = IS_TTY_STDOUT or IS_WINDOWS # Users IS_USER_SUDO: bool = ENV_SUDO_USER in environ USER_SUDO: str = environ[ENV_SUDO_USER] if IS_USER_SUDO else '' Loading @@ -36,7 +39,11 @@ class Platform: def flush() -> None: # Flush output print('', end='', flush=Platform.IS_TTY_STDOUT) print( '', end='', flush=Platform.IS_FLUSH_ENABLED, ) # Userspace @staticmethod Loading Loading
src/system/platform.py +8 −1 Changes for src/system/platform.py: 8 added lines, 1 removed line. Original line number Diff line number Diff line Loading @@ -27,6 +27,9 @@ class Platform: IS_TTY_STDOUT: bool = stdout.isatty() IS_TTY_UTF8: bool = str(stdout.encoding).lower() == 'utf-8' # Outputs IS_FLUSH_ENABLED: bool = IS_TTY_STDOUT or IS_WINDOWS # Users IS_USER_SUDO: bool = ENV_SUDO_USER in environ USER_SUDO: str = environ[ENV_SUDO_USER] if IS_USER_SUDO else '' Loading @@ -36,7 +39,11 @@ class Platform: def flush() -> None: # Flush output print('', end='', flush=Platform.IS_TTY_STDOUT) print( '', end='', flush=Platform.IS_FLUSH_ENABLED, ) # Userspace @staticmethod Loading