[Checkins] SVN: Products.CMFCore/branches/2.2/Products/CMFCore/exportimport/content.py remove type check that seem useless

Godefroid Chapelle gotcha at bubblenet.be
Thu Jan 13 06:00:16 EST 2011


Log message for revision 119561:
  remove type check that seem useless

Changed:
  U   Products.CMFCore/branches/2.2/Products/CMFCore/exportimport/content.py

-=-
Modified: Products.CMFCore/branches/2.2/Products/CMFCore/exportimport/content.py
===================================================================
--- Products.CMFCore/branches/2.2/Products/CMFCore/exportimport/content.py	2011-01-13 10:44:41 UTC (rev 119560)
+++ Products.CMFCore/branches/2.2/Products/CMFCore/exportimport/content.py	2011-01-13 11:00:16 UTC (rev 119561)
@@ -101,15 +101,9 @@
         parser = ConfigParser()
 
         title = self.context.Title()
-        if isinstance(title, unicode):
-            title_str = title.encode(self._encoding)
-        else:
-            title_str = title
+        title_str = title.encode(self._encoding)
         description = self.context.Description()
-        if isinstance(description, unicode):
-            description_str = description.encode(self._encoding)
-        else:
-            description_str = description
+        description_str = description.encode(self._encoding)
         parser.set('DEFAULT', 'Title', title_str)
         parser.set('DEFAULT', 'Description', description_str)
 



More information about the checkins mailing list