Skip to content

Commit e6fc5be

Browse files
committed
chore: Use consistent variable to improve readability
1 parent 67181ed commit e6fc5be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

agate/table/from_csv.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ def from_csv(cls, path, column_names=None, column_types=None, row_names=None, sk
7373
# more than the sniff_limit. On my machine, the buffer_size of sys.stdin.buffer is the length of the
7474
# input, up to 65536. This assumes that users don't sniff more than 64 KiB.
7575
# https://docs.python.org/3/library/io.html#io.BufferedReader.peek
76-
sample = sys.stdin.buffer.peek(sniff_limit).decode(encoding, 'ignore')[:sniff_limit] # reads *bytes*
76+
sample = f.buffer.peek(sniff_limit).decode(encoding, 'ignore')[:sniff_limit] # reads *bytes*
7777
else:
7878
offset = f.tell()
7979
sample = f.read(sniff_limit) # reads *characters*

0 commit comments

Comments
 (0)