From 8b8ee9f4b6aa5d5572f87c37be13b004078ad4a5 Mon Sep 17 00:00:00 2001 From: Thomas Montague Date: Fri, 14 Jun 2024 09:26:14 -0500 Subject: [PATCH] fix syntax. --- upload.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/upload.py b/upload.py index 25ff102..d774add 100755 --- a/upload.py +++ b/upload.py @@ -21,9 +21,7 @@ API_TOKEN_REGEX = r'.*(?:\"?api_token\"?):\s*\"([^"]+)\".*' API_TOKEN_PATTERN = re.compile(API_TOKEN_REGEX) -JAVASCRIPT_MATCH_TOKEN = ''' -javascript:prompt("Your emoji API Token is:", document.documentElement.innerHTML.match('.*(?:\"?api_token\"?):\s*\"([^"]+)\".*')[1]) -''' +JAVASCRIPT_MATCH_TOKEN = """javascript:prompt("Your emoji API Token is:", document.documentElement.innerHTML.match('.*(?:\"?api_token\"?):\s*\"([^"]+)\".*')[1])""" class ParseError(Exception):