mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
added more python 3 support by Sworddragon
This commit is contained in:
parent
9c6843946c
commit
b5b33b45fa
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue