diff options
Diffstat (limited to 'ipapython/ipautil.py')
-rw-r--r-- | ipapython/ipautil.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ipapython/ipautil.py b/ipapython/ipautil.py index 4cb3a96e6..80f79aac5 100644 --- a/ipapython/ipautil.py +++ b/ipapython/ipautil.py @@ -17,6 +17,8 @@ # along with this program. If not, see <http://www.gnu.org/licenses/>. # +from __future__ import print_function + import string import tempfile import subprocess @@ -1326,7 +1328,7 @@ def restore_hostname(statestore): try: run([paths.BIN_HOSTNAME, old_hostname]) except CalledProcessError as e: - print >>sys.stderr, "Failed to set this machine hostname back to %s: %s" % (old_hostname, str(e)) + print("Failed to set this machine hostname back to %s: %s" % (old_hostname, str(e)), file=sys.stderr) @contextmanager |