File tree 6 files changed +14
-16
lines changed
6 files changed +14
-16
lines changed Original file line number Diff line number Diff line change 2
2
3
3
import bz2
4
4
import codecs
5
- from collections . abc import Iterator
5
+ from collections import abc
6
6
import gzip
7
7
from io import BufferedIOBase , BytesIO
8
8
import mmap
@@ -503,7 +503,7 @@ def closed(self):
503
503
return self .fp is None
504
504
505
505
506
- class _MMapWrapper (Iterator ):
506
+ class _MMapWrapper (abc . Iterator ):
507
507
"""
508
508
Wrapper for the Python's mmap class so that it can be properly read in
509
509
by Python's csv.reader class.
@@ -540,7 +540,7 @@ def __next__(self) -> str:
540
540
return newline
541
541
542
542
543
- class UTF8Recoder (Iterator ):
543
+ class UTF8Recoder (abc . Iterator ):
544
544
"""
545
545
Iterator that reads an encoded stream and re-encodes the input to UTF-8
546
546
"""
Original file line number Diff line number Diff line change 1
- from collections import OrderedDict
2
- from collections .abc import Iterator
1
+ from collections import OrderedDict , abc
3
2
import functools
4
3
from io import StringIO
5
4
from itertools import islice
@@ -610,7 +609,7 @@ def read_json(
610
609
return result
611
610
612
611
613
- class JsonReader (Iterator ):
612
+ class JsonReader (abc . Iterator ):
614
613
"""
615
614
JsonReader provides an interface for reading in a JSON file.
616
615
Original file line number Diff line number Diff line change 2
2
Module contains tools for processing files into DataFrames or other objects
3
3
"""
4
4
5
- from collections import defaultdict
6
- from collections .abc import Iterator
5
+ from collections import abc , defaultdict
7
6
import csv
8
7
import datetime
9
8
from io import StringIO
@@ -786,7 +785,7 @@ def read_fwf(
786
785
return _read (filepath_or_buffer , kwds )
787
786
788
787
789
- class TextFileReader (Iterator ):
788
+ class TextFileReader (abc . Iterator ):
790
789
"""
791
790
792
791
Passed dialect overrides any of the related parser options
@@ -3582,7 +3581,7 @@ def _get_col_names(colspec, columns):
3582
3581
return colnames
3583
3582
3584
3583
3585
- class FixedWidthReader (Iterator ):
3584
+ class FixedWidthReader (abc . Iterator ):
3586
3585
"""
3587
3586
A reader of fixed-width lines.
3588
3587
"""
Original file line number Diff line number Diff line change 13
13
Reference for binary data compression:
14
14
http://collaboration.cmc.ec.gc.ca/science/rpn/biblio/ddj/Website/articles/CUJ/1992/9210/ross/ross.htm
15
15
"""
16
- from collections . abc import Iterator
16
+ from collections import abc
17
17
from datetime import datetime
18
18
import struct
19
19
@@ -37,7 +37,7 @@ class _column:
37
37
38
38
39
39
# SAS7BDAT represents a SAS data file in SAS7BDAT format.
40
- class SAS7BDATReader (Iterator ):
40
+ class SAS7BDATReader (abc . Iterator ):
41
41
"""
42
42
Read SAS files in SAS7BDAT format.
43
43
Original file line number Diff line number Diff line change 7
7
8
8
https://support.sas.com/techsup/technote/ts140.pdf
9
9
"""
10
- from collections . abc import Iterator
10
+ from collections import abc
11
11
from datetime import datetime
12
12
from io import BytesIO
13
13
import struct
@@ -251,7 +251,7 @@ def _parse_float_vec(vec):
251
251
return ieee
252
252
253
253
254
- class XportReader (Iterator ):
254
+ class XportReader (abc . Iterator ):
255
255
__doc__ = _xport_reader_doc
256
256
257
257
def __init__ (
Original file line number Diff line number Diff line change 9
9
You can find more information on http://presbrey.mit.edu/PyDTA and
10
10
http://www.statsmodels.org/devel/
11
11
"""
12
- from collections . abc import Iterator
12
+ from collections import abc
13
13
import datetime
14
14
from io import BytesIO
15
15
import os
@@ -1010,7 +1010,7 @@ def __init__(self):
1010
1010
)
1011
1011
1012
1012
1013
- class StataReader (StataParser , Iterator ):
1013
+ class StataReader (StataParser , abc . Iterator ):
1014
1014
__doc__ = _stata_reader_doc
1015
1015
1016
1016
def __init__ (
You can’t perform that action at this time.
0 commit comments