old_contents: from __future__ import unicode_literals
  
  from django import template
  
  register = template.Library()
  
  
  @register.simple_tag
  def build_absolute_uri(request, location):
      return request.build_absolute_uri(location)
  
new_contents: from django import template
  
  register = template.Library()
  
  
  @register.simple_tag
  def build_absolute_uri(request, location):
      return request.build_absolute_uri(location)
  
subject: Remove Python2 specific import