From e5e455ca8ffd78276e2d76c5b0f39788052eaade Mon Sep 17 00:00:00 2001 From: YuehuiLei Date: Thu, 7 Jan 2021 10:18:54 +0800 Subject: [PATCH] remove six in HACKING.rst Change-Id: I668b1480601234d7ac9d77959793366ea9a4c156 --- HACKING.rst | 2 -- 1 file changed, 2 deletions(-) diff --git a/HACKING.rst b/HACKING.rst index 7092ade..4e55010 100644 --- a/HACKING.rst +++ b/HACKING.rst @@ -11,14 +11,12 @@ Venus Specific Commandments - [N319] Validate that debug level logs are not translated. - [N322] Ensure default arguments are not mutable. - [N323] Add check for explicit import of _() to ensure proper translation. -- [N325] str() and unicode() cannot be used on an exception. Remove or use six.text_type(). - [N328] LOG.info messages require translations `_LI()`. - [N329] LOG.exception and LOG.error messages require translations `_LE()`. - [N330] LOG.warning messages require translations `_LW()`. - [N333] Ensure that oslo namespaces are used for namespaced libraries. - [N336] Must use a dict comprehension instead of a dict constructor with a sequence of key-value pairs. - [C301] timeutils.utcnow() from oslo_utils should be used instead of datetime.now(). -- [C302] six.text_type should be used instead of unicode. - [C303] Ensure that there are no 'print()' statements in code that is being committed. - [C304] Enforce no use of LOG.audit messages. LOG.info should be used instead. - [C305] Prevent use of deprecated contextlib.nested.