From b86e5fa4778f067031a935c307164da5106101d5 Mon Sep 17 00:00:00 2001
From: Xavier Morel <xmo@odoo.com>
Date: Mon, 8 May 2017 16:15:27 +0200
Subject: [PATCH] [FIX] P3: exec keyword -> builtin function

---
 odoo/cli/shell.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/odoo/cli/shell.py b/odoo/cli/shell.py
index 320cf5aa3d42..0aaa9ab2d844 100644
--- a/odoo/cli/shell.py
+++ b/odoo/cli/shell.py
@@ -63,7 +63,7 @@ class Shell(Command):
 
     def console(self, local_vars):
         if not os.isatty(sys.stdin.fileno()):
-            exec sys.stdin in local_vars
+            exec(sys.stdin, local_vars)
         else:
             if 'env' not in local_vars:
                 print('No environment set, use `%s shell -d dbname` to get one.' % sys.argv[0])
-- 
GitLab