Skip to content
This repository was archived by the owner on Nov 22, 2024. It is now read-only.

Commit 839ac32

Browse files
committed
remove f-string for Python <3.6 compatibility
1 parent ab8a1aa commit 839ac32

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

examples/example_page_rules.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ def main():
3434

3535
zone_id = zones[0]['id']
3636

37-
url_match = f"*.{zone_name}/url1*"
38-
url_forwarded = f"http://{zone_name}/url2"
37+
url_match = "*.%s/url1*" % (zone_name)
38+
url_forwarded = "http://%s/url2" % (zone_name)
3939

4040
targets = [{"target":"url","constraint":{"operator":"matches","value":url_match}}]
4141
actions = [{"id":"forwarding_url","value":{"status_code":302,"url":url_forwarded}}]

0 commit comments

Comments
 (0)