]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
ari-stubs: Avoid 'is' as comparism with an literal.
authorAlexander Traud <pabstraud@compuserve.com>
Wed, 17 Nov 2021 11:43:22 +0000 (12:43 +0100)
committerKevin Harwell <kharwell@digium.com>
Thu, 18 Nov 2021 22:24:08 +0000 (16:24 -0600)
Python 3.9.7 gave a syntax warning.

Change-Id: I3e3a982fe720726bc0015bcdb0e638a626ec89d4

rest-api-templates/asterisk_processor.py

index ad88ebba70abc8435594e5ebf3a57ebc4cd6e331..be1c6dd3a35b77612e522d33f147266fb8b1f002 100644 (file)
@@ -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()