Skip to content

Commit a79b552

Browse files
committed
refac: using built-in i18n function
1 parent b9e3fca commit a79b552

1 file changed

Lines changed: 1 addition & 8 deletions

File tree

statemachine/mixins.py

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,5 @@
1-
try:
2-
from django.utils.translation import ugettext as _
3-
except Exception:
4-
5-
def _(text):
6-
return text
7-
8-
91
from . import registry
2+
from .i18n import _
103

114

125
class MachineMixin:

0 commit comments

Comments
 (0)