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
|
break
|
||||||
elif line.startswith("#--"):
|
elif line.startswith("#--"):
|
||||||
hashflag, _, value = line.replace("#--", "", 1).partition(" ")
|
hashflag, _, value = line.replace("#--", "", 1).partition(" ")
|
||||||
hashflags[hashflag] = value
|
hashflags[hashflag] = value or None
|
||||||
return hashflags.items()
|
return hashflags.items()
|
||||||
|
|
||||||
class Docstring(object):
|
class Docstring(object):
|
||||||
|
|
Loading…
Reference in a new issue