blob: a6b775fc4e4f2eeae930de0b6009780a2d15bc40 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
import sys
from six import PY3, iteritems
from mediagoblin import mg_globals
if PY3:
from email.mime.text import MIMEText
from urllib import parse as urlparse
ugettext = mg_globals.thread_scope.translations.gettext
ungettext = mg_globals.thread_scope.translations.ngettext
else:
from email.MIMEText import MIMEText
import urlparse
ugettext = mg_globals.thread_scope.translations.ugettext
ungettext = mg_globals.thread_scope.translations.ungettext
|