| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -135,21 +135,23 @@ The second subclass allows for connections created by a child process: | |||
| 135 | 135 | The following utility functions are defined: | |
| 136 | 136 | ||
| 137 | 137 | ||
| 138 | - .. function:: Internaldate2tuple(datestr) | ||
| 138 | + .. function:: Internaldate2tuple(resp) | ||
| 139 | 139 | ||
| 140 | - Parse an IMAP4 ``INTERNALDATE`` string and return corresponding local | ||
| 141 | - time. The return value is a :class:`time.struct_time` tuple or | ||
| 142 | - ``None`` if the string has wrong format. | ||
| 140 | + Parse a :term:`bytes-like object` containing an IMAP4 ``INTERNALDATE`` | ||
| 141 | + response and return the corresponding local time. The return value is a | ||
| 142 | + :class:`time.struct_time` tuple or ``None`` if the input has wrong format. | ||
| 143 | 143 | ||
| 144 | 144 | .. function:: Int2AP(num) | |
| 145 | 145 | ||
| 146 | 146 | Converts an integer into a bytes representation using characters from the set | |
| 147 | 147 | [``A`` .. ``P``]. | |
| 148 | 148 | ||
| 149 | 149 | ||
| 150 | - .. function:: ParseFlags(flagstr) | ||
| 150 | + .. function:: ParseFlags(resp) | ||
| 151 | 151 | ||
| 152 | - Converts an IMAP4 ``FLAGS`` response to a tuple of individual flags. | ||
| 152 | + Converts a :term:`bytes-like object` containing an IMAP4 ``FLAGS`` response | ||
| 153 | + to a tuple of individual flags as :class:`bytes`. The return value is an | ||
| 154 | + empty tuple if the input has wrong format. | ||
| 153 | 155 | ||
| 154 | 156 | ||
| 155 | 157 | .. function:: Time2Internaldate(date_time) | |
| Back | FazBrowse Home | New Git URL |
0 commit comments