      def remove(self, item):
          del self.dict[item]
  
      def discard(self, item):
          with suppress(KeyError):
              self.remove(item)
  
      def __iter__(self):
          return iter(self.dict)
  
 
</s> remove         with suppress(KeyError):
 </s> add         try: </s> remove 
        with suppress(KeyError):
 </s> add         except KeyError:
            pass
        try: </s> remove             with suppress(KeyError):
 </s> add             try: </s> remove         with suppress(KeyError):
 </s> add         try:
        try:
      def remove(self, item):
          del self.dict[item]
  
      def discard(self, item):
        try:
              self.remove(item)
  
      def __iter__(self):
          return iter(self.dict)
  
keep keep 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