Show More
@@ -191,10 +191,9 b' class queue:' | |||||
191 | return _('guard cannot be an empty string') |
|
191 | return _('guard cannot be an empty string') | |
192 | bad_chars = '# \t\r\n\f' |
|
192 | bad_chars = '# \t\r\n\f' | |
193 | first = guard[0] |
|
193 | first = guard[0] | |
194 |
f |
|
194 | if first in '-+': | |
195 | if first == c: |
|
195 | return (_('guard %r starts with invalid character: %r') % | |
196 | return (_('guard %r starts with invalid character: %r') % |
|
196 | (guard, first)) | |
197 | (guard, c)) |
|
|||
198 | for c in bad_chars: |
|
197 | for c in bad_chars: | |
199 | if c in guard: |
|
198 | if c in guard: | |
200 | return _('invalid character in guard %r: %r') % (guard, c) |
|
199 | return _('invalid character in guard %r: %r') % (guard, c) |
General Comments 0
You need to be logged in to leave comments.
Login now