From 4264b6ca0c51d22524609821216f893ec948871b Mon Sep 17 00:00:00 2001 From: Jon Dufresne Date: Sun, 23 Sep 2018 19:59:27 -0700 Subject: [PATCH] Remove Python2.7 workaround for enum module --- sphinx/util/build_phase.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/sphinx/util/build_phase.py b/sphinx/util/build_phase.py index e5a53551c..48e75675d 100644 --- a/sphinx/util/build_phase.py +++ b/sphinx/util/build_phase.py @@ -9,10 +9,7 @@ :license: BSD, see LICENSE for details. """ -try: - from enum import IntEnum -except ImportError: # py27 - IntEnum = object # type: ignore +from enum import IntEnum class BuildPhase(IntEnum):