Commit 39ddb303 authored by Stefan Behnel's avatar Stefan Behnel

__future__ import fix for older Python versions

parent 3b447f81
import __future__
def _get_feature(name):
import __future__
try:
return getattr(__future__, name)
except AttributeError:
# unique fake object for earlier Python versions
return object()
unicode_literals = __future__.unicode_literals
unicode_literals = _get_feature("unicode_literals")
del __future__
del _get_feature
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment