Skip to content

Commit 3940824

Browse files
committed
black
1 parent 8835972 commit 3940824

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

fixinventorydata/__main__.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,11 @@ def gen_gcp_regions() -> dict:
8787
if len(long_region) == 0:
8888
previous_element = loc.previous_element
8989
while previous_element:
90-
if previous_element.name == "a" and 'cloud-link' in previous_element.get('class', []) and len(previous_element.text.strip()) > 2:
90+
if (
91+
previous_element.name == "a"
92+
and "cloud-link" in previous_element.get("class", [])
93+
and len(previous_element.text.strip()) > 2
94+
):
9195
long_region = previous_element.text.strip()
9296
break
9397
previous_element = previous_element.previous_element

0 commit comments

Comments
 (0)