<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get_all_attributes(self):
 """ Returns all sections attributes. Usage:: "[Section B]\\n", "Attribute 2 = \\"Value B\\"\\n"] <foundations.parsers.SectionsFileParser object at 0x845683844> OrderedDict([(u'Section A|Attribute 1', u'Value A'), (u'Section B|Attribute 2', u'Value B')]) {u'Section B|Attribute 2': u'Value B', u'Section A|Attribute 1': u'Value A'} :return: All sections / files attributes. :rtype: OrderedDict or dict """


        all_attributes = OrderedDict() if self.__preserve_order else dict()

        for attributes in self.__sections.itervalues():
            for attribute, value in attributes.iteritems():
                all_attributes[attribute] = value
        return all_attributes