"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "HACKING.rst" between
cloudkitty-16.0.0.tar.gz and cloudkitty-17.0.0.tar.gz

About: OpenStack CloudKitty provides Rating-as-a-Service for OpenStack.
The "Zed" series (latest release).

HACKING.rst  (cloudkitty-16.0.0):HACKING.rst  (cloudkitty-17.0.0)
skipping to change at line 25 skipping to change at line 25
- [C314] str() and unicode() cannot be used on an exception. - [C314] str() and unicode() cannot be used on an exception.
- [C315] Translated messages cannot be concatenated. String should be - [C315] Translated messages cannot be concatenated. String should be
included in translated message. included in translated message.
- [C317] `oslo_` should be used instead of `oslo.` - [C317] `oslo_` should be used instead of `oslo.`
- [C318] Must use a dict comprehension instead of a dict constructor - [C318] Must use a dict comprehension instead of a dict constructor
with a sequence of key-value pairs. with a sequence of key-value pairs.
- [C319] Ensure to not use xrange(). - [C319] Ensure to not use xrange().
- [C320] Do not use LOG.warn as it's deprecated. - [C320] Do not use LOG.warn as it's deprecated.
- [C321] Ensure that the _() function is explicitly imported to ensure - [C321] Ensure that the _() function is explicitly imported to ensure
proper translations. proper translations.
- [C322] Check for usage of deprecated assertRaisesRegexp
LOG Translations LOG Translations
---------------- ----------------
LOG.debug messages will not get translated. Use ``_LI()`` for LOG.debug messages will not get translated. Use ``_LI()`` for
``LOG.info``, ``_LW`` for ``LOG.warning``, ``_LE`` for ``LOG.error`` ``LOG.info``, ``_LW`` for ``LOG.warning``, ``_LE`` for ``LOG.error``
and ``LOG.exception``, and ``_LC()`` for ``LOG.critical``. and ``LOG.exception``, and ``_LC()`` for ``LOG.critical``.
``_()`` is preferred for any user facing message, even if it is also ``_()`` is preferred for any user facing message, even if it is also
going to a log file. This ensures that the translated version of the going to a log file. This ensures that the translated version of the
 End of changes. 1 change blocks. 
0 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)