From b94ed0964c6e48c9749ec1a8b004a87268f6dc78 Mon Sep 17 00:00:00 2001 From: Piotr Maslanka <piotr.maslanka@henrietta.com.pl> Date: Wed, 31 May 2017 21:52:49 +0200 Subject: [PATCH] almost final --- build.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/build.py b/build.py index 8f136dc..3a8a688 100644 --- a/build.py +++ b/build.py @@ -1,7 +1,5 @@ # coding=UTF-8 -from __future__ import print_function -import json, sys -import os.path +import json, os.path def readin(path, func=lambda x: x.decode('utf8'), orelse=None): # read bytes from path and treat it with func. If path does not exist, return orelse if os.path.exists(path): @@ -22,7 +20,7 @@ if __name__ == '__main__': data = readin(src_json, json.loads, [{}]) # Load data lab = header+readin(src_md)+footer # Load text - # Swap placholders + # Swap placholders and write out each version for this class for ex_no, d in enumerate(data, start=1): d.update({'lp': unicode(ex_no), 'labno': unicode(i)}) -- GitLab