mirror of
https://github.com/nicolargo/glances.git
synced 2024-11-25 08:33:22 +03:00
StatsD module: Python 3 compat
This commit is contained in:
parent
ed6d3bd94d
commit
466478a700
@ -20,15 +20,19 @@
|
||||
"""Statsd interface class."""
|
||||
|
||||
# Import sys libs
|
||||
from statsd import StatsClient
|
||||
from numbers import Number
|
||||
import sys
|
||||
from numbers import Number
|
||||
try:
|
||||
from configparser import NoOptionError, NoSectionError
|
||||
except ImportError: # Python 2
|
||||
from ConfigParser import NoOptionError, NoSectionError
|
||||
|
||||
# Import Glances lib
|
||||
from glances.core.glances_logging import logger
|
||||
from ConfigParser import NoSectionError, NoOptionError
|
||||
from glances.exports.glances_export import GlancesExport
|
||||
|
||||
from statsd import StatsClient
|
||||
|
||||
|
||||
class Export(GlancesExport):
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user