aboutsummaryrefslogblamecommitdiffstats
path: root/git/wipe_irssi_passwords
blob: 69da18913cbde8329fae8cabe02117a7db142f56 (plain) (tree)
1
2
3
4
5
6
7
8






                      
                                                              







                                                        
#!/usr/bin/env python3
# _*_ coding=utf-8 _*_

import re


def main():
    with open("/home/devi/.irssi/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()