Skip to content

Commit

Permalink
[FIX] server: python3 compatibility for --dev=reload
Browse files Browse the repository at this point in the history
  • Loading branch information
amigrave committed Sep 22, 2017
1 parent 424942e commit b90006e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion odoo/service/server.py
Expand Up @@ -135,7 +135,7 @@ def dispatch(self, event):
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)
Expand Down

0 comments on commit b90006e

Please sign in to comment.