Remove direct calls to print and cleanup imports

All display of information should go through display instead of through print.
This commit is contained in:
Toshio Kuratomi 2016-11-07 13:36:39 -08:00 committed by Brian Coca
parent a0f27d552c
commit 6a3893c518
4 changed files with 12 additions and 13 deletions

View file

@ -19,19 +19,18 @@ __metaclass__ = type
import collections
import os
import sys
import time
from multiprocessing import Lock
from itertools import chain
from ansible import constants as C
from ansible.errors import AnsibleError
from ansible.plugins.cache.base import BaseCacheModule
try:
import memcache
except ImportError:
print('python-memcached is required for the memcached fact cache')
sys.exit(1)
raise AnsibleError("python-memcached is required for the memcached fact cache")
class ProxyClientPool(object):