Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(1)  |  Call(1)  |  Derive(0)  |  Import(0)
sub(repl, string[, count = 0]) --> newstring
Return the string obtained by replacing the leftmost non-overlapping
occurrences of pattern in string by the replacement repl.

src/m/k/mksbackup-1.0.4/mksbackuplib/main.py   mksbackup(Download)
        sanitized_config_file_content=re.sub('(?m)^#?(?P<key>\s*%s\s*)=(?P<value>.*)$' % (password_key,), '\g<key>=********', sanitized_config_file_content)
 
    sanitized_config_file_content=ftp_url_re.sub(repl_ftp_password, sanitized_config_file_content)
 
    manager=Manager(platform.node(), log)