Modify

Opened 7 years ago

Last modified 7 years ago

#6917 new defect

Tabs and regular spaces? Really?

Reported by: Adam Bellaire Owned by: Martin Aspeli
Priority: low Component: GoogleChartPlugin
Severity: minor Keywords:
Cc: Trac Release: 0.11

Description

The source code mixes tabs and spaces in charting.py. Specifically, the indentation level appears to be 4 spaces, but where the indentation is at least a multiple of 8, tabs are used first, and then spaces to do a "half-tab". This mixing is horrible on others trying to read and patch your code, or at least it was for me. Please switch to either all tabs or all spaces.

See PEP 8 -- Style Guide for Python Code, specifically the following:

Tabs or Spaces?

Never mix tabs and spaces.

Attachments (0)

Change History (1)

comment:1 Changed 7 years ago by Martin Aspeli

I no longer maintain this plugin. It's open source, though, do with what you wish.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The owner will remain Martin Aspeli.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.