diff --git a/odoo/service/server.py b/odoo/service/server.py index 6e7d67eb933..de959cc31da 100644 --- a/odoo/service/server.py +++ b/odoo/service/server.py @@ -135,7 +135,7 @@ class FSWatcher(object): path = getattr(event, 'dest_path', event.src_path) if path.endswith('.py'): try: - source = open(path, 'rb').read() + '\n' + source = open(path, 'rb').read() + b'\n' compile(source, path, 'exec') except SyntaxError: _logger.error('autoreload: python code change detected, SyntaxError in %s', path)