Python logoPython/
PYL-E1608

Use of old octal literalPYL-E1608

Major severityMajor
Bug Risk categoryBug Risk

Old octal syntax is being used. This has been removed in Python 3, and will raise an error. To use the new syntax, prepend 0o to the number.

Bad practice

In Python 2

my_var = 011 # This represents 8 in decimal
my_var = 0o11 # This represents 8 in decimal