def _serialize_range(start, end):
 if (start < 0):
  range_str = ('%d' % start)
 elif (end is None):
  range_str = ('%d-' % start)
 else:
  range_str = ('%d-%d' % (start, end))
 return ('bytes=%s' % range_str)

def _serialize_range ( start , end ) : if ( start < 0 ) : range_str = ( '%d' % start ) elif ( end is None ) : range_str = ( '%d-' % start ) else : range_str = ( '%d-%d' % ( start , end ) ) return ( 'bytes=%s' % range_str )
return a string suitable for use as a value in a range header .