Permalink
Switch branches/tags
Find file
Fetching contributors…
Cannot retrieve contributors at this time
11 lines (8 sloc) 195 Bytes
class Printer:
def __init__(self, level=2):
self.level = level
def message(self, string, level):
if level <= self.level:
print string
def setLevel(self, level):
self.level = level