rspec/rules/S2320/python/rule.adoc

28 lines
410 B
Plaintext
Raw Normal View History

2021-04-28 16:49:39 +02:00
The ``++print++`` statement was removed in Python 3.0. The built-in function should be used instead.
2021-04-28 16:49:39 +02:00
== Noncompliant Code Example
2022-02-04 17:28:24 +01:00
[source,python]
2021-04-28 16:49:39 +02:00
----
print '1' # Noncompliant
----
2021-04-28 16:49:39 +02:00
== Compliant Solution
2022-02-04 17:28:24 +01:00
[source,python]
2021-04-28 16:49:39 +02:00
----
print('1')
----
ifdef::env-github,rspecator-view[]
'''
== Implementation Specification
(visible only on this page)
include::message.adoc[]
endif::env-github,rspecator-view[]