#3698 CI: Prepare for python3 -> python
Closed 5 years ago by fidencio. Opened 6 years ago by lslebodn.
SSSD/ lslebodn/sssd ci_python3  into  master

@@ -17,10 +17,13 @@ 

  # You should have received a copy of the GNU General Public License

  # along with this program.  If not, see <http://www.gnu.org/licenses/>.

  

+ from __future__ import print_function

+ 

  import sys

  import re

  import rpm

  

+ 

  def usage(file):

      file.write(("Usage: %s SPEC\n" +

                  "Extract build dependencies from an RPM .spec file.\n") %
@@ -32,4 +35,4 @@ 

  

  spec = rpm.spec(sys.argv[1])

  for d in rpm.ds(spec.sourceHeader, 'requires'):

-     print d.DNEVR()[2:]

+     print(d.DNEVR()[2:])

rpm-spec-builddeps is usde for extracting build dependencies from spec
file to avoid duplication. But it was mostly used by python2 and
therefore we did not notice issues with python3 which has "print"
as a function and not as a statement.

LGTM, let me run CI to see if everything is OK

rebased onto 3d331e0

5 years ago

Pull-Request has been closed by fidencio

5 years ago
Metadata