Skip to content

Commit

Permalink
Fix Python 3.8+ warning inhibiting operation on macOS Monterey 12.3+
Browse files Browse the repository at this point in the history
  • Loading branch information
isometry committed Apr 1, 2022
1 parent 5c11e32 commit 06acce2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions alfredssh.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# ssh.alfredworkflow, v3.0
# Robin Breathe, 2013-2021
# ssh.alfredworkflow, v3.1
# Robin Breathe, 2013-2022

import json
import re
Expand Down Expand Up @@ -157,7 +157,7 @@ def complete():
else:
(user, host) = (None, query)

host_chars = (('\\.' if x is '.' else x) for x in list(host))
host_chars = (('\\.' if x == '.' else x) for x in list(host))
pattern = re.compile('.*?\b?'.join(host_chars), flags=re.IGNORECASE)

hosts = Hosts(query=host, user=user)
Expand Down
2 changes: 1 addition & 1 deletion info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ Notes:
<string>1</string>
</dict>
<key>version</key>
<string>3.0</string>
<string>3.1</string>
<key>webaddress</key>
<string>https://github.com/isometry/alfred-ssh</string>
</dict>
Expand Down

0 comments on commit 06acce2

Please sign in to comment.