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:
Alexander Traud 2021-11-17 12:43:22 +01:00 committed by Kevin Harwell
parent 0119f59ac3
commit aaa1509fad
1 changed files with 1 additions and 1 deletions

View 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()