Browse code

* S3/S3.py: object_get() -- make start_position argument optional.

git-svn-id: https://s3tools.svn.sourceforge.net/svnroot/s3tools/s3cmd/trunk@277 830e0280-6d2a-0410-9c65-932aecc39d9d

Michal Ludvig authored on 2008/11/30 08:02:11
Showing 2 changed files
... ...
@@ -1,3 +1,7 @@
1
+2008-11-30  Michal Ludvig  <michal@logix.cz>
2
+
3
+	* S3/S3.py: object_get() -- make start_position argument optional.
4
+
1 5
 2008-11-29  Michal Ludvig  <michal@logix.cz>
2 6
 
3 7
 	* s3cmd: Delete local files with "sync --delete-removed"
... ...
@@ -189,7 +189,7 @@ class S3(object):
189 189
 		response = self.send_file(request, file)
190 190
 		return response
191 191
 
192
-	def object_get(self, uri, stream, start_position):
192
+	def object_get(self, uri, stream, start_position = 0):
193 193
 		if uri.type != "s3":
194 194
 			raise ValueError("Expected URI type 's3', got '%s'" % uri.type)
195 195
 		request = self.create_request("OBJECT_GET", uri = uri)