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.
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.