rspec/rules/S2320/python/rule.adoc

30 lines
438 B
Plaintext

== Why is this an issue?
The ``++print++`` statement was removed in Python 3.0. The built-in function should be used instead.
=== Noncompliant code example
[source,python]
----
print '1' # Noncompliant
----
=== Compliant solution
[source,python]
----
print('1')
----
ifdef::env-github,rspecator-view[]
'''
== Implementation Specification
(visible only on this page)
include::message.adoc[]
endif::env-github,rspecator-view[]