  
      # unindent the content if needed
      if whitespace_counts:
          whitespace_pattern = '^' + (' ' * min(whitespace_counts))
          content = re.sub(re.compile(whitespace_pattern, re.MULTILINE), '', content)
  
      return content.strip()
  
  def camelcase_to_spaces(content):
      """
 
</s> remove from rest_framework.settings import api_settings
from textwrap import dedent
 </s> add 
        content = re.sub(re.compile(whitespace_pattern, re.MULTILINE), '', unicode(content))
  
      # unindent the content if needed
      if whitespace_counts:
          whitespace_pattern = '^' + (' ' * min(whitespace_counts))
        content = re.sub(re.compile(whitespace_pattern, re.MULTILINE), '', unicode(content))
  
      return content.strip()
  
  def camelcase_to_spaces(content):
      """
keep keep keep keep replace keep keep keep keep keep
 Evaluate content before passing to regex.sub

Issue #1708 
rest_framework/utils/formatting.py