Browse Source

Merge pull request #346 from grap/7.0_flake8

[FIX] flake8 (import in bad place);
pull/366/head
Alexandre Fayolle 9 years ago
parent
commit
d90adcb246
  1. 9
      server_monitoring/models/server_monitor_process.py

9
server_monitoring/models/server_monitor_process.py

@ -36,6 +36,7 @@ cleanup cron (2 different for db and process monitoring)
RPC request log RPC request log
""" """
from __future__ import absolute_import
import logging import logging
import gc import gc
@ -44,15 +45,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

Loading…
Cancel
Save