File: debug.py

package info (click to toggle)
serpento 0.4.1-0.2
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 360 kB
  • ctags: 391
  • sloc: python: 1,762; ansic: 669; perl: 157; sh: 127; makefile: 73
file content (10 lines) | stat: -rw-r--r-- 162 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10

class Debug:

    def __init__(self, level=0):
        self.level = level

    def debug(self, text):
        if self.level:
            print text