code: def _section_from_spec(self, spec):
          '''
              Retrieve a section given a "spec" (either number or name).
              Return None if no such section exists in the file.
          '''
          try:
              num = int(spec)
              if num < self.elf_file.num_sections():
                  return self.elf_file.get_section(num)
              else:
                  return None
          except ValueError:
              # Not a number. Must be a name then
              return self.elf_file.get_section_by_name(specf _section_from_spec(self, spec):
          '''
              Retrieve a section given a "spec" (either number or name).
              Return None if no such section exists in the file.
          '''
          try:
              num = int(spec)
              if num < self.elf_file.num_sections():
                  return self.elf_file.get_section(num)
              else:
                  return None
          except ValueError:
              # Not a number. Must be a name then
              return self.elf_file.get_section_by_name(spec)
docs: Retrieve a section given a "spec" (either number or name).
              Return None if no such section exists in the file.