Revision 279dabb9

b/kamaki/clients/utils.py
87 87
    :returns: (str) a path in the form /args[0]/args[1]/...
88 88
    """
89 89

  
90
    return '/'.join([''] + [arg.decode('utf-8') if (
90
    r = '/'.join([''] + [arg.decode('utf-8') if (
91 91
        isinstance(arg, str)) else '%s' % arg for arg in args])
92
    while '//' in r:
93
        r = r.replace('//', '/')
94
    return r
92 95

  
93 96

  
94 97
def params4url(params):

Also available in: Unified diff