parameters: (self)
return_statement: return "%s=%s" % (self.units, ",".join(ranges))
docstring: Converts the object back into an HTTP header.
docstring_summary: Converts the object back into an HTTP header.
docstring_tokens: Converts the object back into an HTTP header .
function: def to_header(self):
          """Converts the object back into an HTTP header."""
          ranges = []
          for begin, end in self.ranges:
              if end is None:
                  ranges.append("%s-" % begin if begin >= 0 else str(begin))
              else:
                  ranges.append("%s-%s" % (begin, end - 1))
          return "%s=%s" % (self.units, ",".join(ranges))
function_tokens: def to_header ( self ) : ranges = [ ] for begin , end in self . ranges : if end is None : ranges . append ( "%s-" % begin if begin >= 0 else str ( begin ) ) else : ranges . append ( "%s-%s" % ( begin , end - 1 ) ) return "%s=%s" % ( self . units , "," . join ( ranges ) )