python3: long does not exist in python 3
In Python 2 there are two integer types 'int' and 'float',
but in Python 3 'int' handles all integers.
blueprint django2-support
import logging
from oslo_utils import units
+from six.moves import builtins
from django.conf import settings
from django.core.urlresolvers import reverse
@@ -123,7 +124,8 @@ class IndexView(tables.DataTableView):
invalid_msg = ('API query is not valid and is ignored: '
'%(field)s=%(string)s')
try:
- filter_string = long(float(filter_string) * (units.Mi))
+ filter_string = builtins.int(float(filter_string)
+ * (units.Mi))
if filter_string >= 0:
filters[filter_field] = filter_string
else:
