From 718713f15e4c6024029508896a5dc24b43c3d3c2 Mon Sep 17 00:00:00 2001 From: minoplhy Date: Mon, 2 Aug 2021 21:18:58 +0700 Subject: [PATCH] Fix uncomplete removal of input --- maker_rpz.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/maker_rpz.py b/maker_rpz.py index 457188f..62b8236 100644 --- a/maker_rpz.py +++ b/maker_rpz.py @@ -6,16 +6,16 @@ import pytz UTC = pytz.utc date = datetime.datetime.now(UTC) -def linecounter(): - with open(input) as f: +def linecounter(incoming): + with open(incoming) as f: for i, l in enumerate(f): pass return i + 1 -def RPZbuilding(excluded,input,output): +def RPZbuilding(excluded,incoming,output): with open(excluded ,'r') as f: exclude = f.read().split() - with open(input ,'r') as f: + with open(incoming ,'r') as f: lines = f.read().splitlines() # read lines with open(output ,'w') as f: f.write('; Title : Minoplhy Personal Blocklist\n')