daria-malkova commented on a change in pull request #16482:
URL: https://github.com/apache/beam/pull/16482#discussion_r783826775



##########
File path: playground/backend/internal/preparators/python_preparators.go
##########
@@ -27,12 +27,30 @@ const (
 )
 
 // GetPythonPreparators returns preparation methods that should be applied to 
Python code
-func GetPythonPreparators(filePath string) *[]Preparator {
+func GetPythonPreparators(builder *PreparersBuilder) {
+       builder.
+               PythonPreparers().
+               WithLogHandler()
+}
+
+//PythonPreparersBuilder facet of PreparersBuilder
+type PythonPreparersBuilder struct {
+       PreparersBuilder
+}
+
+//PythonPreparers chains to type *PreparersBuilder and returns a 
*GoPreparersBuilder
+func (b *PreparersBuilder) PythonPreparers() *PythonPreparersBuilder {
+       return &PythonPreparersBuilder{*b}
+}
+
+//WithLogHandler adds code for logging
+func (a *PythonPreparersBuilder) WithLogHandler() *PythonPreparersBuilder {

Review comment:
       Done




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to