diff options
| author | Martin Trigaux <mat@odoo.com> | 2016-04-26 14:45:16 +0200 |
|---|---|---|
| committer | Martin Trigaux <mat@odoo.com> | 2016-04-26 14:58:31 +0200 |
| commit | eae045949d65fb4236e1d7b3fc3e806673711fe1 (patch) | |
| tree | 6e9123facf0a5afbe5a79f15abb8fba825522a4a /doc/reference | |
| parent | 2dfedb5b67e600b4874aea30f997b25c22c0dafa (diff) | |
[IMP] doc: simpler coding: utf-8
According to PEP-263, the -*- is just a variant "using formats recognized by
popular editors".
Diffstat (limited to 'doc/reference')
| -rw-r--r-- | doc/reference/guidelines.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/reference/guidelines.rst b/doc/reference/guidelines.rst index e4cfe1255ec..5672aabf92c 100644 --- a/doc/reference/guidelines.rst +++ b/doc/reference/guidelines.rst @@ -271,7 +271,7 @@ Idioms - Always favor *Readability* over *conciseness* or using the language features or idioms. - Use list comprehension, dict comprehension, and basic manipulation using ``map``, ``filter``, ``sum``, ... They make the code easier to read. - The same applies for recordset methods : use ``filtered``, ``mapped``, ``sorted``, ... -- Each python file should have ``# -*- coding: utf-8 -*-`` as first line +- Each python file should have ``# coding: utf-8 `` as first line - Use the ``UserError`` defined in ``openerp.exceptions`` instead of overriding ``Warning``, or find a more appropriate exception in *exceptions.py* - Document your code (docstring on methods, simple comments for the tricky part of the code) - Use meaningful variable/class/method names |
