Drop usage of six
We no longer need to support Python 2, so there's no point in this compatibility layer. Signed-off-by: Lubomír Sedlář <lsedlar@redhat.com>
This commit is contained in:
parent
8558b74d78
commit
b34de57813
57 changed files with 406 additions and 734 deletions
|
|
@ -1,7 +1,7 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
|
||||
import unittest
|
||||
from six.moves import cStringIO
|
||||
from io import StringIO
|
||||
|
||||
from pungi.wrappers.variants import VariantsXmlParser
|
||||
|
||||
|
|
@ -18,7 +18,7 @@ VARIANTS_WITH_WHITESPACE = """
|
|||
|
||||
class TestVariantsXmlParser(unittest.TestCase):
|
||||
def test_whitespace_in_file(self):
|
||||
input = cStringIO(VARIANTS_WITH_WHITESPACE)
|
||||
input = StringIO(VARIANTS_WITH_WHITESPACE)
|
||||
|
||||
with self.assertRaises(ValueError) as ctx:
|
||||
VariantsXmlParser(input)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue