mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-02-19 23:20:57 +01:00
Added URL for codecs module to encode/decode morehelps.
This commit is contained in:
parent
91de0b066c
commit
526ac1ee18
@ -270,7 +270,8 @@ class FunCommands(callbacks.Privmsg):
|
|||||||
"""<encoding> <text>
|
"""<encoding> <text>
|
||||||
|
|
||||||
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/node126.html>.
|
||||||
"""
|
"""
|
||||||
encoding, text = privmsgs.getArgs(args, needed=2)
|
encoding, text = privmsgs.getArgs(args, needed=2)
|
||||||
irc.reply(msg, text.encode(encoding))
|
irc.reply(msg, text.encode(encoding))
|
||||||
@ -279,7 +280,8 @@ class FunCommands(callbacks.Privmsg):
|
|||||||
"""<encoding> <text>
|
"""<encoding> <text>
|
||||||
|
|
||||||
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/node126.html>.
|
||||||
"""
|
"""
|
||||||
encoding, text = privmsgs.getArgs(args, needed=2)
|
encoding, text = privmsgs.getArgs(args, needed=2)
|
||||||
irc.reply(msg, text.decode(encoding).encode('utf-8'))
|
irc.reply(msg, text.decode(encoding).encode('utf-8'))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user