File tree Expand file tree Collapse file tree 6 files changed +14
-16
lines changed Expand file tree Collapse file tree 6 files changed +14
-16
lines changed Original file line number Diff line number Diff line change 22
33import bz2
44import codecs
5- from collections . abc import Iterator
5+ from collections import abc
66import gzip
77from io import BufferedIOBase , BytesIO
88import mmap
@@ -503,7 +503,7 @@ def closed(self):
503503 return self .fp is None
504504
505505
506- class _MMapWrapper (Iterator ):
506+ class _MMapWrapper (abc . Iterator ):
507507 """
508508 Wrapper for the Python's mmap class so that it can be properly read in
509509 by Python's csv.reader class.
@@ -540,7 +540,7 @@ def __next__(self) -> str:
540540 return newline
541541
542542
543- class UTF8Recoder (Iterator ):
543+ class UTF8Recoder (abc . Iterator ):
544544 """
545545 Iterator that reads an encoded stream and re-encodes the input to UTF-8
546546 """
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
32import functools
43from io import StringIO
54from itertools import islice
@@ -610,7 +609,7 @@ def read_json(
610609 return result
611610
612611
613- class JsonReader (Iterator ):
612+ class JsonReader (abc . Iterator ):
614613 """
615614 JsonReader provides an interface for reading in a JSON file.
616615
Original file line number Diff line number Diff line change 22Module contains tools for processing files into DataFrames or other objects
33"""
44
5- from collections import defaultdict
6- from collections .abc import Iterator
5+ from collections import abc , defaultdict
76import csv
87import datetime
98from io import StringIO
@@ -786,7 +785,7 @@ def read_fwf(
786785 return _read (filepath_or_buffer , kwds )
787786
788787
789- class TextFileReader (Iterator ):
788+ class TextFileReader (abc . Iterator ):
790789 """
791790
792791 Passed dialect overrides any of the related parser options
@@ -3582,7 +3581,7 @@ def _get_col_names(colspec, columns):
35823581 return colnames
35833582
35843583
3585- class FixedWidthReader (Iterator ):
3584+ class FixedWidthReader (abc . Iterator ):
35863585 """
35873586 A reader of fixed-width lines.
35883587 """
Original file line number Diff line number Diff line change 1313Reference for binary data compression:
1414 http://collaboration.cmc.ec.gc.ca/science/rpn/biblio/ddj/Website/articles/CUJ/1992/9210/ross/ross.htm
1515"""
16- from collections . abc import Iterator
16+ from collections import abc
1717from datetime import datetime
1818import struct
1919
@@ -37,7 +37,7 @@ class _column:
3737
3838
3939# SAS7BDAT represents a SAS data file in SAS7BDAT format.
40- class SAS7BDATReader (Iterator ):
40+ class SAS7BDATReader (abc . Iterator ):
4141 """
4242 Read SAS files in SAS7BDAT format.
4343
Original file line number Diff line number Diff line change 77
88https://support.sas.com/techsup/technote/ts140.pdf
99"""
10- from collections . abc import Iterator
10+ from collections import abc
1111from datetime import datetime
1212from io import BytesIO
1313import struct
@@ -251,7 +251,7 @@ def _parse_float_vec(vec):
251251 return ieee
252252
253253
254- class XportReader (Iterator ):
254+ class XportReader (abc . Iterator ):
255255 __doc__ = _xport_reader_doc
256256
257257 def __init__ (
Original file line number Diff line number Diff line change 99You can find more information on http://presbrey.mit.edu/PyDTA and
1010http://www.statsmodels.org/devel/
1111"""
12- from collections . abc import Iterator
12+ from collections import abc
1313import datetime
1414from io import BytesIO
1515import os
@@ -1010,7 +1010,7 @@ def __init__(self):
10101010 )
10111011
10121012
1013- class StataReader (StataParser , Iterator ):
1013+ class StataReader (StataParser , abc . Iterator ):
10141014 __doc__ = _stata_reader_doc
10151015
10161016 def __init__ (
You can’t perform that action at this time.
0 commit comments