create an action for each python 2 file to convert to python 3 concode_field_sep PathFragment INIT_PY concode_elem_sep Function<Map<PathFragment,Artifact>,Map<PathFragment,Artifact>> GET_INIT_PY_FILES concode_elem_sep FileType REQUIRES_INIT_PY concode_field_sep Map<PathFragment,Artifact> getInitDotPyFiles concode_elem_sep Map<PathFragment,Artifact> apply concode_elem_sep Artifact generate2to3Action concode_elem_sep Artifact get2to3OutputArtifact concode_elem_sep Set<PathFragment> getInitPyFiles
Map < PathFragment , Artifact > function ( RuleContext arg0 , Iterable < Artifact > arg1 ) { Map < PathFragment , Artifact > loc0 = new HashMap < > ( ) ; for ( Artifact loc1 : arg1 ) { Artifact loc2 = generate2to3Action ( arg0 , loc1 ) ; loc0 . put ( loc1 . getRootRelativePath ( ) , loc2 ) ; } return loc0 ; }