Author: dmeyer
Date: Wed Apr 18 17:45:12 2007
New Revision: 2636

Modified:
   trunk/beacon/src/file.py

Log:
not not crash with unicode error on debug

Modified: trunk/beacon/src/file.py
==============================================================================
--- trunk/beacon/src/file.py    (original)
+++ trunk/beacon/src/file.py    Wed Apr 18 17:45:12 2007
@@ -212,14 +212,14 @@
         """
         Convert object to string (usefull for debugging)
         """
-        str = '<beacon.File %s' % self.filename
+        s = '<beacon.File %s' % self.filename
         if not self.url.startswith('file://'):
-            str = '<beacon.File %s' % self.url
+            s = '<beacon.File %s' % self.url
         if self._beacon_data.get('mtime') == None:
-            str += ' (new)'
+            s += ' (new)'
         else:
-            str += ' (type=%s)' % self._beacon_data.get('type')
-        return str + '>'
+            s += ' (type=%s)' % str(self._beacon_data.get('type'))
+        return s + '>'
 
 
     # -------------------------------------------------------------------------

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog

Reply via email to