Skip to content

Commit 06acce2

Browse files
committed
Fix Python 3.8+ warning inhibiting operation on macOS Monterey 12.3+
1 parent 5c11e32 commit 06acce2

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

alfredssh.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env python3
22
# -*- coding: utf-8 -*-
3-
# ssh.alfredworkflow, v3.0
4-
# Robin Breathe, 2013-2021
3+
# ssh.alfredworkflow, v3.1
4+
# Robin Breathe, 2013-2022
55

66
import json
77
import re
@@ -157,7 +157,7 @@ def complete():
157157
else:
158158
(user, host) = (None, query)
159159

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

163163
hosts = Hosts(query=host, user=user)

info.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ Notes:
229229
<string>1</string>
230230
</dict>
231231
<key>version</key>
232-
<string>3.0</string>
232+
<string>3.1</string>
233233
<key>webaddress</key>
234234
<string>https://github.com/isometry/alfred-ssh</string>
235235
</dict>

0 commit comments

Comments
 (0)