Quick messy way of parsing [01x01-02] numbers, should move to name-parsing section, not array-output-formatting

This commit is contained in:
dbr
2008-07-01 01:53:37 +09:30
parent 352171823d
commit 87628e9ebf

View File

@@ -125,6 +125,15 @@ def seq_display(x):
is_int=[]
non_int=[]
for cur_x in x:
if cur_x.find("-") != -1:
for tmp_split in cur_x.split("-"):
try:
tmp_conv = int(tmp_split)
is_int.append(tmp_conv)
except ValueError:
non_int.append(cur_x)
#end try
#end for tmp_split
try:
tmp_conv = int(cur_x)
is_int.append(tmp_conv)