rspec/rules/S2318/python/rule.adoc
2022-02-04 16:28:24 +00:00

28 lines
430 B
Plaintext

The forms ``++<>++`` and ``++!=++`` are equivalent. But in Python 2.7.3 the ``++<>++`` form is considered obsolete.
== Noncompliant Code Example
[source,python]
----
return a <> b # Noncompliant
----
== Compliant Solution
[source,python]
----
return a != b
----
ifdef::env-github,rspecator-view[]
'''
== Implementation Specification
(visible only on this page)
include::message.adoc[]
endif::env-github,rspecator-view[]