mirror of
https://github.com/python/cpython.git
synced 2025-08-03 08:34:29 +00:00
Get rid of xreadlines() (methods).
This commit is contained in:
parent
7c3072437a
commit
7096760b25
11 changed files with 9 additions and 47 deletions
|
@ -50,7 +50,7 @@ import os, glob, re, sys
|
|||
|
||||
def findnames(file, prefixes=()):
|
||||
names = {}
|
||||
for line in file.xreadlines():
|
||||
for line in file:
|
||||
if line[0] == '!':
|
||||
continue
|
||||
fields = line.split()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue