Skip to content

Commit b089079

Browse files
committed
Replace a default string value with None.
The previous version was redundant.
1 parent e62822a commit b089079

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

odo/backends/csv.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ def open_file(path, *args, **kwargs):
103103
f.close()
104104

105105

106-
def infer_header(path, nbytes=10000, encoding='utf-8', **kwargs):
106+
def infer_header(path, nbytes=10000, encoding=None, **kwargs):
107107
if encoding is None:
108108
encoding = 'utf-8'
109109
with open_file(path, 'rb') as f:
@@ -123,7 +123,7 @@ def newlines(encoding):
123123
return b'\r\n'.decode(encoding), b'\n'.decode(encoding)
124124

125125

126-
def sniff_dialect(path, nbytes, encoding='utf-8'):
126+
def sniff_dialect(path, nbytes, encoding=None):
127127
if not os.path.exists(path):
128128
return {}
129129
if encoding is None:
@@ -183,7 +183,7 @@ class CSV(object):
183183
"""
184184
canonical_extension = 'csv'
185185

186-
def __init__(self, path, has_header=None, encoding='utf-8',
186+
def __init__(self, path, has_header=None, encoding=None,
187187
sniff_nbytes=10000, buffer=None, **kwargs):
188188
self.path = path
189189
self._has_header = has_header

0 commit comments

Comments
 (0)