From 5b9488899f9eb9f60a40f177b71a617aa7d50d4d Mon Sep 17 00:00:00 2001 From: Bulat Gaifullin Date: Tue, 27 Oct 2015 15:42:54 +0300 Subject: [PATCH] CI fix issues * Fix module import in packetary tests * Fix PEP8 in perestroika code Change-Id: I0a9fc3cbbe5a59152f3733db235c23a242c58b04 Implements: blueprint refactor-local-mirror-scripts Partial-Bug: #1487077 --- packetary/tests/test_packetary.py | 2 +- perestroika/publisher.v5/repoquerysrpm.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packetary/tests/test_packetary.py b/packetary/tests/test_packetary.py index 1b27cd9..7970569 100644 --- a/packetary/tests/test_packetary.py +++ b/packetary/tests/test_packetary.py @@ -22,7 +22,7 @@ test_packetary Tests for `packetary` module. """ -from packetary import base +from packetary.tests import base class TestPacketary(base.TestCase): diff --git a/perestroika/publisher.v5/repoquerysrpm.py b/perestroika/publisher.v5/repoquerysrpm.py index 9ebefa7..e970c32 100755 --- a/perestroika/publisher.v5/repoquerysrpm.py +++ b/perestroika/publisher.v5/repoquerysrpm.py @@ -1,9 +1,9 @@ #!/usr/bin/python +from __future__ import print_function import argparse import gzip import os -import sys from lxml import etree as ET @@ -57,9 +57,9 @@ def main(): ET.QName(primary.nsmap[None], 'version')).attrib['rel'] location = item.getparent().getparent().find( ET.QName(primary.nsmap[None], 'location')).attrib['href'] - print '{name} {epoch} {ver} {rel} {arch} {location}'.format( + print('{name} {epoch} {ver} {rel} {arch} {location}'.format( name=name, epoch=epoch, ver=ver, rel=rel, - arch=arch, location=location) + arch=arch, location=location)) if __name__ == "__main__":