Remove six dependency
This commit is contained in:
parent
783632fb24
commit
24c297cfe7
5 changed files with 5 additions and 9 deletions
|
|
@ -20,12 +20,11 @@
|
|||
# limitations under the License.
|
||||
|
||||
|
||||
import io
|
||||
import os
|
||||
import sys
|
||||
import unittest
|
||||
|
||||
import six
|
||||
|
||||
from scour.scour import (make_well_formed, parse_args, scourString, scourXmlFile, start, run,
|
||||
XML_ENTS_ESCAPE_APOS, XML_ENTS_ESCAPE_QUOT)
|
||||
from scour.svg_regex import svg_parser
|
||||
|
|
@ -2577,7 +2576,7 @@ class CommandLineUsage(unittest.TestCase):
|
|||
# TODO: can we create file objects that behave *exactly* like the original?
|
||||
# this is a mess since we have to ensure compatibility across Python 2 and 3 and it seems impossible
|
||||
# to replicate all the details of 'stdin', 'stdout' and 'stderr'
|
||||
class InOutBuffer(six.StringIO):
|
||||
class InOutBuffer(io.StringIO):
|
||||
def write(self, string):
|
||||
try:
|
||||
return super().write(string)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue