rspec/rules/S2316/python/rule.adoc

26 lines
401 B
Plaintext
Raw Normal View History

2021-04-28 16:49:39 +02:00
Backticks are a deprecated alias for ``++repr()++``. Don't use them any more, the syntax was removed in Python 3.0.
2021-04-28 16:49:39 +02:00
== Noncompliant Code Example
----
return `num` # Noncompliant
----
2021-04-28 16:49:39 +02:00
== Compliant Solution
----
return repr(num)
----
ifdef::env-github,rspecator-view[]
'''
== Implementation Specification
(visible only on this page)
include::message.adoc[]
endif::env-github,rspecator-view[]