From 0dccb3fed3e32001da2c35b25fa0027af73a9af1 Mon Sep 17 00:00:00 2001 From: Pedro Souza Date: Fri, 7 Oct 2016 12:42:53 -0300 Subject: [PATCH] update pep8 (#171) --- remove.py | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/remove.py b/remove.py index 0061c7f..b9fc3a1 100644 --- a/remove.py +++ b/remove.py @@ -1,15 +1,17 @@ #!/usr/bin/python -import os -import sys, traceback +from os import remove infile = "/etc/apt/sources.list" outfile = "/etc/apt/sources.list" -delete_list = ["# Kali linux repositories | Added by Katoolin\n", "deb http://http.kali.org/kali kali-rolling main contrib non-free\n","deb http://repo.kali.org/kali kali-bleeding-edge main\n"] +delete_list = ["# Kali linux repositories | Added by Katoolin\n", + "deb http: // http.kali.org / kali kali - rolling main contrib non - free\n", + "deb http://repo.kali.org/kali kali-bleeding-edge main\n"] + delete_list = ["deb http://ftp.de.debian.org/debian/ jessie main contrib"] fin = open(infile) -os.remove("/etc/apt/sources.list") +remove("/etc/apt/sources.list") fout = open(outfile, "w+") for line in fin: for word in delete_list: @@ -18,4 +20,4 @@ for line in fin: fin.close() fout.close() -print "\033[1;31mDONE! \033[1;m" +print("\033[1;31mDONE! \033[1;m")