Revision 3f931d41
b/kamaki/clients/utils.py | ||
---|---|---|
86 | 86 |
|
87 | 87 |
:returns: (str) a path in the form /args[0]/args[1]/... |
88 | 88 |
""" |
89 |
return '/'.join([''] + [arg.decode('utf-8') if ( |
|
89 |
|
|
90 |
r = '/'.join([''] + [arg.decode('utf-8') if ( |
|
90 | 91 |
isinstance(arg, str)) else '%s' % arg for arg in args]) |
92 |
while '//' in r: |
|
93 |
r = r.replace('//', '/') |
|
94 |
return r |
|
91 | 95 |
|
92 | 96 |
|
93 | 97 |
def params4url(params): |
Also available in: Unified diff