diff --git a/lldb/examples/customization/bin-utils/binutils.py b/lldb/examples/customization/bin-utils/binutils.py index f1aa48fa26db..4237ab652500 100644 --- 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 index cf7ac979966d..e355a09c7a3f 100644 --- 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 index 6c3c2540f3dc..75dcb1a0db75 100644 --- 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 index b04f69008b68..2021b9ebc8e2 100644 --- 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 index fdf5455fe69e..34716a3d9003 100755 --- 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 index aa99e4c03beb..9ce930d4ef76 100644 --- 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 index 3f14fb1e152b..3e8ece214131 100755 --- 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 index 4a8eee3c2dd4..1e91e860894f 100644 --- 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 index bd6976de4a3d..65de6f1625c2 100644 --- 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 index 8b6a26849621..13ec30abbe18 100755 --- 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 index 96645afef00f..3d6cc9b01713 100755 --- 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 index d7fd03e53389..cfa8342d0690 100644 --- 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 index c0ac5751ce28..fa1499da0ddf 100644 --- 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 index a6a420ba1bd1..55633df3dad8 100644 --- 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 index 03ab73b3be9d..d9e1841363b7 100755 --- 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 index aa5df0178e91..17fce3fb0d9e 100755 --- 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 index 57e9d1e0a24c..cfba73e50832 100755 --- 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 index cb4bf788119d..16706d81b33d 100755 --- 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 index 27f88d7a3eee..561b90f4a7e6 100644 --- 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 index 3c1d5d7a6c4c..011e24d70cb2 100644 --- 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 index 73534dce5352..1ad0288dd2ea 100644 --- 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 index 38b3926768b2..427937abd13a 100644 --- 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 index 5b0a877b3066..3b9a85a2bd95 100755 --- 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 index e15f7f4eaa3c..c722b73faa06 100755 --- 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 index 024348cdaa3a..e32787731e63 100755 --- 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 index e99f7c63bedc..69b5406457c3 100755 --- a/lldb/examples/scripting/tree_utils.py +++ b/lldb/examples/scripting/tree_utils.py @@ -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): """ diff --git a/lldb/examples/summaries/cocoa/CFBitVector.py b/lldb/examples/summaries/cocoa/CFBitVector.py index 73552a3e2b8f..7ee5fc2cdbf6 100644 --- a/lldb/examples/summaries/cocoa/CFBitVector.py +++ b/lldb/examples/summaries/cocoa/CFBitVector.py @@ -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 diff --git a/lldb/examples/summaries/cocoa/Logger.py b/lldb/examples/summaries/cocoa/Logger.py index e518b75b20ce..e051a82e4bc0 100644 --- 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 index 7132e34d170c..983222b880c9 100644 --- a/lldb/examples/summaries/cocoa/NSNumber.py +++ b/lldb/examples/summaries/cocoa/NSNumber.py @@ -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 diff --git a/lldb/examples/synthetic/gnu_libstdcpp.py b/lldb/examples/synthetic/gnu_libstdcpp.py index a371a77c6c74..d1dd2d6c95b7 100644 --- 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