[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
r5170 - trunk/gnue-common/src/formatting
From: |
jan |
Subject: |
r5170 - trunk/gnue-common/src/formatting |
Date: |
Thu, 26 Feb 2004 15:09:21 -0600 (CST) |
Author: jan
Date: 2004-02-26 15:09:20 -0600 (Thu, 26 Feb 2004)
New Revision: 5170
Modified:
trunk/gnue-common/src/formatting/GTypecast.py
Log:
return the same datatype (string,unicode) as passed to the function text
Modified: trunk/gnue-common/src/formatting/GTypecast.py
===================================================================
--- trunk/gnue-common/src/formatting/GTypecast.py 2004-02-26 20:53:21 UTC
(rev 5169)
+++ trunk/gnue-common/src/formatting/GTypecast.py 2004-02-26 21:09:20 UTC
(rev 5170)
@@ -48,7 +48,7 @@
#######################################################
def text (value):
if isinstance (value, UnicodeType):
- return value.encode ('utf-8')
+ return unicode (value)
else:
return str (value)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- r5170 - trunk/gnue-common/src/formatting,
jan <=