This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author serhiy.storchaka
Recipients Oren Milman, brett.cannon, eric.snow, ncoghlan, serhiy.storchaka
Date 2017-08-28.06:42:57
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
An alternative solution is using str.splitlines(source) instead of source.splitlines(). It raises a TypeError if the argument is not a text string and always returns a list of strings.

According to the documentation get_source() must return a text string or None.
Date User Action Args
2017-08-28 06:42:58serhiy.storchakasetrecipients: + serhiy.storchaka, brett.cannon, ncoghlan, eric.snow, Oren Milman
2017-08-28 06:42:58serhiy.storchakasetmessageid: <>
2017-08-28 06:42:58serhiy.storchakalinkissue31285 messages
2017-08-28 06:42:57serhiy.storchakacreate