Non-present hashflag values should be None, not empty string
This commit is contained in:
parent
8d3255c46d
commit
feed251f82
1 changed files with 1 additions and 1 deletions
|
@ -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):
|
||||
|
|
Loading…
Reference in a new issue