From 0fcccff20bd2a4953ebf6a033472c0aa8f74b4e5 Mon Sep 17 00:00:00 2001 From: Jonas Bardino Date: Wed, 10 Dec 2025 11:20:33 +0100 Subject: [PATCH] Begin switching e.g. html/javascript template strings with embedded escapes in them to raw strings in order to avoid DeprecationWarning (on python3.6+) or SyntaxError (python3.12+). --- mig/shared/accountreq.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mig/shared/accountreq.py b/mig/shared/accountreq.py index 0b3ca62e0..92cca9eb8 100644 --- a/mig/shared/accountreq.py +++ b/mig/shared/accountreq.py @@ -78,7 +78,7 @@ def account_js_helpers(configuration, fields): ''' - add_init = """ + add_init = r""" /* Helper to define countries for which State field makes sense */ var enable_state = ['US', 'CA', 'AU']; var peers_mandatory = %(peers_mandatory)s; @@ -527,7 +527,7 @@ def account_request_template(configuration, password=True, default_values={}): comment_pattern = '' if 'full_name' in configuration.site_peers_explicit_fields: - html += """ + html += r"""