Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Python SyntaxWarnings in iapp_parser.py #1612

Open
wants to merge 1 commit into
base: development
Choose a base branch
from

Commits on Mar 14, 2023

  1. Fix Python SyntaxWarnings in iapp_parser.py

    If I run Python's `compileall` code of the `f5-sdk` Python package, I get the following SyntaxWarnings:
    
    ```
    % python3 -m compileall iapp_parser.py
    Compiling 'iapp_parser.py'...
    iapp_parser.py:123: SyntaxWarning: "is" with a literal. Did you mean "=="?
      if brace_count is 0:
    iapp_parser.py:126: SyntaxWarning: "is not" with a literal. Did you mean "!="?
      if brace_count is not 0:
    ```
    
    This PR fixes these warnings.
    
    Using Python 3.11.2, but I believe these warnings were already introduced in Python 3.8.
    
    Background: https://adamj.eu/tech/2020/01/21/why-does-python-3-8-syntaxwarning-for-is-literal/
    intgr authored Mar 14, 2023
    Configuration menu
    Copy the full SHA
    7d8fbf2 View commit details
    Browse the repository at this point in the history