From eae045949d65fb4236e1d7b3fc3e806673711fe1 Mon Sep 17 00:00:00 2001 From: Martin Trigaux Date: Tue, 26 Apr 2016 14:45:16 +0200 Subject: [PATCH] [IMP] doc: simpler coding: utf-8 According to PEP-263, the -*- is just a variant "using formats recognized by popular editors". --- doc/reference/guidelines.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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