Commit c4ea358c authored by Martin v. Löwis's avatar Martin v. Löwis

Correct path names for fixed files.

--HG--
branch : distribute
extra : rebase_source : d5bd9c6fdb8cf2208eca9e0e5f37cb7fea1d14a5
parent a6ab02d1
import os
from distutils import log
from sdist import sdist
from lib2to3.refactor import RefactoringTool, get_fixers_from_package
......@@ -31,4 +32,4 @@ class sdist3(sdist):
if fixer_names is None:
fixer_names = get_fixers_from_package('lib2to3.fixes')
r = _RefactoringTool(fixer_names)
r.refactor([f for f in files if f.endswith(".py")], write=True)
r.refactor([os.path.join(base_dir, f) for f in files if f.endswith(".py")], write=True)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment