From 9cb49fb2a3b980f97d5fb27ea37c6dfeee3b9ec4 Mon Sep 17 00:00:00 2001 From: Todd Leonhardt Date: Sun, 31 Jan 2021 23:24:47 -0500 Subject: Add in isort changes --- cmd2/rl_utils.py | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'cmd2/rl_utils.py') 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 -- cgit v1.2.1