hplgit / doconce

Lightweight markup language - document once, include anywhere
http://hplgit.github.io/doconce/doc/web/index.html
Other
311 stars 60 forks source link

Make doconce compatible with both Python 2.7 and Python 3.6 #92

Closed dragly closed 7 years ago

dragly commented 7 years ago

This pull request includes changes that should make DocOnce compatible with both Python 2.7 and Python 3.6.

Other versions may also be compatible, but this has not been tested.

This change has been tested on a fairly large book project targeting both Jupyter Notebooks and PDF (LaTeX). There might still be some issues left, so please let me know if you find any use cases where this change breaks anything.

As can be seen from the commit history, most of the conversion is done with futurize. Then a number of manual fixes have been made.