about summary refs log tree commit diff
path: root/scripts
diff options
context:
space:
mode:
authoroy <Tom_Adams@web.de>2011-01-29 20:00:39 +0100
committeroy <Tom_Adams@web.de>2011-01-29 20:00:39 +0100
commitb5b33b45fa0eca010e36fa3ce92a2a516770d5a2 (patch)
tree024525640ee28e3933dafb1787fd4e6e9342193a /scripts
parent9c6843946c7edd4d52afe28356b4b253efbd0294 (diff)
downloadzcatch-b5b33b45fa0eca010e36fa3ce92a2a516770d5a2.tar.gz
zcatch-b5b33b45fa0eca010e36fa3ce92a2a516770d5a2.zip
added more python 3 support by Sworddragon
Diffstat (limited to 'scripts')
-rw-r--r--scripts/cmd5.py4
1 files changed, 2 insertions, 2 deletions
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