def parse_path(self, path):
    path = path.strip()
    if test_ctrl_chars(path):
        raise ValueError('Record path contains control characters')
    self.init_path_len = len(path)
    path = re.escape(path)
    path = path.replace('\\*', '.*').replace('\\$', '$')
    return path
def parse_path(self, path):
    path = path.strip()
    if test_ctrl_chars(path):
        raise ValueError('Record path contains control characters')
    self.init_path_len = len(path)
    path = re.escape(path)
    path = path.replace('\\*', '.*').replace('\\$', '$')
    return path