aboutsummaryrefslogtreecommitdiff
path: root/src/utils/__init__.py
diff options
context:
space:
mode:
authorGravatar jesopo2018-10-04 15:23:35 +0100
committerGravatar jesopo2018-10-04 15:23:35 +0100
commitfeed251f82d04f067d88d53295fcb0e2ee0aaa04 (patch)
treeddc4f78d249a86ecce73449b39580bf5f21e5346 /src/utils/__init__.py
parentSimplify hashflag parsing (diff)
signature
Non-present hashflag values should be None, not empty string
Diffstat (limited to 'src/utils/__init__.py')
-rw-r--r--src/utils/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utils/__init__.py b/src/utils/__init__.py
index 57980e58..745a8864 100644
--- a/src/utils/__init__.py
+++ b/src/utils/__init__.py
@@ -137,7 +137,7 @@ def get_hashflags(filename):
break
elif line.startswith("#--"):
hashflag, _, value = line.replace("#--", "", 1).partition(" ")
- hashflags[hashflag] = value
+ hashflags[hashflag] = value or None
return hashflags.items()
class Docstring(object):