From 8daaf599df6e87b273e14b8e2b3185b79d681cd4 Mon Sep 17 00:00:00 2001 From: Salvo 'LtWorf' Tomaselli Date: Tue, 16 Jun 2015 10:32:40 +0200 Subject: [PATCH] Removed debian patch for encoding in tests The encoding is set in the source code now, so the patch is no longer necessary. --- debian/patches/00001-utf8_for_tests | 26 -------------------------- debian/patches/series | 1 - 2 files changed, 27 deletions(-) delete mode 100644 debian/patches/00001-utf8_for_tests delete mode 100644 debian/patches/series diff --git a/debian/patches/00001-utf8_for_tests b/debian/patches/00001-utf8_for_tests deleted file mode 100644 index 440ab5e..0000000 --- a/debian/patches/00001-utf8_for_tests +++ /dev/null @@ -1,26 +0,0 @@ -Description: Use utf8 encoding when loading tests - Test files are encoded in utf8, normally Python3 uses locale settings - and decodes, but this fails when building as locale is not set, and - could also be set to some unexpected value. - . - relational (2.0-1) unstable; urgency=medium - . - * New upstream release - * Now uses Python3 - * Now uses PyQt5 - * Bump standards version - * Recommends python3-pyqt5.qtwebkit to open the documentation from the UI but - it is not a necessity -Author: Salvo 'LtWorf' Tomaselli - ---- relational-2.0.orig/driver.py -+++ relational-2.0/driver.py -@@ -40,7 +40,7 @@ tests_path = 'test/' - - def readfile(fname): - '''Reads a file as string and returns its content''' -- fd = open(fname) -+ fd = open(fname,encoding='utf-8') - expr = fd.read() - fd.close() - return expr diff --git a/debian/patches/series b/debian/patches/series deleted file mode 100644 index 0fa572d..0000000 --- a/debian/patches/series +++ /dev/null @@ -1 +0,0 @@ -00001-utf8_for_tests