[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:
David Spickett 2022-08-12 13:14:00 +00:00
parent 193259cbce
commit 9f947abf94
30 changed files with 0 additions and 42 deletions

View File

@ -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.

View File

@ -1,4 +1,3 @@
from __future__ import print_function
import sys
import os
import lldb

View File

@ -1,5 +1,4 @@
"""Utility for changing directories and execution of commands in a subshell."""
from __future__ import print_function
import os
import shlex

View File

@ -8,7 +8,6 @@
# (lldb) script import lldb.macosx.heap
#----------------------------------------------------------------------
from __future__ import print_function
import lldb
import optparse
import os

View File

@ -1,5 +1,4 @@
#!/usr/bin/env python
from __future__ import print_function
import cmd
import optparse

View File

@ -9,8 +9,6 @@
# (lldb) command script import /path/to/cmdtemplate.py
# ---------------------------------------------------------------------
from __future__ import print_function
import inspect
import lldb
import optparse

View File

@ -16,8 +16,6 @@
# available.
#----------------------------------------------------------------------
from __future__ import print_function
import optparse
import os
import shlex

View File

@ -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

View File

@ -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

View File

@ -16,7 +16,6 @@
# available.
#----------------------------------------------------------------------
from __future__ import print_function
import binascii
import subprocess
import json

View File

@ -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

View File

@ -1,5 +1,3 @@
from __future__ import print_function
import lldb
import re

View File

@ -1,5 +1,4 @@
#!/usr/bin/env python
from __future__ import print_function
import lldb
import optparse

View File

@ -1,5 +1,4 @@
#!/usr/bin/env python
from __future__ import print_function
import lldb
import shlex

View File

@ -1,5 +1,4 @@
#!/usr/bin/env python
from __future__ import print_function
import cmd
import dict_utils

View File

@ -9,8 +9,6 @@
# (lldb) command script import /path/to/cmdtemplate.py
#----------------------------------------------------------------------
from __future__ import print_function
import platform
import os
import re

View File

@ -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

View File

@ -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

View File

@ -1,4 +1,3 @@
from __future__ import print_function
import sys
import inspect
from collections import OrderedDict

View File

@ -93,8 +93,6 @@
#
# (lldb) thread step-scripted -C scripted_step.StepWithPlan
from __future__ import print_function
import lldb

View File

@ -1,5 +1,4 @@
#!/usr/bin/env python
from __future__ import print_function
import lldb
import shlex

View File

@ -1,5 +1,4 @@
#!/usr/bin/env python
from __future__ import print_function
import lldb
import shlex

View File

@ -1,5 +1,4 @@
#!/usr/bin/env python
from __future__ import print_function
import lldb
import optparse
import shlex

View File

@ -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

View File

@ -9,8 +9,6 @@
# (lldb) command script import /path/to/cmdtemplate.py
#----------------------------------------------------------------------
from __future__ import print_function
import platform
import os
import re

View File

@ -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):
"""

View File

@ -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

View File

@ -1,4 +1,3 @@
from __future__ import print_function
import sys
import os.path
import inspect

View File

@ -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

View File

@ -1,4 +1,3 @@
from __future__ import division
import lldb.formatters.Logger
# C++ STL formatters for LLDB