-
Notifications
You must be signed in to change notification settings - Fork 34
/
Copy pathmodernize.sh
executable file
·33 lines (33 loc) · 1.03 KB
/
modernize.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
fixers="fissix.fixes.fix_except \
fissix.fixes.fix_ne \
fissix.fixes.fix_numliterals \
fissix.fixes.fix_repr \
fissix.fixes.fix_standarderror \
fissix.fixes.fix_tuple_params \
libmodernize.fixes.fix_basestring \
libmodernize.fixes.fix_import \
libmodernize.fixes.fix_imports_six \
libmodernize.fixes.fix_raise \
libmodernize.fixes.fix_basestring \
libmodernize.fixes.fix_open \
fissix.fixes.fix_has_key \
libmodernize.fixes.fix_dict_six \
libmodernize.fixes.fix_map \
libmodernize.fixes.fix_filter \
libmodernize.fixes.fix_zip \
libmodernize.fixes.fix_xrange_six \
libmodernize.fixes.fix_next \
libmodernize.fixes.fix_print \
libmodernize.fixes.fix_input_six \
libmodernize.fixes.fix_file \
fissix.fixes.fix_apply \
fissix.fixes.fix_reduce \
fissix.fixes.fix_exec \
fissix.fixes.fix_paren \
fissix.fixes.fix_funcattrs
"
# fixers=libmodernize.fixes.fix_dict_six
paths="/loc/dralph/work/linearham/scripts/*.py" #"datascripts/meta/*/*.py" #"python/*.py test bin/*.py datascripts/*.py projects/*.py"
for fixer in $fixers; do
modernize -wnf $fixer $paths
done