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
This commit is contained in:
Bulat Gaifullin 2015-10-27 15:42:54 +03:00 committed by Bulat Gaifullin
parent b6d09c7ead
commit 5b9488899f
2 changed files with 4 additions and 4 deletions

View File

@ -22,7 +22,7 @@ test_packetary
Tests for `packetary` module.
"""
from packetary import base
from packetary.tests import base
class TestPacketary(base.TestCase):

View File

@ -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__":