update pep8 (#171)
This commit is contained in:
parent
184a26e30f
commit
0dccb3fed3
12
remove.py
12
remove.py
|
@ -1,15 +1,17 @@
|
||||||
#!/usr/bin/python
|
#!/usr/bin/python
|
||||||
|
|
||||||
import os
|
from os import remove
|
||||||
import sys, traceback
|
|
||||||
|
|
||||||
infile = "/etc/apt/sources.list"
|
infile = "/etc/apt/sources.list"
|
||||||
outfile = "/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"]
|
delete_list = ["deb http://ftp.de.debian.org/debian/ jessie main contrib"]
|
||||||
fin = open(infile)
|
fin = open(infile)
|
||||||
os.remove("/etc/apt/sources.list")
|
remove("/etc/apt/sources.list")
|
||||||
fout = open(outfile, "w+")
|
fout = open(outfile, "w+")
|
||||||
for line in fin:
|
for line in fin:
|
||||||
for word in delete_list:
|
for word in delete_list:
|
||||||
|
@ -18,4 +20,4 @@ for line in fin:
|
||||||
fin.close()
|
fin.close()
|
||||||
fout.close()
|
fout.close()
|
||||||
|
|
||||||
print "\033[1;31mDONE! \033[1;m"
|
print("\033[1;31mDONE! \033[1;m")
|
||||||
|
|
Loading…
Reference in New Issue