From e0080102e0e227828b70549f64f70d485622d723 Mon Sep 17 00:00:00 2001 From: Pacho Ramos Date: Tue, 29 Nov 2016 21:34:07 +0100 Subject: dev-python/python-dsv: Apply Debian patches also fixing wxpython3 compat (#601178) Package-Manager: portage-2.3.2 --- .../python-dsv/files/python-dsv-1.4.1-unicode.patch | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 dev-python/python-dsv/files/python-dsv-1.4.1-unicode.patch (limited to 'dev-python/python-dsv/files/python-dsv-1.4.1-unicode.patch') diff --git a/dev-python/python-dsv/files/python-dsv-1.4.1-unicode.patch b/dev-python/python-dsv/files/python-dsv-1.4.1-unicode.patch new file mode 100644 index 000000000000..39faebe103b7 --- /dev/null +++ b/dev-python/python-dsv/files/python-dsv-1.4.1-unicode.patch @@ -0,0 +1,21 @@ +Index: python-dsv-1.4.1/DSV/DSV.py +=================================================================== +--- python-dsv-1.4.1.orig/DSV/DSV.py 2010-01-26 20:35:23.000000000 -0500 ++++ python-dsv-1.4.1/DSV/DSV.py 2010-01-26 20:35:23.000000000 -0500 +@@ -486,8 +486,14 @@ + list of lists of data + """ + if type(input) != type([]): +- raise InvalidData, "expected list of lists of strings" +- if type(delimiter) != type('') or not delimiter: ++ raise InvalidData, "expected list of lists of strings" ++ # Try to convert Unicode delimiters back to ASCII (wxPython can be ++ # overenthusiastic), but ultimately support either. ++ try: ++ delimiter = delimiter.encode() ++ except: ++ pass ++ if (type(delimiter) != str and type(delimiter) != unicode) or not delimiter: + raise InvalidDelimiter, `delimiter` + + ## if textQualifier: -- cgit v1.2.3