X-Git-Url: https://git.tld-linux.org/?a=blobdiff_plain;f=TLD_Builder%2Fget_br.py;h=933548c172d60c81a6c5034172fefcef0fd9f58b;hb=92949e17161a53bfb4a60099e22b58ad63abce4c;hp=1f69394c31f60b354e4e42dadaf17781e7fd7b2b;hpb=31722b4deb579cd93f6b41fee18980a715b275c2;p=tld-builder.git diff --git a/TLD_Builder/get_br.py b/TLD_Builder/get_br.py index 1f69394..933548c 100644 --- a/TLD_Builder/get_br.py +++ b/TLD_Builder/get_br.py @@ -1,8 +1,9 @@ # vi: encoding=utf-8 ts=8 sts=4 sw=4 et +from __future__ import print_function + import re import string -import xreadlines from util import * @@ -61,7 +62,7 @@ def get_build_requires(spec, bconds_with, bconds_without): build_req = [] f = open(spec) - for l in xreadlines.xreadlines(f): + for l in f: l = string.strip(l) if l == "%changelog": break @@ -100,4 +101,4 @@ def get_build_requires(spec, bconds_with, bconds_without): msg("spec error (%s): %s\n" % (spec, l)) for x in build_req: - print x + print(x)