mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-11 20:52:42 +01:00
String: Update the codecs URL in encode/decode's help
Signed-off-by: James Vega <jamessan@users.sourceforge.net>
This commit is contained in:
parent
ebfe8e66f3
commit
6a0b667817
@ -63,7 +63,7 @@ class String(callbacks.Plugin):
|
|||||||
|
|
||||||
Returns an encoded form of the given text; the valid encodings are
|
Returns an encoded form of the given text; the valid encodings are
|
||||||
available in the documentation of the Python codecs module:
|
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:
|
try:
|
||||||
irc.reply(text.encode(encoding))
|
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
|
Returns an un-encoded form of the given text; the valid encodings are
|
||||||
available in the documentation of the Python codecs module:
|
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:
|
try:
|
||||||
irc.reply(text.decode(encoding).encode('utf-8'))
|
irc.reply(text.decode(encoding).encode('utf-8'))
|
||||||
|
Loading…
Reference in New Issue
Block a user