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:
parent
5d8e0a6542
commit
9ae084ff44
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue