From 346acc5bb6695bb83dc666a6b522b89968b5d15c Mon Sep 17 00:00:00 2001 From: jabirali Date: Sat, 5 Mar 2011 17:43:18 +0000 Subject: [PATCH] =?UTF-8?q?Oppdaterte=20funksjonen=20open=5Ffile=20i=20wor?= =?UTF-8?q?blehat.py=20til=20=C3=A5=20returnere=20filens=20innhold=20som?= =?UTF-8?q?=20en=20liste=20av=20strenger.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- python/worblehat.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/python/worblehat.py b/python/worblehat.py index a87a583..645ac44 100755 --- a/python/worblehat.py +++ b/python/worblehat.py @@ -219,6 +219,8 @@ def open_file(filename): else: exit("Error: %s: File does not exist!" % filename) + return open(filename, 'r').readlines() + cmdline_parsed = parse_cmdline(sys.argv[1:])