Return the value as a unicode string, or the default.
(self, name, default=None, encoding=None)
| 1925 | return copy |
| 1926 | |
| 1927 | def getunicode(self, name, default=None, encoding=None): |
| 1928 | ''' Return the value as a unicode string, or the default. ''' |
| 1929 | try: |
| 1930 | return self._fix(self[name], encoding) |
| 1931 | except (UnicodeError, KeyError): |
| 1932 | return default |
| 1933 | |
| 1934 | def __getattr__(self, name, default=unicode()): |
| 1935 | # Without this guard, pickle generates a cryptic TypeError: |