diff options
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 |