diff options
author | Red_M <1468433+Red-M@users.noreply.github.com> | 2023-02-14 19:11:51 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-14 19:11:51 +1000 |
commit | ab13bc5b12d513c54c64940561788fcedd18ddd2 (patch) | |
tree | 4cab33dde97966f2c0c0438677605100d571f644 | |
parent | a547f9063a15503426a4afecba817171ed5c7aaa (diff) | |
parent | 373679020c6b1875293bf0e3a26d3116d605bff8 (diff) | |
download | pexpect-ab13bc5b12d513c54c64940561788fcedd18ddd2.tar.gz |
Merge pull request #742 from swt2c/fix_fakessh
Fix SyntaxWarning in fakessh by using raw string
-rwxr-xr-x | tests/fakessh/ssh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/fakessh/ssh b/tests/fakessh/ssh index 4a5be1b..74ffe20 100755 --- a/tests/fakessh/ssh +++ b/tests/fakessh/ssh @@ -62,7 +62,7 @@ prompt = "$" while True: cmd = input(prompt) if cmd.startswith('PS1='): - prompt = eval(cmd[4:]).replace('\$', '$') + prompt = eval(cmd[4:]).replace(r'\$', '$') elif cmd == 'ping': print('pong') elif cmd.startswith('ls'): |