Commits

Konstantin Lopuhin committed 519e4fc

this makes StringBuilder match StringIO on small objects, although it is strange

Comments (0)

Files changed (1)

lib-python/2/pickle.py

     '''
     def __init__(self):
         self.builder = StringBuilder()
-
-    def write(self, data):
-        self.builder.append(data)
+        self.write = self.builder.append
 
     def getvalue(self):
         return self.builder.build()