mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
A few style changes originally done in the distutils2 repo
This commit is contained in:
parent
f30b5ae6fd
commit
c1b7e7f8bb
4 changed files with 16 additions and 17 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue