File: debug.py

package info (click to toggle)
pysatellites 2.7-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 340 kB
  • sloc: python: 949; xml: 87; makefile: 32; sh: 6
file content (9 lines) | stat: -rw-r--r-- 203 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
# -*- coding: utf-8 -*-

class Debug:
    def __init__(self, debugLevel):
        self.debugLevel=debugLevel

    def __call__(self,level,msg):
        if self.debugLevel > level:
            print(msg)