org.sonar.l10n.py.rules.python.PrintStatementUsage.html Maven / Gradle / Ivy
This rule raises an issue when the print statement is used.
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
print '1' # Noncompliant
Compliant solution
print('1')
© 2015 - 2024 Weber Informatics LLC | Privacy Policy