Revision 22d7b01e pithos/api/util.py
b/pithos/api/util.py | ||
---|---|---|
288 | 288 |
raise ValueError |
289 | 289 |
s = s[1:] |
290 | 290 |
pos = s.find('/') |
291 |
if pos == -1: |
|
291 |
if pos == -1 or pos == len(s) - 1:
|
|
292 | 292 |
raise ValueError |
293 | 293 |
return s[:pos], s[(pos + 1):] |
294 | 294 |
|
Also available in: Unified diff