summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpatrickgu <patrickgu>2006-03-13 09:33:26 +0000
committerpatrickgu <patrickgu>2006-03-13 09:33:26 +0000
commit79c5ccb56e9a2c938b543b50cd8bf27637c56827 (patch)
tree14ac0f7cd351b1138a0194b79c9427e4e030f9c3
parent34c98e5d1e81c0dcb365378e79920e55e4fca7f0 (diff)
Add unicode type check for setandverify
-rw-r--r--evolution/evoutils/mail.py4
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)