A few style changes originally done in the distutils2 repo

This commit is contained in:
Éric Araujo 2011-09-18 23:12:30 +02:00
parent f30b5ae6fd
commit c1b7e7f8bb
4 changed files with 16 additions and 17 deletions

View file

@ -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 @@ class build_scripts(Command, Mixin2to3):
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: