Ñò Kc @ s d Z g Z d d k Z e i d ƒ d d k Z d d k Z d d k Z d d k Z d „ Z d „ Z d „ Z d „ Z d d k Z d „ Z d „ Z d „ Z d „ Z d „ Z e i i d „ Z d „ Z e i i d „ Z e d j o e e i ƒ n d S( sº This module converts code written for numpy.oldnumeric to work with numpy FIXME: Flesh this out. Makes the following changes: * Converts typecharacters '1swu' to 'bhHI' respectively when used as typecodes * Changes import statements * Change typecode= to dtype= * Eliminates savespace=xxx keyword arguments * Removes it when keyword is not given as well * replaces matrixmultiply with dot * converts functions that don't give axis= keyword that have changed * converts functions that don't give typecode= keyword that have changed * converts use of capitalized type-names * converts old function names in oldnumeric.linear_algebra, oldnumeric.random_array, and oldnumeric.fft iÿÿÿÿNs0 numpy.oldnumeric.alter_code2 is not working yet.c C s^ | i d d ƒ } | i d d ƒ } | i d d ƒ } | i d d ƒ } | i d d ƒ } | S( Ns 's's 'h's 'b's 'B's '1's 'w's 'H's 'u's 'I'( t replace( t astr( ( sB /usr/lib64/python2.6/site-packages/numpy/oldnumeric/alter_code2.pyt replacetypechars# s c C s÷ d | } d | } d | } d } | i | d | ƒ } | i | d | | f ƒ } d } t | ƒ } t d | ƒ } xr | i | | ƒ } | d j o Pn | | } | | d j o q{ n d | | | | | f } | | | 7} q{ | | f S( Ns import %ss import %s as s from %s import i s import %s as %st *s %sfrom %s import %s( R t lent find( t fstrt namet newnamet importstrt importasstrt fromstrt fromallt indt Nlent Nlen2t found( ( sB /usr/lib64/python2.6/site-packages/numpy/oldnumeric/alter_code2.pyt changeimports+ s&