From 3df29fc9c750af2f787ebcdc310bd76bb0f96441 Mon Sep 17 00:00:00 2001 From: ?ngel ?lvarez Date: Thu, 18 Apr 2019 10:27:44 +0200 Subject: [PATCH] adapt to python3 --- aeat.xml | 4 ---- company.py | 18 +++++++++++++----- invoice.py | 3 +-- tools.py | 4 +--- 4 files changed, 15 insertions(+), 14 deletions(-) diff --git a/aeat.xml b/aeat.xml index ac6b0c1..fcc6b06 100644 --- a/aeat.xml +++ b/aeat.xml @@ -10,10 +10,6 @@ - - - - = len(dst_chars): @@ -23,4 +21,4 @@ def unaccent(text): output = output.replace(src_chars[c], dst_chars[c]) output = unicodedata.normalize('NFKD', output).encode('ASCII', 'ignore') - return output.strip('_').encode('utf-8') + return output.replace(b"_",b"")