fixed some docstrings
This commit is contained in:
		| @ -64,7 +64,7 @@ class json_streamer(object): | |||||||
|             if key in stream_dict: |             if key in stream_dict: | ||||||
|                 for r in r_list: |                 for r in r_list: | ||||||
|                     if r.key_to_store_match is not None: |                     if r.key_to_store_match is not None: | ||||||
|                         # looking for all occurences and storing them in an on json key |                         # looking for all occurences and storing them in an json key | ||||||
|                         matches = r.regexp_obj.findall(stream_dict[key]) |                         matches = r.regexp_obj.findall(stream_dict[key]) | ||||||
|                         stream_dict[r.key_to_store_match] = matches # TODO: can not handle multiple rules storing in the same key!!! |                         stream_dict[r.key_to_store_match] = matches # TODO: can not handle multiple rules storing in the same key!!! | ||||||
|                     if r.replace_str is not None: |                     if r.replace_str is not None: | ||||||
| @ -116,8 +116,8 @@ class json_streamer(object): | |||||||
|                 if c == '"' and prev_c != '\\': |                 if c == '"' and prev_c != '\\': | ||||||
|                     inside_quotes = not inside_quotes |                     inside_quotes = not inside_quotes | ||||||
|                  |                  | ||||||
|                 # setting previous c. only exception if a double backslash occurs ignoring it. |                 # setting previous c. only exception: if a double backslash (= escaped backslash) occurs ignore it. | ||||||
|                 # Because that breaks our escaped character detection |                 # Because that would break our escaped character detection | ||||||
|                 prev_c = c if not (c == '\\' and prev_c == '\\') else '' |                 prev_c = c if not (c == '\\' and prev_c == '\\') else '' | ||||||
|          |          | ||||||
|         stream_error.write("\n\nReached EOF. #Processed objects: " + str(success_batch_counter) + ", #failed objects: " + str(fail_batch_counter) + "\n\n") |         stream_error.write("\n\nReached EOF. #Processed objects: " + str(success_batch_counter) + ", #failed objects: " + str(fail_batch_counter) + "\n\n") | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user