section 727(3)


727(3) Where a summary conviction court holds a trial pursuant to subsection 803(2) and convicts the offender, the court may, whether or not the offender was notified that a greater punishment would be sought by reason of a previous conviction, make inquiries and hear evidence with respect to previous convictions of the offender and, if any such conviction is proved, may impose a greater punishment by reason thereof.