diff options
-rwxr-xr-x | git-bz | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -348,14 +348,14 @@ def split_local_config(config_text): def get_git_config(name): try: name = name.replace(".", r"\.") - config_options = git.config(r'bz-tracker\.' + name + r'\..*', get_regexp=True) + config_options = git.config(r'bz-tracker\.' + name + r'\..*', get_regexp=True).decode() except CalledProcessError: return {} result = {} for line in config_options.split("\n"): line = line.strip() - m = re.match("(\S+)\s+(.*)", line) + m = re.match(r'(\S+)\s+(.*)', line) key = m.group(1) value = m.group(2) |