Kodomo

Пользователь

   1 def parse_selection(s):
   2     parts = []
   3     for part in s.split(","):
   4         chain, colon, residues = part.partition(":")
   5         before, minus, after = residues.partition("-")
   6         parts.append([chain, before, after])
   7     return parts