mirror of
https://github.com/python/cpython.git
synced 2025-12-04 00:30:19 +00:00
Mark xreadlines deprecated. Don't use f.xreadlines() in test_iter.py.
This commit is contained in:
parent
97c5fccd77
commit
8ee5243434
3 changed files with 7 additions and 2 deletions
|
|
@ -1,5 +1,8 @@
|
|||
from test.test_support import verbose
|
||||
|
||||
import warnings
|
||||
warnings.filterwarnings('ignore', "xreadlines", DeprecationWarning)
|
||||
|
||||
class XReader:
|
||||
def __init__(self):
|
||||
self.count = 5
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue