@staticmethod
    def _check_and_replace_parser_args(parser, section, option, rename_func, make_dirs=True):
        args = parser.get(section, option, raw=True)
        strings = get_strings(args)
        replace = False
        for string in strings:
            isfilename = any(x in string for x in FILENAME_INDICATORS)
            if isfilename:
                newstring = rename_func(string)
                if make_dirs:
                    try_make_dirs(newstring)
                # To work with windows path specifications we need this replacement:
                raw_string = string.replace('\\', '\\\\')
                raw_newstring = newstring.replace('\\', '\\\\')
                args = args.replace(raw_string, raw_newstring)
                replace = True
        if replace:
            parser.set(section, option, args)
`x.__len__()` <==> `len(x)`
dataset/ETHPy150Open SmokinCaterpillar/pypet/pypet/pypetlogging.py/LoggingManager._check_and_replace_parser_args--crossover with--dataset/ETHPy150Open nlloyd/SubliminalCollaborator/libs/zope/interface/common/sequence.py/IFiniteSequence.__len__