mirror of
https://github.com/python/cpython.git
synced 2025-08-27 20:25:18 +00:00
Fix various spots where int/long and str/unicode unification
lead to type checks like isinstance(foo, (str, str)) or isinstance(foo, (int, int)).
This commit is contained in:
parent
5d7a7001d9
commit
aa97f04964
14 changed files with 46 additions and 51 deletions
|
@ -541,7 +541,7 @@ class Popen(object):
|
|||
_cleanup()
|
||||
|
||||
self._child_created = False
|
||||
if not isinstance(bufsize, (int, int)):
|
||||
if not isinstance(bufsize, int):
|
||||
raise TypeError("bufsize must be an integer")
|
||||
|
||||
if mswindows:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue