From: Alexander Traud Date: Wed, 17 Nov 2021 11:43:22 +0000 (+0100) Subject: ari-stubs: Avoid 'is' as comparism with an literal. X-Git-Tag: 18.9.0-rc1~19 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b4eebfa191bfcc83ff51dd6fcf5fcd199b454c1c;p=thirdparty%2Fasterisk.git ari-stubs: Avoid 'is' as comparism with an literal. Python 3.9.7 gave a syntax warning. Change-Id: I3e3a982fe720726bc0015bcdb0e638a626ec89d4 --- diff --git a/rest-api-templates/asterisk_processor.py b/rest-api-templates/asterisk_processor.py index ad88ebba70..be1c6dd3a3 100644 --- a/rest-api-templates/asterisk_processor.py +++ b/rest-api-templates/asterisk_processor.py @@ -60,7 +60,7 @@ def snakify(name): for c in name: if c.isupper() and prior_lower: r += "_" - if c is '-': + if c == '-': c = '_' prior_lower = c.islower() r += c.lower()