summaryrefslogtreecommitdiff
path: root/odoo/tools/cache.py
diff options
context:
space:
mode:
authorXavier Morel <xmo@odoo.com>2017-05-02 12:07:30 +0200
committerOlivier Dony <odo@openerp.com>2017-08-20 23:25:54 +0200
commit7dd062f83552fa8ff96224c29d60bafc001d73d3 (patch)
treed507e27e9d5daa91981e04b5aa81a802a9854a8d /odoo/tools/cache.py
parent3824b5dcc13678d3985ad45ac21dcf9ac9202c20 (diff)
[FIX] P3: text model types
* remove references to basestring & unicode (use relevant pycompat helpers) * remove some str calls (either entirely or replaced by relevant helper, either text or native) * use better API to avoid unnecessary conversions * remove some XML declarations in views
Diffstat (limited to 'odoo/tools/cache.py')
-rw-r--r--odoo/tools/cache.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/odoo/tools/cache.py b/odoo/tools/cache.py
index 2554331ce9b..1226038a21c 100644
--- a/odoo/tools/cache.py
+++ b/odoo/tools/cache.py
@@ -8,7 +8,7 @@ from decorator import decorator
from inspect import formatargspec, getargspec
import logging
-from odoo.tools import pycompat
+from . import pycompat
unsafe_eval = eval
@@ -135,7 +135,7 @@ class ormcache_multi(ormcache):
def determine_key(self):
""" Determine the function that computes a cache key from arguments. """
assert self.skiparg is None, "ormcache_multi() no longer supports skiparg"
- assert isinstance(self.multi, basestring), "ormcache_multi() parameter multi must be an argument name"
+ assert isinstance(self.multi, pycompat.string_types), "ormcache_multi() parameter multi must be an argument name"
super(ormcache_multi, self).determine_key()