forked from OSchip/llvm-project
[LLDB] Remove __future__ imports from examples
Not needed now that we require python 3. Reviewed By: kastiglione, JDevlieghere Differential Revision: https://reviews.llvm.org/D131772
This commit is contained in:
parent
193259cbce
commit
9f947abf94
|
@ -1,7 +1,5 @@
|
|||
"Collection of tools for displaying bit representation of numbers."""
|
||||
|
||||
from __future__ import print_function
|
||||
|
||||
def binary(n, width=None):
|
||||
"""
|
||||
Return a list of (0|1)'s for the binary representation of n where n >= 0.
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
from __future__ import print_function
|
||||
import sys
|
||||
import os
|
||||
import lldb
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
"""Utility for changing directories and execution of commands in a subshell."""
|
||||
from __future__ import print_function
|
||||
|
||||
import os
|
||||
import shlex
|
||||
|
|
|
@ -8,7 +8,6 @@
|
|||
# (lldb) script import lldb.macosx.heap
|
||||
#----------------------------------------------------------------------
|
||||
|
||||
from __future__ import print_function
|
||||
import lldb
|
||||
import optparse
|
||||
import os
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
#!/usr/bin/env python
|
||||
from __future__ import print_function
|
||||
|
||||
import cmd
|
||||
import optparse
|
||||
|
|
|
@ -9,8 +9,6 @@
|
|||
# (lldb) command script import /path/to/cmdtemplate.py
|
||||
# ---------------------------------------------------------------------
|
||||
|
||||
from __future__ import print_function
|
||||
|
||||
import inspect
|
||||
import lldb
|
||||
import optparse
|
||||
|
|
|
@ -16,8 +16,6 @@
|
|||
# available.
|
||||
#----------------------------------------------------------------------
|
||||
|
||||
from __future__ import print_function
|
||||
|
||||
import optparse
|
||||
import os
|
||||
import shlex
|
||||
|
|
|
@ -4,8 +4,6 @@
|
|||
# decisions it did and providing some useful context information that can
|
||||
# be used for improving the formatter
|
||||
|
||||
from __future__ import print_function
|
||||
|
||||
import lldb
|
||||
|
||||
|
||||
|
|
|
@ -5,7 +5,6 @@
|
|||
# information about the stack frames, and tries an alternate unwind
|
||||
# algorithm, that will help to understand why lldb's unwind algorithm
|
||||
# did not succeed.
|
||||
from __future__ import print_function
|
||||
|
||||
import optparse
|
||||
import lldb
|
||||
|
|
|
@ -16,7 +16,6 @@
|
|||
# available.
|
||||
#----------------------------------------------------------------------
|
||||
|
||||
from __future__ import print_function
|
||||
import binascii
|
||||
import subprocess
|
||||
import json
|
||||
|
|
|
@ -7,7 +7,6 @@
|
|||
# For the shells sh, bash:
|
||||
# PYTHONPATH=/Applications/Xcode.app/Contents/SharedFrameworks/LLDB.framework/Resources/Python ./globals.py <path> [<path> ...]
|
||||
#----------------------------------------------------------------------
|
||||
from __future__ import print_function
|
||||
|
||||
import lldb
|
||||
import optparse
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
from __future__ import print_function
|
||||
|
||||
import lldb
|
||||
import re
|
||||
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
#!/usr/bin/env python
|
||||
from __future__ import print_function
|
||||
|
||||
import lldb
|
||||
import optparse
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
#!/usr/bin/env python
|
||||
from __future__ import print_function
|
||||
|
||||
import lldb
|
||||
import shlex
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
#!/usr/bin/env python
|
||||
from __future__ import print_function
|
||||
|
||||
import cmd
|
||||
import dict_utils
|
||||
|
|
|
@ -9,8 +9,6 @@
|
|||
# (lldb) command script import /path/to/cmdtemplate.py
|
||||
#----------------------------------------------------------------------
|
||||
|
||||
from __future__ import print_function
|
||||
|
||||
import platform
|
||||
import os
|
||||
import re
|
||||
|
|
|
@ -8,8 +8,6 @@
|
|||
# export PYTHONPATH=/Applications/Xcode.app/Contents/SharedFrameworks/LLDB.framework/Resources/Python
|
||||
#----------------------------------------------------------------------
|
||||
|
||||
from __future__ import print_function
|
||||
|
||||
import optparse
|
||||
import os
|
||||
import platform
|
||||
|
|
|
@ -8,8 +8,6 @@
|
|||
# export PYTHONPATH=/Applications/Xcode.app/Contents/SharedFrameworks/LLDB.framework/Resources/Python
|
||||
#----------------------------------------------------------------------
|
||||
|
||||
from __future__ import print_function
|
||||
|
||||
import optparse
|
||||
import os
|
||||
import platform
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
from __future__ import print_function
|
||||
import sys
|
||||
import inspect
|
||||
from collections import OrderedDict
|
||||
|
|
|
@ -93,8 +93,6 @@
|
|||
#
|
||||
# (lldb) thread step-scripted -C scripted_step.StepWithPlan
|
||||
|
||||
from __future__ import print_function
|
||||
|
||||
import lldb
|
||||
|
||||
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
#!/usr/bin/env python
|
||||
from __future__ import print_function
|
||||
|
||||
import lldb
|
||||
import shlex
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
#!/usr/bin/env python
|
||||
from __future__ import print_function
|
||||
|
||||
import lldb
|
||||
import shlex
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
#!/usr/bin/env python
|
||||
from __future__ import print_function
|
||||
import lldb
|
||||
import optparse
|
||||
import shlex
|
||||
|
|
|
@ -26,7 +26,6 @@
|
|||
# PYTHONPATH=/path/to/LLDB.framework/Resources/Python ./crashlog.py ~/Library/Logs/DiagnosticReports/a.crash
|
||||
#----------------------------------------------------------------------
|
||||
|
||||
from __future__ import print_function
|
||||
import lldb
|
||||
import optparse
|
||||
import os
|
||||
|
|
|
@ -9,8 +9,6 @@
|
|||
# (lldb) command script import /path/to/cmdtemplate.py
|
||||
#----------------------------------------------------------------------
|
||||
|
||||
from __future__ import print_function
|
||||
|
||||
import platform
|
||||
import os
|
||||
import re
|
||||
|
|
|
@ -18,8 +18,6 @@ for more information about dictionary.c go to
|
|||
http://lldb.llvm.org/scripting.html
|
||||
"""
|
||||
|
||||
from __future__ import print_function
|
||||
|
||||
|
||||
def DFS(root, word, cur_path):
|
||||
"""
|
||||
|
|
|
@ -5,7 +5,6 @@ Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
|||
See https://llvm.org/LICENSE.txt for license information.
|
||||
SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
||||
"""
|
||||
from __future__ import print_function
|
||||
|
||||
# summary provider for CF(Mutable)BitVector
|
||||
import lldb
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
from __future__ import print_function
|
||||
import sys
|
||||
import os.path
|
||||
import inspect
|
||||
|
|
|
@ -8,8 +8,6 @@ SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
|||
# example summary provider for NSNumber
|
||||
# the real summary is now C++ code built into LLDB
|
||||
|
||||
from __future__ import print_function
|
||||
|
||||
import lldb
|
||||
import ctypes
|
||||
import lldb.runtime.objc.objc_runtime
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
from __future__ import division
|
||||
import lldb.formatters.Logger
|
||||
|
||||
# C++ STL formatters for LLDB
|
||||
|
|
Loading…
Reference in New Issue