Kent Johnson wrote:
 >>> import re
 >>> def hexify(match):
 ...   return '%%%X' % ord(match.group(0))

Ah, should be '%%%02X' ...

Kent

_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to