From 994f04dbf576f4ebafb9de2bc6821e15cb0de0ea Mon Sep 17 00:00:00 2001 From: Serhiy Storchaka Date: Tue, 27 Dec 2016 15:09:36 +0200 Subject: Issue #28998: More APIs now support longs as well as ints. --- Lib/asynchat.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Lib/asynchat.py') diff --git a/Lib/asynchat.py b/Lib/asynchat.py index 57459a0821..392ee61a45 100644 --- a/Lib/asynchat.py +++ b/Lib/asynchat.py @@ -133,7 +133,7 @@ class async_chat (asyncore.dispatcher): # no terminator, collect it all self.collect_incoming_data (self.ac_in_buffer) self.ac_in_buffer = '' - elif isinstance(terminator, int) or isinstance(terminator, long): + elif isinstance(terminator, (int, long)): # numeric terminator n = terminator if lb < n: -- cgit v1.2.1