[Asterisk-code-review] ari-stubs: Avoid 'is' as comparism with an literal. (asterisk[master])

Alexander Traud asteriskteam at digium.com
Wed Nov 17 05:46:26 CST 2021


Alexander Traud has uploaded this change for review. ( https://gerrit.asterisk.org/c/asterisk/+/17507 )


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



  git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/07/17507/1

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/+/17507
To unsubscribe, or for help writing mail filters, visit https://gerrit.asterisk.org/settings

Gerrit-Project: asterisk
Gerrit-Branch: master
Gerrit-Change-Id: I3e3a982fe720726bc0015bcdb0e638a626ec89d4
Gerrit-Change-Number: 17507
Gerrit-PatchSet: 1
Gerrit-Owner: Alexander Traud <pabstraud at compuserve.com>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20211117/dca55a3b/attachment.html>


More information about the asterisk-code-review mailing list