Skip to content

Commit

Permalink
* S3/S3Uri.py: Fixed cf:// uri parsing.
Browse files Browse the repository at this point in the history
git-svn-id: https://s3tools.svn.sourceforge.net/svnroot/s3tools/s3cmd/trunk@478 830e0280-6d2a-0410-9c65-932aecc39d9d
  • Loading branch information
ludvigm committed Apr 11, 2011
1 parent e11560e commit 44d85a4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions ChangeLog
@@ -1,5 +1,6 @@
2011-04-11 Michal Ludvig <mludvig@logix.net.nz>

* S3/S3Uri.py: Fixed cf:// uri parsing.
* S3/CloudFront.py: Don't fail if there are no cfinval
requests.

Expand Down
2 changes: 1 addition & 1 deletion S3/S3Uri.py
Expand Up @@ -158,7 +158,7 @@ def dirname(self):

class S3UriCloudFront(S3Uri):
type = "cf"
_re = re.compile("^cf://([^/]*)(/.*)?", re.IGNORECASE)
_re = re.compile("^cf://([^/]*)/*(.*)", re.IGNORECASE)
def __init__(self, string):
match = self._re.match(string)
if not match:
Expand Down

0 comments on commit 44d85a4

Please sign in to comment.