diff options
author | Jared Hobbs <jaredhobbs@gmail.com> | 2019-04-25 07:35:53 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-25 07:35:53 -0600 |
commit | 25de1a7a02a2189614787718739efbde86d5bb8e (patch) | |
tree | cfc6d0732155d91444bb37f5c78d20b7ab2661cb | |
parent | f9d8c0371c832c0f306831e65763bd380900d320 (diff) |
Use raw string
-rw-r--r-- | paramiko/pkey.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/paramiko/pkey.py b/paramiko/pkey.py index e22b171c..e7a1cb31 100644 --- a/paramiko/pkey.py +++ b/paramiko/pkey.py @@ -76,10 +76,10 @@ class PKey(object): PRIVATE_KEY_FORMAT_ORIGINAL = 1 PRIVATE_KEY_FORMAT_OPENSSH = 2 BEGIN_TAG = re.compile( - "^-{5}BEGIN (RSA|DSA|EC|OPENSSH) PRIVATE KEY-{5}\s*$" # noqa: W605 + r"^-{5}BEGIN (RSA|DSA|EC|OPENSSH) PRIVATE KEY-{5}\s*$" ) END_TAG = re.compile( - "^-{5}END (RSA|DSA|EC|OPENSSH) PRIVATE KEY-{5}\s*$" # noqa: W605 + r"^-{5}END (RSA|DSA|EC|OPENSSH) PRIVATE KEY-{5}\s*$" ) def __init__(self, msg=None, data=None): |