diff options
author | Ben Sturmfels <ben@sturm.com.au> | 2021-03-05 23:52:13 +1100 |
---|---|---|
committer | Ben Sturmfels <ben@sturm.com.au> | 2021-03-05 23:52:13 +1100 |
commit | f0d57e3bd8bd93f87b85e15e823878ca0e7c760a (patch) | |
tree | c0ee61818bce25d6b63d48b475d5cc78e1152756 /mediagoblin/_compat.py | |
parent | 9bf3bc1944b14252978a6aa2f963effab7208515 (diff) | |
download | mediagoblin-f0d57e3bd8bd93f87b85e15e823878ca0e7c760a.tar.lz mediagoblin-f0d57e3bd8bd93f87b85e15e823878ca0e7c760a.tar.xz mediagoblin-f0d57e3bd8bd93f87b85e15e823878ca0e7c760a.zip |
Remove remaining Python 2 compatibility code.
Diffstat (limited to 'mediagoblin/_compat.py')
-rw-r--r-- | mediagoblin/_compat.py | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/mediagoblin/_compat.py b/mediagoblin/_compat.py deleted file mode 100644 index 09270ab4..00000000 --- a/mediagoblin/_compat.py +++ /dev/null @@ -1,16 +0,0 @@ -import functools -import warnings - -from email.mime.text import MIMEText - - -def encode_to_utf8(method): - def wrapper(self): - return method(self) - functools.update_wrapper(wrapper, method, ['__name__', '__doc__']) - return wrapper - - -# based on django.utils.encoding.python_2_unicode_compatible -def py2_unicode(klass): - return klass |