Mercurial > libervia-backend
diff tools/jid.py @ 128:2240f34f6452
Primitivus: misc fixes + menubar first draft
- Menu bar: first draft of class
- Password widget fixed
- change some str to unicode, notably for JID
author | Goffi <goffi@goffi.org> |
---|---|
date | Tue, 13 Jul 2010 02:24:59 +0800 |
parents | a5b5fb5fc9fd |
children |
line wrap: on
line diff
--- a/tools/jid.py Mon Jul 12 18:55:27 2010 +0800 +++ b/tools/jid.py Tue Jul 13 02:24:59 2010 +0800 @@ -21,11 +21,11 @@ -class JID(str): +class JID(unicode): """This class help manage JID (Node@Domaine/Resource)""" def __new__(cls, jid): - self = str.__new__(cls, jid) + self = unicode.__new__(cls, jid) self.__parse() return self