From da426b267921598eb9a11b9b4d5adbd64cbba8c5 Mon Sep 17 00:00:00 2001 From: Todd Leonhardt Date: Thu, 19 Apr 2018 23:52:51 -0700 Subject: Started adding type hints --- cmd2/rl_utils.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'cmd2/rl_utils.py') diff --git a/cmd2/rl_utils.py b/cmd2/rl_utils.py index d5bef1ff..465fcaea 100644 --- a/cmd2/rl_utils.py +++ b/cmd2/rl_utils.py @@ -2,13 +2,9 @@ """ Imports the proper readline for the platform and provides utility functions for it """ +from enum import Enum import sys -try: - from enum34 import Enum -except ImportError: - from enum import Enum - # Prefer statically linked gnureadline if available (for macOS compatibility due to issues with libedit) try: import gnureadline as readline -- cgit v1.2.1