commit | aa97f0496412ed834aada921e29588ed16d68e40 | [log] [tgz] |
---|---|---|
author | Walter Dörwald <walter@livinglogic.de> | Thu May 03 21:05:51 2007 +0000 |
committer | Walter Dörwald <walter@livinglogic.de> | Thu May 03 21:05:51 2007 +0000 |
tree | cfe74cb3cd3ed5a27cbcfa404ea9fc8c73fd63f1 | |
parent | 5d7a7001d9df605606b249b3e11707d6d1ad2e3d [diff] [blame] |
Fix various spots where int/long and str/unicode unification lead to type checks like isinstance(foo, (str, str)) or isinstance(foo, (int, int)).
diff --git a/Lib/subprocess.py b/Lib/subprocess.py index 2aa02ae..363c827 100644 --- a/Lib/subprocess.py +++ b/Lib/subprocess.py
@@ -541,7 +541,7 @@ _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: