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.

classification
Title: HTML output of difflib
Type: enhancement Stage: resolved
Components: Library (Lib) Versions: Python 3.5
process
Status: closed Resolution: duplicate
Dependencies: Superseder: Modernize HTML output of difflib.HtmlDiff.make_file()
View: 23664
Assigned To: Nosy List: Jasvir.Singh, ezio.melotti
Priority: normal Keywords:

Created on 2014-03-18 17:19 by Jasvir.Singh, last changed 2022-04-11 14:58 by admin. This issue is now closed.

Messages (5)
msg213992 - (view) Author: Jasvir Singh (Jasvir.Singh) Date: 2014-03-18 17:19
HTML output of python difflib is in HTML1 which is outdated now. I am working on updating this library and I'll submit a patch as soon as possible.
msg213994 - (view) Author: Ezio Melotti (ezio.melotti) * (Python committer) Date: 2014-03-18 17:55
This is a new feature, so it can go only in 3.5.
Updating the generated HTML sounds like a good idea, however we must consider if this might cause any problems related to backward compatibility.
If you are going to do this, please use (valid) HTML5.
msg213997 - (view) Author: Jasvir Singh (Jasvir.Singh) Date: 2014-03-18 18:01
Why we can't add this in 2.7?
Major projects and OS supporting 2.7 now and I am updating this because I am need of feature for 2.7.

Can't we do it like release new version with new name(or something like). If one wants to download it, he/she can download using pip and make it default in python 3.5?
msg214005 - (view) Author: Ezio Melotti (ezio.melotti) * (Python committer) Date: 2014-03-18 19:01
Yes, you could make patches for Python 3.5 and release a PyPI package that includes these changes and it's compatible with older versions.  The same has been done for other modules as well (e.g. unittest2 includes features that are available on recent versions of Python but it's compatible with older versions too).
The reason why we can't add this to 2.7 (or even 3.4) is because they only receive bug fixes (and older versions only receive security fixes).  Since there won't be a 2.8, new features can only go on 3.5.  You can find more information about this on the devguide.
msg214011 - (view) Author: Jasvir Singh (Jasvir.Singh) Date: 2014-03-18 20:11
Ok Ezio Melotti, I'll start working on it :)
History
Date User Action Args
2022-04-11 14:58:00adminsetgithub: 65170
2016-05-06 11:57:05berker.peksagsetstatus: open -> closed
superseder: Modernize HTML output of difflib.HtmlDiff.make_file()
resolution: duplicate
stage: needs patch -> resolved
2014-03-18 20:11:44Jasvir.Singhsetmessages: + msg214011
2014-03-18 19:01:02ezio.melottisetmessages: + msg214005
2014-03-18 18:01:37Jasvir.Singhsetmessages: + msg213997
2014-03-18 17:55:03ezio.melottisetversions: + Python 3.5, - Python 2.7
nosy: + ezio.melotti

messages: + msg213994

stage: needs patch
2014-03-18 17:19:02Jasvir.Singhcreate