summaryrefslogtreecommitdiff
path: root/sphinx/util/build_phase.py
diff options
context:
space:
mode:
Diffstat (limited to 'sphinx/util/build_phase.py')
-rw-r--r--sphinx/util/build_phase.py6
1 files changed, 1 insertions, 5 deletions
diff --git a/sphinx/util/build_phase.py b/sphinx/util/build_phase.py
index e5a53551c..d2ed2e35f 100644
--- a/sphinx/util/build_phase.py
+++ b/sphinx/util/build_phase.py
@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
"""
sphinx.util.build_phase
~~~~~~~~~~~~~~~~~~~~~~~
@@ -9,10 +8,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):