summaryrefslogtreecommitdiff
path: root/odoo/tools/pycompat.py
diff options
context:
space:
mode:
authorxmo-odoo <xmo@odoo.com>2017-04-27 15:03:28 +0200
committerGitHub <noreply@github.com>2017-04-27 15:03:28 +0200
commitfdaf967bb0ed4a72de0139ff6d2697624c6ba1fd (patch)
treecbf777f2a8b244671b1de62e00fb9704260f8e20 /odoo/tools/pycompat.py
parent22e50c66f19abd976fdf090d55c44ae01ec8895e (diff)
[FIX] forgot a bit of version checking
Diffstat (limited to 'odoo/tools/pycompat.py')
-rw-r--r--odoo/tools/pycompat.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/odoo/tools/pycompat.py b/odoo/tools/pycompat.py
index 114f7f2bd87..50b6f492a59 100644
--- a/odoo/tools/pycompat.py
+++ b/odoo/tools/pycompat.py
@@ -3,7 +3,7 @@
# very strongly inspired by https://github.com/pallets/werkzeug/blob/master/werkzeug/_compat.py
import sys
-PY2 = sys.version_info[0]
+PY2 = sys.version_info[0] == 2
if PY2:
# pylint: disable=long-builtin,xrange-builtin