diff options
author | patrickgu <patrickgu> | 2006-03-13 09:33:26 +0000 |
---|---|---|
committer | patrickgu <patrickgu> | 2006-03-13 09:33:26 +0000 |
commit | 79c5ccb56e9a2c938b543b50cd8bf27637c56827 (patch) | |
tree | 14ac0f7cd351b1138a0194b79c9427e4e030f9c3 | |
parent | 34c98e5d1e81c0dcb365378e79920e55e4fca7f0 (diff) |
Add unicode type check for setandverify
-rw-r--r-- | evolution/evoutils/mail.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/evolution/evoutils/mail.py b/evolution/evoutils/mail.py index fcf8187..bc2763c 100644 --- a/evolution/evoutils/mail.py +++ b/evolution/evoutils/mail.py @@ -58,9 +58,7 @@ def get_window (component=None): def setandverify (win_name, box_name, value): try: text = '' - print type (value) - if type (value) is types.StringType: - #if isinstance(value,types.StringType): + if type (value) == types.StringType or types.UnicodeType: text = value else: length = len (value) |