old_contents: """
  Compatibility shims for different Python versions and platforms.
  """
  try:
      import json
  except ImportError:
      try:
          import simplejson as json
      except ImportError:
          import django.utils.simplejson as json
  
  
  import sys
  IS_PY3 = sys.version_info[0] == 3
  
  import platform
  IS_PYPY = platform.python_implementation() == 'PyPy'
  
  
  unichr = chr if IS_PY3 else unichr
  xrange = range if IS_PY3 else xrange
  
  if IS_PY3:
      ifilter = filter
      imap = map
      izip = zip
      from itertools import (
          zip_longest as izip_longest,
          filterfalse as ifilterfalse,
      )
  else:
      from itertools import ifilter, ifilterfalse, imap, izip, izip_longest
  
new_contents: """
  Compatibility shims for different Python versions and platforms.
  """
  try:
      import json
  except ImportError:
      try:
          import simplejson as json
      except ImportError:
          import django.utils.simplejson as json
  
  
  import sys
  IS_PY26 = sys.version[:2] == (2, 6)
  IS_PY3 = sys.version_info[0] == 3
  
  import platform
  IS_PYPY = platform.python_implementation() == 'PyPy'
  
  
  unichr = chr if IS_PY3 else unichr
  xrange = range if IS_PY3 else xrange
  
  if IS_PY3:
      ifilter = filter
      imap = map
      izip = zip
      from itertools import (
          zip_longest as izip_longest,
          filterfalse as ifilterfalse,
      )
  else:
      from itertools import ifilter, ifilterfalse, imap, izip, izip_longest
  
subject: Fix the accidental removal of IS_PY26