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:
parent
705c04becd
commit
aa7a6fd327
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue