Skip to content

Syntax warnings #56

@chrisjbillington

Description

@chrisjbillington

Python 3.8 became more aggressive about syntax warnings.

These comparisons do not cause issues since small integers are singletons in CPython, but they should be fixed nonetheless.

/home/bilbo/venvs/labscript/labscript.git/labscript/labscript.py:116: SyntaxWarning: "is" with a literal. Did you mean "=="?
  if arrays[0] is 0:
/home/bilbo/venvs/labscript/labscript.git/labscript/labscript.py:1134: SyntaxWarning: "is not" with a literal. Did you mean "!="?
  if not isinstance(limits,tuple) or len(limits) is not 2:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions