code: def load(self):
          
          # If we are given a string, open it up else assume it's something we
          # can call read on.
          if isinstance(self.specfile, str):
              f = open(self.specfile, 'r')
          else:
              f = self.specfile
  
          for line in f:
              if self.v_regex.match(line):
                  self._pkg_version = self.v_regex.match(line).group(1)
              if self.n_regex.match(line):
                  self._pkg_name = self.n_regex.match(line).group(1)
          f.close()
          self._loaded = True
docs: call this function after the file exists to populate properties