Skip to content

invalid escape sequences are deprecated #150

Description

@itcarroll

The use of a backslash-character pair that is not a valid escape sequence began triggering a SyntaxWarning in Python 3.12, and will eventually raise a SyntaxError.

I'm getting the warning from the following uses:

ps1 = self.unique_prompt + u'\[\]' + ">"
ps2 = self.unique_prompt + u'\[\]' + "+"

self.bashwrapper = IREPLWrapper(child, u'\$', prompt_change, self.unique_prompt,

$ echo "alert('It is known khaleesi\!');" | displayJS

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions