Skip to content

Commit 59d4ab9

Browse files
committed
Change string manipulation to use format()
1 parent 7a82f6e commit 59d4ab9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

circuitpython_csv.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def __init__(
5454
self.delimiter = delimiter
5555
self.quotechar = quotechar
5656
self._re_exp = (
57-
"(\\" + quotechar + ".+?\\" + quotechar + "),|([^" + delimiter + "]+)"
57+
"(\\{0}.+?\\{0}),|([^{1}]+)". format(quotechar, delimiter)
5858
)
5959

6060
def __iter__(self) -> 'reader':

0 commit comments

Comments
 (0)