diff options
Diffstat (limited to 'cmd2/rl_utils.py')
-rw-r--r-- | cmd2/rl_utils.py | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/cmd2/rl_utils.py b/cmd2/rl_utils.py index 44ce11ae..e56e338c 100644 --- a/cmd2/rl_utils.py +++ b/cmd2/rl_utils.py @@ -3,7 +3,9 @@ Imports the proper readline for the platform and provides utility functions for it """ import sys -from enum import Enum +from enum import ( + Enum, +) # Prefer statically linked gnureadline if available (for macOS compatibility due to issues with libedit) try: @@ -40,9 +42,14 @@ _rl_warn_reason = '' if 'pyreadline' in sys.modules or 'pyreadline3' in sys.modules: rl_type = RlType.PYREADLINE - from ctypes import byref - from ctypes.wintypes import DWORD, HANDLE import atexit + from ctypes import ( + byref, + ) + from ctypes.wintypes import ( + DWORD, + HANDLE, + ) # Check if we are running in a terminal if sys.stdout.isatty(): # pragma: no cover |