parameters: (self, filename=None)
return_statement: return result
docstring: Read exports data from a file in .ini format.
          :param filename: An absolute pathname of the file to read. If not
                           specified, the EXPORTS file in the .dist-info
                           directory of the distribution is read.
          :return: A dictionary of exports, mapping an export category to a list
                   of :class:`ExportEntry` instances describing the individual
                   export entries.
docstring_summary: Read exports data from a file in .ini format.
          :param filename: An absolute pathname of the file to read. If not
                           specified, the EXPORTS file in the .dist-info
                           directory of the distribution is read.
          :return: A dictionary of exports, mapping an export category to a list
                   of :class:`ExportEntry` instances describing the individual
                   export entries.
docstring_tokens: Read exports data from a file in . ini format . : param filename : An absolute pathname of the file to read . If not specified the EXPORTS file in the . dist - info directory of the distribution is read . : return : A dictionary of exports mapping an export category to a list of : class : ExportEntry instances describing the individual export entries .
function: def read_exports(self, filename=None):
          """
          Read exports data from a file in .ini format.
          :param filename: An absolute pathname of the file to read. If not
                           specified, the EXPORTS file in the .dist-info
                           directory of the distribution is read.
          :return: A dictionary of exports, mapping an export category to a list
                   of :class:`ExportEntry` instances describing the individual
                   export entries.
          """
          result = {}
          rf = filename or self.get_distinfo_file('EXPORTS')
          if os.path.exists(rf):
              cp = configparser.ConfigParser()
              cp.read(rf)
              for key in cp.sections():
                  result[key] = entries = {}
                  for name, value in cp.items(key):
                      s = '%s = %s' % (name, value)
                      entry = get_export_entry(s)
                      assert entry is not None
                      entry.dist = self
                      entries[name] = entry
          return result
function_tokens: def read_exports ( self , filename = None ) : result = { } rf = filename or self . get_distinfo_file ( 'EXPORTS' ) if os . path . exists ( rf ) : cp = configparser . ConfigParser ( ) cp . read ( rf ) for key in cp . sections ( ) : result [ key ] = entries = { } for name , value in cp . items ( key ) : s = '%s = %s' % ( name , value ) entry = get_export_entry ( s ) assert entry is not None entry . dist = self entries [ name ] = entry return result