Browse Source

Fix indent.

INADA Naoki 12 years ago
parent
commit
f703cccfc4
1 changed files with 5 additions and 5 deletions
  1. 5 5
      setup_util.py

+ 5 - 5
setup_util.py

@@ -2,8 +2,8 @@ import re
 
 
 # Replaces all text found using the regular expression to_replace with the supplied replacement.
 # Replaces all text found using the regular expression to_replace with the supplied replacement.
 def replace_text(file, to_replace, replacement):
 def replace_text(file, to_replace, replacement):
-  with open(file, "r") as conf:
-    contents = conf.read()
-  replaced_text = re.sub(to_replace, replacement, contents)
-  with open(file, "w") as f:
-    f.write(replaced_text)
+    with open(file, "r") as conf:
+        contents = conf.read()
+    replaced_text = re.sub(to_replace, replacement, contents)
+    with open(file, "w") as f:
+        f.write(replaced_text)