Update of /cvsroot/freevo/freevo/src/util
In directory sc8-pr-cvs1:/tmp/cvs-serv24014

Modified Files:
        misc.py 
Log Message:
check images

Index: misc.py
===================================================================
RCS file: /cvsroot/freevo/freevo/src/util/misc.py,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** misc.py     10 Dec 2003 19:47:12 -0000      1.7
--- misc.py     12 Dec 2003 19:20:07 -0000      1.8
***************
*** 11,14 ****
--- 11,17 ----
  # -----------------------------------------------------------------------
  # $Log$
+ # Revision 1.8  2003/12/12 19:20:07  dischi
+ # check images
+ #
  # Revision 1.7  2003/12/10 19:47:12  dischi
  # remove unneeded imports
***************
*** 51,54 ****
--- 54,58 ----
  import copy
  import htmlentitydefs
+ import imghdr
  
  
***************
*** 161,165 ****
      """
      for suffix in ('png', 'jpg', 'gif'):
!         if vfs.abspath(base+'.'+suffix):
              return vfs.abspath(base+'.'+suffix)
      return default
--- 165,169 ----
      """
      for suffix in ('png', 'jpg', 'gif'):
!         if vfs.abspath(base+'.'+suffix) and imghdr.what(base+'.'+suffix):
              return vfs.abspath(base+'.'+suffix)
      return default




-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
_______________________________________________
Freevo-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog

Reply via email to