mirror of https://github.com/nicolargo/glances.git
Disable Wifi plugin for Python 3
This commit is contained in:
parent
aa3ac9ed0d
commit
28fa73cdff
|
|
@ -21,7 +21,7 @@
|
|||
|
||||
import operator
|
||||
|
||||
from glances.compat import nativestr
|
||||
from glances.compat import nativestr, PY3
|
||||
from glances.logger import logger
|
||||
from glances.plugins.glances_plugin import GlancesPlugin
|
||||
|
||||
|
|
@ -37,6 +37,11 @@ except ImportError as e:
|
|||
else:
|
||||
import_error_tag = False
|
||||
|
||||
# Python 3 is not supported (see issue #1377)
|
||||
if PY3:
|
||||
import_error_tag = False
|
||||
logger.warning("Wifi lib is not compliant with Python 3, Wifi plugin is disabled")
|
||||
|
||||
|
||||
class Plugin(GlancesPlugin):
|
||||
"""Glances Wifi plugin.
|
||||
|
|
|
|||
Loading…
Reference in New Issue