From 06a937b1ab911beda101202dc4e5c7546bba6ebb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mattias=20Andr=C3=A9e?= Date: Sat, 17 Aug 2013 19:43:59 +0200 Subject: [PATCH] derp MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- quotes.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/quotes.py b/quotes.py index 1eabb5da..5991c7ec 100755 --- a/quotes.py +++ b/quotes.py @@ -45,9 +45,9 @@ for pony in ponies: data = data[:data.index('\n\n')] master = name if '\nMASTER:' in data: - master = data[data.index('\nMASTER:') + 9:] + '\n' - master = data[:data.index('\n')] - master = master.strip() + data = data[data.index('\nMASTER:') + 9:] + '\n' + data = data[:data.index('\n')] + master = data.strip() if master not in masters: masters[master] = [] masters[master].append(name)