mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-24 11:21:25 -07:00
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:
parent
a0f27d552c
commit
6a3893c518
4 changed files with 12 additions and 13 deletions
5
lib/ansible/plugins/cache/memcached.py
vendored
5
lib/ansible/plugins/cache/memcached.py
vendored
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue