deb-murano/HACKING.rst
Ravi Shekhar Jethani f963039bd7 Python3: Replace basestring by six.string_types
The builtin basestring abstract type was removed in python3,
use str instead, we need to use six.string_types to replace
the basestring for py3 compatibility.

This patch was generated by the following tool using 'basestring'
option.

https://github.com/haypo/sixer
Command:
python sixer.py -w basestring murano/

This also adds a check to murano/hacking/checks.py that should
catch this error in the future.

Blueprint murano-python-3-support

Change-Id: I26c236ce6dd2fffd6a4ca50e55ad62deb01bd9dd
2016-01-18 23:48:37 -08:00

418 B

Style Commandments

Read the OpenStack Style Commandments http://docs.openstack.org/developer/hacking/

Murano Specific Commandments ---------------------------

  • [M322] Method's default argument shouldn't be mutable.
  • [M323] Python 3: do not use dict.iteritems.
  • [M324] Python 3: do not use dict.iterkeys.
  • [M325] Python 3: do not use dict.itervalues.
  • [M326] Python 3: do not use basestring.