Commit 526f6eeb authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Update vmod script to python3

parent f6a28c5d
......@@ -27,7 +27,7 @@ all: generate html
cp source/favicon.ico build/html
generate:
cd source/vmods && python2.7 build.py
cd source/vmods && python3 build.py
pub:
${MAKE} rsync \
......
#!/usr/bin/env python
from __future__ import print_function
import glob
import json
import sys
......@@ -44,8 +42,7 @@ class vmod(object):
elif g != None:
v = g["branches"].keys()
if v != None:
v.sort()
return v
return sorted(v)
return list()
def url_vcc(self, rev):
......@@ -112,7 +109,7 @@ class vmod(object):
s = ""
i = self.repos()
if i != None:
for n in sorted(i.iterkeys()):
for n in sorted(i):
s += " `%s <%s>`__ " % (n, i[n])
l.append(s)
......@@ -152,8 +149,7 @@ def make_www_table():
vmods = load_all()
nms = vmods.keys()
nms.sort()
nms = sorted(vmods.keys())
l = []
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment