try:
    import collectd
    collectd.register_config
    collectd_present = True
except (ImportError, AttributeError):
    collectd_present = False

from .plugin import HAProxyPlugin

version_info = (1, 1, 1)

__version__ = ".".join(map(str, version_info))


if collectd_present:
    HAProxyPlugin.register(collectd)

try:
    import collectd
    collectd.register_config  # pragma: no cover
    collectd_present = True  # pragma: no cover
except (ImportError, AttributeError):
    collectd_present = False

from .plugin import HAProxyPlugin

version_info = (1, 1, 1)

__version__ = ".".join(map(str, version_info))


if collectd_present:
    HAProxyPlugin.register(collectd)  # pragma: no cover

Exclude init file from coverage reporting.
Exclude init file from coverage reporting.

  try:
      import collectd
-     collectd.register_config
-     collectd_present = True
+     collectd.register_config  # pragma: no cover
+     collectd_present = True  # pragma: no cover
  except (ImportError, AttributeError):
      collectd_present = False
  
  from .plugin import HAProxyPlugin
  
  version_info = (1, 1, 1)
  
  __version__ = ".".join(map(str, version_info))
  
  
  if collectd_present:
-     HAProxyPlugin.register(collectd)
+     HAProxyPlugin.register(collectd)  # pragma: no cover
  
Exclude init file from coverage reporting.
## Code Before:
try:
    import collectd
    collectd.register_config
    collectd_present = True
except (ImportError, AttributeError):
    collectd_present = False

from .plugin import HAProxyPlugin

version_info = (1, 1, 1)

__version__ = ".".join(map(str, version_info))


if collectd_present:
    HAProxyPlugin.register(collectd)

## Instruction:
Exclude init file from coverage reporting.
## Code After:
try:
    import collectd
    collectd.register_config  # pragma: no cover
    collectd_present = True  # pragma: no cover
except (ImportError, AttributeError):
    collectd_present = False

from .plugin import HAProxyPlugin

version_info = (1, 1, 1)

__version__ = ".".join(map(str, version_info))


if collectd_present:
    HAProxyPlugin.register(collectd)  # pragma: no cover
