Oppdaterte funksjonen open_file i worblehat.py til å returnere filens innhold som en liste av strenger.
This commit is contained in:
parent
3978b41456
commit
346acc5bb6
|
@ -219,6 +219,8 @@ def open_file(filename):
|
||||||
else:
|
else:
|
||||||
exit("Error: %s: File does not exist!" % filename)
|
exit("Error: %s: File does not exist!" % filename)
|
||||||
|
|
||||||
|
return open(filename, 'r').readlines()
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
cmdline_parsed = parse_cmdline(sys.argv[1:])
|
cmdline_parsed = parse_cmdline(sys.argv[1:])
|
||||||
|
|
Reference in New Issue