def _interpret_as_minutes(string, mdict):
 if ((string.count(':') == 1) and ('.' not in string) and (('hours' not in mdict) or (mdict['hours'] is None)) and (('days' not in mdict) or (mdict['days'] is None)) and (('weeks' not in mdict) or (mdict['weeks'] is None))):
  mdict['hours'] = mdict['mins']
  mdict['mins'] = mdict['secs']
  mdict.pop('secs')
  pass
 return mdict

def _interpret_as_minutes ( string , mdict ) : if ( ( string . count ( ':' ) == 1 ) and ( '.' not in string ) and ( ( 'hours' not in mdict ) or ( mdict [ 'hours' ] is None ) ) and ( ( 'days' not in mdict ) or ( mdict [ 'days' ] is None ) ) and ( ( 'weeks' not in mdict ) or ( mdict [ 'weeks' ] is None ) ) ) : mdict [ 'hours' ] = mdict [ 'mins' ] mdict [ 'mins' ] = mdict [ 'secs' ] mdict . pop ( 'secs' ) pass return mdict
times like "1:22" are ambiguous; do they represent minutes and seconds or hours and minutes? by default .