From b5b33b45fa0eca010e36fa3ce92a2a516770d5a2 Mon Sep 17 00:00:00 2001 From: oy Date: Sat, 29 Jan 2011 20:00:39 +0100 Subject: added more python 3 support by Sworddragon --- scripts/cmd5.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'scripts/cmd5.py') diff --git a/scripts/cmd5.py b/scripts/cmd5.py index cd0043d5..5f08e1d2 100644 --- a/scripts/cmd5.py +++ b/scripts/cmd5.py @@ -18,8 +18,8 @@ def cstrip(lines): # this eats up cases like 'n {' i = 1 while i < len(d)-2: - if d[i] == ' ': - if not (d[i-1] in alphanum and d[i+1] in alphanum): + if d[i:i + 1] == " ": + if not (d[i-1:i] in alphanum and d[i+1:i + 2] in alphanum): d = d[:i] + d[i+1:] i += 1 return d -- cgit 1.4.1