Djoume Salvetti  committed c67ee92

call write() is send() is called with a string

  • Participants
  • Parent commits 1875be3

Comments (0)

Files changed (1)

File cloudfiles/

         if isinstance(iterable, basestring):
-            # buffer it so that we don't send it 1 byte at a time.
-            iterable = StringIO.StringIO(iterable)
+            # use write to buffer the string and avoid sending it 1 byte at a time
+            self.write(iterable)
         if hasattr(iterable, 'read'):