Nils Bruin added the comment: The most straightforward change I can think of is to change the line
if not sourcefile and file[0] + file[-1] != '<>': to if not sourcefile and (not file or file[0] + file[-1] != '<>'): That solves the problem in the cases I have observed. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue17526> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com