diff options
| author | oy <Tom_Adams@web.de> | 2011-01-29 20:00:39 +0100 |
|---|---|---|
| committer | oy <Tom_Adams@web.de> | 2011-01-29 20:00:39 +0100 |
| commit | b5b33b45fa0eca010e36fa3ce92a2a516770d5a2 (patch) | |
| tree | 024525640ee28e3933dafb1787fd4e6e9342193a | |
| parent | 9c6843946c7edd4d52afe28356b4b253efbd0294 (diff) | |
| download | zcatch-b5b33b45fa0eca010e36fa3ce92a2a516770d5a2.tar.gz zcatch-b5b33b45fa0eca010e36fa3ce92a2a516770d5a2.zip | |
added more python 3 support by Sworddragon
| -rw-r--r-- | scripts/cmd5.py | 4 |
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 |