code: def convert_charref(self, name):
          
          try:
              n = int(name)
          except ValueError:
              return
          if not 0 <= n <= 127 : # ASCII ends at 127, not 255
              return
          return self.convert_codepoint(n)
docs: This method fixes a bug in Python's SGMLParser.