Use a polyfill for Enum on Python<3.4

This commit is contained in:
Raphael Michel
2014-10-07 13:08:15 +02:00
parent 07245b89e5
commit d633f4317c
2 changed files with 8 additions and 1 deletions

View File

@@ -11,6 +11,10 @@ html5lib
slimit slimit
lxml lxml
# Polyfill for Python <3.4
# Remove this, when Python 3.3 support is dropped
flufl.enum
# Debugging requirements # Debugging requirements
django-debug-toolbar django-debug-toolbar

View File

@@ -1,4 +1,7 @@
from enum import Enum try:
from enum import Enum
except ImportError:
from flufl.enum import Enum
from django.apps import apps from django.apps import apps