Skip to content

Files

Latest commit

 

History

History
20 lines (12 loc) · 484 Bytes

unnecessary-semicolon.md

File metadata and controls

20 lines (12 loc) · 484 Bytes

Pattern: Unnecessary ;

Issue: -

Description

Semicolons are not necessary in Python unless you are putting more than one statement in a line. This is a style slip-up that's particularly easy to make for old hands of other programming languages such as C or Perl, where semicolons are always (or almost always) required after each statement.

Example of incorrect code:

__revision__.lower();

Example of correct code:

__revision__.lower()