]> TLD Linux GIT Repositories - tld-builder.git/blobdiff - TLD_Builder/get_br.py
- merged PLD changes, now it works with python 3.x
[tld-builder.git] / TLD_Builder / get_br.py
index 1f69394c31f60b354e4e42dadaf17781e7fd7b2b..933548c172d60c81a6c5034172fefcef0fd9f58b 100644 (file)
@@ -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)