  from __future__ import unicode_literals
  
  
  def is_informational(code):
      return code >= 100 and code <= 199
  
  
  def is_success(code):
      return code >= 200 and code <= 299
  
 
</s> remove     return code >= 200 and code <= 299
 </s> add     return 200 <= code <= 299 </s> remove     return code >= 300 and code <= 399
 </s> add     return 300 <= code <= 399 </s> remove     return code >= 400 and code <= 499
 </s> add     return 400 <= code <= 499 </s> remove     return code >= 500 and code <= 599
 </s> add     return 500 <= code <= 599 </s> remove         ret = min(ret, cutoff)
 </s> add         return min(ret, cutoff)
    return 100 <= code <= 199
  from __future__ import unicode_literals
  
  
  def is_informational(code):
    return 100 <= code <= 199
  
  
  def is_success(code):
      return code >= 200 and code <= 299
  
keep keep keep keep replace keep keep keep keep keep
 Simplified chained comparisons and minor code fixes (#5276) 
rest_framework/status.py