Author: duncan
Date: Tue Mar 11 17:37:17 2008
New Revision: 10505
Log:
[ 1912021 ] src/config.py stills uses print statements
Fix applied
Modified:
branches/rel-1/freevo/src/config.py
Modified: branches/rel-1/freevo/src/config.py
==============================================================================
--- branches/rel-1/freevo/src/config.py (original)
+++ branches/rel-1/freevo/src/config.py Tue Mar 11 17:37:17 2008
@@ -926,15 +926,15 @@
print
return []
- elif os.path.isfile(pname) and (os.path.getmtime(pname) >
- os.path.getmtime(file)):
+ elif os.path.isfile(pname) and (os.path.getmtime(pname) >
os.path.getmtime(file)):
try:
f = open(pname, 'r')
data = pickle.load(f)
f.close()
return data
except:
- print 'Error: unable to read cachefile %s' % pname
+ if not HELPER:
+ print 'Error: unable to read cachefile %s' % pname
return []
else:
@@ -981,7 +981,8 @@
pickle.dump(chanlist, f, 1)
f.close()
except IOError:
- print 'Error: unable to save to cachefile %s' % pname
+ if not HELPER:
+ print 'Error: unable to save to cachefile %s' % pname
for c in chanlist:
if c[2] == 0:
@@ -995,7 +996,8 @@
print
break
else:
- print 'XMTV: Auto-detected channel list'
+ if not HELPER:
+ print 'XMTV: Auto-detected channel list'
return chanlist
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog