From c61a4a2624debf7db0a3ec4936dc7037670f9a38 Mon Sep 17 00:00:00 2001 From: Minoplhy Date: Thu, 12 Aug 2021 17:09:31 +0700 Subject: [PATCH] Fix Regex --- to-rpz/host_rpz_argv.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/to-rpz/host_rpz_argv.py b/to-rpz/host_rpz_argv.py index e8b5670..def6518 100644 --- a/to-rpz/host_rpz_argv.py +++ b/to-rpz/host_rpz_argv.py @@ -16,9 +16,6 @@ with open(infile) as f: file[i] = re.sub('^::1 ', '' ,file[i]) file[i] = re.sub('^127.0.0.1', '', file[i]) file[i] = re.sub('^0.0.0.0', '', file[i]) - file[i] = re.sub('^0', '', file[i]) - file[i] = re.sub('^::', '', file[i]) - file[i] = re.sub('^::1', '' ,file[i]) with open(infile, 'w') as f1: f1.writelines(["%s\n" % item for item in file]) f.close()