mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-02 19:16:15 +00:00
ari-stubs: Avoid 'is' as comparism with an literal.
Python 3.9.7 gave a syntax warning. Change-Id: I3e3a982fe720726bc0015bcdb0e638a626ec89d4
This commit is contained in:
committed by
Kevin Harwell
parent
b5962fe528
commit
b4eebfa191
@@ -60,7 +60,7 @@ def snakify(name):
|
|||||||
for c in name:
|
for c in name:
|
||||||
if c.isupper() and prior_lower:
|
if c.isupper() and prior_lower:
|
||||||
r += "_"
|
r += "_"
|
||||||
if c is '-':
|
if c == '-':
|
||||||
c = '_'
|
c = '_'
|
||||||
prior_lower = c.islower()
|
prior_lower = c.islower()
|
||||||
r += c.lower()
|
r += c.lower()
|
||||||
|
Reference in New Issue
Block a user