From aa97f0496412ed834aada921e29588ed16d68e40 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Walter=20D=C3=B6rwald?= Date: Thu, 3 May 2007 21:05:51 +0000 Subject: Fix various spots where int/long and str/unicode unification lead to type checks like isinstance(foo, (str, str)) or isinstance(foo, (int, int)). --- Lib/random.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Lib/random.py') diff --git a/Lib/random.py b/Lib/random.py index 8adcff5f6d..99ae750271 100644 --- a/Lib/random.py +++ b/Lib/random.py @@ -631,7 +631,7 @@ class WichmannHill(Random): import time a = int(time.time() * 256) # use fractional seconds - if not isinstance(a, (int, int)): + if not isinstance(a, int): a = hash(a) a, x = divmod(a, 30268) -- cgit v1.2.1