code: def _load_old_defaults(self, old_version):
          
          old_defaults = cp.ConfigParser()
          if check_version(old_version, '3.0.0', '<='):
              path = get_module_source_path('spyder')
          else:
              path = osp.dirname(self.filename())
          path = osp.join(path, 'defaults') 
          old_defaults.read(osp.join(path, 'defaults-'+old_version+'.ini'))
          return old_defaults
docs: Read old defaults