Skip to content

Commit 9a60825

Browse files
author
Kevin D Smith
committed
Use native strings for delimiters
1 parent c0053d4 commit 9a60825

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

swat/cas/connection.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1355,8 +1355,8 @@ def upload(self, data, importoptions=None, casout=None, **kwargs):
13551355
delete = True
13561356
filename = tmp.name
13571357
name = os.path.splitext(os.path.basename(filename))[0]
1358-
data.to_csv(filename, encoding='utf-8', index=False, sep=',',
1359-
decimal='.', line_terminator='\r\n')
1358+
data.to_csv(filename, encoding='utf-8', index=False, sep=a2n(',', 'utf-8'),
1359+
decimal=a2n('.', 'utf-8'), line_terminator=a2n('\r\n', 'utf-8'))
13601360
df_dtypes = self._extract_dtypes(data)
13611361
importoptions['locale'] = 'EN-us'
13621362

0 commit comments

Comments
 (0)