Return the value as a unicode string, or the default.
(self, name, default=None, encoding=None)
| 2612 | return copy |
| 2613 | |
| 2614 | def getunicode(self, name, default=None, encoding=None): |
| 2615 | """ Return the value as a unicode string, or the default. """ |
| 2616 | try: |
| 2617 | return self._fix(self[name], encoding) |
| 2618 | except (UnicodeError, KeyError): |
| 2619 | return default |
| 2620 | |
| 2621 | def __getattr__(self, name, default=unicode()): |
| 2622 | # Without this guard, pickle generates a cryptic TypeError: |