  
  import os
  import shutil
  import stat
  import sys
  import unittest
  import gettext as gettext_module
  
  from django.core.management import call_command, CommandError, execute_from_command_line
  from django.core.management.utils import find_command
 
</s> remove import sys
 </s> add  </s> remove import sys
 </s> add  </s> remove from django.utils.six import StringIO
 </s> add from django.test.utils import captured_stdout
  
  import os
  import shutil
  import stat

  import unittest
  import gettext as gettext_module
  
  from django.core.management import call_command, CommandError, execute_from_command_line
  from django.core.management.utils import find_command
keep keep keep keep replace keep keep keep keep keep
 Fixed #23930 -- Added copies of captured_std* managers from CPython's test.support.

StringIO import was adapted for compatibility with Python 2. 
tests/i18n/test_compilation.py