String: Update the codecs URL in encode/decode's help

Signed-off-by: James Vega <jamessan@users.sourceforge.net>
This commit is contained in:
James Vega 2009-04-06 11:27:04 -04:00
parent ebfe8e66f3
commit 6a0b667817

View File

@ -63,7 +63,7 @@ class String(callbacks.Plugin):
Returns an encoded form of the given text; the valid encodings are
available in the documentation of the Python codecs module:
<http://www.python.org/doc/lib/node127.html>.
<http://docs.python.org/library/codecs.html#standard-encodings>.
"""
try:
irc.reply(text.encode(encoding))
@ -76,7 +76,7 @@ class String(callbacks.Plugin):
Returns an un-encoded form of the given text; the valid encodings are
available in the documentation of the Python codecs module:
<http://www.python.org/doc/lib/node127.html>.
<http://docs.python.org/library/codecs.html#standard-encodings>.
"""
try:
irc.reply(text.decode(encoding).encode('utf-8'))