summaryrefslogtreecommitdiff
path: root/python/qmf/console.py
diff options
context:
space:
mode:
authorTed Ross <tross@apache.org>2009-02-12 18:10:23 +0000
committerTed Ross <tross@apache.org>2009-02-12 18:10:23 +0000
commitd066e62f23cf2019ca608116e5d2a61a8b36c281 (patch)
treea826812a1c5afbc31e0830fe4775241a6c8b8221 /python/qmf/console.py
parent51d45ab0caf7c2e346ce19d6805e44ac9d984cce (diff)
downloadqpid-python-d066e62f23cf2019ca608116e5d2a61a8b36c281.tar.gz
Remove unicode when dealing with usernames and passwords in URLs.
This solves a problem seen with qpid-route when credentials are supplied. A test was added to regression test. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@743819 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'python/qmf/console.py')
-rw-r--r--python/qmf/console.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/python/qmf/console.py b/python/qmf/console.py
index 49f920aa51..ed25c77acc 100644
--- a/python/qmf/console.py
+++ b/python/qmf/console.py
@@ -96,8 +96,8 @@ class BrokerURL(URL):
self.port = 5671
else:
self.port = 5672
- self.authName = self.user or "guest"
- self.authPass = self.password or "guest"
+ self.authName = str(self.user) or "guest"
+ self.authPass = str(self.password) or "guest"
self.authMech = "PLAIN"
def name(self):