code: def unindent(lines):
      
      try:
          # Determine minimum indentation:
          indent = min(len(line) - len(line.lstrip())
                       for line in lines if line)
      except ValueError:
          return lines
      else:
          return [line[indent:] for line in lines]
docs: Remove common indentation from string.
  
      Unlike doctrim there is no special treatment of the first line.