1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
|
Description: Don't set quotechar in csv register_dialect
Origin: https://github.com/beancount/beancount/pull/730
Last-Update: 2022-11-17
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
From 82fba6c2ee9af144137886a6fe286651890c53fe Mon Sep 17 00:00:00 2001
From: Kan-Ru Chen <kanru@kanru.info>
Date: Tue, 13 Sep 2022 22:34:04 +0900
Subject: [PATCH] Don't set quotechar in csv register_dialect
quotechar is not allowed to be empty after Python 3.11
quoting is already QUOTE_NONE so quotechar is not relevant and
can be safely ignored.
---
beancount/prices/sources/tsp.py | 1 -
1 file changed, 1 deletion(-)
diff --git a/beancount/prices/sources/tsp.py b/beancount/prices/sources/tsp.py
index c2f2d8fad..fe9b469f6 100644
--- a/beancount/prices/sources/tsp.py
+++ b/beancount/prices/sources/tsp.py
@@ -44,7 +44,6 @@
csv.register_dialect('tsp',
delimiter=',',
quoting=csv.QUOTE_NONE,
- quotechar='',
lineterminator='\n')
class TSPError(ValueError):
|