70beb11924
For python 3 compatibility, this adds a hacking check to prevent the usage of unicode(). Change-Id: I791bbf251ac0f9615a9bedc2dd295a7982d72e0a Closes-bug: #1282893
19 lines
642 B
ReStructuredText
19 lines
642 B
ReStructuredText
glance Style Commandments
|
|
=======================
|
|
|
|
- Step 1: Read the OpenStack Style Commandments
|
|
http://docs.openstack.org/developer/hacking/
|
|
- Step 2: Read on
|
|
|
|
glance Specific Commandments
|
|
--------------------------
|
|
|
|
- [G316] Change assertTrue(isinstance(A, B)) by optimal assert like
|
|
assertIsInstance(A, B)
|
|
- [G317] Change assertEqual(type(A), B) by optimal assert like
|
|
assertIsInstance(A, B)
|
|
- [G318] Change assertEqual(A, None) or assertEqual(None, A) by optimal assert like
|
|
assertIsNone(A)
|
|
- [G319] Validate that debug level logs are not translated
|
|
- [G320] For python 3 compatibility, use six.text_type() instead of unicode()
|