diff --git a/lldb/examples/customization/bin-utils/binutils.py b/lldb/examples/customization/bin-utils/binutils.py --- a/lldb/examples/customization/bin-utils/binutils.py +++ b/lldb/examples/customization/bin-utils/binutils.py @@ -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. diff --git a/lldb/examples/customization/import-python/importcmd.py b/lldb/examples/customization/import-python/importcmd.py --- a/lldb/examples/customization/import-python/importcmd.py +++ b/lldb/examples/customization/import-python/importcmd.py @@ -1,4 +1,3 @@ -from __future__ import print_function import sys import os import lldb diff --git a/lldb/examples/customization/pwd-cd-and-system/utils.py b/lldb/examples/customization/pwd-cd-and-system/utils.py --- a/lldb/examples/customization/pwd-cd-and-system/utils.py +++ b/lldb/examples/customization/pwd-cd-and-system/utils.py @@ -1,5 +1,4 @@ """Utility for changing directories and execution of commands in a subshell.""" -from __future__ import print_function import os import shlex diff --git a/lldb/examples/darwin/heap_find/heap.py b/lldb/examples/darwin/heap_find/heap.py --- a/lldb/examples/darwin/heap_find/heap.py +++ b/lldb/examples/darwin/heap_find/heap.py @@ -8,7 +8,6 @@ # (lldb) script import lldb.macosx.heap #---------------------------------------------------------------------- -from __future__ import print_function import lldb import optparse import os diff --git a/lldb/examples/python/bsd.py b/lldb/examples/python/bsd.py --- a/lldb/examples/python/bsd.py +++ b/lldb/examples/python/bsd.py @@ -1,5 +1,4 @@ #!/usr/bin/env python -from __future__ import print_function import cmd import optparse diff --git a/lldb/examples/python/cmdtemplate.py b/lldb/examples/python/cmdtemplate.py --- a/lldb/examples/python/cmdtemplate.py +++ b/lldb/examples/python/cmdtemplate.py @@ -9,8 +9,6 @@ # (lldb) command script import /path/to/cmdtemplate.py # --------------------------------------------------------------------- -from __future__ import print_function - import inspect import lldb import optparse diff --git a/lldb/examples/python/delta.py b/lldb/examples/python/delta.py --- a/lldb/examples/python/delta.py +++ b/lldb/examples/python/delta.py @@ -16,8 +16,6 @@ # available. #---------------------------------------------------------------------- -from __future__ import print_function - import optparse import os import shlex diff --git a/lldb/examples/python/diagnose_nsstring.py b/lldb/examples/python/diagnose_nsstring.py --- a/lldb/examples/python/diagnose_nsstring.py +++ b/lldb/examples/python/diagnose_nsstring.py @@ -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 diff --git a/lldb/examples/python/diagnose_unwind.py b/lldb/examples/python/diagnose_unwind.py --- a/lldb/examples/python/diagnose_unwind.py +++ b/lldb/examples/python/diagnose_unwind.py @@ -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 diff --git a/lldb/examples/python/gdbremote.py b/lldb/examples/python/gdbremote.py --- a/lldb/examples/python/gdbremote.py +++ b/lldb/examples/python/gdbremote.py @@ -16,7 +16,6 @@ # available. #---------------------------------------------------------------------- -from __future__ import print_function import binascii import subprocess import json diff --git a/lldb/examples/python/globals.py b/lldb/examples/python/globals.py --- a/lldb/examples/python/globals.py +++ b/lldb/examples/python/globals.py @@ -7,7 +7,6 @@ # For the shells sh, bash: # PYTHONPATH=/Applications/Xcode.app/Contents/SharedFrameworks/LLDB.framework/Resources/Python ./globals.py [ ...] #---------------------------------------------------------------------- -from __future__ import print_function import lldb import optparse diff --git a/lldb/examples/python/jump.py b/lldb/examples/python/jump.py --- a/lldb/examples/python/jump.py +++ b/lldb/examples/python/jump.py @@ -1,5 +1,3 @@ -from __future__ import print_function - import lldb import re diff --git a/lldb/examples/python/lldb_module_utils.py b/lldb/examples/python/lldb_module_utils.py --- a/lldb/examples/python/lldb_module_utils.py +++ b/lldb/examples/python/lldb_module_utils.py @@ -1,5 +1,4 @@ #!/usr/bin/env python -from __future__ import print_function import lldb import optparse diff --git a/lldb/examples/python/lldbtk.py b/lldb/examples/python/lldbtk.py --- a/lldb/examples/python/lldbtk.py +++ b/lldb/examples/python/lldbtk.py @@ -1,5 +1,4 @@ #!/usr/bin/env python -from __future__ import print_function import lldb import shlex diff --git a/lldb/examples/python/mach_o.py b/lldb/examples/python/mach_o.py --- a/lldb/examples/python/mach_o.py +++ b/lldb/examples/python/mach_o.py @@ -1,5 +1,4 @@ #!/usr/bin/env python -from __future__ import print_function import cmd import dict_utils diff --git a/lldb/examples/python/memory.py b/lldb/examples/python/memory.py --- a/lldb/examples/python/memory.py +++ b/lldb/examples/python/memory.py @@ -9,8 +9,6 @@ # (lldb) command script import /path/to/cmdtemplate.py #---------------------------------------------------------------------- -from __future__ import print_function - import platform import os import re diff --git a/lldb/examples/python/performance.py b/lldb/examples/python/performance.py --- a/lldb/examples/python/performance.py +++ b/lldb/examples/python/performance.py @@ -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 diff --git a/lldb/examples/python/process_events.py b/lldb/examples/python/process_events.py --- a/lldb/examples/python/process_events.py +++ b/lldb/examples/python/process_events.py @@ -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 diff --git a/lldb/examples/python/pytracer.py b/lldb/examples/python/pytracer.py --- a/lldb/examples/python/pytracer.py +++ b/lldb/examples/python/pytracer.py @@ -1,4 +1,3 @@ -from __future__ import print_function import sys import inspect from collections import OrderedDict diff --git a/lldb/examples/python/scripted_step.py b/lldb/examples/python/scripted_step.py --- a/lldb/examples/python/scripted_step.py +++ b/lldb/examples/python/scripted_step.py @@ -93,8 +93,6 @@ # # (lldb) thread step-scripted -C scripted_step.StepWithPlan -from __future__ import print_function - import lldb diff --git a/lldb/examples/python/shadow.py b/lldb/examples/python/shadow.py --- a/lldb/examples/python/shadow.py +++ b/lldb/examples/python/shadow.py @@ -1,5 +1,4 @@ #!/usr/bin/env python -from __future__ import print_function import lldb import shlex diff --git a/lldb/examples/python/sources.py b/lldb/examples/python/sources.py --- a/lldb/examples/python/sources.py +++ b/lldb/examples/python/sources.py @@ -1,5 +1,4 @@ #!/usr/bin/env python -from __future__ import print_function import lldb import shlex diff --git a/lldb/examples/python/stacks.py b/lldb/examples/python/stacks.py --- a/lldb/examples/python/stacks.py +++ b/lldb/examples/python/stacks.py @@ -1,5 +1,4 @@ #!/usr/bin/env python -from __future__ import print_function import lldb import optparse import shlex diff --git a/lldb/examples/python/symbolication.py b/lldb/examples/python/symbolication.py --- a/lldb/examples/python/symbolication.py +++ b/lldb/examples/python/symbolication.py @@ -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 diff --git a/lldb/examples/python/types.py b/lldb/examples/python/types.py --- a/lldb/examples/python/types.py +++ b/lldb/examples/python/types.py @@ -9,8 +9,6 @@ # (lldb) command script import /path/to/cmdtemplate.py #---------------------------------------------------------------------- -from __future__ import print_function - import platform import os import re diff --git a/lldb/examples/scripting/tree_utils.py b/lldb/examples/scripting/tree_utils.py --- a/lldb/examples/scripting/tree_utils.py +++ b/lldb/examples/scripting/tree_utils.py @@ -18,8 +18,6 @@ http://lldb.llvm.org/scripting.html """ -from __future__ import print_function - def DFS(root, word, cur_path): """ diff --git a/lldb/examples/summaries/cocoa/CFBitVector.py b/lldb/examples/summaries/cocoa/CFBitVector.py --- a/lldb/examples/summaries/cocoa/CFBitVector.py +++ b/lldb/examples/summaries/cocoa/CFBitVector.py @@ -5,7 +5,6 @@ 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 diff --git a/lldb/examples/summaries/cocoa/Logger.py b/lldb/examples/summaries/cocoa/Logger.py --- a/lldb/examples/summaries/cocoa/Logger.py +++ b/lldb/examples/summaries/cocoa/Logger.py @@ -1,4 +1,3 @@ -from __future__ import print_function import sys import os.path import inspect diff --git a/lldb/examples/summaries/cocoa/NSNumber.py b/lldb/examples/summaries/cocoa/NSNumber.py --- a/lldb/examples/summaries/cocoa/NSNumber.py +++ b/lldb/examples/summaries/cocoa/NSNumber.py @@ -8,8 +8,6 @@ # 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 diff --git a/lldb/examples/synthetic/gnu_libstdcpp.py b/lldb/examples/synthetic/gnu_libstdcpp.py --- a/lldb/examples/synthetic/gnu_libstdcpp.py +++ b/lldb/examples/synthetic/gnu_libstdcpp.py @@ -1,4 +1,3 @@ -from __future__ import division import lldb.formatters.Logger # C++ STL formatters for LLDB