@@ -30,7 +30,7 @@ def _get_path_extensions():
3030_CONF_VAR_RE  =  re .compile (r"\{\w+\}" )
3131
3232
33- class  PythonInfo :   # noqa: PLR0904 
33+ class  PythonInfo :
3434    """Contains information for a Python interpreter.""" 
3535
3636    def  __init__ (self ) ->  None :  # noqa: PLR0915 
@@ -135,7 +135,6 @@ def abs_path(v):
135135        self .system_stdlib  =  self .sysconfig_path ("stdlib" , confs )
136136        self .system_stdlib_platform  =  self .sysconfig_path ("platstdlib" , confs )
137137        self .max_size  =  getattr (sys , "maxsize" , getattr (sys , "maxint" , None ))
138-         self ._creators  =  None 
139138
140139    @staticmethod  
141140    def  _get_tcl_tk_libs ():
@@ -311,13 +310,6 @@ def sysconfig_path(self, key, config_var=None, sep=os.sep):
311310            config_var  =  base 
312311        return  pattern .format (** config_var ).replace ("/" , sep )
313312
314-     def  creators (self , refresh = False ):  # noqa: FBT002 
315-         if  self ._creators  is  None  or  refresh  is  True :
316-             from  virtualenv .run .plugin .creators  import  CreatorSelector   # noqa: PLC0415 
317- 
318-             self ._creators  =  CreatorSelector .for_interpreter (self )
319-         return  self ._creators 
320- 
321313    @property  
322314    def  system_include (self ):
323315        path  =  self .sysconfig_path (
@@ -467,8 +459,7 @@ def _to_json(self):
467459        return  json .dumps (self ._to_dict (), indent = 2 )
468460
469461    def  _to_dict (self ):
470-         data  =  {var : (getattr (self , var ) if  var  !=  "_creators"  else  None ) for  var  in  vars (self )}
471- 
462+         data  =  {var : getattr (self , var ) for  var  in  vars (self )}
472463        data ["version_info" ] =  data ["version_info" ]._asdict ()  # namedtuple to dictionary 
473464        return  data 
474465
0 commit comments