> On Fri, Oct 14, 2016 at 6:16 AM, zhaohe wang <wangzha...@gmail.com> wrote:
>> Leo 5.4-devel, build 20160722143100, Fri, Jul 22, 2016 2:31:00 PM
>> Git repo info: branch = master, commit = cb40bc3b4ca7
>> Python 2.7.12, PyQt version 4.8.7
>> pylint: keyLog.py
>> Traceback (most recent call last):
>> line 1101, in _read
>> raise MissingSectionHeaderError(fpname, lineno, line)
>> backports.configparser.MissingSectionHeaderError: File contains no
>> section headers.
>> file: '/home/swot/leo-editor/leo/test/pylint-leo-rc.txt', line: 1
>> u'@first # -*- coding: utf-8 -*-\n'
>> pylint: done 0.23 sec.
> Not sure what is happening. You might try removing non-ascii characters
> from the file.
The same kind of thing happened to me today after upgrading my Python
To find the location of the problem, I wrote this script:
path = r'c:\leo.repo\leo-editor\leo\test\pylint-leo-rc.txt'
f = open(path)
s = f.read()
errors = 
n = 0
for i, line in enumerate(g.splitLines(s)):
print(' %3s %4s %s' % (i+1, n, line.rstrip()))
print('**%3s %4s %s' % (i+1, n, len(line.rstrip())))
n += len(line)
print('error lines: %s' % errors)
The line *looked* like plain ascii, but removing it solved the problem.
This was a strange one.
You received this message because you are subscribed to the Google Groups
To unsubscribe from this group and stop receiving emails from it, send an email
To post to this group, send email to firstname.lastname@example.org.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.