Index: Lib/distutils/tests/test_register.py =================================================================== --- Lib/distutils/tests/test_register.py (revision 81930) +++ Lib/distutils/tests/test_register.py (working copy) @@ -224,7 +224,7 @@ cmd = self._get_cmd(metadata) cmd.ensure_finalized() cmd.strict = 1 - inputs = RawInputs('1', 'tarek', 'y') + inputs = Inputs('1', 'tarek', 'y') register_module.raw_input = inputs.__call__ # let's run the command try: @@ -235,7 +235,7 @@ # strict is not by default cmd = self._get_cmd() cmd.ensure_finalized() - inputs = RawInputs('1', 'tarek', 'y') + inputs = Inputs('1', 'tarek', 'y') register_module.raw_input = inputs.__call__ # let's run the command try: Index: Lib/distutils/command/check.py =================================================================== --- Lib/distutils/command/check.py (revision 81930) +++ Lib/distutils/command/check.py (working copy) @@ -13,7 +13,7 @@ from docutils.parsers.rst import Parser from docutils import frontend from docutils import nodes - from StringIO import StringIO + from io import StringIO class SilentReporter(Reporter):