commit | 994f04dbf576f4ebafb9de2bc6821e15cb0de0ea | [log] [tgz] |
---|---|---|
author | Serhiy Storchaka <storchaka@gmail.com> | Tue Dec 27 15:09:36 2016 +0200 |
committer | Serhiy Storchaka <storchaka@gmail.com> | Tue Dec 27 15:09:36 2016 +0200 |
tree | 4967ed9c9688f7fe035c646de993c337141051b0 | |
parent | 58c2c6ebb893917e759cc1401b0d862b3f7c1a94 [diff] [blame] |
Issue #28998: More APIs now support longs as well as ints.
diff --git a/Lib/imaplib.py b/Lib/imaplib.py index 826eea2..f813ece 100644 --- a/Lib/imaplib.py +++ b/Lib/imaplib.py
@@ -1409,7 +1409,7 @@ be in the correct format. """ - if isinstance(date_time, (int, float)): + if isinstance(date_time, (int, long, float)): tt = time.localtime(date_time) elif isinstance(date_time, (tuple, time.struct_time)): tt = date_time