Revision 8c54338a kamaki/clients/__init__.py

b/kamaki/clients/__init__.py
115 115

  
116 116
        :returns: (scheme, netloc)
117 117
        """
118
        url = _encode(url) if url else 'http://127.0.0.1/'
118
        url = _encode(str(url)) if url else 'http://127.0.0.1/'
119 119
        url += '' if url.endswith('/') else '/'
120 120
        if path:
121 121
            url += _encode(path[1:] if path.startswith('/') else path)

Also available in: Unified diff