Skip to content

Commit 3534102

Browse files
jh0kerjsmnbom
authored andcommitted
🐛 Use '==' operator for integer comparison (python-telegram-bot#1147)
1 parent 8acff56 commit 3534102

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

telegram/ext/updater.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,7 @@ def _check_ssl_cert(self, cert, key):
381381
stderr=subprocess.STDOUT)
382382
except OSError:
383383
exit_code = 0
384-
if exit_code is 0:
384+
if exit_code == 0:
385385
try:
386386
self.httpd.socket = ssl.wrap_socket(
387387
self.httpd.socket, certfile=cert, keyfile=key, server_side=True)

0 commit comments

Comments
 (0)