human
Solve the following python programming problem given the following code:
def configure_compile_context(self, targets) : 
    "
      Trims the context's target set to just those targets needed as jars on the IDE classpath.
      All other targets only contribute their external jar dependencies and excludes to the
      classpath definition.
    " 
    def is_cp(target) : 
        return (target.is_codegen or isinstance (target, AnnotationProcessor) or (self.skip_java and is_java (target)) or (self.skip_scala and is_scala (target)) or (self.intransitive and (target not in self.context.target_roots))) 
jars = OrderedSet () 
    excludes = OrderedSet () 
    compiles = OrderedSet () 
    def prune(target) : 
        if target.is_jvm : 
            if target.excludes : 
                excludes.update (target.excludes) 
jars.update ((jar for jar in target.jar_dependencies)) 
            if is_cp (target) : 
                target.walk (compiles.add) 
for target in targets : 
        target.walk (prune) 
self.context._replace_targets (prune) 
    self.jar_dependencies = jars 
    self.context.log.debug ('pruned to cp:
\t{}'.format ('
\t'.join ((str (t) for t in self.context.targets ())))) 

    
    

    Fix the buggy line: self.context._replace_targets (prune)
assistant
#Here is Python code to fix the buggy line: self.

self.context._replace_targets (compiles)