The dictionary approach is definitely better, but the trailing slash causing duplications irritates me. You could rstrip('/') if we don't need it (I assume we don't).
Agree about regexps - often the cause of write only code!
« Back to merge proposal
The dictionary approach is definitely better, but the trailing slash
causing duplications irritates me. You could rstrip('/') if we don't
need it (I assume we don't).
Agree about regexps - often the cause of write only code!