101 data = {'type': 'append', 'userid':f'{user}@{auth_id}', 'secret_details': secret_details}
102 self.context.worker.change_totp(data)
103
104 @delete('/api/core/totps/(?P<timestamp>\d*)')105 @endpoint(api=True)
106 def handle_delete_user_totp(self, http_context, timestamp):
107 user = self.context.identity
Backslash is present in the literal string but is not a valid escape sequence. If it is intended to be an escape sequence, use the correct escape characters. If it is intended to be a literal backslash, it can either be replaced with with an escaped backslash \\
, or you can add an r
prefix to make it a "raw" string.
filepath = "C:\myfiles\run.py"
filepath = "C:\\myfiles\\run.py" # use `\\` to render one backslash
filepath = r"C:\myfiles\run.py" # use the `r` prefix to avoid unnecessary escapes