aboutsummaryrefslogtreecommitdiff
path: root/src/utils/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils/__init__.py')
-rw-r--r--src/utils/__init__.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/utils/__init__.py b/src/utils/__init__.py
index 745a8864..4cdd141d 100644
--- a/src/utils/__init__.py
+++ b/src/utils/__init__.py
@@ -136,8 +136,8 @@ def get_hashflags(filename):
if not line.startswith("#"):
break
elif line.startswith("#--"):
- hashflag, _, value = line.replace("#--", "", 1).partition(" ")
- hashflags[hashflag] = value or None
+ hashflag, sep, value = line.replace[3:].partition(" ")
+ hashflags[hashflag] = value if sep else None
return hashflags.items()
class Docstring(object):