File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -1085,10 +1085,6 @@ def parse_options(argv, prog=None):
1085
1085
if options .custom_header is not None :
1086
1086
parser .error ("--custom-header option is not valid for json files" )
1087
1087
1088
- if options .max_document_size > 0 :
1089
- global JSON_MAX_BUFFER_SIZE
1090
- JSON_MAX_BUFFER_SIZE = options .max_document_size
1091
-
1092
1088
options .file = os .path .abspath (options .file )
1093
1089
1094
1090
else :
@@ -1099,6 +1095,11 @@ def parse_options(argv, prog=None):
1099
1095
1100
1096
# --
1101
1097
1098
+ # max_document_size - json
1099
+ if options .max_document_size > 0 :
1100
+ global JSON_MAX_BUFFER_SIZE
1101
+ JSON_MAX_BUFFER_SIZE = options .max_document_size
1102
+
1102
1103
# max_nesting_depth
1103
1104
if options .max_nesting_depth > 0 :
1104
1105
global MAX_NESTING_DEPTH
You can’t perform that action at this time.
0 commit comments