magnum/magnum
Tom Cammann 7cecdfeccb Upgrade code to be python 3 compatible
Various py2 to py3 fixes:
1. func.im_self to func.__self__
2. func.func_name to func.__name__
3. basestring to six.string_types
4. unicode to six.u
5. use bytes where appropriate instead of str
6. convert bytes to string for use with re
7. update usage of dict.keys()
8. update regex match for dealing with unicode characters, as '\w'
   matches unicode word characters in python 3 such as 的.

References:
[1] http://www.diveintopython3.net/porting-code-to-python-3-with-2to3.html#methodattrs
[2] https://docs.python.org/3/whatsnew/3.0.html#operators-and-special-methods
[3][4][5][6] https://docs.python.org/3.0/whatsnew/3.0.html#text-vs-data-instead-of-unicode-vs-8-bit
[7] https://docs.python.org/3.0/whatsnew/3.0.html#views-and-iterators-instead-of-lists
[8] https://docs.python.org/3/library/re.html#regular-expression-syntax

Partially-Implements: blueprint magnum-python3
Change-Id: I6a7e13feeecd66910f2046956b1edc4d871208f6
2015-07-03 15:11:55 +01:00
..
api Merge "Changes container_execute to container_exec" 2015-06-23 20:38:59 +00:00
cmd Handle Interrupt in conductor service 2015-06-17 16:45:23 +08:00
common Upgrade code to be python 3 compatible 2015-07-03 15:11:55 +01:00
conductor Upgrade code to be python 3 compatible 2015-07-03 15:11:55 +01:00
db DB: Support filter_by status in get_bay_list 2015-06-24 09:05:39 +08:00
hacking Correct Hacking rule code 2015-06-17 14:14:25 +08:00
locale Manually import all pot files 2015-05-28 09:19:55 +02:00
objects DB: Support filter_by status in get_bay_list 2015-06-24 09:05:39 +08:00
openstack cleanup openstack-common.conf and sync updated files 2015-06-10 11:05:54 +00:00
public/css Incorporate feedback from the Initial commit review 2014-11-18 14:25:08 +00:00
templates Merge "Backport "docker group is no longer used"" 2015-06-24 23:57:33 +00:00
tests Upgrade code to be python 3 compatible 2015-07-03 15:11:55 +01:00
MANIFEST.in Initial commit from github (squashed) 2014-11-18 09:23:37 -05:00
__init__.py Initial commit from github (squashed) 2014-11-18 09:23:37 -05:00
config.py Fix continuation line under/over indented problems 2015-05-30 00:16:37 +08:00
i18n.py Setup for translation 2015-05-24 03:13:55 +00:00
opts.py Fix the kubernetes opts 2015-06-17 03:16:33 +00:00
version.py Initial commit from github (squashed) 2014-11-18 09:23:37 -05:00