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 Windson Yang
Recipients Valentin Zhao, Windson Yang, jaraco, paul.moore, steve.dower, tim.golden, zach.ware
Date 2018-11-09.06:58:59
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
I tried to create a PR for it, However, I don't know how to handle the code at

So how to check UnicodeDecodeError when we just open the file, I use readlines() but it may use too many memory than before (I'm not sure it's important in this case).

        f = open(fullname, "r")
        data = f.readlines()
    except UnicodeDecodeError:
        f = open(fullname, "r", encoding="utf-8")
        data = f.readlines()
Date User Action Args
2018-11-09 06:58:59Windson Yangsetrecipients: + Windson Yang, paul.moore, jaraco, tim.golden, zach.ware, steve.dower, Valentin Zhao
2018-11-09 06:58:59Windson Yangsetmessageid: <>
2018-11-09 06:58:59Windson Yanglinkissue35131 messages
2018-11-09 06:58:59Windson Yangcreate