264
264
def converttconf(tfrom, tto, mode=0):
265
265
"""Removes the unnecessary 0 and multiplies from and to lists if necessary
267
If mode = 0 (default), it converts tfrom = ['08','08','13','14','15','01','09'],
267
If mode = 0 (default), it converts tfrom = ['08','08','13','14','15','01','09'],
268
268
tto = ['22','14','19','20','21','23','25'] into ['8','8','13','14','15','1','9']
269
269
and ['22','14','19','20','21','23','25'] respectively
270
270
If mode = 1, it converts tfrom = '08', tto = '22' into ['8','8','8','8','8','8','8']