Revision a2defd86 pithos/lib/client.py
b/pithos/lib/client.py | ||
---|---|---|
347 | 347 |
|
348 | 348 |
def update_object(self, container, object, f=stdin, chunked=False, |
349 | 349 |
blocksize=1024, headers=None): |
350 |
if not f: |
|
351 |
return |
|
352 | 350 |
path = '/%s/%s' % (container, object) |
353 | 351 |
if not chunked and f != stdin: |
354 |
data = f.read() |
|
352 |
data = f.read() if f else None
|
|
355 | 353 |
self.post(path, data, headers=headers) |
356 | 354 |
else: |
357 | 355 |
self._chunked_transfer(path, 'POST', f, headers=headers, |
Also available in: Unified diff