  import io
  import os
  import re
  import shutil
  import sys
  import time
  from unittest import SkipTest, skipUnless
  import warnings
  
  from django.conf import settings
 
</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 </s> remove import sys

 </s> add  </s> remove import sys

 </s> add 
  import io
  import os
  import re
  import shutil

  import time
  from unittest import SkipTest, skipUnless
  import warnings
  
  from django.conf import settings
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_extraction.py