All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.sonar.l10n.py.rules.python.PrintStatementUsage.html Maven / Gradle / Ivy

There is a newer version: 4.23.0.17664
Show newest version

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