From 70555052271bfd8569c3be17a229f8c16dc405fb Mon Sep 17 00:00:00 2001 From: Toshio Kuratomi Date: Tue, 28 Oct 2014 20:44:21 -0400 Subject: [PATCH] Add python3 compat header --- v2/ansible/parsing/vault/__init__.py | 4 ++++ v2/ansible/parsing/yaml/strings.py | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/v2/ansible/parsing/vault/__init__.py b/v2/ansible/parsing/vault/__init__.py index 32a2727d338..44f50f7d21e 100644 --- a/v2/ansible/parsing/vault/__init__.py +++ b/v2/ansible/parsing/vault/__init__.py @@ -18,6 +18,10 @@ # example playbook to bootstrap this script in the examples/ dir which # installs ansible and sets it up to run on cron. +# Make coding more python3-ish +from __future__ import (absolute_import, division, print_function) +__metaclass__ = type + import os import shlex import shutil diff --git a/v2/ansible/parsing/yaml/strings.py b/v2/ansible/parsing/yaml/strings.py index a778904e633..b7e304194fc 100644 --- a/v2/ansible/parsing/yaml/strings.py +++ b/v2/ansible/parsing/yaml/strings.py @@ -15,6 +15,10 @@ # You should have received a copy of the GNU General Public License # along with Ansible. If not, see . +# Make coding more python3-ish +from __future__ import (absolute_import, division, print_function) +__metaclass__ = type + __all__ = [ 'YAML_SYNTAX_ERROR', 'YAML_POSITION_DETAILS',