[Asterisk-code-review] ari-stubs: Avoid 'is' as comparism with an literal. (asterisk[16])
Friendly Automation
asteriskteam at digium.com
Thu Nov 18 15:09:21 CST 2021
Friendly Automation has submitted this change. ( https://gerrit.asterisk.org/c/asterisk/+/17535 )
Change subject: ari-stubs: Avoid 'is' as comparism with an literal.
......................................................................
ari-stubs: Avoid 'is' as comparism with an literal.
Python 3.9.7 gave a syntax warning.
Change-Id: I3e3a982fe720726bc0015bcdb0e638a626ec89d4
---
M rest-api-templates/asterisk_processor.py
1 file changed, 1 insertion(+), 1 deletion(-)
Approvals:
Kevin Harwell: Looks good to me, but someone else must approve
George Joseph: Looks good to me, approved
Friendly Automation: Approved for Submit
diff --git a/rest-api-templates/asterisk_processor.py b/rest-api-templates/asterisk_processor.py
index ad88ebb..be1c6dd 100644
--- a/rest-api-templates/asterisk_processor.py
+++ b/rest-api-templates/asterisk_processor.py
@@ -60,7 +60,7 @@
for c in name:
if c.isupper() and prior_lower:
r += "_"
- if c is '-':
+ if c == '-':
c = '_'
prior_lower = c.islower()
r += c.lower()
--
To view, visit https://gerrit.asterisk.org/c/asterisk/+/17535
To unsubscribe, or for help writing mail filters, visit https://gerrit.asterisk.org/settings
Gerrit-Project: asterisk
Gerrit-Branch: 16
Gerrit-Change-Id: I3e3a982fe720726bc0015bcdb0e638a626ec89d4
Gerrit-Change-Number: 17535
Gerrit-PatchSet: 2
Gerrit-Owner: Alexander Traud <pabstraud at compuserve.com>
Gerrit-Reviewer: Friendly Automation
Gerrit-Reviewer: George Joseph <gjoseph at digium.com>
Gerrit-Reviewer: Kevin Harwell <kharwell at digium.com>
Gerrit-MessageType: merged
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20211118/39ad2ac2/attachment.html>
More information about the asterisk-code-review
mailing list