Browse Source

[FIX] flake8 (import in bad place);

pull/346/head
Sylvain LE GAL 9 years ago
parent
commit
751d47b80a
  1. 15
      server_monitoring/models/server_monitor_process.py

15
server_monitoring/models/server_monitor_process.py

@ -44,15 +44,7 @@ import types
import os import os
import threading import threading
import datetime import datetime
# ugly hack to avoid a WARNING message when importing stdlib resource module
_logger = logging.getLogger('openerp.modules.module')
_saved_log_level = _logger.getEffectiveLevel()
_logger.setLevel(logging.ERROR)
import resource import resource
_logger.setLevel(_saved_log_level)
import psutil import psutil
from openerp.osv import orm, fields, osv from openerp.osv import orm, fields, osv
@ -60,6 +52,13 @@ from openerp import pooler
from openerp import SUPERUSER_ID from openerp import SUPERUSER_ID
from openerp.tools import DEFAULT_SERVER_DATETIME_FORMAT from openerp.tools import DEFAULT_SERVER_DATETIME_FORMAT
# ugly hack to avoid a WARNING message when importing stdlib resource module
_logger = logging.getLogger('openerp.modules.module')
_saved_log_level = _logger.getEffectiveLevel()
_logger.setLevel(logging.ERROR)
_logger.setLevel(_saved_log_level)
_logger = logging.getLogger(__name__) _logger = logging.getLogger(__name__)
BLACKLIST = ( BLACKLIST = (

Loading…
Cancel
Save