diff options
| author | Michał Górny <mgorny@gentoo.org> | 2017-10-15 14:28:33 +0200 |
|---|---|---|
| committer | Michał Górny <mgorny@gentoo.org> | 2017-10-15 14:35:59 +0200 |
| commit | d695735f23bab3a8b67e69a6721b2b1fc666f8f0 (patch) | |
| tree | 1329f685ebebd0831942d8bd228b1a10f16a060c /dev-python/python-dsv/files/python-dsv-1.4.1-unicode.patch | |
| parent | 148e5607dd4ff0ed7657bb6f5ed9d98cc1f5b789 (diff) | |
| download | gentoo-d695735f23bab3a8b67e69a6721b2b1fc666f8f0.tar.gz gentoo-d695735f23bab3a8b67e69a6721b2b1fc666f8f0.tar.bz2 gentoo-d695735f23bab3a8b67e69a6721b2b1fc666f8f0.zip | |
dev-python/python-dsv: Move patches to a dist tarball
Closes: https://bugs.gentoo.org/620568
Diffstat (limited to 'dev-python/python-dsv/files/python-dsv-1.4.1-unicode.patch')
| -rw-r--r-- | dev-python/python-dsv/files/python-dsv-1.4.1-unicode.patch | 21 |
1 files changed, 0 insertions, 21 deletions
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 deleted file mode 100644 index 39faebe103b7..000000000000 --- a/dev-python/python-dsv/files/python-dsv-1.4.1-unicode.patch +++ /dev/null @@ -1,21 +0,0 @@ -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: |
