@@ -66,7 +66,7 @@ def inspect_string(project, content_string, info_types,
66
66
regexes = [{
67
67
'info_type' : {'name' : 'CUSTOM_REGEX_{}' .format (i )},
68
68
'regex' : {'pattern' : custom_regex }
69
- } for i in enumerate (custom_regexes )]
69
+ } for i , custom_regex in enumerate (custom_regexes )]
70
70
custom_info_types = dictionaries + regexes
71
71
72
72
# Construct the configuration dictionary. Keys which are None may
@@ -154,7 +154,7 @@ def inspect_file(project, filename, info_types, min_likelihood=None,
154
154
regexes = [{
155
155
'info_type' : {'name' : 'CUSTOM_REGEX_{}' .format (i )},
156
156
'regex' : {'pattern' : custom_regex }
157
- } for i in enumerate (custom_regexes )]
157
+ } for i , custom_regex in enumerate (custom_regexes )]
158
158
custom_info_types = dictionaries + regexes
159
159
160
160
# Construct the configuration dictionary. Keys which are None may
@@ -267,7 +267,7 @@ def inspect_gcs_file(project, bucket, filename, topic_id, subscription_id,
267
267
regexes = [{
268
268
'info_type' : {'name' : 'CUSTOM_REGEX_{}' .format (i )},
269
269
'regex' : {'pattern' : custom_regex }
270
- } for i in enumerate (custom_regexes )]
270
+ } for i , custom_regex in enumerate (custom_regexes )]
271
271
custom_info_types = dictionaries + regexes
272
272
273
273
# Construct the configuration dictionary. Keys which are None may
@@ -413,7 +413,7 @@ def inspect_datastore(project, datastore_project, kind,
413
413
regexes = [{
414
414
'info_type' : {'name' : 'CUSTOM_REGEX_{}' .format (i )},
415
415
'regex' : {'pattern' : custom_regex }
416
- } for i in enumerate (custom_regexes )]
416
+ } for i , custom_regex in enumerate (custom_regexes )]
417
417
custom_info_types = dictionaries + regexes
418
418
419
419
# Construct the configuration dictionary. Keys which are None may
@@ -564,7 +564,7 @@ def inspect_bigquery(project, bigquery_project, dataset_id, table_id,
564
564
regexes = [{
565
565
'info_type' : {'name' : 'CUSTOM_REGEX_{}' .format (i )},
566
566
'regex' : {'pattern' : custom_regex }
567
- } for i in enumerate (custom_regexes )]
567
+ } for i , custom_regex in enumerate (custom_regexes )]
568
568
custom_info_types = dictionaries + regexes
569
569
570
570
# Construct the configuration dictionary. Keys which are None may
0 commit comments