Skip to content

Commit 3bc4e08

Browse files
authored
fix: modify process of reading charset_list.csv
1 parent e2e40e0 commit 3bc4e08

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pymysqlreplication/constants/CHARSET.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def by_name(self, name, dbms='mysql'):
5454
charset_by_id = charsets.by_id
5555

5656
with open(os.path.join(os.path.dirname(os.path.abspath(__file__)), 'charset_list.csv'), 'r') as f:
57-
f.read() # pass header
57+
f.readline() # pass header
5858
for line in f:
5959
lines = line.split(',')
6060
if len(lines) != 5:

0 commit comments

Comments
 (0)