|
16 | 16 | import sys |
17 | 17 | import subprocess |
18 | 18 | import time |
19 | | -import types |
20 | 19 |
|
21 | 20 | # ---------------------------------------------------------------------- |
22 | 21 | # Code that auto imports LLDB |
@@ -121,19 +120,19 @@ def __init__( |
121 | 120 | self.breakpoints.append(breakpoint) |
122 | 121 | else: |
123 | 122 | if module: |
124 | | - if isinstance(module, types.ListType): |
| 123 | + if isinstance(module, list): |
125 | 124 | for module_path in module: |
126 | 125 | self.modules.Append(lldb.SBFileSpec(module_path, False)) |
127 | | - elif isinstance(module, types.StringTypes): |
| 126 | + elif isinstance(module, str): |
128 | 127 | self.modules.Append(lldb.SBFileSpec(module, False)) |
129 | 128 | if name: |
130 | 129 | # "file" can be a list or a string |
131 | 130 | if file: |
132 | | - if isinstance(file, types.ListType): |
| 131 | + if isinstance(file, list): |
133 | 132 | self.files = lldb.SBFileSpecList() |
134 | 133 | for f in file: |
135 | 134 | self.files.Append(lldb.SBFileSpec(f, False)) |
136 | | - elif isinstance(file, types.StringTypes): |
| 135 | + elif isinstance(file, str): |
137 | 136 | self.files.Append(lldb.SBFileSpec(file, False)) |
138 | 137 | self.breakpoints.append( |
139 | 138 | self.target.BreakpointCreateByName(name, self.modules, self.files) |
|
0 commit comments