
import sys


def main():
    for line in sys.stdin:
        sys.stdout.write(
            line
            .replace('diff --git a/server/', 'diff --git a/es/es-server/')
            .replace('--- a/server/', '--- a/es/es-server/')
            .replace('+++ b/server/', '+++ b/es/es-server/')
        )


if __name__ == "__main__":
    main()


import sys


def main():
    for line in sys.stdin:
        sys.stdout.write(
            line
            .replace('diff --git a/server/', 'diff --git a/es/es-server/')
            .replace('--- a/server/', '--- a/es/es-server/')
            .replace('+++ b/server/', '+++ b/es/es-server/')
            .replace('diff --git a/test/framework', 'diff --git a/es/es-testing/')
            .replace('--- a/test/framework', '--- a/es/es-testing/')
            .replace('+++ b/test/framework', '+++ b/es/es-testing/')
        )


if __name__ == "__main__":
    main()

Update dev tool for applying ES patches
Update dev tool for applying ES patches

Adds path rewrite for `test/framework` -> `es/es-testing/`
  
  import sys
  
  
  def main():
      for line in sys.stdin:
          sys.stdout.write(
              line
              .replace('diff --git a/server/', 'diff --git a/es/es-server/')
              .replace('--- a/server/', '--- a/es/es-server/')
              .replace('+++ b/server/', '+++ b/es/es-server/')
+             .replace('diff --git a/test/framework', 'diff --git a/es/es-testing/')
+             .replace('--- a/test/framework', '--- a/es/es-testing/')
+             .replace('+++ b/test/framework', '+++ b/es/es-testing/')
          )
  
  
  if __name__ == "__main__":
      main()
  
Update dev tool for applying ES patches
## Code Before:

import sys


def main():
    for line in sys.stdin:
        sys.stdout.write(
            line
            .replace('diff --git a/server/', 'diff --git a/es/es-server/')
            .replace('--- a/server/', '--- a/es/es-server/')
            .replace('+++ b/server/', '+++ b/es/es-server/')
        )


if __name__ == "__main__":
    main()

## Instruction:
Update dev tool for applying ES patches
## Code After:

import sys


def main():
    for line in sys.stdin:
        sys.stdout.write(
            line
            .replace('diff --git a/server/', 'diff --git a/es/es-server/')
            .replace('--- a/server/', '--- a/es/es-server/')
            .replace('+++ b/server/', '+++ b/es/es-server/')
            .replace('diff --git a/test/framework', 'diff --git a/es/es-testing/')
            .replace('--- a/test/framework', '--- a/es/es-testing/')
            .replace('+++ b/test/framework', '+++ b/es/es-testing/')
        )


if __name__ == "__main__":
    main()
