Files
edx-platform/openedx/core/lib/edx_six.py
Usama Sadiq 8de47ef51f refactor: Ran pyupgrade on openedx/core
Ran pyupgrade on openedx/core/{djangolib, lib}
2021-04-08 18:34:24 +05:00

13 lines
300 B
Python

"""
Extra methods to do some python 2 to 3 things we need to do in edx-platform.
This is internal and should not be referenced outside of the edx-platform repo.
"""
def get_gettext(o):
"""
In python 2 return the ugettext attribute. In python 3 return gettext.
"""
return o.gettext