Skip to content

Commit 0116309

Browse files
committed
Fix 'SyntaxWarning: "is" with a literal. Did you mean "=="?' warning
from Python 3.8.
1 parent 0cb18e3 commit 0116309

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bin/panwfapi.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -533,11 +533,11 @@ def print_status(wfapi, action, exception_msg=None):
533533

534534

535535
def print_response(wfapi, options):
536-
if wfapi.response_type is 'html' and wfapi.response_body is not None:
536+
if wfapi.response_type == 'html' and wfapi.response_body is not None:
537537
if options['print_html']:
538538
print(wfapi.response_body.rstrip())
539539

540-
elif wfapi.response_type is 'xml' and wfapi.response_body is not None:
540+
elif wfapi.response_type == 'xml' and wfapi.response_body is not None:
541541
if options['print_xml']:
542542
print(wfapi.response_body.rstrip())
543543

0 commit comments

Comments
 (0)