Skip to content

Commit e38de97

Browse files
committed
Fix black
1 parent 604c527 commit e38de97

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

examples/redirect.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
redirect_https = redirects.create(
3636
domain="source.domain.example.com",
3737
path="/path",
38-
target="https://www.ibm.com/products/ns1-connect"
38+
target="https://www.ibm.com/products/ns1-connect",
3939
)
4040

4141
# an http redirect, http://domain/path -> target, will not hold any certificate for the domain
@@ -67,11 +67,11 @@
6767
##########
6868

6969
# search; we can also use list() to get all redirects
70-
reds = redirects.searchSource('example.com')
71-
print(reds['total'], len(reds['results']))
70+
reds = redirects.searchSource("example.com")
71+
print(reds["total"], len(reds["results"]))
7272

73-
certs = certificates.search('example.com')
74-
print(certs['total'], len(certs['results']))
73+
certs = certificates.search("example.com")
74+
print(certs["total"], len(certs["results"]))
7575

7676
#################
7777
# READ / UPDATE #
@@ -93,13 +93,13 @@
9393
##########
9494

9595
# delete redirects
96-
redirects.delete(redirect_https['id'])
97-
redirects.delete(redirect_http['id'])
98-
redirects.delete(redirect_allsettings['id'])
96+
redirects.delete(redirect_https["id"])
97+
redirects.delete(redirect_http["id"])
98+
redirects.delete(redirect_allsettings["id"])
9999

100100
# also revoke certificate;
101101
# note that the domain in redirect_http is the same so the certificate is also the same
102102
certificates.delete(redirect_https["certificate_id"])
103103
certificates.delete(redirect_allsettings["certificate_id"])
104104

105-
api.zones().delete('example.com')
105+
api.zones().delete("example.com")

0 commit comments

Comments
 (0)