Revision 402b6f48

b/kamaki/clients/pithos.py
130 130
                raise ClientError(msg, 1)
131 131
            f = StringIO(data)
132 132
        else:
133
            data = f.read(size) if size is not None else f.read()
133
            data = f.read(size or ())
134 134
        r = self.object_put(
135 135
            obj,
136 136
            data=data,
b/kamaki/clients/test/pithos.py
138 138
    dict(last_modified="2013-01-29T16:50:06.084674+00:00", name="0b2a-f2d5"),
139 139
    dict(last_modified="2013-01-29T16:50:06.084674+00:00", name="2b1a-82d6")]
140 140

  
141

  
141 142
class FR(object):
142 143
    """FR stands for Fake Response"""
143 144
    json = dict()

Also available in: Unified diff