[yt-dev] na => np in 3.0 and 2.x

Kacper Kowalik xarthisius.kk at gmail.com
Mon Aug 27 07:54:07 PDT 2012


On 27.08.2012 16:08, Matthew Turk wrote:
> Because this could be disruptive for any major, outstanding forks, I
> also think it needs to be discussed here.  (I'm actually kind of -1 on
> big discussions happening in pull requests.)  My vote is for #3.  I'd
> rather get this over with, since we all know it probably ought to
> happen at some point in the future.

Hi,
there's a way to minimize the disruption on any outstanding forks,
namely to automate the process. If we use the same "tool" on both main
repo and the fork, the difference should be close to none.
In this case something along the lines:

find . -name "*.py" \
   -exec sed -e "s/\([[:punct:]]\|[[:space:]]\)na\./\1np\./g" \
   -e "s/numpy as na/numpy as np/g" -i {} \;

should do the trick. I haven't check yet if that reproduces Anthony's PR
so use it carefully ;)
Cheers,
Kacper


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 900 bytes
Desc: OpenPGP digital signature
URL: <http://lists.spacepope.org/pipermail/yt-dev-spacepope.org/attachments/20120827/1332e189/attachment.pgp>


More information about the yt-dev mailing list