rspec/rules/S2318/python/rule.adoc
2021-04-28 18:08:03 +02:00

17 lines
237 B
Plaintext

The forms ``++<>++`` and ``++!=++`` are equivalent. But in Python 2.7.3 the ``++<>++`` form is considered obsolete.
== Noncompliant Code Example
----
return a <> b # Noncompliant
----
== Compliant Solution
----
return a != b
----