~rashi007/mailman/docsfix

« back to all changes in this revision

Viewing changes to src/mailman/utilities/i18n.py

  • Committer: Barry Warsaw
  • Date: 2015-01-05 01:40:47 UTC
  • Revision ID: barry@list.org-20150105014047-3ckex6ppxujtrkkj
We don't need the 'six' package any more.

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
 
27
27
 
28
28
import os
29
 
import six
30
29
import sys
31
30
import errno
32
31
 
200
199
        template = _(fp.read()[:-1])
201
200
    finally:
202
201
        fp.close()
203
 
    assert isinstance(template, six.text_type), (
204
 
        'Translated template is not unicode')
 
202
    assert isinstance(template, str), 'Translated template is not a string'
205
203
    text = expand(template, kw)
206
204
    if wrap:
207
205
        return wrap_text(text)