Skip to content

Commit cb25402

Browse files
committed
fix #94
1 parent 9e0108c commit cb25402

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

fprettify/__init__.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2046,13 +2046,6 @@ def build_ws_dict(args):
20462046
ws_dict['intrinsics'] = args.whitespace_intrinsics
20472047
return ws_dict
20482048

2049-
case_dict = {
2050-
'keywords' : args.case[0],
2051-
'procedures' : args.case[1],
2052-
'operators' : args.case[2],
2053-
'constants' : args.case[3]
2054-
}
2055-
20562049
# support legacy input:
20572050
if 'stdin' in args.path and not os.path.isfile('stdin'):
20582051
args.path = ['-' if _ == 'stdin' else _ for _ in args.path]
@@ -2107,6 +2100,13 @@ def build_ws_dict(args):
21072100
file_args = file_argparser.parse_args(argv[1:])
21082101
ws_dict = build_ws_dict(file_args)
21092102

2103+
case_dict = {
2104+
'keywords' : file_args.case[0],
2105+
'procedures' : file_args.case[1],
2106+
'operators' : file_args.case[2],
2107+
'constants' : file_args.case[3]
2108+
}
2109+
21102110
stdout = file_args.stdout or directory == '-'
21112111
diffonly=file_args.diff
21122112

0 commit comments

Comments
 (0)