old_contents: # -*- coding: utf-8 -*-
  # Copyright: See the LICENSE file.
  
  """Compatibility tools for tests"""
  
  import sys
  
  is_python2 = (sys.version_info[0] == 2)
  
  if is_python2:
      import StringIO as io
  else:
      import io  # noqa: F401
  
  if sys.version_info[0:2] < (3, 3):
      import mock
  else:
      from unittest import mock  # noqa: F401
  
new_contents: # -*- coding: utf-8 -*-
  # Copyright: See the LICENSE file.
  
  """Compatibility tools for tests"""
  
  import sys
  
  is_python2 = (sys.version_info[0] == 2)
  
  if is_python2:
      import StringIO as io
      import mock
  else:
      import io  # noqa: F401
      from unittest import mock  # noqa: F401
  
subject: Simplify tests/compat.py a bit