(self)
return results
Get the list of installed files for the distribution
        :return: A list of tuples of path, hash and size. Note that hash and
                 size might be ``None`` for some entries. The path is exactly
                 as stored in the file (which is as in PEP 376).
Get the list of installed files for the distribution
        :return: A list of tuples of path, hash and size. Note that hash and
                 size might be ``None`` for some entries. The path is exactly
                 as stored in the file (which is as in PEP 376).
Get the list of installed files for the distribution : return : A list of tuples of path hash and size . Note that hash and size might be None for some entries . The path is exactly as stored in the file ( which is as in PEP 376 ) .
def _get_records(self):
        """
        Get the list of installed files for the distribution
        :return: A list of tuples of path, hash and size. Note that hash and
                 size might be ``None`` for some entries. The path is exactly
                 as stored in the file (which is as in PEP 376).
        """
        results = []
        r = self.get_distinfo_resource('RECORD')
        with contextlib.closing(r.as_stream()) as stream:
            with CSVReader(stream=stream) as record_reader:
                # Base location is parent dir of .dist-info dir
                #base_location = os.path.dirname(self.path)
                #base_location = os.path.abspath(base_location)
                for row in record_reader:
                    missing = [None for i in range(len(row), 3)]
                    path, checksum, size = row + missing
                    #if not os.path.isabs(path):
                    #    path = path.replace('/', os.sep)
                    #    path = os.path.join(base_location, path)
                    results.append((path, checksum, size))
        return results
def _get_records ( self ) : results = [ ] r = self . get_distinfo_resource ( 'RECORD' ) with contextlib . closing ( r . as_stream ( ) ) as stream : with CSVReader ( stream = stream ) as record_reader : # Base location is parent dir of .dist-info dir #base_location = os.path.dirname(self.path) #base_location = os.path.abspath(base_location) for row in record_reader : missing = [ None for i in range ( len ( row ) , 3 ) ] path , checksum , size = row + missing #if not os.path.isabs(path): #    path = path.replace('/', os.sep) #    path = os.path.join(base_location, path) results . append ( ( path , checksum , size ) ) return results