blob: 26e9d5838ae742e93f3ee1c8d0b3e032fa24c341 (
plain) (
tree)
|
|
#!/usr/bin/env python3
# _*_ coding=utf-8 _*_
import re
def main():
with open("./config", "r") as config_file:
lines = config_file.readlines()
for line in lines:
print(re.sub("password\\s*=\\s*\"(.*)\"",
"password=\"\"", line), end="")
if __name__ == "__main__":
main()
|