Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Refactor doctests too

  • Loading branch information...
commit 033f8afa094ed5cf35fb4bd26da0b3d53eaaa417 1 parent f8538c4
@bdarnell authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 auto2to3.py
View
4 auto2to3.py
@@ -45,7 +45,9 @@ def find_module(self, fullname, path=None):
if (not os.path.exists(outfile) or
os.stat(filename).st_mtime > os.stat(outfile).st_mtime):
try:
- tree = rt.refactor_string(file.read(), filename)
+ contents = file.read()
+ contents = rt.refactor_docstring(contents, filename)
+ tree = rt.refactor_string(contents, filename)
except Exception as err:
raise ImportError("2to3 couldn't convert %r" % filename)
finally:
Please sign in to comment.
Something went wrong with that request. Please try again.