mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-27 04:56:07 +00:00
Python 3 - Use six in our embedded Python glue code.
llvm-svn: 252767
This commit is contained in:
parent
a52b4da039
commit
d4870df9bf
@ -146,7 +146,7 @@ public:
|
||||
for x in range(*key.indices(self.__len__())):
|
||||
list.append(self.__getitem__(x))
|
||||
return list
|
||||
if not (isinstance(key,(int,long))):
|
||||
if not (isinstance(key,six.integer_types)):
|
||||
raise TypeError('must be int')
|
||||
key = key * self.item_size # SBData uses byte-based indexes, but we want to use itemsize-based indexes here
|
||||
error = SBError()
|
||||
|
@ -41,6 +41,8 @@ o SBLineEntry: Specifies an association with a contiguous range of instructions
|
||||
import uuid
|
||||
import re
|
||||
import os
|
||||
|
||||
import six
|
||||
%}
|
||||
%include "./Python/python-typemaps.swig"
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user