code: def _drawPoints(self, pen, **kwargs):
          
          # The try: ... except TypeError: ...
          # handles backwards compatibility with
          # point pens that have not been upgraded
          # to point pen protocol 2.
          try:
              pen.beginPath(self.identifier)
          except TypeError:
              pen.beginPath()
          for point in self.points:
              typ = point.type
              if typ == "offcurve":
                  typ = None
              try:
                  pen.addPoint(pt=(point.x, point.y), segmentType=typ,
                               smooth=point.smooth, name=point.name,
                               identifier=point.identifier)
              except TypeError:
                  pen.addPoint(pt=(point.x, point.y), segmentType=typ,
                               smooth=point.smooth, name=point.name)
          pen.endPath()
docs: Subclasses may override this method.