  from django.utils.translation import ugettext_lazy as _
  from rest_framework.reverse import reverse
  from rest_framework.compat import parse_date, parse_datetime
  from rest_framework.compat import timezone
  from urlparse import urlparse
  
  
  def is_simple_callable(obj):
      """
      True if the object is a callable that takes no arguments.
 
</s> remove from django.utils.encoding import is_protected_type, smart_unicode
 </s> add from django.utils.encoding import is_protected_type
try:
    from django.utils.encoding import smart_text
except ImportError:
    from django.utils.encoding import smart_unicode as smart_text </s> remove from django.utils.encoding import force_unicode
 </s> add try:
    from django.utils.encoding import force_text
except ImportError:
    from django.utils.encoding import force_unicode as force_text </s> remove from urlparse import urlsplit, urlunsplit
 </s> add try:
    from urllib.parse import urlsplit, urlunsplit
except ImportError:
    from urlparse import urlsplit, urlunsplit </s> remove from django.utils.encoding import smart_unicode, DjangoUnicodeDecodeError
 </s> add from django.utils.encoding import DjangoUnicodeDecodeError
try:
    from django.utils.encoding import smart_text
except ImportError:
    from django.utils.encoding import smart_unicode as smart_text </s> remove from django.utils.encoding import smart_unicode
 </s> add try:
    from django.utils.encoding import smart_text
except ImportError:
    from django.utils.encoding import smart_unicode as smart_text
try:
    from urllib.parse import urlparse
except ImportError:
    from urlparse import urlparse
  from django.utils.translation import ugettext_lazy as _
  from rest_framework.reverse import reverse
  from rest_framework.compat import parse_date, parse_datetime
  from rest_framework.compat import timezone
try:
    from urllib.parse import urlparse
except ImportError:
    from urlparse import urlparse
  
  
  def is_simple_callable(obj):
      """
      True if the object is a callable that takes no arguments.
keep keep keep keep replace keep keep keep keep keep
 First passing test under p3k \o/ 
rest_framework/fields.py