if l.find('Summe Verbindungen für oben angegebene Rufnummer') >= 0:
cur_number = None
if l.find('Rufnummer (') >= 0:
- cur_number = l.strip()
+ cur_number = l.strip().split(' ')[0].strip()
print l.strip(), ' -> switching to', cur_number
assert search_substr(f, '...........')
print 'adding %.2f to %s for "%s"' % (p, cur_number, l.strip())
price[cur_number] = price.setdefault(cur_number, 0) + p
if l.find('Rufnummer (') >= 0:
- cur_number = l.strip()
+ cur_number = l.strip().split(' ')[0].strip()
print l.strip(), ' -> switching to', cur_number
print '----------------------------------------'