Make sure that generate-tags is Python 3 compatible

This commit is contained in:
R Tyler Croy 2023-03-13 11:53:43 -07:00
parent ab4f38cecf
commit c52a3b1e8c
1 changed files with 1 additions and 1 deletions

View File

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