From f2ad4d2cff57590d4e9536efd8c10feb6cc3d62e Mon Sep 17 00:00:00 2001
From: a c <arash.cordi@gmail.com>
Date: Sun, 7 Jun 2020 22:45:42 +0430
Subject: [PATCH] use python 3

---
 WLCdn.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/WLCdn.py b/WLCdn.py
index 90242dc3c..46cdda60a 100644
--- a/WLCdn.py
+++ b/WLCdn.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 # -*- coding: utf-8 -*- 
 
 import fileinput
@@ -21,7 +21,7 @@ def inplace_change(filename, var_name, new_string):
     for line in fileinput.input(filename, inplace=True):
         # inside this loop the STDOUT will be redirected to the file
         # the comma after each print statement is needed to avoid double line breaks
-        print line.replace(old_string, new_string),
+        print(line.replace(old_string, new_string), end=' ')
 
 def replace_var(file_name, var_name):
     new_string = read_to_var(var_name)
-- 
GitLab