Skip to content

Commit d99fa99

Browse files
committed
CLN: More cleanup and comments
1 parent e0ebca0 commit d99fa99

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

pandas/io/common.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
import codecs
55
import csv
66
import gzip
7-
import lzma
87
from http.client import HTTPException # noqa
8+
import lzma
99
import mmap
1010
import os
1111
from urllib.error import URLError # noqa
@@ -491,8 +491,10 @@ def next(self):
491491
return next(self.reader).encode("utf-8")
492492

493493

494+
# Keeping these class for now because it provides a necessary convenience
495+
# for "dropping" the "encoding" argument from our I/O arguments when
496+
# creating a Unicode I/O object.
494497
def UnicodeReader(f, dialect=csv.excel, encoding="utf-8", **kwds):
495-
# ignore encoding
496498
return csv.reader(f, dialect=dialect, **kwds)
497499

498500

pandas/io/formats/terminal.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
"""
22
Terminal utilities.
33
"""
4-
from __future__ import print_function
54

65
__all__ = ['is_terminal']
76

0 commit comments

Comments
 (0)