summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDoug Hellmann <doug.hellmann@gmail.com>2013-07-21 15:25:44 -0400
committerDoug Hellmann <doug.hellmann@dreamhost.com>2013-07-21 15:28:06 -0400
commitaa7a6fd3270710e533f84e04c84a94d46fa15266 (patch)
tree3b78f63cf56d404521198f2cd9d9e627aa7d9550
parent705c04becdef75efbc67cb294981a7f6ab298a61 (diff)
downloadpbr-aa7a6fd3270710e533f84e04c84a94d46fa15266.tar.gz
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
-rw-r--r--pbr/core.py2
1 files changed, 1 insertions, 1 deletions
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)