diff options
author | Devan Franchini <twitch153@gentoo.org> | 2014-05-13 23:56:31 -0400 |
---|---|---|
committer | Devan Franchini <twitch153@gentoo.org> | 2014-06-02 19:47:48 -0400 |
commit | 95efc5b6ab868460831945e0c8ff0055b3ec58d2 (patch) | |
tree | 3dd42fc64d115726a274a38de0bc330b48546ff9 /layman/api.py | |
parent | tar.py: Changes permissions integer to octal (diff) | |
download | layman-95efc5b6ab868460831945e0c8ff0055b3ec58d2.tar.gz layman-95efc5b6ab868460831945e0c8ff0055b3ec58d2.tar.bz2 layman-95efc5b6ab868460831945e0c8ff0055b3ec58d2.zip |
Adds unicode compatibility support
Ensures that the necessary strings that need to be unicode, stay
unicode in both py2 and py3 when running layman.
dbbase.py: Adds py2/py3 unicode compatibility when writing to ElementTree.
Diffstat (limited to 'layman/api.py')
-rwxr-xr-x | layman/api.py | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/layman/api.py b/layman/api.py index 02cc363..6984b7a 100755 --- a/layman/api.py +++ b/layman/api.py @@ -430,21 +430,21 @@ class LaymanAPI(object): >>> b.close() >>> api.get_available() - [u'wrobel', u'wrobel-stable'] - >>> all = api.get_all_info(u'wrobel') + ['wrobel', 'wrobel-stable'] + >>> all = api.get_all_info('wrobel') >>> info = all['wrobel'] >>> info['status'] - u'official' + 'official' >>> info['description'] - u'Test' + 'Test' >>> info['sources'] - [(u'https://overlays.gentoo.org/svn/dev/wrobel', 'Subversion', None)] + [('https://overlays.gentoo.org/svn/dev/wrobel', 'Subversion', None)] - #{u'wrobel': {'status': u'official', - #'owner_name': None, 'description': u'Test', + #{'wrobel': {'status': 'official', + #'owner_name': None, 'description': 'Test', #'src_uris': <generator object source_uris at 0x167c3c0>, - #'owner_email': u'nobody@gentoo.org', - #'quality': u'experimental', 'name': u'wrobel', 'supported': True, + #'owner_email': 'nobody@gentoo.org', + #'quality': 'experimental', 'name': 'wrobel', 'supported': True, #'src_types': <generator object source_types at 0x167c370>, #'official': True, #'priority': 10, 'feeds': [], 'irc': None, 'homepage': None}} |