Skip to content

Commit 70fb928

Browse files
committed
working on content transformation for book
1 parent 0662211 commit 70fb928

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

transform_book.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
from os.path import isdir, isfile
44

55

6-
BASE_DIR = './tempcontent/'
6+
BASE_DIR = './tempcontent/pages/'
77
BASE_FSP = "https://www.fullstackpython.com/"
88

99
links = {"/introduction.html":
@@ -191,7 +191,7 @@ def transform(output_format='pdf'):
191191

192192
with open(BASE_DIR + d + '/' + f, 'w') as write_f:
193193
for l in all_lines[8:]:
194-
for k, v in links.iteritems():
194+
for k, v in links.items():
195195
l = l.replace(k, v)
196196
if "<div class=\"well see-also\">" in l:
197197
write_f.write("")

0 commit comments

Comments
 (0)