odoo-openupgrade-wizard/odoo_openupgrade_wizard
Rémy Taymans 40c54d2260 [FIX] missing newline in generated files
In a proper file each line end with a newline character, even the last
one.

Wrong file:

Using `write()` function does not add a newline character at the end of
the write. So writing a string in a file with `write()` leads to a file
like this:

```
line1\n
line2\n
lastline
```

Good file:

Using the `print()` command automatically ends the string with a newline
character. So that we ends with a proper file:
```
line1\n
line2\n
lastline\n
```

Also the with statement automatically closes the file at the end of the
block.
2023-03-17 08:54:44 +01:00
..
cli [FIX] upgrade: run pre_migration files 2023-02-28 09:43:54 +01:00
templates [FIX] config: indentation 2023-03-17 00:16:00 +01:00
tools [FIX] missing newline in generated files 2023-03-17 08:54:44 +01:00
__init__.py [REF] add ensure_folder_exists system 2022-04-08 19:09:24 +00:00
__main__.py [REF] add ensure_folder_exists system 2022-04-08 19:09:24 +00:00
configuration_version_dependant.py [ADD] odoo 16.0 template 2022-10-12 10:38:56 +02:00