#!/usr/bin/env python # encoding: utf-8 # # Copyright (c) 2009 Doug Hellmann All rights reserved. # """ """ #end_pymotw_header import sys class LineCounter(object): def __init__(self): self.count = 0 def __str__(self): self.count += 1 return '(%3d)> ' % self.count