parameters: (self)
return_statement: return ret
docstring: Returns a sorted array of byte_run objects.
docstring_summary: Returns a sorted array of byte_run objects.
docstring_tokens: Returns a sorted array of byte_run objects .
function: def byte_runs(self):
          """Returns a sorted array of byte_run objects.
          """
          ret = []
          try:
              for run in self.doc.getElementsByTagName("byte_runs")[0].childNodes:
                  b = byte_run()
                  if run.nodeType==run.ELEMENT_NODE:
                      b.decode_xml_attributes(run.attributes)
                      ret.append(b)
          except IndexError:
              pass
          ret.sort(key=lambda r:r.file_offset)
          return ret
function_tokens: def byte_runs ( self ) : ret = [ ] try : for run in self . doc . getElementsByTagName ( "byte_runs" ) [ 0 ] . childNodes : b = byte_run ( ) if run . nodeType == run . ELEMENT_NODE : b . decode_xml_attributes ( run . attributes ) ret . append ( b ) except IndexError : pass ret . sort ( key = lambda r : r . file_offset ) return ret