File: debug.py

package info (click to toggle)
serpento 0.3.6
  • links: PTS
  • area: main
  • in suites: woody
  • size: 292 kB
  • ctags: 381
  • sloc: python: 1,644; ansic: 666; perl: 157; sh: 116; makefile: 72
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