diff options
| author | 2018-10-04 15:23:35 +0100 | |
|---|---|---|
| committer | 2018-10-04 15:23:35 +0100 | |
| commit | feed251f82d04f067d88d53295fcb0e2ee0aaa04 (patch) | |
| tree | ddc4f78d249a86ecce73449b39580bf5f21e5346 /src | |
| parent | Simplify hashflag parsing (diff) | |
| signature | ||
Non-present hashflag values should be None, not empty string
Diffstat (limited to 'src')
| -rw-r--r-- | src/utils/__init__.py | 2 |
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): |
