build fiddling

This commit is contained in:
Mark Pilgrim
2009-07-15 02:00:18 -04:00
parent e159182e7a
commit 6046bc0cf6
Regular → Executable
+2
View File
@@ -18,6 +18,8 @@ for line in open(input_file, encoding="utf-8").readlines():
# round-robin image servers
if "<img src=i/" in line:
line = line.replace("<img src=i/", "<img src=http://" + next(available_server) + "/dip3/")
if "url(i/" in line:
line = line.replace("url(i/", "url(http://" + next(available_server) + "/dip3/")
# replace entities with Unicode characters
for e in re.findall('&(.+?);', line):