Make pylint happy

This commit is contained in:
Guewen Baconnier committed 2016-11-03 16:58:36 +01:00
1 parent 3fd26cb894
commit 3c8b74369b
9 files changed
+32 -15

No files matched your search

+1 -1
View File
@@ -6,7 +6,7 @@
{'name': 'Sessions in Redis',
'summary': 'Store web sessions in Redis',
'version': '9.0.1.0.0',
'author': 'Camptocamp',
'author': 'Camptocamp,Odoo Community Association (OCA)',
'license': 'AGPL-3',
'category': 'Extra Tools',
'depends': ['base'],
+6 -2
View File
@@ -7,8 +7,6 @@ import os
from distutils.util import strtobool
import redis
import openerp
from openerp import http
from openerp.tools.func import lazy_property
@@ -17,6 +15,12 @@ from .session import RedisSessionStore
_logger = logging.getLogger(__name__)
try:
import redis
except ImportError:
redis = None # noqa
_logger.debug("Cannot 'import redis'.")
def is_true(strval):
return bool(strtobool(strval or '0'.lower()))
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.