mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-27 13:19:24 +01:00
Changed _getSep to raise ValueError instead of asserting.
This commit is contained in:
parent
4624115909
commit
2b12472711
@ -218,7 +218,8 @@ def quoted(s):
|
||||
return '"%s"' % s
|
||||
|
||||
def _getSep(s):
|
||||
assert len(s) >= 2
|
||||
if len(s) < 2:
|
||||
raise ValueError, 'string given to _getSep is too short: %r' % s
|
||||
if s.startswith('m') or s.startswith('s'):
|
||||
separator = s[1]
|
||||
else:
|
||||
|
Loading…
Reference in New Issue
Block a user