Browse Source

better explanation about the large block of dead code

master
Julio Biason 15 years ago
parent
commit
a30f990d45
  1. 3
      mitterlib/network/twitter.py

3
mitterlib/network/twitter.py

@ -53,6 +53,9 @@ _month_names = [None, 'Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug',
def htmlize(text): def htmlize(text):
"""Convert a normal text to the format required by Twitter (url-encoded
and UTF-8 encoded."""
# XXX: UTF-8 part is not working as it should, sadly.
if not isinstance(text, unicode): if not isinstance(text, unicode):
text = unicode(text, 'utf-8') text = unicode(text, 'utf-8')
# hex_char = (lambda x: '%' + hex(x)[2:].rjust(2, '0').upper()) # hex_char = (lambda x: '%' + hex(x)[2:].rjust(2, '0').upper())

Loading…
Cancel
Save