diff --git a/beanstalkc.py b/beanstalkc.py index d9d2013..bc57f48 100755 --- a/beanstalkc.py +++ b/beanstalkc.py @@ -52,7 +52,7 @@ def __init__(self, host=DEFAULT_HOST, port=DEFAULT_PORT, parse_yaml=True, connect_timeout=socket.getdefaulttimeout()): if parse_yaml is True: try: - parse_yaml = __import__('yaml').load + parse_yaml = __import__('yaml').safe_load except ImportError: logging.error('Failed to load PyYAML, will not parse YAML') parse_yaml = False