|
Sergio Pascual |
afa3bdc |
#!/bin/sh
|
|
Sergio Pascual |
afa3bdc |
|
|
Sergio Pascual |
afa3bdc |
# Changes all these six imports to imports of the system package
|
|
Sergio Pascual |
afa3bdc |
|
|
Sergio Pascual |
66f8004 |
cd scikit-learn-0.15.0b1.six
|
|
Sergio Pascual |
afa3bdc |
|
|
Sergio Pascual |
afa3bdc |
for i in $(find -name "*.py"); do
|
|
Sergio Pascual |
afa3bdc |
sed -i -e "s/from .externals import six/import six/" $i
|
|
Sergio Pascual |
afa3bdc |
sed -i -e "s/from ..externals import six/import six/" $i
|
|
Sergio Pascual |
afa3bdc |
sed -i -e "s/from ..externals.six import/from six import/" $i
|
|
Sergio Pascual |
afa3bdc |
sed -i -e "s/from .externals.six import/from six import/" $i
|
|
Sergio Pascual |
afa3bdc |
sed -i -e "s/from sklearn.externals import six/import six/" $i
|
|
Sergio Pascual |
afa3bdc |
sed -i -e "s/from sklearn.externals.six/from six/" $i
|
|
Sergio Pascual |
afa3bdc |
sed -i -e "s/from ..externals.six.moves import/from six.moves import/" $i
|
|
Sergio Pascual |
afa3bdc |
sed -i -e "s/from .externals.six.moves import/from six.moves import/" $i
|
|
Sergio Pascual |
afa3bdc |
done
|
|
Sergio Pascual |
afa3bdc |
|
|
Sergio Pascual |
afa3bdc |
cd -
|