From feed251f82d04f067d88d53295fcb0e2ee0aaa04 Mon Sep 17 00:00:00 2001 From: jesopo Date: Thu, 4 Oct 2018 15:23:35 +0100 Subject: Non-present hashflag values should be None, not empty string --- src/utils/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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): -- cgit v1.3.1-10-gc9f91