docs: def get_lines_from_file(filepath, encoding="UTF-8"):
      """Return an iterator over lines."""
      try:
          fd = codecs.open(filepath, 'r', encoding)
          lines = fd.readlines()
      except UnicodeDecodeError:
          # Fall back to 'ISO-8859-1'
          fd = codecs.open(filepath, 'r', 'ISO-8859-1')
          lines = fd.readlines()
      finally:
          fd.close()
      return lines