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
This commit is contained in:
Doug Hellmann 2013-07-21 15:25:44 -04:00 committed by Doug Hellmann
parent 705c04becd
commit aa7a6fd327
1 changed files with 1 additions and 1 deletions

View File

@ -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)