python 3.5 support
[tiramisu.git] / tiramisu / storage / dictionary / option.py
index b866330..df6692a 100644 (file)
@@ -75,7 +75,7 @@ class StorageBase(object):
         _setattr = object.__setattr__
         _setattr(self, '_name', name)
         if doc is not undefined:
-            if isinstance(doc, str):
+            if sys.version_info[0] < 3 and isinstance(doc, str):
                 doc = doc.decode('utf8')
             _setattr(self, '_informations', {'doc': doc})
             if multi != 1: