fix stupid code with lot of debug

This commit is contained in:
Vincent Hanquez 2005-04-21 23:06:12 +00:00
parent 72fcfcb323
commit e00ce8a09b
1 changed files with 6 additions and 9 deletions

View File

@ -1165,15 +1165,12 @@ class Roster_window:
def init_transports_pixbufs(self, arg, dirname, fnames): def init_transports_pixbufs(self, arg, dirname, fnames):
name_only = os.path.basename(dirname) name_only = os.path.basename(dirname)
print name_only if name_only == 'transports' or name_only == '.svn':
print name_only != 'transports' return
if name_only != 'transports' or not name_only.startswith('.svn'): for fname in fnames:
for fname in fnames: # fname is not abs transport_kind = name_only
print 'fname', fname, 'in dir', dirname return
transport_kind = name_only self.transports_pixbufs[transport_kind][fname] = 'be'
return
self.transports_pixbufs[transport_kind][fname] = 'be'
def reload_pixbufs(self): def reload_pixbufs(self):
self.mkpixbufs() self.mkpixbufs()