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:
parent
b6d09c7ead
commit
5b9488899f
@ -22,7 +22,7 @@ test_packetary
|
|||||||
Tests for `packetary` module.
|
Tests for `packetary` module.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
from packetary import base
|
from packetary.tests import base
|
||||||
|
|
||||||
|
|
||||||
class TestPacketary(base.TestCase):
|
class TestPacketary(base.TestCase):
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
#!/usr/bin/python
|
#!/usr/bin/python
|
||||||
|
|
||||||
|
from __future__ import print_function
|
||||||
import argparse
|
import argparse
|
||||||
import gzip
|
import gzip
|
||||||
import os
|
import os
|
||||||
import sys
|
|
||||||
|
|
||||||
from lxml import etree as ET
|
from lxml import etree as ET
|
||||||
|
|
||||||
@ -57,9 +57,9 @@ def main():
|
|||||||
ET.QName(primary.nsmap[None], 'version')).attrib['rel']
|
ET.QName(primary.nsmap[None], 'version')).attrib['rel']
|
||||||
location = item.getparent().getparent().find(
|
location = item.getparent().getparent().find(
|
||||||
ET.QName(primary.nsmap[None], 'location')).attrib['href']
|
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,
|
name=name, epoch=epoch, ver=ver, rel=rel,
|
||||||
arch=arch, location=location)
|
arch=arch, location=location))
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
|
Loading…
Reference in New Issue
Block a user