mirror of
https://github.com/pretix/pretix.git
synced 2026-05-11 16:13:59 +00:00
Use a polyfill for Enum on Python<3.4
This commit is contained in:
@@ -11,6 +11,10 @@ html5lib
|
||||
slimit
|
||||
lxml
|
||||
|
||||
# Polyfill for Python <3.4
|
||||
# Remove this, when Python 3.3 support is dropped
|
||||
flufl.enum
|
||||
|
||||
# Debugging requirements
|
||||
django-debug-toolbar
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user