Skip to content

Commit 019b5f7

Browse files
authored
Fix indentation
1 parent f789d26 commit 019b5f7

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

dlp/inspect_content.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -54,15 +54,15 @@ def inspect_string(project, content_string, info_types,
5454
# Prepare custom_info_types by parsing the dictionary word lists and
5555
# regex patterns.
5656
if custom_dictionaries is None:
57-
custom_dictionaries = []
57+
custom_dictionaries = []
5858
dictionaries = [{
5959
'info_type': {'name': 'CUSTOM_DICTIONARY_{}'.format(i)},
6060
'dictionary': {
6161
'word_list': {'words': custom_dictionaries[i].split(',')}
6262
}
6363
} for i in range(len(custom_dictionaries))]
6464
if custom_regexes is None:
65-
custom_regexes = []
65+
custom_regexes = []
6666
regexes = [{
6767
'info_type': {'name': 'CUSTOM_REGEX_{}'.format(i)},
6868
'regex': {'pattern': custom_regexes[i]}
@@ -142,15 +142,15 @@ def inspect_file(project, filename, info_types, min_likelihood=None,
142142
# Prepare custom_info_types by parsing the dictionary word lists and
143143
# regex patterns.
144144
if custom_dictionaries is None:
145-
custom_dictionaries = []
145+
custom_dictionaries = []
146146
dictionaries = [{
147147
'info_type': {'name': 'CUSTOM_DICTIONARY_{}'.format(i)},
148148
'dictionary': {
149149
'word_list': {'words': custom_dictionaries[i].split(',')}
150150
}
151151
} for i in range(len(custom_dictionaries))]
152152
if custom_regexes is None:
153-
custom_regexes = []
153+
custom_regexes = []
154154
regexes = [{
155155
'info_type': {'name': 'CUSTOM_REGEX_{}'.format(i)},
156156
'regex': {'pattern': custom_regexes[i]}
@@ -255,15 +255,15 @@ def inspect_gcs_file(project, bucket, filename, topic_id, subscription_id,
255255
# Prepare custom_info_types by parsing the dictionary word lists and
256256
# regex patterns.
257257
if custom_dictionaries is None:
258-
custom_dictionaries = []
258+
custom_dictionaries = []
259259
dictionaries = [{
260260
'info_type': {'name': 'CUSTOM_DICTIONARY_{}'.format(i)},
261261
'dictionary': {
262262
'word_list': {'words': custom_dictionaries[i].split(',')}
263263
}
264264
} for i in range(len(custom_dictionaries))]
265265
if custom_regexes is None:
266-
custom_regexes = []
266+
custom_regexes = []
267267
regexes = [{
268268
'info_type': {'name': 'CUSTOM_REGEX_{}'.format(i)},
269269
'regex': {'pattern': custom_regexes[i]}
@@ -401,15 +401,15 @@ def inspect_datastore(project, datastore_project, kind,
401401
# Prepare custom_info_types by parsing the dictionary word lists and
402402
# regex patterns.
403403
if custom_dictionaries is None:
404-
custom_dictionaries = []
404+
custom_dictionaries = []
405405
dictionaries = [{
406406
'info_type': {'name': 'CUSTOM_DICTIONARY_{}'.format(i)},
407407
'dictionary': {
408408
'word_list': {'words': custom_dictionaries[i].split(',')}
409409
}
410410
} for i in range(len(custom_dictionaries))]
411411
if custom_regexes is None:
412-
custom_regexes = []
412+
custom_regexes = []
413413
regexes = [{
414414
'info_type': {'name': 'CUSTOM_REGEX_{}'.format(i)},
415415
'regex': {'pattern': custom_regexes[i]}
@@ -552,15 +552,15 @@ def inspect_bigquery(project, bigquery_project, dataset_id, table_id,
552552
# Prepare custom_info_types by parsing the dictionary word lists and
553553
# regex patterns.
554554
if custom_dictionaries is None:
555-
custom_dictionaries = []
555+
custom_dictionaries = []
556556
dictionaries = [{
557557
'info_type': {'name': 'CUSTOM_DICTIONARY_{}'.format(i)},
558558
'dictionary': {
559559
'word_list': {'words': custom_dictionaries[i].split(',')}
560560
}
561561
} for i in range(len(custom_dictionaries))]
562562
if custom_regexes is None:
563-
custom_regexes = []
563+
custom_regexes = []
564564
regexes = [{
565565
'info_type': {'name': 'CUSTOM_REGEX_{}'.format(i)},
566566
'regex': {'pattern': custom_regexes[i]}

0 commit comments

Comments
 (0)