~ubuntu-branches/ubuntu/trusty/python-boto/trusty

« back to all changes in this revision

Viewing changes to boto/auth.py

  • Committer: Package Import Robot
  • Author(s): Eric Evans
  • Date: 2013-08-13 13:56:47 UTC
  • mfrom: (1.1.12)
  • Revision ID: package-import@ubuntu.com-20130813135647-o43z7y15uid87fzl
Tags: 2.10.0-1
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
385
385
 
386
386
    def canonical_uri(self, http_request):
387
387
        path = http_request.auth_path
388
 
        # Normalize the path.
389
 
        normalized = posixpath.normpath(path)
 
388
        # Normalize the path
 
389
        # in windows normpath('/') will be '\\' so we chane it back to '/'
 
390
        normalized = posixpath.normpath(path).replace('\\','/')
390
391
        # Then urlencode whatever's left.
391
392
        encoded = urllib.quote(normalized)
392
393
        if len(path) > 1 and path.endswith('/'):