Make sure that generate-tags is Python 3 compatible
This commit is contained in:
parent
ab4f38cecf
commit
c52a3b1e8c
|
@ -12,7 +12,7 @@ for filename in glob.glob(post_dir + '*.md'):
|
|||
matcher = r'^tags:$'
|
||||
with open(filename, 'r') as fd:
|
||||
tagged_line = False
|
||||
for line in fd.xreadlines():
|
||||
for line in fd.readlines():
|
||||
if tagged_line:
|
||||
if line.startswith('---'):
|
||||
tagged_line = False
|
||||
|
|
Loading…
Reference in New Issue