]> khamidou — GitHub mirrors - imapclient.git/commitdiff
Finish docstring from imap_utf7.decode
authorMenno Smits <menno@freshfoo.com>
Tue, 30 Dec 2014 09:31:13 +0000 (22:31 +1300)
committerMenno Smits <menno@freshfoo.com>
Tue, 30 Dec 2014 09:31:13 +0000 (22:31 +1300)
imapclient/imap_utf7.py

index b3592adbf09220f1493c24e556645f259e3589f0..03ef9c31b1e8b4a06585e3fc48cc092533753341 100644 (file)
@@ -69,7 +69,9 @@ DASH_ORD = byte2int(b'-')
 def decode(s):
     """Decode a folder name from IMAP modified UTF-7 encoding to unicode.
 
-    XXX expand
+    Input is bytes (Python 3) or str (Python 2); output is always
+    unicode. If non-bytes/str input is provided, the input is returned
+    unchanged.
     """
 
     if not isinstance(s, binary_type):