File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -98,3 +98,26 @@ Please report bugs on `GitHub
9898
9999Contributions to ``futurize `` are particularly welcome! Please see :ref: `contributing `.
100100
101+
102+ .. _futurize-limitations
103+
104+ Known limitations of ``futurize ``
105+ ---------------------------------
106+
107+ ``futurize `` doesn't currently make any of these changes automatically::
108+
109+ 1. A source encoding declaration line like::
110+
111+ # -*- coding:utf-8 -*-
112+
113+ is not kept at the top of a file. It must be moved manually back to line 1 to take effect.
114+
115+ 1. Strings containing ``\U `` produce a ``SyntaxError `` on Python 3. An example is::
116+
117+ s = 'C:\Users'.
118+
119+ Python 2 expands this to ``s = 'C:\\Users'``, but Python 3 requires a raw
120+ prefix (``r'...'``). This also applies to multi-line strings (including
121+ multi-line docstrings).
122+
123+
You can’t perform that action at this time.
0 commit comments