From 23e530a135fc419fba401448290f8b1809e23f53 Mon Sep 17 00:00:00 2001 From: Shwetha K Acharya Date: Mon, 10 Dec 2018 13:45:34 +0530 Subject: glusterfind: python2 to python3 compat Made necessary modifications to ensure python3 compatibilty. fixes: bz#1658116 Change-Id: I5cf1d0447eaf3c44eb444245d1f67aadd60705c3 Signed-off-by: Shwetha K Acharya --- tools/glusterfind/src/nodeagent.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tools/glusterfind/src/nodeagent.py') diff --git a/tools/glusterfind/src/nodeagent.py b/tools/glusterfind/src/nodeagent.py index c36341f216e..2ddc77affd2 100644 --- a/tools/glusterfind/src/nodeagent.py +++ b/tools/glusterfind/src/nodeagent.py @@ -1,4 +1,4 @@ -#!/usr/bin/python3 +#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright (c) 2015 Red Hat, Inc. @@ -58,7 +58,7 @@ def mode_create(args): logger=logger) if not os.path.exists(status_file) or args.reset_session_time: - with open(status_file, "w", buffering=0) as f: + with open(status_file, "w") as f: f.write(args.time_to_update) sys.exit(0) -- cgit