From aa7a6fd3270710e533f84e04c84a94d46fa15266 Mon Sep 17 00:00:00 2001 From: Doug Hellmann Date: Sun, 21 Jul 2013 15:25:44 -0400 Subject: Fix integer_types type under python 3 Set the integer_types variable to the same kind of object under python 3 and 2 so that when we go to manipulate it later it works. Change-Id: I8f9db1d76931ef834645095952f71415d98f0b5c --- pbr/core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pbr/core.py b/pbr/core.py index 8cee9b0..1432b27 100644 --- a/pbr/core.py +++ b/pbr/core.py @@ -52,7 +52,7 @@ from pbr.d2to1 import util core.Distribution = dist._get_unpatched(core.Distribution) if sys.version_info[0] == 3: string_type = str - integer_types = int + integer_types = (int,) else: string_type = basestring integer_types = (int, long) -- cgit v1.2.1