  import copy
  from collections import OrderedDict
  from contextlib import suppress
  
  
  class OrderedSet:
      """
      A set which keeps the ordering of the inserted items.
 
</s> remove from contextlib import suppress
 </s> add  </s> remove from contextlib import suppress
 </s> add  </s> remove from contextlib import suppress

 </s> add  </s> remove from contextlib import suppress
 </s> add  </s> remove from contextlib import suppress
 </s> add 
  import copy
  from collections import OrderedDict

  
  
  class OrderedSet:
      """
      A set which keeps the ordering of the inserted items.
keep keep replace keep keep keep keep keep
 Reverted "Fixed #27818 -- Replaced try/except/pass with contextlib.suppress()."

This reverts commit 550cb3a365dee4edfdd1563224d5304de2a57fda
because try/except performs better. 
django/utils/datastructures.py