|
@@ -24,6 +24,9 @@ if __name__ == '__main__':
|
|
|
|
|
|
|
|
of = filename+'_exercises'+ext
|
|
of = filename+'_exercises'+ext
|
|
|
|
|
|
|
|
|
|
+ print("In file " + f)
|
|
|
|
|
+ print("Out file " + of)
|
|
|
|
|
+
|
|
|
lines = list()
|
|
lines = list()
|
|
|
inSol = False
|
|
inSol = False
|
|
|
with open(f, "r", encoding="utf-8") as ins:
|
|
with open(f, "r", encoding="utf-8") as ins:
|
|
@@ -36,9 +39,12 @@ if __name__ == '__main__':
|
|
|
if startSol:
|
|
if startSol:
|
|
|
assert not inSol
|
|
assert not inSol
|
|
|
inSol = True
|
|
inSol = True
|
|
|
|
|
+ print("Text to ommit:")
|
|
|
|
|
|
|
|
if not inSol:
|
|
if not inSol:
|
|
|
outf.write(line)
|
|
outf.write(line)
|
|
|
|
|
+ else:
|
|
|
|
|
+ print(line)
|
|
|
|
|
|
|
|
endSol = EndSolRec.search(line)
|
|
endSol = EndSolRec.search(line)
|
|
|
if endSol:
|
|
if endSol:
|