Mercurial > cpython-lru_cache-weakref
diff Lib/packaging/command/build_scripts.py @ 72408:cc5e3a65e452
A few style changes originally done in the distutils2 repo
| author | Éric Araujo <merwok@netwok.org> |
|---|---|
| date | Sun, 18 Sep 2011 23:12:30 +0200 |
| parents | cc5cfeaa4a8d |
| children |
line wrap: on
line diff
--- a/Lib/packaging/command/build_scripts.py Sun Sep 18 21:03:24 2011 +0200 +++ b/Lib/packaging/command/build_scripts.py Sun Sep 18 23:12:30 2011 +0200 @@ -3,7 +3,7 @@ import os import re import sysconfig -import tokenize +from tokenize import detect_encoding from packaging.command.cmd import Command from packaging.util import convert_path, newer @@ -83,7 +83,7 @@ raise f = None else: - encoding, lines = tokenize.detect_encoding(f.readline) + encoding, lines = detect_encoding(f.readline) f.seek(0) first_line = f.readline() if not first_line:
