Non-present hashflag values should be None, not empty string

This commit is contained in:
jesopo 2018-10-04 15:23:35 +01:00
parent 8d3255c46d
commit feed251f82

View file

@ -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):