old_contents: import signal
  
  import gdb
  
  import pwndbg.arguments
  import pwndbg.color
  import pwndbg.commands
  import pwndbg.gdblib
  
  pwndbg.commands.load_commands()
  pwndbg.gdblib.load_gdblib()
  
  import pwndbg.constants
  import pwndbg.disasm
  import pwndbg.disasm.arm
  import pwndbg.disasm.jump
  import pwndbg.disasm.mips
  import pwndbg.disasm.ppc
  import pwndbg.disasm.sparc
  import pwndbg.disasm.x86
  import pwndbg.elf
  import pwndbg.exception
  import pwndbg.gdbutils.functions
  import pwndbg.heap
  import pwndbg.lib.version
  import pwndbg.proc
  import pwndbg.ui
  import pwndbg.vmmap
  import pwndbg.wrappers
  import pwndbg.wrappers.checksec
  import pwndbg.wrappers.readelf
  
  __version__ = pwndbg.lib.version.__version__
  version = __version__
  
  try:
      import unicorn
  
      import pwndbg.emu
  except Exception:
      pass
  
  __all__ = [
      "arch",
      "auxv",
      "chain",
      "color",
      "disasm",
      "dt",
      "elf",
      "enhance",
      "events",
      "file",
      "function",
      "heap",
      "hexdump",
      "ida",
      "info",
      "leakfind",
      "linkmap",
      "malloc",
      "memoize",
      "memory",
      "p2p",
      "proc",
      "regs",
      "remote",
      "search",
      "stack",
      "strings",
      "symbol",
      "typeinfo",
      "ui",
      "vmmap",
  ]
  
  pwndbg.gdblib.prompt.set_prompt()
  
  pre_commands = """
  set confirm off
  set verbose off
  set pagination off
  set height 0
  set history expansion on
  set history save on
  set follow-fork-mode child
  set backtrace past-main on
  set step-mode on
  set print pretty on
  set width %i
  handle SIGALRM nostop print nopass
  handle SIGBUS  stop   print nopass
  handle SIGPIPE nostop print nopass
  handle SIGSEGV stop   print nopass
  """.strip() % (
      pwndbg.ui.get_window_size()[1]
  )
  
  for line in pre_commands.strip().splitlines():
      gdb.execute(line)
  
  # This may throw an exception, see pwndbg/pwndbg#27
  try:
      gdb.execute("set disassembly-flavor intel")
  except gdb.error:
      pass
  
  # handle resize event to align width and completion
  signal.signal(
      signal.SIGWINCH,
      lambda signum, frame: gdb.execute("set width %i" % pwndbg.ui.get_window_size()[1]),
  )
  
  # Reading Comment file
  pwndbg.commands.comments.init()
  
new_contents: import signal
  
  import gdb
  
  import pwndbg.color
  import pwndbg.commands
  import pwndbg.gdblib
  
  pwndbg.commands.load_commands()
  pwndbg.gdblib.load_gdblib()
  
  import pwndbg.disasm
  import pwndbg.disasm.arm
  import pwndbg.disasm.jump
  import pwndbg.disasm.mips
  import pwndbg.disasm.ppc
  import pwndbg.disasm.sparc
  import pwndbg.disasm.x86
  import pwndbg.elf
  import pwndbg.exception
  import pwndbg.gdbutils.functions
  import pwndbg.heap
  import pwndbg.lib.version
  import pwndbg.ui
  import pwndbg.vmmap
  
  __version__ = pwndbg.lib.version.__version__
  version = __version__
  
  __all__ = [
      "arch",
      "auxv",
      "chain",
      "color",
      "disasm",
      "dt",
      "elf",
      "enhance",
      "events",
      "file",
      "function",
      "heap",
      "hexdump",
      "ida",
      "info",
      "leakfind",
      "linkmap",
      "malloc",
      "memoize",
      "memory",
      "p2p",
      "proc",
      "regs",
      "remote",
      "search",
      "stack",
      "strings",
      "symbol",
      "typeinfo",
      "ui",
      "vmmap",
  ]
  
  pwndbg.gdblib.prompt.set_prompt()
  
  pre_commands = """
  set confirm off
  set verbose off
  set pagination off
  set height 0
  set history expansion on
  set history save on
  set follow-fork-mode child
  set backtrace past-main on
  set step-mode on
  set print pretty on
  set width %i
  handle SIGALRM nostop print nopass
  handle SIGBUS  stop   print nopass
  handle SIGPIPE nostop print nopass
  handle SIGSEGV stop   print nopass
  """.strip() % (
      pwndbg.ui.get_window_size()[1]
  )
  
  for line in pre_commands.strip().splitlines():
      gdb.execute(line)
  
  # This may throw an exception, see pwndbg/pwndbg#27
  try:
      gdb.execute("set disassembly-flavor intel")
  except gdb.error:
      pass
  
  # handle resize event to align width and completion
  signal.signal(
      signal.SIGWINCH,
      lambda signum, frame: gdb.execute("set width %i" % pwndbg.ui.get_window_size()[1]),
  )
  
  # Reading Comment file
  pwndbg.commands.comments.init()
  
subject: Remove unnecessary imports in __init__.py (#1252)