diff options
Diffstat (limited to 'src/utils')
| -rw-r--r-- | src/utils/__init__.py | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/utils/__init__.py b/src/utils/__init__.py index dccc1faf..57980e58 100644 --- a/src/utils/__init__.py +++ b/src/utils/__init__.py @@ -136,12 +136,7 @@ def get_hashflags(filename): if not line.startswith("#"): break elif line.startswith("#--"): - line_split = line.split(" ", 1) - hashflag = line_split[0][3:] - value = None - - if len(line_split) > 1: - value = line_split[1] + hashflag, _, value = line.replace("#--", "", 1).partition(" ") hashflags[hashflag] = value return hashflags.items() |
