Steve Newcomb added the comment: Context reporting is still buggy in Python 3.5.2:
>>> [ x for x in difflib.unified_diff( "'on'\n", "'on'\n\n\n")] ['--- \n', '+++ \n', '@@ -3,3 +3,5 @@\n', ' n', " '", ' \n', '+\n', '+\n'] >>> import sys >>> sys.version '3.5.2 (default, Sep 10 2016, 08:21:44) \n[GCC 5.4.0 20160609]' >>> (compiled under Ubuntu 16.04.1 LTS) ---------- nosy: +steve.newcomb _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue11632> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com