Skip to content
Snippets Groups Projects
Commit b4eebfa1 authored by Alexander Traud's avatar Alexander Traud Committed by Kevin Harwell
Browse files

ari-stubs: Avoid 'is' as comparism with an literal.

Python 3.9.7 gave a syntax warning.

Change-Id: I3e3a982fe720726bc0015bcdb0e638a626ec89d4
parent b5962fe5
Branches
Tags
1 merge request!48asterisk uplift to 18.11.2
...@@ -60,7 +60,7 @@ def snakify(name): ...@@ -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()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment