~barry/mailman/lp1423756

« back to all changes in this revision

Viewing changes to src/mailman/model/docs/languages.rst

  • Committer: Barry Warsaw
  • Date: 2015-01-05 01:20:33 UTC
  • mfrom: (7264.4.66 py3)
  • Revision ID: barry@list.org-20150105012033-zdrw9c2odhpf22fz
Merge the Python 3 branch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
62
62
    >>> mgr.add('pl', 'iso-8859-2', 'Polish')
63
63
    <Language [pl] Polish>
64
64
    >>> sorted(mgr.codes)
65
 
    [u'en', u'it', u'pl']
 
65
    ['en', 'it', 'pl']
66
66
 
67
67
You can iterate over all the known languages.
68
68
 
89
89
    >>> print(mgr['xx'].code)
90
90
    Traceback (most recent call last):
91
91
    ...
92
 
    KeyError: u'xx'
 
92
    KeyError: 'xx'
93
93
    >>> print(mgr.get('it').description)
94
94
    Italian
95
95
    >>> print(mgr.get('xx'))