diff options
| author | Ted Ross <tross@apache.org> | 2008-11-11 16:52:44 +0000 |
|---|---|---|
| committer | Ted Ross <tross@apache.org> | 2008-11-11 16:52:44 +0000 |
| commit | 7740280c458564d2803eb1bb57d0ed0c0035d109 (patch) | |
| tree | b0a0e037941362d7334c4d48e9a93f06ad9eda4f /python/qpid/disp.py | |
| parent | a2e2678eb4eb83aa136dfa0467154c1b63329bf9 (diff) | |
| download | qpid-python-7740280c458564d2803eb1bb57d0ed0c0035d109.tar.gz | |
QPID-1448 - Management APIs and CLI tools are not unicode safe
The management APIs (old and new) now use unicode strings as the default.
The CLI utilities now use the preferred shell encoding to support multibyte
characters in the command line and in managed objects.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@713079 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'python/qpid/disp.py')
| -rw-r--r-- | python/qpid/disp.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/python/qpid/disp.py b/python/qpid/disp.py index d697cd0136..e46cb33c60 100644 --- a/python/qpid/disp.py +++ b/python/qpid/disp.py @@ -40,7 +40,7 @@ class Display: for head in heads: width = len (head) for row in rows: - cellWidth = len (str (row[col])) + cellWidth = len (unicode (row[col])) if cellWidth > width: width = cellWidth colWidth.append (width + self.tableSpacing) @@ -60,9 +60,9 @@ class Display: line = self.tablePrefix col = 0 for width in colWidth: - line = line + str (row[col]) + line = line + unicode (row[col]) if col < len (heads) - 1: - for i in range (width - len (str (row[col]))): + for i in range (width - len (unicode (row[col]))): line = line + " " col = col + 1 print line |
