|
|
|
@ -45,18 +45,19 @@ while hzwork:
|
|
|
|
hzwork.pop(0)
|
|
|
|
hzwork.pop(0)
|
|
|
|
print "found and consumed %s"%res[0][0]
|
|
|
|
print "found and consumed %s"%res[0][0]
|
|
|
|
elif not res and not lastres: # first char not found, using fallback barf
|
|
|
|
elif not res and not lastres: # first char not found, using fallback barf
|
|
|
|
lastres = '[%s]'%tmpstr
|
|
|
|
lastres = '%s'%tmpstr
|
|
|
|
hzwork.pop(0)
|
|
|
|
hzwork.pop(0)
|
|
|
|
print "%s not found, adding raw and breaking"%tmpstr
|
|
|
|
print "%s not found, adding raw and breaking"%tmpstr
|
|
|
|
break
|
|
|
|
break
|
|
|
|
else:
|
|
|
|
else:
|
|
|
|
print "got empty result, breaking"
|
|
|
|
print "got empty result, breaking"
|
|
|
|
|
|
|
|
lastres += " "
|
|
|
|
break
|
|
|
|
break
|
|
|
|
|
|
|
|
|
|
|
|
finres += lastres+" "
|
|
|
|
finres += lastres
|
|
|
|
print "appending and deleting lastres %s, finres now: %s"%(lastres,finres)
|
|
|
|
print "appending and deleting lastres %s, finres now: %s"%(lastres,finres)
|
|
|
|
|
|
|
|
|
|
|
|
print "\nfinished with: %s\n"%finres
|
|
|
|
print '\nfinished with:\n """\n%s\n"""\n'%finres
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|