initOS / odoo-analyse

Package to analyse and visualize odoo modules from the setup.py
GNU Lesser General Public License v3.0
25 stars 5 forks source link

Missing encoding in file, but non ASCII character used. #6

Closed codingforfun closed 3 years ago

codingforfun commented 3 years ago

https://github.com/initOS/odoo-analyse/blob/21f29c7ef08b3e8717e4584cb8c74fd798ea42c1/src/odoo_analyse/utils.py#L1

produces:

SyntaxError: Non-ASCII character '\xc2' in file .../env/lib/python2.7/site-packages/odoo_analyse/utils.py on line 1, but no encoding declared; 
fkantelberg commented 3 years ago

You are right python 2 requires a line that a file is using unicode. Because python 2 is EOL I would rather update the documentation to use python 3 instead and install using pip3. Using python2 as interpreter might cause problems if you analyse python 3.6+ code anyways.