8000 imaplib: transform None into "NIL" · python/cpython@f007fdf · GitHub
[go: up one dir, main page]

Skip to content

Commit f007fdf

Browse files
committed
imaplib: transform None into "NIL"
1 parent 05fbe15 commit f007fdf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/imaplib.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -980,7 +980,7 @@ def _command(self, name, *args):
980980
name = bytes(name, self._encoding)
981981
data = tag + b' ' + name
982982
for arg in args:
983-
if arg is None: continue
983+
if arg is None: arg = b'NIL'
984984
if isinstance(arg, str):
985985
arg = bytes(arg, self._encoding)
986986
data = data + b' ' + arg

0 commit comments

Comments
 (0)
0