SourceForge logo
SourceForge logo
Menu

Re: [matplotlib-devel] Tab Characters in Python Code

From: Mark R. <mar...@gm...> - 2010年04月28日 16:30:28
On Wed, Apr 28, 2010 at 11:49 AM, Michael Droettboom <md...@st...> wrote:
> Thanks. Yes, I would consider tabs a bug. A patch is very welcome.
>
> Mike
>
> Mark Roddy wrote:
>>
>> I'm trying to resolve an issue with my source base that uses
>> matplotlib. We run our CI tests with the '-tt' option which causes
>> errors on mixed tabs/spaces, and this has caused our builds to start
>> failing since the inclusion of matploblib on one of our projects due
>> to mixed use of tab and space characters in some of the pure python
>> code. We're using v0.99.0 and I count 43 occurences of tab characters
>> across 5 files in this release. I checked out the trunk and found 26
>> occurrences across 9 files. I determined these via:
>> find -name \*.py|xargs grep -P '\t', and
>> find -name \*.py|xargs grep -Pl '\t'
>>
>> According to the style guide[1], use of tabs is a bug, but I wanted to
>> inquire if this standard is still in place before filing a bug report.
>> I can provide a patch if so (which should only consist of running
>> reindent).
>>
>> Thanks,
>> Mark
>>
>> 1:
>> http://matplotlib.sourceforge.net/devel/coding_guide.html#naming-spacing-and-formatting-conventions
>>
>>
>> ------------------------------------------------------------------------------
>> _______________________________________________
>> Matplotlib-devel mailing list
>> Mat...@li...
>> https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
>>
>
> --
> Michael Droettboom
> Science Software Branch
> Operations and Engineering Division
> Space Telescope Science Institute
> Operated by AURA for NASA
>
>
Thanks Mike. I'll open a bug with the patch attached.
-Mark

View entire thread

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.
Thanks for helping keep SourceForge clean.
X





Briefly describe the problem (required):
Upload screenshot of ad (required):
Select a file, or drag & drop file here.
Screenshot instructions:

Click URL instructions:
Right-click on the ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)

More information about our ad policies

Ad destination/click URL:

AltStyle によって変換されたページ (->オリジナル) /