|
From: <di...@us...> - 2007-01-30 19:31:45
|
Revision: 340
http://safekeep.svn.sourceforge.net/safekeep/?rev=340&view=rev
Author: dimi
Date: 2007-01-30 11:31:43 -0800 (Tue, 30 Jan 2007)
Log Message:
-----------
Use the regular logging functions to complain about ignored files
Modified Paths:
--------------
safekeep/trunk/safekeep
Modified: safekeep/trunk/safekeep
===================================================================
--- safekeep/trunk/safekeep 2007-01-30 19:21:11 UTC (rev 339)
+++ safekeep/trunk/safekeep 2007-01-30 19:31:43 UTC (rev 340)
@@ -227,7 +227,7 @@
if os.path.isdir(cfg):
for ent in os.listdir(cfg):
if not ent.endswith(config_ext):
- print >> sys.stderr, 'Ignoring file %s not ending in %s' % (os.path.join(cfg, ent), config_ext)
+ warn('Ignoring file %s not ending in %s' % (os.path.join(cfg, ent), config_ext))
continue
filepath = os.path.join(cfg, ent)
if not os.path.isfile(filepath):
@@ -236,7 +236,7 @@
elif os.path.isfile(cfg):
cfgfiles.append(cfg)
else:
- print >> sys.stderr, 'Inaccessible configuration, ignoring:', cfg
+ warn('Inaccessible configuration, ignoring: %s' % cfg)
cfgs = {}
for filepath in cfgfiles:
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|