Update of /cvsroot/freevo/freevo/src/tv
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1946/tv

Modified Files:
        record_types.py 
Log Message:
Small cleanup, use config.DEBUG.


Index: record_types.py
===================================================================
RCS file: /cvsroot/freevo/freevo/src/tv/record_types.py,v
retrieving revision 1.11
retrieving revision 1.12
diff -C2 -d -r1.11 -r1.12
*** record_types.py     22 Feb 2004 06:23:51 -0000      1.11
--- record_types.py     21 Jun 2004 22:41:44 -0000      1.12
***************
*** 10,13 ****
--- 10,16 ----
  # -----------------------------------------------------------------------
  # $Log$
+ # Revision 1.12  2004/06/21 22:41:44  rshortt
+ # Small cleanup, use config.DEBUG.
+ #
  # Revision 1.11  2004/02/22 06:23:51  gsbarbieri
  # Unicode support: name could be an unicode object and unicode doesn't provide
***************
*** 62,65 ****
--- 65,69 ----
  
  import sys, time, os, string
+ import config
  import util.tv_util as tv_util
  
***************
*** 68,80 ****
  TYPES_VERSION = 2
  
- # Set to 1 for debug output
- DEBUG = 0
- 
- TRUE = 1
- FALSE = 0
- 
  
  class ScheduledRecordings:
-  
  
      def __init__(self):
--- 72,77 ----
***************
*** 89,99 ****
              pass
  
!         if DEBUG: print 'addProgram: key is "%s"' % key
          if not self.programList.has_key(key):
!             if DEBUG: print 'addProgram: actually adding "%s"' % prog
              self.programList[key] = prog
          else:
!             if DEBUG: print 'We already know about this recording.'
!         if DEBUG: print 'addProgram: len is "%s"' % len(self.programList)
  
  
--- 86,96 ----
              pass
  
!         if config.DEBUG: print 'addProgram: key is "%s"' % key
          if not self.programList.has_key(key):
!             if config.DEBUG: print 'addProgram: actually adding "%s"' % prog
              self.programList[key] = prog
          else:
!             if config.DEBUG: print 'We already know about this recording.'
!         if config.DEBUG: print 'addProgram: len is "%s"' % len(self.programList)
  
  
***************
*** 105,111 ****
          if self.programList.has_key(key):
              del self.programList[key]
!             if DEBUG: print 'removed recording: %s' % prog
          else:
!             if DEBUG: print 'We do not know about this recording.'
  
  
--- 102,108 ----
          if self.programList.has_key(key):
              del self.programList[key]
!             if config.DEBUG: print 'removed recording: %s' % prog
          else:
!             if config.DEBUG: print 'We do not know about this recording.'
  
  
***************
*** 120,127 ****
      def addFavorite(self, fav):
          if not self.favorites.has_key(fav.name):
!             if DEBUG: print 'addFavorites: actually adding "%s"' % fav.name
              self.favorites[fav.name] = fav
          else:
!             if DEBUG: print 'We already have a favorite called "%s".' % fav.name
  
  
--- 117,124 ----
      def addFavorite(self, fav):
          if not self.favorites.has_key(fav.name):
!             if config.DEBUG: print 'addFavorites: actually adding "%s"' % fav.name
              self.favorites[fav.name] = fav
          else:
!             if config.DEBUG: print 'We already have a favorite called "%s".' % 
fav.name
  
  
***************
*** 129,135 ****
          if self.favorites.has_key(name):
              del self.favorites[name]
!             if DEBUG: print 'removed favorite: %s' % name
          else:
!             if DEBUG: print 'We do not have a favorite called "%s".' % name
  
  
--- 126,132 ----
          if self.favorites.has_key(name):
              del self.favorites[name]
!             if config.DEBUG: print 'removed favorite: %s' % name
          else:
!             if config.DEBUG: print 'We do not have a favorite called "%s".' % name
  
  



-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 - 
digital self defense, top technical experts, no vendor pitches, 
unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
Freevo-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog

Reply via email to