class_docstr: shared implementation for filesystem path objects.
docstr: read and return a list of lines from the path. if cr is False, the
  newline will be removed from the end of each line. 
docstr_tok: ["read","and","return","a","list","of","lines","from","the","path",".","if","cr","is","False",",","the","newline","will","be","removed","from","the","end","of","each","line","."]
code: def readlines(self, cr=1):
      """read and return a list of lines from the path. if cr is False, the
      newline will be removed from the end of each line."""
      if sys.version_info < (3,):
          mode = "rU"
      else:  # python 3 deprecates mode "U" in favor of "newline" option
          mode = "r"
  
      if not cr:
          content = self.read(mode)
          return content.split("\n")
      else:
          f = self.open(mode)
          try:
              return f.readlines()
          finally:
              f.close()
  
imports: import warnings
  import os
  import sys
  import posixpath
  import fnmatch
  import py
label_desc: Use image node_id 10 for calling the PathBase obj's underlying member method code with example usage: obj.readlines(cr) and returns: content, f