git-svn-id: https://s3tools.svn.sourceforge.net/svnroot/s3tools/s3py/trunk@66 830e0280-6d2a-0410-9c65-932aecc39d9d
Michal Ludvig authored on 2007/01/26 22:17:44... | ... |
@@ -151,7 +151,7 @@ class S3(object): |
151 | 151 |
def object_delete_uri(self, uri): |
152 | 152 |
if uri.type != "s3": |
153 | 153 |
raise ValueError("Expected URI type 's3', got '%s'" % uri.type) |
154 |
- return self.object_delete(filename, uri.bucket(), uri.object()) |
|
154 |
+ return self.object_delete(uri.bucket(), uri.object()) |
|
155 | 155 |
|
156 | 156 |
## Low level methods |
157 | 157 |
def create_request(self, operation, bucket = None, object = None, headers = None, **params): |
... | ... |
@@ -35,7 +35,7 @@ class S3Uri(object): |
35 | 35 |
|
36 | 36 |
class S3UriS3(S3Uri): |
37 | 37 |
type = "s3" |
38 |
- _re = re.compile("^s3://([^/]+)/?(.*)") |
|
38 |
+ _re = re.compile("^s3://([^/]+)/?(.*)", re.IGNORECASE) |
|
39 | 39 |
def __init__(self, string): |
40 | 40 |
match = self._re.match(string) |
41 | 41 |
if not match: |
... | ... |
@@ -61,11 +61,11 @@ class S3UriS3(S3Uri): |
61 | 61 |
|
62 | 62 |
@staticmethod |
63 | 63 |
def compose_uri(bucket, object = ""): |
64 |
- return "S3://%s/%s" % (bucket, object) |
|
64 |
+ return "s3://%s/%s" % (bucket, object) |
|
65 | 65 |
|
66 | 66 |
class S3UriS3FS(S3Uri): |
67 | 67 |
type = "s3fs" |
68 |
- _re = re.compile("^s3fs://([^/]*)/?(.*)") |
|
68 |
+ _re = re.compile("^s3fs://([^/]*)/?(.*)", re.IGNORECASE) |
|
69 | 69 |
def __init__(self, string): |
70 | 70 |
match = self._re.match(string) |
71 | 71 |
if not match: |