Mercurial > repo
view wisdom/off by two @ 6501:6ca43f5f4d7d
<Melvar> ` sed -i -e \'s/inp[)]$/unicode(inp, locale.getpreferredencoding())).encode(locale.getpreferredencoding())/\' -e \'2s/$/, locale/\' bin/loudly
author | HackBot |
---|---|
date | Sun, 03 Jan 2016 11:48:31 +0000 |
parents | 1b7da5f7ebd5 |
children |
line wrap: on
line source
An off by two error is what happens when you expect an off by one error but compensate in the wrong direction.