Skip to content

Commit 99c7cc2

Browse files
committed
Footer script compatible with python 2.6
1 parent 34a1a4d commit 99c7cc2

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

bin/update_index.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ def makefooter(self):
110110
name = p.makename()
111111
# Get a path to p relative to our own path
112112
link = os.path.relpath(p.rootlink(),os.path.dirname(self.rootlink()))
113-
linkmd.append("[{}]({})".format(name,link))
113+
linkmd.append("[{0}]({1})".format(name,link))
114114
p = p.parent
115115
linkmd.reverse()
116116
lines.append("\n| ".join(linkmd))
@@ -123,13 +123,13 @@ def makefooter(self):
123123
prev = self.parent.children[pos-1]
124124
name = prev.makename()
125125
link = os.path.relpath(prev.rootlink(),os.path.dirname(self.rootlink()))
126-
lines.append("Prev: [{}]({})".format(name,link))
126+
lines.append("Prev: [{0}]({1})".format(name,link))
127127
lines.append("")
128128
if pos < len(self.parent.children)-1:
129129
next = self.parent.children[pos+1]
130130
name = next.makename()
131131
link = os.path.relpath(next.rootlink(),os.path.dirname(self.rootlink()))
132-
lines.append("Next: [{}]({})".format(name,link))
132+
lines.append("Next: [{0}]({1})".format(name,link))
133133
lines.append("")
134134

135135
#lines.append(self.makename()+", "+self.link)
@@ -162,7 +162,7 @@ def __repr__(self):
162162

163163
# Output tree
164164
def pr(node,indent=""):
165-
print "{}{}".format(indent,node.link,node.rootlink())
165+
print "{0}{1}".format(indent,node.link,node.rootlink())
166166
for n in node.children:
167167
pr(n,indent+" ")
168168

-316 KB
Binary file not shown.

0 commit comments

Comments
 (0)